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

From: 8vvbbqzo567a
Date: Sun Oct 16 2022 - 06:56:53 EST


On 16-10-2022 11:59, Peter Zijlstra wrote:
On Sun, Oct 16, 2022 at 11:53:14AM +0200, Arjan wrote:
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.

The SoB address (CodyYao-oc@xxxxxxxxxxx) bounced for me -- since that's
the patch author that is somewhat important.

It now bounced for me too.
It was still valid when Cody submitted the patch in 2021, because we
exchanged messages while debugging and testing the patch.