mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tariq Toukan <tariqt@nvidia.com>
To: Shay Drori <shayd@nvidia.com>, Changyul Lee <lcy8047@gmail.com>,
	Saeed Mahameed <saeedm@nvidia.com>,
	Leon Romanovsky <leon@kernel.org>,
	Tariq Toukan <tariqt@nvidia.com>, Mark Bloch <mbloch@nvidia.com>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Parav Pandit <parav@nvidia.com>,
	netdev@vger.kernel.org, linux-rdma@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] net/mlx5: SF, remove probed SF devices when arming vhca events fails
Date: Thu, 3 Dec 2026 09:02:27 +0200	[thread overview]
Message-ID: <04a22d8c-3410-4108-81e1-5edf381767ba@nvidia.com> (raw)
In-Reply-To: <63027688-545c-4f89-80db-268b763e77ce@nvidia.com>



On 25/11/2026 10:10, Shay Drori wrote:
> 
> 
> On 17/11/2026 5:11, Changyul Lee wrote:
>> External email: Use caution opening links or attachments
>>
>>
>> mlx5_sf_dev_table_create() queues work that probes the SFs which are
>> already active, and then arms the vhca state events. If arming fails,
>> the arm_err path stops and flushes that work and frees the table, but
>> the SF devices that the work already added stay on the auxiliary bus
>> and in table->devices. dev->priv.sf_dev_table is set to NULL, so
>> mlx5_sf_dev_table_destroy() returns early later and nothing removes
>> them, while they keep pointing at the parent mlx5_core_dev.
> 
> Hi, sorry for the late response...
> 
> once an SF is armed, the DPU can activate it and the event handler
> probes it, so arm_err has needed this since SF aux devices were added.
> Please re-spin with:
> 
>    Fixes: 90d010b8634b ("net/mlx5: SF, Add auxiliary device support")
> 
> and adjust the commit message accordingly. With that:
> Reviewed-by: Shay Drory <shayd@nvidia.com>
> 
> P.S.: the race pointed by sashiko is pre-existing and should be handle
> in different fix
> 
pw-bot: cr


      reply	other threads:[~2026-12-03  7:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17  3:11 Changyul Lee
2026-11-19 18:12 ` netdev-bot+sashiko
2026-11-25  8:10 ` Shay Drori
2026-12-03  7:02   ` Tariq Toukan [this message]

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=04a22d8c-3410-4108-81e1-5edf381767ba@nvidia.com \
    --to=tariqt@nvidia.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=lcy8047@gmail.com \
    --cc=leon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=mbloch@nvidia.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=parav@nvidia.com \
    --cc=saeedm@nvidia.com \
    --cc=shayd@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

all inboxes | Powered by JetHome®