From: Leon Romanovsky <leon@kernel.org>
To: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Cc: jgg@ziepe.ca, Dean Luick <dean.luick@cornelisnetworks.com>,
Breandan Cunningham <brendan.cunningham@cornelisnetworks.com>,
linux-rdma@vger.kernel.org
Subject: Re: [PATCH for-next resend 07/24] RDMA/hfi2: Add system core header files
Date: Tue, 17 Mar 2026 11:54:33 +0200 [thread overview]
Message-ID: <20260317095433.GT61385@unreal> (raw)
In-Reply-To: <9ce84cf2-e916-4cac-b9a2-65f059b6508d@cornelisnetworks.com>
On Mon, Mar 16, 2026 at 05:37:30PM -0400, Dennis Dalessandro wrote:
> On 3/16/26 11:58 AM, Leon Romanovsky wrote:
> > On Wed, Mar 11, 2026 at 01:54:20PM -0400, Dennis Dalessandro wrote:
> > > Add header files for hooking into the core system, things like IRQs and
> > > affinity.
> > >
> > > Co-developed-by: Dean Luick <dean.luick@cornelisnetworks.com>
> > > Signed-off-by: Dean Luick <dean.luick@cornelisnetworks.com>
> > > Co-developed-by: Bendan Cunningham <brendan.cunningham@cornelisnetworks.com>
> > > Signed-off-by: Breandan Cunningham <brendan.cunningham@cornelisnetworks.com>
> > > Signed-off-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
> > > ---
> > > drivers/infiniband/hw/hfi2/affinity.h | 86 +++++++++++++++++++++++++++++++++
> > > drivers/infiniband/hw/hfi2/aspm.h | 36 ++++++++++++++
> > > drivers/infiniband/hw/hfi2/efivar.h | 17 +++++++
> > > drivers/infiniband/hw/hfi2/eprom.h | 11 ++++
> > > drivers/infiniband/hw/hfi2/mmu_rb.h | 78 ++++++++++++++++++++++++++++++
> > > drivers/infiniband/hw/hfi2/msix.h | 31 ++++++++++++
> > > 6 files changed, 259 insertions(+)
> > > create mode 100644 drivers/infiniband/hw/hfi2/affinity.h
> > > create mode 100644 drivers/infiniband/hw/hfi2/aspm.h
> > > create mode 100644 drivers/infiniband/hw/hfi2/efivar.h
> > > create mode 100644 drivers/infiniband/hw/hfi2/eprom.h
> > > create mode 100644 drivers/infiniband/hw/hfi2/mmu_rb.h
> > > create mode 100644 drivers/infiniband/hw/hfi2/msix.h
> >
> > <...>
> >
> > > +/* Can be used for both memory and cpu */
> > > +enum affinity_flags {
> > > + AFF_AUTO,
> > > + AFF_NUMA_LOCAL,
> > > + AFF_DEV_LOCAL,
> > > + AFF_IRQ_LOCAL
> > > +};
> >
> > Maybe I'm misremembering, but I recall we already discussed affinity
> > management in the driver in the context of hfi1, and our position at the
> > time was that handling affinity belongs in user space.
>
> I don't recall specifically, but I do agree it should be handled in user
> space as the ultimate decider. The driver just provides hints as to where
> best to run things for optimal performance. User space is free to manage if
> it chooses.
So there is no need in all this affinity code, which looks like policy,
just use right attributes from the beginning.
Thanks
>
> -Denny
>
next prev parent reply other threads:[~2026-03-17 9:54 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-11 17:53 [PATCH for-next resend 00/24] Migrate to hfi2 driver Dennis Dalessandro
2026-03-11 17:53 ` [PATCH for-next resend 01/24] RDMA/hfi2: Start hfi2 driver by basing off of hfi1 Dennis Dalessandro
2026-03-16 15:51 ` Leon Romanovsky
2026-03-16 22:00 ` Dennis Dalessandro
2026-03-17 10:07 ` Leon Romanovsky
2026-03-11 17:53 ` [PATCH for-next resend 02/24] RDMA/hfi2: Add in HW register definition files Dennis Dalessandro
2026-03-11 17:54 ` [PATCH for-next resend 03/24] RDMA/hfi2: Add counter accessor functions Dennis Dalessandro
2026-03-11 17:54 ` [PATCH for-next resend 04/24] RDMA/hfi2: Add in HW register access support Dennis Dalessandro
2026-03-11 17:54 ` [PATCH for-next resend 05/24] RDMA/hfi2: Add in trace header files Dennis Dalessandro
2026-03-11 17:54 ` [PATCH for-next resend 06/24] RDMA/hfi2: Add in trace support Dennis Dalessandro
2026-03-11 17:54 ` [PATCH for-next resend 07/24] RDMA/hfi2: Add system core header files Dennis Dalessandro
2026-03-16 15:58 ` Leon Romanovsky
2026-03-16 21:37 ` Dennis Dalessandro
2026-03-17 9:54 ` Leon Romanovsky [this message]
2026-03-11 17:54 ` [PATCH for-next resend 08/24] RDMA/hfi2: Add driver and interrupt infrastructure Dennis Dalessandro
2026-03-18 9:11 ` Leon Romanovsky
2026-03-11 17:54 ` [PATCH for-next resend 09/24] RDMA/hfi2: Add initialization and firmware support Dennis Dalessandro
2026-03-18 9:14 ` Leon Romanovsky
2026-03-11 17:54 ` [PATCH for-next resend 10/24] RDMA/hfi2: Add in MAD handling related headers Dennis Dalessandro
2026-03-11 17:54 ` [PATCH for-next resend 11/24] RDMA/hfi2: Add cport management Dennis Dalessandro
2026-03-11 17:54 ` [PATCH for-next resend 12/24] RDMA/hfi2: Implement MAD handling Dennis Dalessandro
2026-03-11 17:54 ` [PATCH for-next resend 13/24] RDMA/hfi2: Add IO related headers Dennis Dalessandro
2026-03-11 17:54 ` [PATCH for-next resend 14/24] RDMA/hfi2: Add PIO send infrastructure Dennis Dalessandro
2026-03-11 17:55 ` [PATCH for-next resend 15/24] RDMA/hfi2: Add SDMA infrastructure Dennis Dalessandro
2026-03-11 17:55 ` [PATCH for-next resend 16/24] RDMA/hfi2: Implement data moving infrastructure Dennis Dalessandro
2026-03-11 17:55 ` [PATCH for-next resend 17/24] RDMA/hfi2: Add verbs core Dennis Dalessandro
2026-03-11 17:55 ` [PATCH for-next resend 18/24] RDMA/hfi2: Add RC protocol support Dennis Dalessandro
2026-03-11 17:55 ` [PATCH for-next resend 19/24] RDMA/hfi2: Add in support for verbs Dennis Dalessandro
2026-03-11 17:55 ` [PATCH for-next resend 20/24] RDMA/hfi2: Support ipoib Dennis Dalessandro
2026-03-11 17:55 ` [PATCH for-next resend 21/24] RDMA/hfi2: Add misc header files Dennis Dalessandro
2026-03-11 17:55 ` [PATCH for-next resend 22/24] RDMA/hfi2: Add the rest of the driver Dennis Dalessandro
2026-03-11 17:55 ` [PATCH for-next resend 23/24] RDMA/hfi2: Make it build Dennis Dalessandro
2026-03-11 17:55 ` [PATCH for-next resend 24/24] RDMA/hfi2: Modernize mmap to use rdma_user_mmap_entry infrastructure Dennis Dalessandro
2026-03-16 16:02 ` [PATCH for-next resend 00/24] Migrate to hfi2 driver Leon Romanovsky
2026-03-16 21:29 ` Dennis Dalessandro
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=20260317095433.GT61385@unreal \
--to=leon@kernel.org \
--cc=brendan.cunningham@cornelisnetworks.com \
--cc=dean.luick@cornelisnetworks.com \
--cc=dennis.dalessandro@cornelisnetworks.com \
--cc=jgg@ziepe.ca \
--cc=linux-rdma@vger.kernel.org \
/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