Skip to content

--flash_gpu_descriptor: Keep bay power if already on#283

Open
JohnAZoidberg wants to merge 2 commits intomainfrom
keep-bay-power
Open

--flash_gpu_descriptor: Keep bay power if already on#283
JohnAZoidberg wants to merge 2 commits intomainfrom
keep-bay-power

Conversation

@JohnAZoidberg
Copy link
Member

84ffa84 made sure to turn on and off the bay power to enable programming the EEPROM even with bad eeprom (which would cause EC not to turn on bay power).

But this would cause issue for reprogramming a good eeprom because the power is already on and it would turn it off afterwards.

So if the bay power if turned off for a GPU when windows with nvidia driver is running, the driver crashes and bluescreens Windows.

@JohnAZoidberg JohnAZoidberg requested review from Copilot and kiram9 and removed request for kiram9 March 11, 2026 03:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts --flash_gpu_descriptor behavior to avoid toggling expansion bay GPU power when it’s already enabled, preventing NVIDIA driver crashes/BSOD during EEPROM reprogramming on Windows.

Changes:

  • Adds a GPIO read (gpu_3v_5v_en) to decide whether bay power needs to be forced on during GPU EEPROM writes.
  • Attempts to only disable bay power after flashing if it was enabled by this command (via force_power).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@JohnAZoidberg
Copy link
Member Author

image

Use hide whitespace option to review

84ffa84 made sure to turn on and off
the bay power to enable programming the EEPROM even with bad eeprom
(which would cause EC not to turn on bay power).

But this would cause issue for reprogramming a good eeprom because the
power is already on and it would turn it off afterwards.

So if the bay power if turned off for a GPU when windows with nvidia
driver is running, the driver crashes and bluescreens Windows.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants