Re: [edk2-devel] [PATCH v1] UefiCpuPkg/CpuCacheInfoLib: Sort CpuCacheInfo array

2021-08-02 Thread Jason Lou
Hi Ray, According to the definitions in SDM, the value of "Core" core type(40H) is larger than that of "Atom" core type(20H), if array is sorted by core type value from largest to smallest, “Core” CPU cache info can be placed before "Atom" CPU cache info in the CpuCacheInfo array. No matter how

Re: [edk2-devel] [PATCH v1] UefiCpuPkg/CpuCacheInfoLib: Sort CpuCacheInfo array

2021-08-01 Thread Ni, Ray
+ Get CpuCacheInfo data array. The data array is sorted by CPU package ID from smallest to largest, + by core type from largest to smallest and by cache level from smallest to largest. Why is core type sorted from largest to smallest but the other twos are sorted from smallest to largest? Wh