From: Wathsala Vithanage <wathsala.vithanage@arm.com>
To: linux-kernel@vger.kernel.org
Cc: alex.williamson@redhat.com, gg@ziepe.ca, kevin.tian@intel.com,
bhelgaas@google.com, pstanner@redhat.com, linux@treblig.org,
schnelle@linux.ibm.com, Yunxiang.Li@amd.com, kvm@vger.kernel.org,
Wathsala Vithanage <wathsala.vithanage@arm.com>
Subject: [RFC PATCH v2 0/1] VFIO ioctl for TLP Processing Hints
Date: Mon, 2 Jun 2025 23:06:39 +0000 [thread overview]
Message-ID: <20250602230641.821485-1-wathsala.vithanage@arm.com> (raw)
In-Reply-To: <20250221224638.1836909-1-wathsala.vithanage@arm.com>
Linux v6.13 introduced the PCIe TLP Processing Hints (TPH) feature for
direct cache injection. As described in the relevant patch set [1],
direct cache injection in supported hardware allows optimal platform
resource utilization for specific requests on the PCIe bus. This feature
is currently available only for kernel device drivers. However, user
space applications, especially those whose performance is sensitive to
the latency of inbound writes as seen by a CPU core, may benefit from
using this information (E.g., DPDK cache stashing RFC [2] or an HPC
application running in a VM). For such applications to enable and
configure TPH on PCIe devices, this RFC proposes a new VFIO ioctl.
[1] lore.kernel.org/linux-pci/20241002165954.128085-1-wei.huang2@amd.com
[2] inbox.dpdk.org/dev/20241021015246.304431-2-wathsala.vithanage@arm.com
V1->V2:
* Rewrite as a VFIO IOCTL
* Add missing padding for structs
* Increase maximum steering tags per IOCTL to 2048
Wathsala Vithanage (1):
vfio/pci: add PCIe TPH device ioctl
drivers/vfio/pci/vfio_pci_core.c | 153 +++++++++++++++++++++++++++++++
include/uapi/linux/vfio.h | 83 +++++++++++++++++
2 files changed, 236 insertions(+)
--
2.43.0
next prev parent reply other threads:[~2025-06-02 23:07 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-21 22:46 [RFC PATCH] vfio/pci: add PCIe TPH to device feature ioctl Wathsala Vithanage
2025-02-28 18:48 ` Alex Williamson
2025-03-03 4:20 ` Wathsala Wathawana Vithanage
2025-03-04 3:12 ` Alex Williamson
2025-03-04 7:01 ` Wathsala Wathawana Vithanage
2025-04-26 12:49 ` Wathsala Wathawana Vithanage
2025-03-03 7:49 ` Philipp Stanner
2025-03-03 17:21 ` Wathsala Wathawana Vithanage
2025-03-04 14:14 ` Jason Gunthorpe
2025-03-04 22:38 ` Wathsala Wathawana Vithanage
2025-03-05 1:24 ` Alex Williamson
2025-03-05 6:11 ` Wathsala Wathawana Vithanage
2025-03-05 18:58 ` Jason Gunthorpe
2025-03-05 20:21 ` Wathsala Wathawana Vithanage
2025-03-12 7:53 ` Tian, Kevin
2025-03-14 1:49 ` Wathsala Wathawana Vithanage
2025-04-07 5:16 ` Tian, Kevin
2025-04-01 14:11 ` Jason Gunthorpe
2025-04-01 23:38 ` Wathsala Wathawana Vithanage
2025-04-01 23:52 ` Jason Gunthorpe
2025-04-07 5:22 ` Tian, Kevin
2025-04-26 12:42 ` Wathsala Wathawana Vithanage
2025-06-02 23:06 ` Wathsala Vithanage [this message]
2025-06-02 23:06 ` [RFC PATCH v2 1/1] vfio/pci: add PCIe TPH device ioctl Wathsala Vithanage
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=20250602230641.821485-1-wathsala.vithanage@arm.com \
--to=wathsala.vithanage@arm.com \
--cc=Yunxiang.Li@amd.com \
--cc=alex.williamson@redhat.com \
--cc=bhelgaas@google.com \
--cc=gg@ziepe.ca \
--cc=kevin.tian@intel.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@treblig.org \
--cc=pstanner@redhat.com \
--cc=schnelle@linux.ibm.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
all inboxes | Powered by JetHome®