Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2865737lqp; Mon, 25 Mar 2024 11:24:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX021qv1ssE8T/ab6O5YHPCiiyz6A6rezPDbnZxlO1pwbh3LQ1g9oq3QlYX3IM0ZwjNjsgAQFPgR1ZECOZD9N77N4f6Ng5HFX0HyrSD5g== X-Google-Smtp-Source: AGHT+IEfbeWlP4JM6Tf3t3mM/H8ppX+Ek+axn+Ys3L6IzJBg2VgozZePaIGj/MUxGvHe/uK6t8/A X-Received: by 2002:a17:906:8307:b0:a4a:3d11:4fe3 with SMTP id j7-20020a170906830700b00a4a3d114fe3mr1580188ejx.7.1711391082789; Mon, 25 Mar 2024 11:24:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711391082; cv=pass; d=google.com; s=arc-20160816; b=dd+IgCCRCQydz9sDeN8wOh9aKa4MDC3xw1Lst08k+TmwsNJQv5aL2/kFZcTBiBGu0o 7Ayevy0GFKNgXIrq/ZqfeBnd031+sM2cZpMwNaDiypfKx+wF4mBkfIptkqiscXV4C2q7 SqmCegyRbGUJj4JsOjYzxo3KRJPB6hMUQ9tU+cUFXVXnHyof4FNph9Mt1iE7YRXW2/pu CUwO9nYqIgc1kIogB1ODrk5ZC5naYOzkavDl0AwU9cJIVimHJWjs6S4v1SS8Ej83AOtG 30YsjwEeyh0xkHhsMonqAQ3tJPvrBlraZX4GKeb4kqHhoFKkblGVUAwrHVj9BoLxHAxe ZzFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:dkim-signature; bh=Ub312HHl21r8z1oc98BYt4Fn8HPqytH8EZdIXqZVs9o=; fh=UexzAyO2q4tnyZqrDvWt+Dg0HsA1dlt7CRtAva/Lvoc=; b=gumEUpt+5YqXi8eYJ+Hf3NJvpr/QN/Fr3po6YoRNRagj3289Z/gw3gJGjfDJc3uHfW CQgD8JXDg1ZPmvznpZf7PTD9QPKxsSdXPaZ7XFHdlwSj1zUf05THM/oJi6lqsEkCYsa9 Eps0xTipDgUOVgupVb4CFr/N6yusOvtknsZJnND6xBe7PBBBTm1+T8Qab89BJ+H32a8P xGaTNH/1utvV/LBpXQtr38mxqQYwBkte9GE6DUHIwXLgha3LPThrYXmj2JW5uB5LS8wD mQy65ezM0KAW6fJs0PUi1PcKFdiAYZL58suQ8rFWLlD5LE5I3rIdndjbvz1o6Ka3N0eI B3pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=p4wEScDM; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-5228-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hr19-20020a1709073f9300b00a474d24d9easi1965180ejc.825.2024.03.25.11.24.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 11:24:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5228-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=p4wEScDM; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-5228-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CF3571FA0E51 for ; Mon, 25 Mar 2024 18:13:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1901076026; Mon, 25 Mar 2024 17:43:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="p4wEScDM" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64D863DABE0 for ; Mon, 25 Mar 2024 17:43:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711388617; cv=none; b=X1y8u1HwxSzYs9zZLZlDmUjVRC5bh9B9N9D55atptdnAhRKD7jMDWVNiR123yU4LjZXMy0aG3khPoc2Q0/TCwk9HSq11GrMc6++WwqcUye/uHoLoGr/KVMCgAPB8ociaA6/4BbUyPalmT77KQxkYL1dByTx8n88Dzi9iAQNlsOo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711388617; c=relaxed/simple; bh=yTfuv/5U1USvPNDRyI74lL7kKbAtB7x7BfOXHyKYBNA=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References: Content-Type:MIME-Version; b=PwiqP10DCgjW/8dnFyHqwL8f2TS8D6AN7b6ZMd1jSDKBOgclK2uUzTrbeNlvfPSABIeKpf1pe0qVtnN/9AjI7v2ZWaLkLzkiyMW3QtEBhLQFPcRUyG3tjbqapjFNSXW6aFyaGAtfg+pFmPkSQLilmHvZHYCauqayqPh7aUBgquo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=p4wEScDM; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:To:From:Subject:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=Ub312HHl21r8z1oc98BYt4Fn8HPqytH8EZdIXqZVs9o=; t=1711388615; x=1712598215; b=p4wEScDMq1RbeJyovzw5v8eEh0vQVryCa9Tvqfi7vjQj9RB 8XUtW7anXXxOD1E4n1Y3XGv9WTp0xzGfe/DNVCGSf5qVVr3LT7oXKZauoxQvbirhcrNrWNx8Khkws CJQa4k2gVY3enD5TfXYNEUKdeB/lMnGuuTtdsuqUz3A53iGz2hHYRcmzjy7ekmVve0Lxir3TEIi4M RnlahazPnttlzTiIiF8VZ9SRURI45pEtxzcz73kbxAaRkHyDq9kbswJNSYoLp3MX08FH3xhrWyz8D +e+8/xNtqrdLcA5cZhQRHUYs8itfZ05RebwEZYEc356c5QVzR8/HD7m9EksaC2RQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rooM9-0000000Dzki-11ZH; Mon, 25 Mar 2024 18:43:33 +0100 Message-ID: <973efc2cb87812f512fd33f354a91da17e3d8564.camel@sipsolutions.net> Subject: Re: [PATCH] wifi: mac80211: Ensure links are cleaned up when driver fails. From: Johannes Berg To: Ben Greear , linux-wireless Date: Mon, 25 Mar 2024 18:43:32 +0100 In-Reply-To: <6bed94b3-4674-7fe9-ee82-bac7f9c7ffd6@candelatech.com> References: <20231111001023.1335122-1-greearb@candelatech.com> <5fe480c4-fa39-1d29-a5e9-ba2447b08dd2@candelatech.com> <449f6afbc20c57f704dbeabc3a8eac8fec676405.camel@sipsolutions.net> <6bed94b3-4674-7fe9-ee82-bac7f9c7ffd6@candelatech.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Mon, 2024-03-25 at 10:40 -0700, Ben Greear wrote: > 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. OK. It should get back to some legal state after recovery though? > In case where you > are trying to delete the station, this causes un-cleaned links which caus= ed crashes > back when I was creating this patch. My patch allows always cleaning up = the links > regardless of driver errors in the teardown paths. Seems potentially more like driver errors. Or perhaps we should just ignore driver errors entirely? > Always possible some intervening changes made this less of a problem, esp= ecially since > MLO is disabled for be200 in upstream code anyway now. Well that's just temporary, but we've also done a lot of work on FW error recovery, though likely unrelated to this particular issue. > I can remove the extra logging if you are otherwise OK with the approach > but don't want the logs. Well it'd be nice to actually see what crashed, and maybe it should really be driver fixes? I don't really understand why mac80211 would crash on failure of link removal. johannes