pid_channels.json 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. {
  2. "schema": "pid-high-temp-chamber-config-v2",
  3. "project": "pid_study_01",
  4. "authority_boundary": "offline_contract_for_v2_high_temp_chamber_control_plane",
  5. "fixed_point": {
  6. "temperature_q": {
  7. "width": 18,
  8. "scale": "integer_celsius"
  9. },
  10. "control_q": {
  11. "width": 18,
  12. "scale": "abstract_pwm_level_0_127"
  13. }
  14. },
  15. "physical_topology": {
  16. "channel_count": 24,
  17. "dimm_count": 24,
  18. "ptc_count": 24,
  19. "mapping_policy": "bmc_order_equals_physical_order_equals_ptc_channel_order",
  20. "cpu_channel_ranges": [
  21. {
  22. "cpu_id": 0,
  23. "channels": [
  24. 0,
  25. 1,
  26. 2,
  27. 3,
  28. 4,
  29. 5,
  30. 6,
  31. 7,
  32. 8,
  33. 9,
  34. 10,
  35. 11
  36. ]
  37. },
  38. {
  39. "cpu_id": 1,
  40. "channels": [
  41. 12,
  42. 13,
  43. 14,
  44. 15,
  45. 16,
  46. 17,
  47. 18,
  48. 19,
  49. 20,
  50. 21,
  51. 22,
  52. 23
  53. ]
  54. }
  55. ],
  56. "airflow_zones": [
  57. {
  58. "zone_id": 0,
  59. "name": "front_left_6_dimm",
  60. "channels": [
  61. 0,
  62. 1,
  63. 2,
  64. 3,
  65. 4,
  66. 5
  67. ]
  68. },
  69. {
  70. "zone_id": 1,
  71. "name": "middle_12_dimm",
  72. "channels": [
  73. 6,
  74. 7,
  75. 8,
  76. 9,
  77. 10,
  78. 11,
  79. 12,
  80. 13,
  81. 14,
  82. 15,
  83. 16,
  84. 17
  85. ]
  86. },
  87. {
  88. "zone_id": 2,
  89. "name": "rear_right_6_dimm",
  90. "channels": [
  91. 18,
  92. 19,
  93. 20,
  94. 21,
  95. 22,
  96. 23
  97. ]
  98. }
  99. ],
  100. "fans": {
  101. "fan_count": 6,
  102. "front_fans": [
  103. 0,
  104. 1,
  105. 2
  106. ],
  107. "rear_fans": [
  108. 3,
  109. 4,
  110. 5
  111. ],
  112. "default_role": "background_airflow_only",
  113. "fault_role": "full_speed_fallback"
  114. }
  115. },
  116. "channels": {
  117. "logical_channel_count": 24,
  118. "dimm_count": 24,
  119. "ptc_count": 24,
  120. "airflow_zone_count": 3,
  121. "channels_per_airflow_zone": [
  122. 6,
  123. 12,
  124. 6
  125. ],
  126. "default_dimm_to_channel_map": [
  127. 0,
  128. 1,
  129. 2,
  130. 3,
  131. 4,
  132. 5,
  133. 6,
  134. 7,
  135. 8,
  136. 9,
  137. 10,
  138. 11,
  139. 12,
  140. 13,
  141. 14,
  142. 15,
  143. 16,
  144. 17,
  145. 18,
  146. 19,
  147. 20,
  148. 21,
  149. 22,
  150. 23
  151. ],
  152. "channel_to_cpu": [
  153. 0,
  154. 0,
  155. 0,
  156. 0,
  157. 0,
  158. 0,
  159. 0,
  160. 0,
  161. 0,
  162. 0,
  163. 0,
  164. 0,
  165. 1,
  166. 1,
  167. 1,
  168. 1,
  169. 1,
  170. 1,
  171. 1,
  172. 1,
  173. 1,
  174. 1,
  175. 1,
  176. 1
  177. ],
  178. "channel_to_airflow_zone": [
  179. 0,
  180. 0,
  181. 0,
  182. 0,
  183. 0,
  184. 0,
  185. 1,
  186. 1,
  187. 1,
  188. 1,
  189. 1,
  190. 1,
  191. 1,
  192. 1,
  193. 1,
  194. 1,
  195. 1,
  196. 1,
  197. 2,
  198. 2,
  199. 2,
  200. 2,
  201. 2,
  202. 2
  203. ]
  204. },
  205. "input_sources": {
  206. "default_source_select": "bmc_uart_text",
  207. "auto_priority_enabled": false,
  208. "supported_sources": [
  209. "bmc_uart_text",
  210. "fake_stress",
  211. "host_register_inject",
  212. "uart_debug_replay"
  213. ],
  214. "deprecated_sources": [
  215. "i2c_adc_master_pull",
  216. "i2c_adc_slave_inject",
  217. "rs232_temperature_inject",
  218. "rs485_temperature_inject"
  219. ]
  220. },
  221. "bmc_uart_poll": {
  222. "uart": "115200 8N1",
  223. "poll_period_ms": 1000,
  224. "stale_timeout_ms": 10000,
  225. "command_ascii": "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03\n",
  226. "response_format": "loose_text_hex",
  227. "token_compatibility": [
  228. "space",
  229. "comma",
  230. "parentheses",
  231. "quotes",
  232. "0xNN",
  233. "multiline",
  234. "echo",
  235. "no_echo"
  236. ],
  237. "expected_payload_bytes": 48,
  238. "expected_dimm_count": 24,
  239. "bytes_per_dimm": 2,
  240. "integer_byte_index": 0,
  241. "fraction_byte_index": 1,
  242. "fraction_scale": 100,
  243. "missing_pair": "ff ff",
  244. "frame_selection": "sliding_window_semantic_validation",
  245. "echo_rejection": "ignore_windows_containing_poll_command_bytes",
  246. "evidence_boundary": "offline_text_hex_parser_contract"
  247. },
  248. "host_config_link": {
  249. "interface": "independent_host_uart_or_register_plane",
  250. "must_not_share_bmc_temperature_uart": true,
  251. "host_target_range_policy": "host_may_configure_arbitrary_target_but_hard_protection_overrides"
  252. },
  253. "default_host_config": {
  254. "enable": true,
  255. "target_q": 70,
  256. "a0": 4,
  257. "a1": -1,
  258. "a2": 1,
  259. "mode": 3,
  260. "config_seq": 1,
  261. "watchdog": true
  262. },
  263. "control": {
  264. "default_mode": "incremental_pid_default",
  265. "mode_encoding": {
  266. "safe_off": 0,
  267. "hysteresis_pi_experimental": 1,
  268. "manual_level": 2,
  269. "incremental_pid_default": 3
  270. },
  271. "default_target_q": 70,
  272. "target_tolerance_q": 5,
  273. "steady_state_acceptance_seconds": 600,
  274. "kp_q": 4,
  275. "ki_q": 1,
  276. "power_limit_default": 32,
  277. "first_real_pid_duty_limit_percent": 25,
  278. "manual_level_default": 0,
  279. "incremental_pid_default_allowed": true,
  280. "disable_clear_history_policy": "clear_channel_history",
  281. "missing_or_fault_history_policy": "clear_channel_history"
  282. },
  283. "safety": {
  284. "stale_timeout_cycles": 10,
  285. "global_bmc_timeout_cycles": 10,
  286. "control_period_ms": 1000,
  287. "overtemp_limit_q": 90,
  288. "missing_dimm_policy": "ptc_off_exclude_from_steady_state_stats_record_in_debug",
  289. "upper_pc_disconnect_policy": "keep_last_valid_target_until_host_watchdog_policy_is_defined",
  290. "bmc_stale_policy": "force_off_all_ptc_fan_full",
  291. "overtemp_policy": "force_off_all_ptc_fan_full_latched",
  292. "fault_latch_default": true
  293. },
  294. "fan_policy": {
  295. "fan_count": 6,
  296. "default_strategy": "fixed_background",
  297. "dynamic_pid_fan_control": "disabled_until_thermal_calibration",
  298. "background_percent": 30,
  299. "background_level": 38,
  300. "fallback_percent": 100,
  301. "fallback_level": 127
  302. },
  303. "pwm_outputs": {
  304. "sys_clk_hz": 25000000,
  305. "duty_max": 127,
  306. "ptc": {
  307. "channel_count": 24,
  308. "default_pwm_hz": 10,
  309. "min_pwm_hz": 1,
  310. "max_pwm_hz": 500,
  311. "polarity": "active_high_request",
  312. "safe_state": 0,
  313. "first_real_pid_duty_limit": 32
  314. },
  315. "fan": {
  316. "fan_count": 6,
  317. "default_pwm_hz": 25000,
  318. "min_pwm_hz": 21000,
  319. "max_pwm_hz": 28000,
  320. "normal_percent": 30,
  321. "normal_level": 38,
  322. "fallback_percent": 100,
  323. "fallback_level": 127,
  324. "output_stage": "open_drain_low_true",
  325. "tach_pulses_per_revolution": 2,
  326. "tach_window_ms": 1000
  327. }
  328. },
  329. "fake_stress": {
  330. "scenario_seed": 260626,
  331. "model_status": "verification_default_not_real_thermal_parameter",
  332. "self_coupling": 1.0,
  333. "neighbor_channel_coupling": 0.04,
  334. "same_airflow_zone_non_neighbor_coupling": 0.01,
  335. "cross_airflow_zone_coupling": 0.005,
  336. "supported_events": [
  337. "ramp",
  338. "step",
  339. "noise",
  340. "missing_mask",
  341. "bmc_stale",
  342. "echo_no_echo",
  343. "parser_garbage",
  344. "full_rate_sweep"
  345. ],
  346. "ci_short_seconds": 60,
  347. "nightly_soak_hours": 8,
  348. "final_offline_gate_hours": 24
  349. },
  350. "host_replay_updates": [
  351. {
  352. "effective_sample_seq": 13,
  353. "enable": true,
  354. "target_q": 70,
  355. "a0": 3,
  356. "a1": -1,
  357. "a2": 1,
  358. "mode": 3,
  359. "config_seq": 2,
  360. "source": "fake_host",
  361. "interface": "host_uart_or_register",
  362. "command": "SET_TARGET_AND_PID"
  363. },
  364. {
  365. "effective_sample_seq": 28,
  366. "enable": false,
  367. "target_q": 70,
  368. "a0": 3,
  369. "a1": -1,
  370. "a2": 1,
  371. "mode": 3,
  372. "config_seq": 3,
  373. "source": "fake_host",
  374. "interface": "host_uart_or_register",
  375. "command": "SET_ENABLE_OFF"
  376. }
  377. ],
  378. "actuator": {
  379. "kind": "abstract_ptc_pwm_level",
  380. "actuator_count": 24,
  381. "out_min": 0,
  382. "out_max": 127,
  383. "safe_default": "force_off"
  384. },
  385. "debug_trace": {
  386. "required_fields": [
  387. "trace_seq",
  388. "source_id",
  389. "channel",
  390. "dimm_id",
  391. "cpu_id",
  392. "airflow_zone",
  393. "frame_seq",
  394. "raw_integer_byte",
  395. "raw_fraction_byte",
  396. "raw_status",
  397. "missing",
  398. "temp_q",
  399. "age_ms",
  400. "target_q",
  401. "error_q",
  402. "control_mode",
  403. "ctrl_q",
  404. "clamped",
  405. "ptc_duty",
  406. "fan_duty",
  407. "fault_code",
  408. "config_seq",
  409. "sample_seq",
  410. "parser_state",
  411. "missing_mask"
  412. ]
  413. },
  414. "replay": {
  415. "sensor_vector": "test_vectors/sensor_replay_basic.csv",
  416. "host_vector": "test_vectors/host_config_replay_basic.csv",
  417. "expectation_vector": "test_vectors/actuator_expectations_basic.csv",
  418. "sample_count": 28
  419. }
  420. }