* [PATCH] x86/CPU/AMD: Fix Zen5 models id
@ 2026-07-29 5:54 Pratik Vishwakarma
2026-07-29 19:41 ` Yazen Ghannam
2026-07-29 19:57 ` [tip: x86/urgent] x86/CPU/AMD: Carve out a Zen5 models range tip-bot2 for Pratik Vishwakarma
0 siblings, 2 replies; 4+ messages in thread
From: Pratik Vishwakarma @ 2026-07-29 5:54 UTC (permalink / raw)
To: tglx, mingo, bp, dave.hansen, hpa, mario.limonciello,
andrew.cooper3, yazen.ghannam, kai.huang, i, gourry
Cc: x86, linux-kernel, Pratik Vishwakarma
Family 0x1a model 0xd0..0xd7 are X86_FEATURE_ZEN5
Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
---
arch/x86/kernel/cpu/amd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index 487ac147e11f..d61df70d6875 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -515,11 +515,13 @@ static void bsp_init_amd(struct cpuinfo_x86 *c)
case 0x00 ... 0x2f:
case 0x40 ... 0x4f:
case 0x60 ... 0x7f:
+ case 0xd0 ... 0xd7:
setup_force_cpu_cap(X86_FEATURE_ZEN5);
break;
case 0x50 ... 0x5f:
case 0x80 ... 0xaf:
- case 0xc0 ... 0xef:
+ case 0xc0 ... 0xcf:
+ case 0xd8 ... 0xef:
setup_force_cpu_cap(X86_FEATURE_ZEN6);
break;
default:
--
2.53.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] x86/CPU/AMD: Fix Zen5 models id
2026-07-29 5:54 [PATCH] x86/CPU/AMD: Fix Zen5 models id Pratik Vishwakarma
@ 2026-07-29 19:41 ` Yazen Ghannam
2026-07-29 19:47 ` Borislav Petkov
2026-07-29 19:57 ` [tip: x86/urgent] x86/CPU/AMD: Carve out a Zen5 models range tip-bot2 for Pratik Vishwakarma
1 sibling, 1 reply; 4+ messages in thread
From: Yazen Ghannam @ 2026-07-29 19:41 UTC (permalink / raw)
To: Pratik Vishwakarma
Cc: tglx, mingo, bp, dave.hansen, hpa, mario.limonciello,
andrew.cooper3, kai.huang, i, gourry, x86, linux-kernel
On Wed, Jul 29, 2026 at 05:54:59AM +0000, Pratik Vishwakarma wrote:
Hi Pratik,
The $SUBJECT say "Fix", but this patch is adding/identifying new models.
> Family 0x1a model 0xd0..0xd7 are X86_FEATURE_ZEN5
The commit message should be worded in a different way. See these docs:
Documentation/process/submitting-patches.rst
Documentation/process/maintainer-tip.rst
>
> Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
> ---
> arch/x86/kernel/cpu/amd.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
> index 487ac147e11f..d61df70d6875 100644
> --- a/arch/x86/kernel/cpu/amd.c
> +++ b/arch/x86/kernel/cpu/amd.c
> @@ -515,11 +515,13 @@ static void bsp_init_amd(struct cpuinfo_x86 *c)
> case 0x00 ... 0x2f:
> case 0x40 ... 0x4f:
> case 0x60 ... 0x7f:
> + case 0xd0 ... 0xd7:
> setup_force_cpu_cap(X86_FEATURE_ZEN5);
> break;
> case 0x50 ... 0x5f:
> case 0x80 ... 0xaf:
> - case 0xc0 ... 0xef:
> + case 0xc0 ... 0xcf:
> + case 0xd8 ... 0xef:
These changes are not what is described in the commit message.
> setup_force_cpu_cap(X86_FEATURE_ZEN6);
> break;
> default:
> --
It seems there is an "issue to fix".
A model group D0h-DFh was misidentified as Zen6 when it really is Zen5.
Please make this clear in the commit message.
Thanks,
Yazen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] x86/CPU/AMD: Fix Zen5 models id
2026-07-29 19:41 ` Yazen Ghannam
@ 2026-07-29 19:47 ` Borislav Petkov
0 siblings, 0 replies; 4+ messages in thread
From: Borislav Petkov @ 2026-07-29 19:47 UTC (permalink / raw)
To: Yazen Ghannam
Cc: Pratik Vishwakarma, tglx, mingo, dave.hansen, hpa,
mario.limonciello, andrew.cooper3, kai.huang, i, gourry, x86,
linux-kernel
On Wed, Jul 29, 2026 at 03:41:54PM -0400, Yazen Ghannam wrote:
> On Wed, Jul 29, 2026 at 05:54:59AM +0000, Pratik Vishwakarma wrote:
>
> Hi Pratik,
>
> The $SUBJECT say "Fix", but this patch is adding/identifying new models.
I did this:
Author: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Date: Wed Jul 29 05:54:59 2026 +0000
x86/CPU/AMD: Fix Zen5 models range
Family 0x1a, model 0xd0..0xd7 belong to the Zen5 generation. Fix the range.
[ bp: Massage commit message, add tags. ]
Fixes: b5f53e6d3d32 ("x86/CPU/AMD: Add more Zen6 models")
Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://patch.msgid.link/20260729055459.15904-1-Pratik.Vishwakarma@amd.com
He's basically carving them out of the 0xc0 ... 0xef range...
Yeah, that's better, lemme amend.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 4+ messages in thread
* [tip: x86/urgent] x86/CPU/AMD: Carve out a Zen5 models range
2026-07-29 5:54 [PATCH] x86/CPU/AMD: Fix Zen5 models id Pratik Vishwakarma
2026-07-29 19:41 ` Yazen Ghannam
@ 2026-07-29 19:57 ` tip-bot2 for Pratik Vishwakarma
1 sibling, 0 replies; 4+ messages in thread
From: tip-bot2 for Pratik Vishwakarma @ 2026-07-29 19:57 UTC (permalink / raw)
To: linux-tip-commits
Cc: Pratik Vishwakarma, Borislav Petkov (AMD), stable, x86, linux-kernel
The following commit has been merged into the x86/urgent branch of tip:
Commit-ID: 52075128273ace53e6254e37899a47d40d4baf45
Gitweb: https://git.kernel.org/tip/52075128273ace53e6254e37899a47d40d4baf45
Author: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
AuthorDate: Wed, 29 Jul 2026 05:54:59
Committer: Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Wed, 29 Jul 2026 12:52:27 -07:00
x86/CPU/AMD: Carve out a Zen5 models range
Family 0x1a, model 0xd0..0xd7 belongs to the Zen5 generation. Carve it
out from the larger, Zen6 range where former doesn't belong.
[ bp: Rewrite commit message, add tags. ]
Fixes: b5f53e6d3d32 ("x86/CPU/AMD: Add more Zen6 models")
Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://patch.msgid.link/20260729055459.15904-1-Pratik.Vishwakarma@amd.com
---
arch/x86/kernel/cpu/amd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index 487ac14..d61df70 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -515,11 +515,13 @@ static void bsp_init_amd(struct cpuinfo_x86 *c)
case 0x00 ... 0x2f:
case 0x40 ... 0x4f:
case 0x60 ... 0x7f:
+ case 0xd0 ... 0xd7:
setup_force_cpu_cap(X86_FEATURE_ZEN5);
break;
case 0x50 ... 0x5f:
case 0x80 ... 0xaf:
- case 0xc0 ... 0xef:
+ case 0xc0 ... 0xcf:
+ case 0xd8 ... 0xef:
setup_force_cpu_cap(X86_FEATURE_ZEN6);
break;
default:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-29 19:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-29 5:54 [PATCH] x86/CPU/AMD: Fix Zen5 models id Pratik Vishwakarma
2026-07-29 19:41 ` Yazen Ghannam
2026-07-29 19:47 ` Borislav Petkov
2026-07-29 19:57 ` [tip: x86/urgent] x86/CPU/AMD: Carve out a Zen5 models range tip-bot2 for Pratik Vishwakarma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®