dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <christian.koenig@amd.com>
To: Zhiping Zhang <zhipingz@meta.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>,
	Alex Williamson <alex@shazbot.org>,
	Leon Romanovsky <leon@kernel.org>,
	Sumit Semwal <sumit.semwal@linaro.org>,
	Bjorn Helgaas <helgaas@kernel.org>,
	kvm@vger.kernel.org, linux-rdma@vger.kernel.org,
	linux-pci@vger.kernel.org, netdev@vger.kernel.org,
	dri-devel@lists.freedesktop.org, Keith Busch <kbusch@kernel.org>,
	Yochai Cohen <yochai@nvidia.com>,
	Yishai Hadas <yishaih@nvidia.com>
Subject: Re: [PATCH v5 0/4] vfio/dma-buf: add TPH support for peer-to-peer access
Date: Thu, 28 May 2026 09:46:29 +0200	[thread overview]
Message-ID: <71302a7a-6b9f-40da-af81-b1862dbd637a@amd.com> (raw)
In-Reply-To: <CAH3zFs2KALuHXReLZG_uoqvBBWvBzU6rHKakmt6HBV7PZEsD=w@mail.gmail.com>

On 5/28/26 06:55, Zhiping Zhang wrote:
> On Wed, May 27, 2026 at 5:53 AM Christian König
> <christian.koenig@amd.com> wrote:
>>
>>>
>> On 5/27/26 14:36, Jason Gunthorpe wrote:
>>> On Wed, May 27, 2026 at 02:23:46PM +0200, Christian König wrote:
>>>
>>>> Yeah that's a good point, I should probably rephrase the question.
>>>>
>>>> I'm aware of how TPH works by adding the extra ST to the TLP.
>>>>
>>>> But my question is how is that useful to a PCIe endpoint? What is the effect of the ST here?
>>>
>>> TBH I've never heard Meta explain what their device is doing with
>>> it. At least it seems to be super important to their device..
>>
>> Yeah I think at least a brief description of what is going on here would be necessary for the review.
>>
>> Otherwise we have only the info that the exporter wants to give an opaque ST for the importer to use and no technical description what that is good for, how to test it etc...
>>
>> Regards,
>> Christian.
>>
>>>
>>> Jason
>>
> 
> Fair point — I'll add a couple of paragraphs to the v6 cover letter and the
> patch's changelog as well.
> 
> The short version: in this series the vfio-pci device is the completer
> of the P2P
> writes and mlx5 is the requester. As Jason noted, ST semantics on the completer
> are implementation-defined, so only the driver that owns the completer (here,
> vfio-pci on behalf of its userspace owner) can hand out a meaningful ST; the
> importer treats it as opaque and just places it on the TLP.

Yeah but that is not really sufficient to justify a driver 2 driver interface.

Which PF driver is backing the vfio-pci and what effect does sending TLPs with ST to it compared to TLPs without an ST?

Regards,
Christian.

> Validation occurs at two levels: PCIe analyzer captures on P2P TLPs, and the
>  end-to-end P2P workload yields only expected results.
> 
> Thanks,
> Zhiping


  reply	other threads:[~2026-05-28  7:46 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-26 14:43 [PATCH v5 0/4] vfio/dma-buf: add TPH support for peer-to-peer access Zhiping Zhang
2026-05-26 14:43 ` [PATCH v5 1/4] PCI/TPH: expose the enabled TPH requester type Zhiping Zhang
2026-05-27 20:53   ` Alex Williamson
2026-05-28  5:35     ` Zhiping Zhang
2026-05-28  8:04       ` fengchengwen
2026-05-29  6:41         ` Zhiping Zhang
2026-05-26 14:43 ` [PATCH v5 2/4] dma-buf: add optional get_tph() callback Zhiping Zhang
2026-05-27  6:57   ` Christian König
2026-05-27 17:03   ` Alex Williamson
2026-05-26 14:43 ` [PATCH v5 3/4] vfio/pci: implement get_tph and DMA_BUF_TPH feature Zhiping Zhang
2026-05-27 18:06   ` Alex Williamson
2026-05-28  5:34     ` Zhiping Zhang
2026-05-26 14:43 ` [PATCH v5 4/4] RDMA/mlx5: get tph for p2p access when registering dma-buf mr Zhiping Zhang
2026-05-27 19:00   ` Alex Williamson
2026-05-28  5:54     ` Zhiping Zhang
2026-05-27 22:55   ` Michael Gur
2026-05-28  6:07     ` Zhiping Zhang
2026-05-27  6:55 ` [PATCH v5 0/4] vfio/dma-buf: add TPH support for peer-to-peer access Christian König
2026-05-27 12:14   ` Jason Gunthorpe
2026-05-27 12:23     ` Christian König
2026-05-27 12:36       ` Jason Gunthorpe
2026-05-27 12:53         ` Christian König
2026-05-28  4:55           ` Zhiping Zhang
2026-05-28  7:46             ` Christian König [this message]
2026-05-29  6:34               ` Zhiping Zhang
2026-05-29  7:36                 ` Christian König
2026-05-29 20:11                   ` Jason Gunthorpe
2026-06-01  9:59                     ` Christian König
2026-06-01 17:47                       ` Jason Gunthorpe
2026-06-01 18:17                         ` Christian König
2026-06-01 18:48                           ` Jason Gunthorpe
2026-06-02  7:14                             ` Zhiping Zhang
2026-05-29 20:31                   ` Keith Busch
2026-06-01 10:03                     ` Christian König
2026-06-01 17:50                     ` Jason Gunthorpe

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=71302a7a-6b9f-40da-af81-b1862dbd637a@amd.com \
    --to=christian.koenig@amd.com \
    --cc=alex@shazbot.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=helgaas@kernel.org \
    --cc=jgg@ziepe.ca \
    --cc=kbusch@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=leon@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=sumit.semwal@linaro.org \
    --cc=yishaih@nvidia.com \
    --cc=yochai@nvidia.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