Re: [PATCH RESEND] x86: cache_info: Fix setup of l2/l3 ids
From: Ido Yariv
Date: Sat May 05 2012 - 19:47:07 EST
On Fri, Apr 20, 2012 at 1:09 AM, Ido Yariv <ido@xxxxxxxxxx> wrote:
> From: Shai Fultheim <shai@xxxxxxxxxxx>
>
> On some architectures (such as vSMP), it is possible to have CPUs with a
> different number of cores sharing the same cache.
>
> The current implementation implicitly assumes that all CPUs will have
> the same number of cores sharing caches, and as a result, different CPUs
> can end up with the same l2/l3 ids.
>
> Fix this by masking out the shared cache bits, instead of shifting the
> APICID. By doing so, it is guaranteed that the generated cache ids are
> always unique.
>
> Signed-off-by: Shai Fultheim <shai@xxxxxxxxxxx>
> [ido@xxxxxxxxxx: rebased, simplified, and reworded the commit message]
> Signed-off-by: Ido Yariv <ido@xxxxxxxxxx>
Ping?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/