Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Michael Margolin <mrgolin@amazon.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>,
	Yonatan Nachum <ynachum@amazon.com>,
	linux-rdma@vger.kernel.org, sleybo@amazon.com, matua@amazon.com,
	gal.pressman@linux.dev, Yehuda Yitschak <yehuday@amazon.com>
Subject: Re: [PATCH for-next] RDMA/efa: Expose device P2P DMA support via device query
Date: Sun, 11 Oct 2026 16:28:10 +0300	[thread overview]
Message-ID: <20261011132810.GD27033@unreal> (raw)
In-Reply-To: <20261007090136.GA35552@dev-dsk-mrgolin-1c-b2091117.eu-west-1.amazon.com>

On Wed, Oct 07, 2026 at 09:01:36AM +0000, Michael Margolin wrote:
> On Fri, Oct 02, 2026 at 11:52:41AM -0300, Jason Gunthorpe wrote:
> > On Thu, Oct 01, 2026 at 06:53:33PM +0300, Leon Romanovsky wrote:
> > 
> > > > Looked at Leon's patches and it does seem like the right place to expose
> > > > such peer relations. Although it wouldn't help with our immediate need,
> > > > maybe we can add a sysfs interface on top of Leon's patches to expose
> > > > the gathered accessiblity (and maybe also performance) information.
> > > > 
> > > > Leon, what is your opinion on this?
> > > 
> > > ACPI tables are available here /sys/firmware/acpi/tables/, this will
> > > include our new p2p HMAT extension.
> 
> I was iterating over Jason's idea and what I imagine is an interface
> that contains already parsed data at PCI level, like:
> 
> /sys/firmware/acpi/p2p/
> ├── 0000:55:00.0/          # RDMA NIC
> │   ├── 0000:59:00.0/      # → GPU (reachable peer)
> │   │   ├── latency_ns     # 200
> │   │   └── bandwidth_mbs  # 32000
> │   └── 0000:5a:00.0/      # → GPU (reachable peer)
> │       ├── latency_ns     # 200
> │       └── bandwidth_mbs  # 32000
> │
> ├── 0000:59:00.0/          # GPU
> │   ├── 0000:55:00.0/      # → RDMA NIC (reachable peer)
> │   │   ├── latency_ns     # 200
> │   │   └── bandwidth_mbs  # 32000
> │   └── 0000:56:00.0/      # → RDMA NIC (reachable peer)
> │       ├── latency_ns     # 200
> │       └── bandwidth_mbs  # 32000
> │
> ├── 0000:9a:00.0/          # NVMe
> │   └── 0000:55:00.0/      # → RDMA NIC (reachable peer)
> │       ├── latency_ns     # 300
> │       └── bandwidth_mbs  # 12000

I'm afraid that writing and maintaining an in-kernel parser that creates a matrix of
non-racy symlinks to point to right PCI BDF will be quite painful.

Thanks

  reply	other threads:[~2026-10-11 13:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-03 15:02 [PATCH for-next] RDMA/efa: Expose device P2P DMA support via device query Yonatan Nachum
2026-05-04  7:34 ` Jason Gunthorpe
2026-05-05  8:15   ` Yonatan Nachum
2026-05-05 15:40     ` Jason Gunthorpe
2026-09-23 16:38       ` Michael Margolin
2026-09-23 17:17         ` Jason Gunthorpe
2026-09-24 15:29           ` Michael Margolin
2026-09-24 18:22             ` Jason Gunthorpe
2026-09-24 19:30               ` Michael Margolin
2026-09-25 12:55                 ` Jason Gunthorpe
2026-09-30 13:26                   ` Michael Margolin
2026-10-01 15:53                     ` Leon Romanovsky
2026-10-02 14:52                       ` Jason Gunthorpe
2026-10-07  9:01                         ` Michael Margolin
2026-10-11 13:28                           ` Leon Romanovsky [this message]
2026-10-13 13:16                           ` 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=20261011132810.GD27033@unreal \
    --to=leon@kernel.org \
    --cc=gal.pressman@linux.dev \
    --cc=jgg@nvidia.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=matua@amazon.com \
    --cc=mrgolin@amazon.com \
    --cc=sleybo@amazon.com \
    --cc=yehuday@amazon.com \
    --cc=ynachum@amazon.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