Skip to content

drm/asahi: m3: drop the unused T8122 HwDataA switch - #536

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
fold/t8122-hwdata-no-knob-20261028
Oct 28, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
fold/t8122-hwdata-no-knob-20261028

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

drivers/gpu/drm/asahi/m3/t8122_hwdata.rs documented its HwDataA +0x418c block as written "unless asahi.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 in hw/) has no T8122 entry in hw/ 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.
  • Universal config kernel build, which compiles 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

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]>
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.

1 participant