lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE9FiQUrq-3GDhaZS8gOL5NBHF-ZcWjHiWWUYP4AdM2+q_12Ow@mail.gmail.com>
Date:	Tue, 25 Oct 2011 14:51:16 -0700
From:	Yinghai Lu <yinghai@...nel.org>
To:	Eial Czerwacki <eial@...lemp.com>
Cc:	linux-kernel@...r.kernel.org,
	"Shai Fultheim (Shai@...leMP.com)" <Shai@...lemp.com>
Subject: Re: [PATCH] AMD: modify cpu probe from APICID to initial APICID

On Tue, Oct 25, 2011 at 4:49 AM, Eial Czerwacki <eial@...lemp.com> wrote:
> Make AMD probe processors using APICID rather than the initial APICID.
>
>
> Signed-off-by: Eial Czerwacki<eial@...lemp.com>
> Signed-off-by: Shai Fultheim<shai@...lemp.com>
> ---
>
> --- a/arch/x86/kernel/cpu/amd.c 2011-09-14 05:58:19.542910736 -0700
> +++ b/arch/x86/kernel/cpu/amd.c 2011-09-14 06:01:41.493209624 -0700
> @@ -299,9 +299,9 @@ static void __cpuinit amd_detect_cmp(str
>
>        bits = c->x86_coreid_bits;
>        /* Low order bits define the core id (index of core in socket) */
> -       c->cpu_core_id = c->initial_apicid&    ((1<<    bits)-1);
> +       c->cpu_core_id = c->apicid&    ((1<<    bits)-1);
>        /* Convert the initial APIC ID into the socket ID */
> -       c->phys_proc_id = c->initial_apicid>>    bits;
> +       c->phys_proc_id = c->apicid>>    bits;
>        /* use socket ID also for last level cache */
>        per_cpu(cpu_llc_id, cpu) = c->phys_proc_id;
>        /* fixup topology information on multi-node processors */
>

No, that is not right.

We have to initial apicid to get socket/core mapping.

BTW, your mail client has some problem with formatting.

Thanks

Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ