| Date | Fri, 28 Jul 2023 17:05:24 -0700 | Subject | Re: [patch v2 28/38] x86/cpu: Provide an AMD/HYGON specific topology parser | From | Sohil Mehta <> |
| |
On 7/28/2023 5:13 AM, Thomas Gleixner wrote: > AMD/HYGON uses various methods for topology evaluation: > > - Leaf 0x80000008 and 0x8000001e based with an optional leaf 0xb, > which is the preferred variant for modern CPUs. > > Leaf 0xb will be superseeded by leaf 0x80000026 soon, which is just
s/superseeded/superseded
> + > + if (tscan->c->x86_vendor == X86_VENDOR_AMD) { > + if (tscan->c->x86 == 0x15) > + tscan->c->topo.cu_id = leaf.cuid; > + > + cacheinfo_amd_init_llc_id(tscan->c, leaf.nodeid); > + } else { > + /* > + * Pacakge ID is ApicId[6..] on Hygon CPUs. See commit
s/Pacakge/Package
|