From: Alex Williamson <alex@shazbot.org>
To: fengchengwen <fengchengwen@huawei.com>, <linux-pci@vger.kernel.org>
Cc: <jgg@ziepe.ca>, <helgaas@kernel.org>,
<wathsala.vithanage@arm.com>, <wei.huang2@amd.com>,
<zhipingz@meta.com>, <wangzhou1@hisilicon.com>,
<wangyushan12@huawei.com>, <liuyonglong@huawei.com>,
<kvm@vger.kernel.org>,
alex@shazbot.org
Subject: Re: [PATCH v20 00/16] vfio/pci: Add PCIe TPH support
Date: Fri, 30 Oct 2026 10:00:50 -0600 [thread overview]
Message-ID: <20261030100050.16df202b@shazbot.org> (raw)
In-Reply-To: <6d86dd9c-83ad-4884-915e-6509995c5ba3@huawei.com>
On Wed, 21 Oct 2026 09:43:05 +0800
fengchengwen <fengchengwen@huawei.com> wrote:
> Hi Alex,
>
> Quick follow-up from our LPC discussion on the VFIO TPH patchset.
>
> The P2P TPH path carries significant verification complexity, as it builds
> on the PCI P2PDMA stack which is still under active upstream revision.
>
> Meanwhile there is clear real-world demand for the device-to-host scenario.
> AMD recently posted their debugfs series exposing CPU-to-ST mappings [1],
> and we also have strong use cases for D2H TPH enablement.
You might be working ahead of the industry. The debugfs interface
provides evidence that the feature is coming, but is perhaps still
working through implementation pains.
The lack of community participation in the vfio interface actually
suggests to me that there isn't a great real-world demand for this
feature, yet.
> I'd like to propose a phased upstream approach:
> land device-to-host support first, and defer P2P TPH to a follow-up series.
>
> We can add P2P support cleanly on top once the interface and verification
> are solid. This way we can deliver usable TPH functionality sooner, while
> keeping the path open for full P2P support later.
>
> Let me know your thoughts on going ahead with device-to-host support first.
> If you're okay with this, I'll post v21 accordingly.
As above, the demand is not apparent based on the lack of community
participation in these threads. I'm reluctant to commit to a uAPI
that's largely been proposed by me, as the maintainer, trying to fill
gaps in the narrow scope of the original proposal.
This needs support from the community and validation across broader use
cases. I think that's the actual barrier, rather than ordering versus
Zhiping's series.
Despite the LPC talk, there still hasn't been much engagement on the
question of whether device ownership grants the user the ability to
target specific cache levels and how we handle cases where the
driver:cpu association isn't static. Thanks,
Alex
prev parent reply other threads:[~2026-10-30 16:00 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 10:43 [PATCH v20 00/16] vfio/pci: Add PCIe TPH support Chengwen Feng
2026-07-14 10:43 ` [PATCH v20 01/16] PCI/TPH: Add requester/completer type helpers Chengwen Feng
2026-07-14 10:54 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 02/16] dma-buf: add optional get_pci_tph() callback Chengwen Feng
2026-07-14 10:50 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 03/16] vfio/pci: implement get_pci_tph and DMA_BUF_TPH feature Chengwen Feng
2026-07-14 10:50 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 04/16] PCI/TPH: Fix pcie_tph_get_st_table_loc() field extraction Chengwen Feng
2026-07-14 10:54 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 05/16] PCI/TPH: Fix tph_enabled concurrent update race by bitfield packing Chengwen Feng
2026-07-14 11:00 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 06/16] PCI/TPH: Cache negotiated max requester type at probe time Chengwen Feng
2026-07-14 10:57 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 07/16] PCI/TPH: Refactor pcie_enable_tph and add requester variant Chengwen Feng
2026-07-14 10:58 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 08/16] PCI/TPH: Refactor pcie_tph_get_cpu_st & " Chengwen Feng
2026-07-14 11:00 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 09/16] PCI/TPH: Add macros to check standard and extended TPH support Chengwen Feng
2026-07-14 11:07 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 10/16] PCI/TPH: Add pcie_tph_set_st_entries() batch ST entry programming helper Chengwen Feng
2026-07-14 11:11 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 11/16] PCI/TPH: Add pci_tph_dsm_supported() helper to detect device TPH ST _DSM Chengwen Feng
2026-07-14 11:27 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 12/16] vfio/pci: Add basic NO-ST TPH VFIO device feature support Chengwen Feng
2026-07-14 11:10 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 13/16] vfio/pci: Add IV-ST TPH policy and VFIO TPH_ST batch programming support Chengwen Feng
2026-07-14 11:14 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 14/16] vfio/pci: Add DS-ST TPH policy and extend TPH_RESOLVE capabilities Chengwen Feng
2026-07-14 11:12 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 15/16] vfio/pci: Sync core PCI TPH software state across device lifecycle and resets Chengwen Feng
2026-07-14 11:28 ` sashiko-bot
2026-07-14 10:43 ` [PATCH v20 16/16] vfio/pci: Expose per-device TPH state via debugfs Chengwen Feng
2026-07-14 11:17 ` sashiko-bot
2026-08-10 1:14 ` [PATCH v20 00/16] vfio/pci: Add PCIe TPH support fengchengwen
2026-10-21 1:43 ` fengchengwen
2026-10-30 16:00 ` Alex Williamson [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=20261030100050.16df202b@shazbot.org \
--to=alex@shazbot.org \
--cc=fengchengwen@huawei.com \
--cc=helgaas@kernel.org \
--cc=jgg@ziepe.ca \
--cc=kvm@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=liuyonglong@huawei.com \
--cc=wangyushan12@huawei.com \
--cc=wangzhou1@hisilicon.com \
--cc=wathsala.vithanage@arm.com \
--cc=wei.huang2@amd.com \
--cc=zhipingz@meta.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox