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

From: Arjan
Date: Sun Oct 16 2022 - 06:36:10 EST


On 13-10-2022 17:07, Peter Zijlstra wrote:
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>

*sigh*.. so this email address doesn't exist, as such I can't apply this
patch. Consider it dropped.

If it's about my email address: The address exists and works.
If the nospam part bothers you, that part can be left out. You may leave the reported-by line out if you want to.