Skip to content

Reject unsupported GPU variants before installation and accelerated boot setup - #1

Open
earlvanze wants to merge 2 commits into
McoreD:mainfrom
earlvanze:fix/exact-gpu-hardware-guard
Open

earlvanze wants to merge 2 commits into
McoreD:mainfrom
earlvanze:fix/exact-gpu-hardware-guard

Conversation

@earlvanze

Copy link
Copy Markdown

The README advertises Radeon Pro 5300/5500 XT support, but the bundled deferred-UCLK patch matches only PCI 1002:7340 with Apple subsystem 106b:0219. An iMac20,1 with 106b:0218 can currently run the installer and generate/select an accelerated boot entry even though the patch never applies its device-specific quirk.

This adds a shared sysfs hardware preflight before installer writes, module builds, and accelerated-entry commands, and narrows the documented support to the bundled patch's exact IDs. The check works when amdgpu has failed to bind. Unsupported pacman hooks exit successfully without making changes; diagnostics and cleanup remain available. Unsupported unpatch restores the package module and rebuilds the safe UKI without creating or selecting an accelerated entry.

Validation: 10 fixture tests pass (python3 -m unittest discover -s tests -v), including exact-ID matching, installer ordering, unsupported command rejection, hook behavior, and supported/unsupported recovery. Bash syntax and whitespace checks pass. Boot-changing commands are stubbed in these tests; this PR makes no new hardware-support claim and does not modify the GPU patch.

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