RE: [PATCH v5 3/3] PCI/P2PDMA: Allow P2PDMA on Intel Xeon server CPUs
From: Popov, Pavel E
Date: Mon Nov 16 2026 - 12:35:52 EST
> Why is this in drivers/pci/ instead of behind a clean abstraction in
> arch code?
It extends the existing AMD check in cpu_supports_p2pdma(), which
already reads cpuinfo_x86. The table describes a host bridge property,
not a CPU one; it's keyed by CPU model because the host bridge device
isn't visible to VMware and Hyper-V guests.
Thanks,
Pavel
> -----Original Message-----
> From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
> Sent: Sunday, November 15, 2026 11:22 PM
> To: Popov, Pavel E <pavel.e.popov@xxxxxxxxx>
> Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>; Logan Gunthorpe
> <logang@xxxxxxxxxxxx>; Arnd Bergmann <arnd@xxxxxxxx>; Leon Romanovsky
> <leon@xxxxxxxxxx>; Lukas Wunner <lukas@xxxxxxxxx>; Thomas Gleixner
> <tglx@xxxxxxxxxx>; Ingo Molnar <mingo@xxxxxxxxxx>; Borislav Petkov
> <bp@xxxxxxxxx>; Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>; x86@xxxxxxxxxx;
> Jim Chow <jim.chow@xxxxxxxxxxxx>; Radu Rugina
> <radu.rugina@xxxxxxxxxxxx>; Alexey Makhalov
> <alexey.makhalov@xxxxxxxxxxxx>; Wei Liu <wei.liu@xxxxxxxxxx>; Michael
> Kelley <mhklinux@xxxxxxxxxxx>; Nathan Ciobanu
> <nathan.d.ciobanu@xxxxxxxxxxxxxxx>; bcm-kernel-feedback-list@xxxxxxxxxxxx;
> virtualization@xxxxxxxxxxxxxxx; linux-hyperv@xxxxxxxxxxxxxxx; linux-
> arch@xxxxxxxxxxxxxxx; linux-pci@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH v5 3/3] PCI/P2PDMA: Allow P2PDMA on Intel Xeon server
> CPUs
>
> On Wed, Nov 11, 2026 at 04:44:39PM -0700, Pavel Popov wrote:
> > #ifdef CONFIG_X86
> > +/* Intel Xeon CPUs whose host bridges support p2pdma */ static const
> > +struct x86_cpu_id p2pdma_intel_cpu_ids[] = {
>
> Why is this in drivers/pci/ instead of behind a clean abstraction in arch code?
>
> (and the fact that the CPU vendors still haven't managed to provide a firmware
> interface to expose the P2P capabilities is just insane)