public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Shay Drory <shayd@nvidia.com>,
	netdev@vger.kernel.org, davem@davemloft.net,  kuba@kernel.org,
	edumazet@google.com, gregkh@linuxfoundation.org,
	 david.m.ertman@intel.com
Cc: rafael@kernel.org, ira.weiny@intel.com,
	linux-rdma@vger.kernel.org,  leon@kernel.org, tariqt@nvidia.com,
	Simon Horman <horms@kernel.org>, Parav Pandit <parav@nvidia.com>
Subject: Re: [PATCH net-next v8 1/2] driver core: auxiliary bus: show auxiliary device IRQs
Date: Tue, 02 Jul 2024 12:39:33 +0200	[thread overview]
Message-ID: <3cf2178e917fc345bc4cafee5af4a81f555725ec.camel@redhat.com> (raw)
In-Reply-To: <20240627143810.805224-2-shayd@nvidia.com>

On Thu, 2024-06-27 at 17:38 +0300, Shay Drory wrote:
> PCI subfunctions (SF) are anchored on the auxiliary bus. PCI physical
> and virtual functions are anchored on the PCI bus. The irq information
> of each such function is visible to users via sysfs directory "msi_irqs"
> containing files for each irq entry. However, for PCI SFs such
> information is unavailable. Due to this users have no visibility on IRQs
> used by the SFs.
> Secondly, an SF can be multi function device supporting rdma, netdevice
> and more. Without irq information at the bus level, the user is unable
> to view or use the affinity of the SF IRQs.
> 
> Hence to match to the equivalent PCI PFs and VFs, add "irqs" directory,
> for supporting auxiliary devices, containing file for each irq entry.
> 
> For example:
> $ ls /sys/bus/auxiliary/devices/mlx5_core.sf.1/irqs/
> 50  51  52  53  54  55  56  57  58
> 
> Cc: Simon Horman <horms@kernel.org>
> Reviewed-by: Parav Pandit <parav@nvidia.com>
> Signed-off-by: Shay Drory <shayd@nvidia.com>
> 
> ---
> v7-v8:
> - use cleanup.h for info and name fields (Greg)

AFAICT Greg (also) asked about using guards for the lock.

Thanks,

Paolo


  reply	other threads:[~2024-07-02 10:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-27 14:38 [PATCH net-next v8 0/2] COVER LETTER: Introduce auxiliary bus IRQs sysfs Shay Drory
2024-06-27 14:38 ` [PATCH net-next v8 1/2] driver core: auxiliary bus: show auxiliary device IRQs Shay Drory
2024-07-02 10:39   ` Paolo Abeni [this message]
2024-06-27 14:38 ` [PATCH net-next v8 2/2] net/mlx5: Expose SFs IRQs Shay Drory
2024-06-28 13:28 ` [PATCH net-next v8 0/2] COVER LETTER: Introduce auxiliary bus IRQs sysfs Przemek Kitszel

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=3cf2178e917fc345bc4cafee5af4a81f555725ec.camel@redhat.com \
    --to=pabeni@redhat.com \
    --cc=davem@davemloft.net \
    --cc=david.m.ertman@intel.com \
    --cc=edumazet@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=horms@kernel.org \
    --cc=ira.weiny@intel.com \
    --cc=kuba@kernel.org \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=parav@nvidia.com \
    --cc=rafael@kernel.org \
    --cc=shayd@nvidia.com \
    --cc=tariqt@nvidia.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