From: "Michael S. Tsirkin" <mst@redhat.com>
To: Ankit Agrawal <ankita@nvidia.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>,
Jonathan Cameron <jonathan.cameron@huawei.com>,
Igor Mammedov <imammedo@redhat.com>,
Vikram Sethi <vsethi@nvidia.com>,
Shameer Kolothum Thodi <skolothumtho@nvidia.com>,
"alex@shazbot.org" <alex@shazbot.org>,
"anisinha@redhat.com" <anisinha@redhat.com>,
Aniket Agashe <aniketa@nvidia.com>, Neo Jia <cjia@nvidia.com>,
Kirti Wankhede <kwankhede@nvidia.com>,
"Tarun Gupta (SW-GPU)" <targupta@nvidia.com>,
Zhi Wang <zhiw@nvidia.com>, Matt Ochs <mochs@nvidia.com>,
Krishnakant Jaju <kjaju@nvidia.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [PATCH v1 1/1] hw/acpi/pci.c: preserve generic initiator insertion order
Date: Tue, 24 Feb 2026 09:54:53 -0500 [thread overview]
Message-ID: <20260224095358-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <SA1PR12MB7199847A879D66527B03DB1CB074A@SA1PR12MB7199.namprd12.prod.outlook.com>
On Tue, Feb 24, 2026 at 02:51:42PM +0000, Ankit Agrawal wrote:
> >>
> >> Not arguing against this, but if there's a linux bug it is important
> >> to fix it as a 1st step. qemu work arounds for broken guests
> >> notwithstanding. then we can check how long the uapi has been around,
> >> how practical bugfix backport in linux is, and decide on whether
> >> a host side work around is worth it.
> >
> > Yeah, Ankit should provide more details to check for kernel bugs, but
> > I fear it is more userspace bugs in practice :\
> >
> > However, I think even if it is minor and easier to backport it still
> > doesn't matter. The CSPs all built their VM types for this HW with the
> > exepcted ACPI and this stuff is now very widely deployed. It makes no
> > sense for qemu to be incompatible with everything pre-existing...
>
> I don't think this is a kernel bug. To give somewhat more details,
> we pass memory-less, cpu-less NUMA node to the VM such as
> the following through the command line.
>
> qemu-system-aarch64 \
> ..
> -numa node,nodeid=2
> -object acpi-generic-initiator,id=gi0,pci-dev=dev0,node=2 \
> ..
>
> The qemu code here only adds the numa node if the size > 0.
> https://github.com/qemu/qemu/blob/stable-10.2/hw/arm/virt-acpi-build.c#L718
> These nodes are thus discovered through the Generic Initiator
> Affinity SRAT structures that is build for the acpi-generic-initiator
> object such as the following.
>
>
> [1A0h 0416 001h] Subtable Type : 05 [Generic Initiator Affinity]
> [1A1h 0417 001h] Length : 20
>
> [1A2h 0418 001h] Reserved1 : 00
> [1A3h 0419 001h] Device Handle Type : 01
> [1A4h 0420 004h] Proximity Domain : 00000002
> [1A8h 0424 010h] Device Handle : 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00
> [1B8h 0440 004h] Flags (decoded below) : 00000001
> Enabled : 1
> Architectural Transactions : 0
> [1BCh 0444 004h] Reserved2 : 00000000
>
>
> Now the kernel parse it in the sequence of their occurrence. A jumbled up
> sequence thus results in a jumbled up assignment.
>
> Thanks
> Ankit Agrawal
it can parse in any order it wants. but you are saying it exposes the
offset in the table as a proximity domain?
next prev parent reply other threads:[~2026-02-24 14:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260222020812.26475-1-ankita@nvidia.com>
2026-02-23 7:28 ` [PATCH v1 1/1] hw/acpi/pci.c: preserve generic initiator insertion order Igor Mammedov
[not found] ` <SA1PR12MB7199F0C2E1D2325B0062B004B077A@SA1PR12MB7199.namprd12.prod.outlook.com>
2026-02-23 9:44 ` Igor Mammedov
2026-02-23 11:13 ` Jonathan Cameron via qemu development
2026-02-24 13:51 ` Jason Gunthorpe
2026-02-24 14:01 ` Michael S. Tsirkin
2026-02-24 14:42 ` Jason Gunthorpe
2026-02-24 14:48 ` Michael S. Tsirkin
2026-02-24 14:51 ` Ankit Agrawal
2026-02-24 14:54 ` Michael S. Tsirkin [this message]
2026-02-24 14:58 ` Jason Gunthorpe
2026-02-24 16:22 ` Ankit Agrawal
2026-02-24 16:30 ` Michael S. Tsirkin
2026-02-24 16:41 ` Jonathan Cameron via qemu development
2026-02-24 17:13 ` Jonathan Cameron via qemu development
2026-02-24 14:54 ` Jonathan Cameron via qemu development
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=20260224095358-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=alex@shazbot.org \
--cc=aniketa@nvidia.com \
--cc=anisinha@redhat.com \
--cc=ankita@nvidia.com \
--cc=cjia@nvidia.com \
--cc=imammedo@redhat.com \
--cc=jgg@nvidia.com \
--cc=jonathan.cameron@huawei.com \
--cc=kjaju@nvidia.com \
--cc=kwankhede@nvidia.com \
--cc=mochs@nvidia.com \
--cc=qemu-devel@nongnu.org \
--cc=skolothumtho@nvidia.com \
--cc=targupta@nvidia.com \
--cc=vsethi@nvidia.com \
--cc=zhiw@nvidia.com \
/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.