All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: K Prateek Nayak <kprateek.nayak@amd.com>
Cc: stable@vger.kernel.org, Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	Naveen N Rao <naveen@kernel.org>
Subject: Re: [PATCH 6.6.y] x86/cpu/amd: Always try detect_extended_topology() on AMD processors
Date: Mon, 22 Sep 2025 14:08:38 +0200	[thread overview]
Message-ID: <2025092251-depravity-encircle-9daa@gregkh> (raw)
In-Reply-To: <32ad856f-1078-4133-b2f7-89c5eb2d271d@amd.com>

On Mon, Sep 22, 2025 at 12:00:08PM +0530, K Prateek Nayak wrote:
> Hello Greg,
> 
> On 9/21/2025 10:45 PM, Greg KH wrote:
> > On Mon, Sep 15, 2025 at 05:18:25AM +0000, K Prateek Nayak wrote:
> >> commit cba4262a19afae21665ee242b3404bcede5a94d7 upstream.
> 
> [..snip..]
> 
> >>
> >>   [ prateek: Adapted the fix from the original commit to stable kernel
> >>     which doesn't contain the x86 topology rewrite, renamed
> >>     cpu_parse_topology_ext() with the erstwhile
> >>     detect_extended_topology() function in commit message, dropped
> >>     references to extended topology leaf 0x80000026 which the stable
> >>     kernels aren't aware of, make a note of "cpu_die_id" parsing
> >>     nuances in detect_extended_topology() and why AMD processors should
> >>     still rely on TOPOEXT leaf for "cpu_die_id". ]
> > 
> > That's a lot of changes.  Why not just use a newer kernel for this new
> > hardware?  Why backport this in such a different way?
> 
> We are mostly solving problems of virtualization with this one for
> now.
> 
> QEMU can create a guest with more than 256vCPUs and tell the guest that
> each CPU is an individual core leading to weird handling of the
> CPUID 0x8000001e leaf when CoreId > 255
> https://github.com/qemu/qemu/commit/35ac5dfbcaa4b.
> 
> QEMU expects the guest to discover the topology using 0xb leaf which,
> the PPR says, is not dependent on the TOPOEXT feature.

Great, so these are new guests, use a new kernel!  :)

> > That is going to
> > cause other changes in the future to be harder to backport in the
> > future.
> 
> Thomas thinks this fix should be backported
> (https://lore.kernel.org/all/87o6rirrvc.ffs@tglx/) and for any future
> conflicts in this area, I'll be more than happy to help out resolve
> them.

Ok, if you get the maintainers to sign off on the change, I'll be glad
to take the patch.

thanks,

greg k-h

      reply	other threads:[~2025-09-22 12:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-14 16:34 FAILED: patch "[PATCH] x86/cpu/topology: Always try cpu_parse_topology_ext() on" failed to apply to 6.6-stable tree gregkh
2025-09-15  5:18 ` [PATCH 6.6.y] x86/cpu/amd: Always try detect_extended_topology() on AMD processors K Prateek Nayak
2025-09-21 17:15   ` Greg KH
2025-09-22  6:30     ` K Prateek Nayak
2025-09-22 12:08       ` Greg KH [this message]

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=2025092251-depravity-encircle-9daa@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=kprateek.nayak@amd.com \
    --cc=mingo@redhat.com \
    --cc=naveen@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.