cable_safety_feature: Add cable fault detection and low-power mode#982
Open
ShLiTT wants to merge 3 commits intotenstorrent:mainfrom
Open
cable_safety_feature: Add cable fault detection and low-power mode#982ShLiTT wants to merge 3 commits intotenstorrent:mainfrom
ShLiTT wants to merge 3 commits intotenstorrent:mainfrom
Conversation
- added `DMC_CABLE_POWER_LIMIT_REG_ADDR` definition using RESET_UNIT_SCRATCH_REG_ADDR(1) -- SCRATCH_1 - added cable_fault bit (bit 1) to STATUS_ERROR_STATUS0_reg_t Signed-off-by: Sherry Li <xiaoruli@tenstorrent.com>
Implemented cable power limit communication from DMC to SMC: - Added jtag_bootrom_set_cable_power_limit() to write power limit to SCRATCH_1 register via JTAG AXI - Added cable_power_limit parameter to jtag_bootrom_reset_sequence() to write power limit after ASIC reset but before ARC soft reset - Added cable_power_limit field to bh_chip_data to preserve the value for runtime resets - DMC calls detect_max_power() and passes result to reset sequence Signed-off-by: Sherry Li <xiaoruli@tenstorrent.com>
Read cable power limit from SCRATCH_1 (written by DMC via JTAG). If power limit is 0, enter cable fault mode to minimize power draw. Add magic bits for backward compatibility In cable fault mode: - Keep tensixes, ETH, GDDR, and L2CPU in reset - Always deassert NOC, system, and PCIe resets (needed for ARC-PCIe communication path) - Skip RISC-V and soft reset sequences This allows the board to remain accessible via PCIe even when the 12V-2x6 power cable is missing or improperly installed. Signed-off-by: Sherry Li <xiaoruli@tenstorrent.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements cable fault detection to protect the board when the 12V-2x6 power cable is missing or improperly installed. When a cable fault is detected, the SMC enters a low-power mode while maintaining PCIe communication with the host.
Problem
Without proper power cable detection, the board may attempt to power up components that could draw excessive current from the PCIe slot, damaging the cable.
Solution
DMC Side:
SMC Side: