Normalization of AMD brand string with "with Radeon Graphics"#389
Normalization of AMD brand string with "with Radeon Graphics"#389johnthacker wants to merge 1 commit into
Conversation
Some AMD processors with integrated graphics have "with Radeon Graphics"
in the cpuid brand string without being preceded by other tokens like
"SOC" or "APU" that are already used to erase the string. With the
current logic, everything starting with "Radeon" is erased, leading to
less than ideal results. Add a check for a "with" token and erase
everything starting with that.
Running cpu-info before:
Packages:
0: AMD Ryzen 5 PRO 6650U with
and after:
Packages:
0: AMD Ryzen 5 PRO 6650U
There are plenty of other examples at
https://github.com/InstLatx64/InstLatx64/tree/master/AuthenticAMD
Signed-off-by: John Thacker <johnthacker@gmail.com>
|
I dont know the erase function(), so I had antigravity review this change Yes, this PR makes complete sense. • The Problem: AMD APUs (processors with integrated graphics) include graphics information in their CPUID brand string, typically starting with "with Radeon Graphics" . 2. Coding ConventionsThe implementation perfectly aligns with cpuinfo 's existing brand string normalization design in name.c: • It integrates into the transform_token function under case 4: (since "with" has 4 characters). 3. Brand Strings with "with"• In x86 CPUID brand strings, "with" is almost exclusively used by AMD to denote integrated graphics (e.g., "with Radeon Graphics" , "with Radeon(TM) R7 Graphics" ). |
Some AMD processors with integrated graphics have "with Radeon Graphics" in the cpuid brand string without being preceded by other tokens like "SOC" or "APU" that are already used to erase the string. With the current logic, everything starting with "Radeon" is erased, leading to less than ideal results. Add a check for a "with" token and erase everything starting with that.
Running cpu-info before:
Packages:
0: AMD Ryzen 5 PRO 6650U with
and after:
Packages:
0: AMD Ryzen 5 PRO 6650U
There are plenty of other examples at
https://github.com/InstLatx64/InstLatx64/tree/master/AuthenticAMD