[<prev] [next>] [day] [month] [year] [list]
Message-ID: <86802c440803060111t264caf0dwe4e1d167fa494b6b@mail.gmail.com>
Date: Thu, 6 Mar 2008 01:11:11 -0800
From: "Yinghai Lu" <yhlu.kernel@...il.com>
To: "Ingo Molnar" <mingo@...e.hu>,
"Andrew Morton" <akpm@...ux-foundation.org>,
"Thomas Gleixner" <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>
Cc: "Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>
Subject: [PATCH] x86_64: fix amd_detect_cmp
[PATCH] x86_64: fix amd_detect_cmp
for system with apicid lifting, boot cpu apicid will be 4
got
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 0/4 -> Node 0
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 0
so try to offset apicid back before get phys_proc_id with bits shift.
then we can get correct socket ID
also remove remove cpu_data(0) reference.
because cpu_data(0) only be ready after smp_prepare_cpus with the assignment
from boot_cpu_data to current_cpu_data aka cpu_data(0).
and check_bugs()==>identify_cpu(&boot_cpu_data) is quite before than
smp_prepare_cpus.
so just use boot_cpu_id instead.
Signed-off-by: Yinghai Lu <yhlu.kernel@...il.com>
View attachment "fix_amd_detect_cmp.patch" of type "text/x-patch" (1648 bytes)
Powered by blists - more mailing lists