Re: [PATCH] x86/perf: Fixed kernel panic during boot on Nano processor.

From: Peter Zijlstra
Date: Thu Oct 13 2022 - 10:02:56 EST


On Mon, Jun 07, 2021 at 09:31:09AM +0800, Cody Yao-oc wrote:
> From: CodyYao-oc <CodyYao-oc@xxxxxxxxxxx>
>
> Nano processor may not fully support rdpmc instruction, it works well
> for reading general pmc counter, but will lead to GP(general protection)
> when accessing fixed pmc counter. Futhermore, family/model information
> is same between Nano processor and ZX-C processor, it leads to zhaoxin
> pmu driver is wrongly loaded for Nano processor, which resulting boot
> kernal fail.
>
> To solve this problem, stepping information will be checked to distinguish
> between Nano processor and ZX-C processor.
>
> [https://bugzilla.kernel.org/show_bug.cgi?id=212389]
>
> Reported-by: Arjan <8vvbbqzo567a@xxxxxxxxxxxxxxxxx>
> Signed-off-by: CodyYao-oc <CodyYao-oc@xxxxxxxxxxx>

I suppose I'll queue it up for perf/urgent post -rc1