Re: [RFC PATCH] x86/cpu/hygon: Fix phys_proc_id calculation logic for multi-die processor
From: Pu Wen
Date: Fri Mar 22 2019 - 23:06:20 EST
On 2019/3/23 0:52, Peter Zijlstra wrote:
> On Fri, Mar 22, 2019 at 05:44:45PM +0100, Borislav Petkov wrote:
>> On Sat, Mar 23, 2019 at 12:19:01AM +0800, Pu Wen wrote:
>>> That 6 is not a magic number.
>> Well, if I see a naked 6, then it is only magic to me. Now if it were a
>> proper define with a descriptive name...
> Does AMD/Hygon not have a CPUID leaf to read useful things like this
ApicId is read from CPUID_Fn00000001_EBX.
Please see section 22.214.171.124 and 126.96.36.199.1.3 of referrence .