Repository navigation
drm/asahi: m3: drop the unused T8122 HwDataA switch - #536
Merged
RyanTheTide merged 1 commit intoOct 28, 2026
Merged
Conversation
t8122_hwdata.rs described the +0x418c block as written "unless asahi.t8122_hwdata_418c=0" and carried a parser and on/off values for that parameter. No module parameter was ever registered and nothing calls the parser, so the switch exists only on paper, and Aurora selects behaviour from the chip and firmware identity, not from command line switches. Remove the parameter values, parse(), enabled() and their test, and say that the identity selects the block as it selects the rest of HwDataA. The words, the offset, write() and its tests are unchanged, so the host tests still check the data Satya Benson recorded. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
drivers/gpu/drm/asahi/m3/t8122_hwdata.rsdocumented its HwDataA +0x418c block as written "unlessasahi.t8122_hwdata_418c=0", and carried a parser and on/off values for that switch. No module parameter was ever registered and nothing calls the parser, so the switch exists only on paper. Aurora selects hardware behaviour from the chip and firmware identity and the device tree, not from command line switches.This removes the parameter values,
parse(),enabled()and their test, and says that the identity selects the block as it selects the rest of HwDataA. The words, the offset,write()and its tests are unchanged, so the host tests still check the data Satya Benson recorded.The file stays in
m3/. The M3 runtime split (m3/, beside the hw tables inhw/) has no T8122 entry inhw/yet, and moving it would mean wiring the excised M3 runtime, which is out of scope here.Testing
rustc --edition=2021 --test tools/asahi/m3-runtime-tests.rs: 15 passed, 0 failed.drivers/gpu/drm/asahi: clean, 0 warnings (built with the display gate fold on the J616s consolidation tree)Hardware test plan
No runtime change, because nothing used the removed items. It needs no boot. M3 (J613/J615) hardware is not available here.
🤖 Generated with Claude Code