6400-wire.yaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. schema: prod2u-6400-manual-wire-v5
  2. clock_hz: 25000000
  3. device: EF2L45BG256B
  4. note: >-
  5. Single wire protocol for the 6400 V1.1 product. There is exactly one frame
  6. shape; no version field, product id, sequence number, tag or TLV, and no
  7. autodetection of any historical format.
  8. frame:
  9. preamble: [0xA5, 0x5A]
  10. fields: [type: u8, length: u8, payload: bytes, crc: u16le]
  11. total_bytes: length_plus_6
  12. crc:
  13. name: CRC-16/CCITT-FALSE
  14. polynomial: 0x1021
  15. initial: 0xFFFF
  16. reflect_input: false
  17. reflect_output: false
  18. xor_output: 0
  19. coverage: type_length_payload
  20. wire_order: little
  21. excludes_header: true
  22. rx_and_tx_accumulators_are_independent: true
  23. length_width_bits: 8
  24. inter_byte_timeout_clks: 250000
  25. inter_byte_timeout_us: 10000
  26. max_request_payload_bytes: 128
  27. max_response_payload_bytes: 83
  28. request_staging_bytes: 128
  29. rx_path:
  30. default_rx_fifo_bytes: 512
  31. implemented_rx_fifo_bytes: 0
  32. reduction_evidence: >-
  33. The one-outstanding-ordinary-transaction rule plus a byte-serial parser that
  34. drains at wire rate into a dedicated single-writer request RAM means there is
  35. no stall path a separate RX FIFO could cover. The parser stays enabled while a
  36. reply or an asynchronous DONE is being transmitted, so a request arriving
  37. during that window is still accepted. Reducing the depth from the 512-byte
  38. default therefore does not weaken the agreed load. A back-to-back/coalesced
  39. frame regression proves no byte loss.
  40. overflow_policy: never_execute_a_partial_request_and_keep_a_bounded_recovery_path
  41. host_uart:
  42. baud: 921600
  43. format: 8N1
  44. fixed_candidate_clks_per_bit: 27
  45. exact_baud: {div: 15625, mul: 576, relation: clock_hz_times_mul_over_div_equals_baud}
  46. rs232: {connector: CON78, tx_ball: M10, rx_ball: N11, status: confirmed}
  47. ttl:
  48. connector: CON30
  49. tx_connector_pin: 4
  50. rx_connector_pin: 3
  51. tx_ball: A10
  52. rx_ball: B9
  53. level: LVCMOS33
  54. status: confirmed
  55. note: >-
  56. User-locked 6400 TTL binding on CON30. This is a UART-only binding; the
  57. product has no host register interface and no other host bus.
  58. source_select: minimal_rx_source_select_with_broadcast_tx
  59. conflict_detection: none
  60. fair_arbitration: none
  61. bmc_uart:
  62. baud: 115200
  63. format: 8N1
  64. clks_per_bit: 217
  65. optional: true
  66. set_all_allowed_without_bmc: true
  67. rs232: {connector: CON77, tx_ball: L10, rx_ball: M9, status: confirmed}
  68. poll_ascii: "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03"
  69. poll_line_terminator: 0x0A
  70. poll_command_bytes: 43
  71. response_hex_tokens: 48
  72. response_pairs: 24
  73. response_lines_typical: 3
  74. commands:
  75. SET_ALL:
  76. type: 0x01
  77. payload_length: 32
  78. response: SET_ACK
  79. feeds_watchdog: true
  80. admission: SET_ACCEPT_after_validation_and_reservation
  81. payload_fields:
  82. - {name: ptc_duty_percent, offset: 0, count: 24, minimum: 0, maximum: 100, unit: percent}
  83. - {name: front_fan_duty_percent, offset: 24, count: 4, minimum: 0, maximum: 100, unit: percent}
  84. - {name: rear_fan_duty_percent, offset: 28, count: 4, minimum: 0, maximum: 100, unit: percent}
  85. fan_duty_meaning: connector_requested_duty_not_rpm_not_airflow
  86. GET_ALL:
  87. type: 0x02
  88. payload_length: 0
  89. response: [GET_ACK, GET_DATA]
  90. response_order: ack_then_data_contiguous_group
  91. feeds_watchdog: true
  92. data_is_not_an_ack: true
  93. UNLISTED_TYPES: UNSUPPORTED
  94. responses:
  95. SET_ACK: {type: 0x81, payload_length: 0}
  96. GET_ACK: {type: 0x82, payload_length: 0}
  97. GET_DATA: {type: 0x42, payload_length: 83, payload_contract: 6400-snapshot.yaml}
  98. NACK:
  99. type: 0xC0
  100. payload_length: 2
  101. payload: [request_type, reason]
  102. reason: {UNSUPPORTED: 1, BAD_LENGTH: 2, BAD_VALUE: 3, QUEUE_FULL: 4, BUSY: 5}
  103. no_detail_strings: true
  104. no_field_index: true
  105. no_extra_fault_state: true
  106. MOTOR_DONE: {type: 0x50, product_behavior: NOT_PRESENT}
  107. RESPONSE_TYPES_ARE_REQUESTS: UNSUPPORTED
  108. host_response_order:
  109. SET_ALL: [SET_ACK]
  110. GET_ALL: [GET_ACK, GET_DATA]
  111. UNSUPPORTED: [NACK]
  112. invalid_behavior:
  113. bad_header_crc_partial_timeout_framing: silent_drop_and_recover
  114. complete_crc_valid_request: exactly_one_set_ack_get_ack_or_nack
  115. crc_valid_but_unsupported_or_bad_length_or_bad_value: nack_and_take_no_effect_and_do_not_feed_watchdog
  116. declared_length_over_request_ram: consume_full_frame_and_crc_then_bad_length
  117. a55a_inside_payload: not_a_new_frame
  118. resync: next_real_frame_after_declared_extent
  119. half_frame: abandon_only_after_inter_byte_timeout
  120. outstanding_transactions: 1
  121. command_fifo: false
  122. watchdog:
  123. seconds: 30
  124. timebase: existing_shared_tick
  125. feed_on: [successful_set_accept, legal_get_accept]
  126. no_feed_on: [bad_request, nack, motor_done]
  127. starts_at: first_successful_set_or_get
  128. expiry:
  129. stop_all_axes: true
  130. invalidate_segments_queues_unsent_dones: true
  131. thermal_output_defaults_within: next_complete_500hz_pwm_period
  132. reset_uart_or_parser_or_fifo_or_tx: false
  133. already_started_reply_frames_finish: true
  134. old_done_completion_callback_restarts_work: false
  135. pre_expiry_settings_permanently_invalid: true
  136. default_validity_cleared_only_by_a_genuinely_applied_new_set: true
  137. get_continues_to_feed_while_returning_defaults: true
  138. same_value_set_after_expiry_recovers_directly: true
  139. different_value_set_after_expiry_recovers_directly: true
  140. retry_semantics:
  141. set_all_pure_output: retryable_after_resync
  142. get_all: retryable_after_resync
  143. malformed_or_unlisted_requests: resend_after_resync