mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yazen Ghannam <yazen.ghannam@amd.com>
To: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Cc: tglx@kernel.org, mingo@redhat.com, bp@alien8.de,
	dave.hansen@linux.intel.com, hpa@zytor.com,
	mario.limonciello@amd.com, andrew.cooper3@citrix.com,
	kai.huang@intel.com, i@rong.moe, gourry@gourry.net,
	x86@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86/CPU/AMD: Fix Zen5 models id
Date: Wed, 29 Jul 2026 15:41:54 -0400	[thread overview]
Message-ID: <20260729194154.GB1977085@yaz-khff2.amd.com> (raw)
In-Reply-To: <20260729055459.15904-1-Pratik.Vishwakarma@amd.com>

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

  reply	other threads:[~2026-07-29 19:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-29  5:54 Pratik Vishwakarma
2026-07-29 19:41 ` Yazen Ghannam [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260729194154.GB1977085@yaz-khff2.amd.com \
    --to=yazen.ghannam@amd.com \
    --cc=Pratik.Vishwakarma@amd.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=gourry@gourry.net \
    --cc=hpa@zytor.com \
    --cc=i@rong.moe \
    --cc=kai.huang@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=mingo@redhat.com \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®