All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Johannes Berg <johannes@sipsolutions.net>,
	linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] wifi: mac80211: Ensure links are cleaned up when driver fails.
Date: Mon, 25 Mar 2024 10:40:05 -0700	[thread overview]
Message-ID: <6bed94b3-4674-7fe9-ee82-bac7f9c7ffd6@candelatech.com> (raw)
In-Reply-To: <449f6afbc20c57f704dbeabc3a8eac8fec676405.camel@sipsolutions.net>

On 3/25/24 10:30, Johannes Berg wrote:
> On Mon, 2024-03-25 at 09:10 -0700, Ben Greear wrote:
>> On 11/10/23 16:10, greearb@candelatech.com wrote:
>>> From: Ben Greear <greearb@candelatech.com>
>>>
>>> On cleanup paths, links need to be deleted even if the driver fails
>>> to do so.  Add a flag to cause driver errors to be ignored in
>>> appropriate cases.
>>>
>>> This appears to fix some kernel warnings and crashes.
>>
>> Hello Johannes,
>>
>> Any interest in this patch?
> 
> Well, you threw a bunch of unrelated stuff into it, and didn't even
> really explain why it's needed ... so not really?

It is needed because if FW crashes while you are trying to remove links, then link
removal would fail, which causes mac80211 to not clean up its links.  In case where you
are trying to delete the station, this causes un-cleaned links which caused crashes
back when I was creating this patch.  My patch allows always cleaning up the links
regardless of driver errors in the teardown paths.

Always possible some intervening changes made this less of a problem, especially since
MLO is disabled for be200 in upstream code anyway now.

I can remove the extra logging if you are otherwise OK with the approach
but don't want the logs.

Thanks,
Ben

> 
> johannes
> 

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



  reply	other threads:[~2024-03-25 17:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-11  0:10 [PATCH] wifi: mac80211: Ensure links are cleaned up when driver fails greearb
2024-03-25 16:10 ` Ben Greear
2024-03-25 17:30   ` Johannes Berg
2024-03-25 17:40     ` Ben Greear [this message]
2024-03-25 17:43       ` Johannes Berg
2024-03-25 17:53         ` Ben Greear

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=6bed94b3-4674-7fe9-ee82-bac7f9c7ffd6@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.