Fix GC 11.0.x IP version to family mapping#179
Open
mgajda wants to merge 2 commits into
Open
Conversation
When a GPU's PCI device ID is not in the r600_pci_ids.h table, fall back to querying the GFX IP version from amdgpu and mapping it to a family. This allows radeontop to recognize newer GPUs (RDNA 3, 3.5, 4, 4m, 5) without needing a PCI ID table update for every new SKU. New families: MENDOCINO, GFX1033, GFX1034, NAVI31, NAVI32, NAVI33, GFX1103, GFX1150, GFX1151, GFX1170-1172, GFX1200-1201, GFX1300, GFX1310. Unknown GFX codes fall back to the base family for their major.minor version (e.g. any GFX11.0.x maps to NAVI31).
The kernel's hw_ip_version gives the GC IP block version, which does NOT match the GFX shader target code for GC 11.0.x: IP 11.0.1 = Phoenix (gfx1103), not Navi 32 IP 11.0.3 = Navi 32 (gfx1101), not Phoenix IP 11.0.4 = Phoenix2 (gfx1103) Also add IP 10.3.7 as alternate Mendocino version, and GC 12.1.x fallback for future RDNA 4m chips.
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.
Summary
Depends on #178.
The kernel's
hw_ip_versionreturns the GC IP block version, which does not match the GFX shader target code for GC 11.0.x:Also:
Test plan