Skip to content

WIP fw16: fix invalid length read length#339

Open
kiram9 wants to merge 2 commits into
mainfrom
pr-fw16.fix_gpu_descriptor_read_size_correct
Open

WIP fw16: fix invalid length read length#339
kiram9 wants to merge 2 commits into
mainfrom
pr-fw16.fix_gpu_descriptor_read_size_correct

Conversation

@kiram9
Copy link
Copy Markdown
Member

@kiram9 kiram9 commented May 15, 2026

This fixes an invalid read length that was truncating reads from the GPU descriptor EEPROM as the length is header+descriptor

This fixes an invalid read length that was truncating reads from the GPU
descriptor EEPROM as the length is header+descriptor

Signed-off-by: Kieran Levin <ktl@frame.work>
@kiram9 kiram9 requested a review from JohnAZoidberg May 15, 2026 00:47
@kiram9 kiram9 changed the title fw16: fix invalid length read length WIP fw16: fix invalid length read length May 15, 2026
@JohnAZoidberg JohnAZoidberg requested a review from Copilot May 15, 2026 00:49
Copy link
Copy Markdown

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

This PR attempts to fix GPU descriptor EEPROM reads so the full header plus descriptor payload is read instead of only the descriptor payload length.

Changes:

  • Updates GPU descriptor read length calculation to include header.length.
  • Keeps descriptor magic validation before reading the full descriptor.

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

));
}
self.read_ec_gpu_chunk(0x00, header.descriptor_length as u16)
self.read_ec_gpu_chunk(0x00, (header.descriptor_length + header.length) as u16)
));
}
self.read_ec_gpu_chunk(0x00, header.descriptor_length as u16)
self.read_ec_gpu_chunk(0x00, (header.descriptor_length + header.length) as u16)
Signed-off-by: Kieran Levin <ktl@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.

2 participants