Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp132932rdb; Mon, 15 Jan 2024 15:15:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoogn/U4Qhd8IY4YnAFmm2MuESClcTt6J2w3MhVGvNwJzD/VliS5iwH9xtUwEQlQpjTYJr X-Received: by 2002:a05:6a00:1901:b0:6d9:c83a:b6bf with SMTP id y1-20020a056a00190100b006d9c83ab6bfmr7956832pfi.30.1705360516373; Mon, 15 Jan 2024 15:15:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705360516; cv=none; d=google.com; s=arc-20160816; b=Ud3QAMK5ftlE3aIjXezbGZ5usGAtznW1tHZt86tUXkIrxwSiPs/X5J+Hu2I1EAQJJo 6yJOhTKG/F3WT03Gr3lN5hJnWyHu/pl6xWB1i10Ucz+toYtyizlNy9+OZJP4UL1LwNwk pIsBHG6UYKwmrARByCzbSduNguWNyZ08UhfSK6Q5H+Ns/hySmiY6/+uHkya9G2y6LKNM AkDjMrEJrO2i6c10bdADclc7GygjyAisw7AoS4u2da6W1dG6ULpusCZUicdtQnbMM6Dl uNXIpaJo9wq7i6CgGgJLTEq5A0YzpGCdoiYsEM0I21BTpmaYD9lwDu39Z6yC50dVcVRs Rjgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature:dkim-filter; bh=zJKM+kb9R9wB3dd2Z2f9FeHtbTv9zTrXmuCsbNXD154=; fh=GHK8x9/Qn7rumlkcGvvmI0swH2POhUAXTWtLqkKlB0U=; b=kMGi2Ulo5UA8Y7KCxw5AdYqkmG9/YtOX/DNZZ/UYM14LRVgj8gggS3hKMYL/4nxzC0 LtLLwry38elX2fnnteNGvI1ItLoOflGUJeX0ZmO2HaAv6DyTus1wuu+POU3bhF+RSl0t vQ+cwgA9/1vbTq0ntYd5nkMOv7ypvyBD5v/i7GMsn+9uiokD0a6PqHU5RAFxLw5F4twY lu/uAfM109QJj6oK1MhO/8hcXs2R3Ul8Za+/09qAja/zMIJePWBKXjDhREZq3YGZ0Tlr Du3GdzafXOt6omHqx+t75X4BDct2/z8fJ67BTf+7QQ5em6PT6hb6jTfF/MIGeGkI6UNF TqnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=CFcr2Yc5; spf=pass (google.com: domain of linux-wireless+bounces-1947-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fb11-20020a056a002d8b00b006daea6887d7si9985213pfb.68.2024.01.15.15.15.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 15:15:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1947-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=CFcr2Yc5; spf=pass (google.com: domain of linux-wireless+bounces-1947-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C6B05283B62 for ; Mon, 15 Jan 2024 23:15:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B60D21B5BA; Mon, 15 Jan 2024 23:15:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=candelatech.com header.i=@candelatech.com header.b="CFcr2Yc5" X-Original-To: linux-wireless@vger.kernel.org Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3A831AADB for ; Mon, 15 Jan 2024 23:15:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=candelatech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=candelatech.com X-Virus-Scanned: Proofpoint Essentials engine Received: from mail3.candelatech.com (mail2.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 6AD5228007A; Mon, 15 Jan 2024 23:15:02 +0000 (UTC) Received: from [192.168.22.29] (unknown [50.225.254.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 5272613C2B0; Mon, 15 Jan 2024 15:15:00 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 5272613C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1705360500; bh=/tF+9lOWwxU9IAyf2N2jg73nzuINHo5WUqQTl7sVBEU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CFcr2Yc5GfovH0JCP+q3L06mCvjCCKfnvJt3YQnEoeLCPKgyyr2WHoIxAEG3XZDUn KF6W/woHs0JGtH0t1zHlt/9tMfzWdqR4teOEBC8scssIoRRZP1pnHh0nhIRpSAp40B 98gS27bWRYWU9PZA2jrjoDgPLaZVFQtWVmag6Yws= Message-ID: Date: Mon, 15 Jan 2024 15:14:59 -0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH 5/8] wifi: mac80211: disallow drivers with HT wider than HE Content-Language: en-MW To: Johannes Berg , Kalle Valo , Miri Korenblit Cc: linux-wireless@vger.kernel.org, Gregory Greenman References: <20240111161746.3978601-1-miriam.rachel.korenblit@intel.com> <20240111181514.da15fe3214d2.I4df51ad2f4c844615c168bf9bdb498925b3c77d4@changeid> <87wmsehf3d.fsf@kernel.org> <88ad7e8849f7b29826ddf922734997d73539b21d.camel@sipsolutions.net> From: Ben Greear Organization: Candela Technologies In-Reply-To: <88ad7e8849f7b29826ddf922734997d73539b21d.camel@sipsolutions.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MDID: 1705360503-6Un1MdyEga-o X-MDID-O: us5;ut7;1705360503;6Un1MdyEga-o;;6ed5a8f8c51578afd12669094ba34ba9 On 1/15/24 14:00, Johannes Berg wrote: > On Fri, 2024-01-12 at 11:58 -0800, Ben Greear wrote: >> >> I tried backporting this patch into my 6.7 tree. An mtk7915 radio system blows up badly >> in this case. Likely this is mt76 bug, but also...it used to work and the crash doesn't >> make it very obvious that the above code is to blame. > > Yeah, hence my comment about kernel developers hopefully being able to > figure it out :-) > >> mt7915e 0000:06:00.0: mt7915_register_device failed, ret: -22 >> mt7915e 0000:06:00.0: mt7915_pci_probe had error on try 3/3, ret: -22 > > Felix says this kind of retry logic doesn't exist upstream, maybe you > have some delta in your tree that's making it crash? > > Also, from what he says and looking at the code, it should register with > HE 40 MHz capability set whenever has_he==true, so also here, do you > have any non-upstream changes that could affect it? Yes, I do. Don't think I have anything that adjusts the 40Mhz, but possible. Anyway, I know how to fix/work around it now, so if it works for Felix then fine with me. I still think you should have a pr_err or warn_on_once though, since if that clause hits, at best case the radio suddenly became un-available. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com