Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
  • [parent not found: <20260702181025.2694961-5-zhipingz@meta.com>]
  • * Re: [PATCH v11 0/4] vfio/dma-buf: add TPH support for peer-to-peer access
           [not found] <20260702181025.2694961-1-zhipingz@meta.com>
           [not found] ` <20260702181025.2694961-4-zhipingz@meta.com>
           [not found] ` <20260702181025.2694961-5-zhipingz@meta.com>
    @ 2026-07-09 19:26 ` Alex Williamson
      2026-07-10 21:13   ` Zhiping Zhang
      2 siblings, 1 reply; 5+ messages in thread
    From: Alex Williamson @ 2026-07-09 19:26 UTC (permalink / raw)
      To: Zhiping Zhang
      Cc: Jason Gunthorpe, Leon Romanovsky, Michael Guralnik, Sumit Semwal,
    	Christian Konig, Bjorn Helgaas, kvm, linux-rdma, linux-pci,
    	dri-devel, alex
    
    On Thu, 2 Jul 2026 11:10:13 -0700
    Zhiping Zhang <zhipingz@meta.com> wrote:
     
    > Changes since v10:
    >   Patch 2 (dma-buf): Per Christian König, document that the ST/PH
    >   returned by dma_buf_get_pci_tph() is only valid until the exporter
    >   invalidates the current mapping and must be re-queried afterwards;
    >   note added to the wrapper kernel-doc and referenced from the callback
    >   kernel-doc. Also add dma_buf_get_pci_tph() and dma_buf_ops.get_pci_tph()
    >   to the central dma-buf locking convention.
    > 
    >   Patch 3 (vfio/pci): Per Alex Williamson, update the vfio_pci_dma_buf
    >   comment to note that @revoked is additionally protected by memory_lock,
    >   and describe the READ_ONCE() rationale in the commit log. No behavior
    >   change.
    
    Sashiko has valid comments[1] across most of the series.
    
     - Passing through 0b10 seems mis-categorized as High in patch 1, but
       is valid hardening if tph_req_type can ever hold an invalid value.
    
     - The documentation error in patch 2 is real.
    
     - Patch 4 ironically fails to re-validate according to the lifecycle
       requirements that patch 2 specifies.  This is a significant gap in
       the implementation proof for a real requester.
    
     - The broadened scope of the existing memory leak in patch 4 is
       already addressed in [2], ok.  Maybe should be folded into this
       series if mlx5 isn't going to pick it up separately.
    
    Thanks,
    Alex
    
    [1]https://sashiko.dev/#/patchset/20260702181025.2694961-1-zhipingz@meta.com
    [2]https://lore.kernel.org/linux-rdma/20260612170406.3339093-1-zhipingz@meta.com
    
    ^ permalink raw reply	[flat|nested] 5+ messages in thread

  • end of thread, other threads:[~2026-07-10 21:13 UTC | newest]
    
    Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20260702181025.2694961-1-zhipingz@meta.com>
         [not found] ` <20260702181025.2694961-4-zhipingz@meta.com>
    2026-07-03  4:13   ` [PATCH v11 3/4] vfio/pci: implement get_pci_tph and DMA_BUF_TPH feature fengchengwen
    2026-07-03  6:57     ` Zhiping Zhang
         [not found] ` <20260702181025.2694961-5-zhipingz@meta.com>
    2026-07-08  5:39   ` [PATCH v11 4/4] RDMA/mlx5: get tph for p2p access when registering dma-buf mr Michael Gur
    2026-07-09 19:26 ` [PATCH v11 0/4] vfio/dma-buf: add TPH support for peer-to-peer access Alex Williamson
    2026-07-10 21:13   ` Zhiping Zhang
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox