Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp449134rdb; Mon, 15 Jan 2024 02:36:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHgcYLQL8M62zyjDEDSnei7dcK3oQ46tWzfDQtRnPzf7bkjdmHC6ogSY43wdm32pIvUDR5 X-Received: by 2002:ac8:7c52:0:b0:429:98a4:dedb with SMTP id o18-20020ac87c52000000b0042998a4dedbmr8002776qtv.97.1705314987403; Mon, 15 Jan 2024 02:36:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705314987; cv=none; d=google.com; s=arc-20160816; b=IK95zP31PAnNuIRgLzbKAhiqbFMjdKC1IHQH2DrnVdrAC54w2IgkX5zNOeVpprQs3I nB6giSD0senzy06o3M1O3NF7b6D3R/7Xx3KJhFXWGfOzYMsT7ohfO2gaoT6adAI1c/Ya 7KWA3gRNSmIYdW58EVCx7AAa+MIYxMpjCVXp1bMf9Qmg7FSLv/wkghuaQUQqgOZkfmFx qzw4tiBWSsTFo9+YUVSymIIlwWbfRqcQGnS3INnzkIEZ/V2itmsycHwXez5fvSNi1KOC aa/Bd2erT/vx6WAORCTUX/AfJwRLqzNeNWY/pEct4gddPm9gkvmBzN18S5DjJOWJwr5A siiA== ARC-Message-Signature: i=1; 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:cc :to:from:subject:message-id:dkim-signature; bh=0wa17+crlsPrpTtPM/bWsnoOfURri5ucSyKPwfWoNOA=; fh=6Xxlr1vuMuoPkbqg/tfqb5Lf+hheIpO/8HMpyXp3NZw=; b=FtOOwxQ6/ZE6dHNcFXjBnI7HOqxqgHF0XXRaGdYBItvDixtCR0EWki9VGolUkzq/ol p1Gi7F+4s++NWFqGzRgKx1IBzGlcx1JYAXk4aE89eSvifm0N829/6Js0VfG97bb9ph0q ZHvAurYekr7aN2N8uxJ/oOYC3SgidxWYz9mmoZx7ckfeSFB4jzS0xjk6ZVJn0inGXk2f C3YggvjJyHf/QnfGkipoqb3GA6nMRKo5aS9NnC5SUpG/BiHyHDZ30IQc1Woo/Jr3tVmS haa8K6vo+ZejKCQEibt1m9A26TJ2ftAunrl+yRFafu9q9Kgj8U1JVaB7VSKu0vsEveef 1cCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=UBbpDjlw; spf=pass (google.com: domain of linux-wireless+bounces-1919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1919-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t28-20020a05622a181c00b00429c82ec1cdsi7475332qtc.228.2024.01.15.02.36.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 02:36:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=UBbpDjlw; spf=pass (google.com: domain of linux-wireless+bounces-1919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1919-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 295381C2184C for ; Mon, 15 Jan 2024 10:36:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE3F5101EC; Mon, 15 Jan 2024 10:36:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="UBbpDjlw" 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 3DD0B2C699 for ; Mon, 15 Jan 2024 10:36:15 +0000 (UTC) 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:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=0wa17+crlsPrpTtPM/bWsnoOfURri5ucSyKPwfWoNOA=; t=1705314975; x=1706524575; b=UBbpDjlwD9f2Q43pSB5jUir57LlS3TJVln85MbOuUlZkJlT d4cpid+PVnLeAokrh2mV1Y9lrO5PkCoz/vhWVKGZnn4vollZ2Cn8UGtApesbWknt0qcNGUEAtMRfH BV6dMX28nTD22Cm3PM5Fz9aNwo9fbCCDOEw8mO95wfoormV9Vh3Qj/cyMWXucTU4agwGFnoSMV3x+ F0P4/zHU/rfhCv1bJxAbZud9MIkDWqelCHynyzKMNwo272BFZT27iHBBn3I2HrpD4g7hA0DrPXQV0 /38IKCTSltaknX3aXPyAFfGJvyDd/8c97oR2w9ZtPLxeJ41cJffwZCNl2pX1ve4g==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rPKKC-00000003PIh-3HZv; Mon, 15 Jan 2024 11:36:12 +0100 Message-ID: Subject: Re: [PATCH] wifi: ath11k: rely on mac80211 debugfs handling for vif From: Benjamin Berg To: Kalle Valo Cc: linux-wireless@vger.kernel.org, lenb@kernel.org, ath11k@lists.infradead.org Date: Mon, 15 Jan 2024 11:36:11 +0100 In-Reply-To: <87a5pb9cxp.fsf@kernel.org> References: <20240111170629.1257217-1-benjamin@sipsolutions.net> <877ckfip1g.fsf@kernel.org> <87a5pb9cxp.fsf@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) 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 Fri, 2024-01-12 at 10:24 +0200, Kalle Valo wrote: > Kalle Valo writes: >=20 > > benjamin@sipsolutions.net=C2=A0writes: > >=20 > > > From: Benjamin Berg > > >=20 > > > mac80211 started to delete debugfs entries in certain cases, > > > causing a > > > conflict between ath11k also trying to delete them later on. Fix > > > this by > > > relying on mac80211 to delete the entries when appropriate and > > > adding > > > them from the vif_add_debugfs handler. > > >=20 > > > Fixes: 0a3d898ee9a8 ("wifi: mac80211: add/remove driver debugfs > > > entries as appropriate") > > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=3D218364 > > > Signed-off-by: Benjamin Berg > >=20 > > Adding ath11k list so that the whole team sees this. >=20 > Thanks, this patch passes my ath11k tests and I don't see crashes > anymore. But what about other drivers, can we trust that they don't > have > similar problems? I'm just wondering should we consider reverting the > mac80211 commit for the time being? Good question. I did have a look originally and I just went over all drivers (i.e. debugfs_remove calls). None of these seem to be vif related. As such, I would say we could just go ahead with this patch and leave in the fix. That said, we could also revert 0a3d898ee9a8 for now. I don't think that has any severe side effects other than a warning from debugfs reappearing again for iwlwifi. Benjamin