Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1671097rwe; Fri, 2 Sep 2022 01:32:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ePdA02tqcghuhEQs752N67cms9n0J+e3/oN93ne7sOoVjiPPL0/VXt12xBYK0peKe8mOR X-Received: by 2002:aa7:cdc8:0:b0:447:f0cf:8de with SMTP id h8-20020aa7cdc8000000b00447f0cf08demr27509723edw.131.1662107573546; Fri, 02 Sep 2022 01:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662107573; cv=none; d=google.com; s=arc-20160816; b=gRU5SSk0lqo4Z+h5alQZJHDeMuAeWY6v9eFOln85hDTmEiEy+X8/h7Wa4iubXxCKf7 Zz71Y/hFo8DykKzU4TFc/fr5T44FlHw/rovr1OeuF3niNRH2v07D8OBqj6otTXw7V2b4 +G95trk6tuzAe5Q2HIad2IQMVD6WiLRAL0FyyoewH7MFscLq4T/jtk++m/HFi41k2VqL YKwl2FiNAlVqmapRd7eguVunaq4f5wlimu8mH9tvNvACxDGLQ8fVhUpk18jkRJpNI7Pc fJeoN8abVQhh7Oz7kSD1QPi4Q3vTLutcew6eCEoY6vdtVWeLUVjKJ9bYIdLseyRqqpaZ K2mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=jjmRTfcTS2o+o48HvvZf9mkW2n4cDnOYOdjflge0TZU=; b=XPwan2Xh63dOeBQOH8tjt84vb71VVc+k4vPCIqDeojhM4Ce+d4DV9e+f/KTEq7fLeM NAfdERfunmRwFOcsv/laEPnwer4vuGeQQzIxrDARWTUVMnIeIV/9ifN4mVestgZTMHw5 lsTujf+DyTqWgqepbc7rm8PBh9TENK2kY2GqHLSn51vRXp99hmMtHHax9H67MQBva7y8 EPJcE7ungXDAsFHvTLKAVENODy91rZbA4lSi4GFE/p5YbhORYpmgAJ6xaKdaJUTb9vO8 3CHjymN5WC8ykbSradVyBXOgi/0lR0iNRSFJe93bgluwxdfLJ0zbn2BRz8bCNEHgwsAY Z3zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Htf2F3H/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020a170906688b00b00715867834e3si1204585ejr.506.2022.09.02.01.32.37; Fri, 02 Sep 2022 01:32:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Htf2F3H/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234788AbiIBI2r (ORCPT + 64 others); Fri, 2 Sep 2022 04:28:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235675AbiIBI2f (ORCPT ); Fri, 2 Sep 2022 04:28:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAFF5C00FE for ; Fri, 2 Sep 2022 01:28:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 29F9C62111 for ; Fri, 2 Sep 2022 08:28:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5622C433C1; Fri, 2 Sep 2022 08:28:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662107310; bh=iyPl95zyt6Ik5pvFuXMmU1EYffOEtu6ZUJ6UFA6tESc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Htf2F3H/kUxee0QS6LvzHj5KSz1ylrZNeDZxTxLyMT73Gdv5UY9eRhVkoVBklFMVD YKPREZ9xTQR5DurBLMB1WMAU0zbHTpqLQr7VogBpyBkQlJQv9Gh1ZLOEeDAU66jUoS JdrM3oma7wOt5m9Mk7NaVWUGnXThcmJUbhRE/zCi8tlGQSB7j493mlI8hR6ESwWSvc X/LyrdrMizJ9blu7CNKEwMld1+ypDlcZpODw9bQkZNpmtotWFqYFSBCyf6T3sycDEq PN68WJKrLQ4o8RDSjnVVpUMfE1JraZDY8+hWcaG1A5JipBHkIOqj7HH4hryvhJKI6d 01DxASPBA7Kpg== From: Kalle Valo To: Ping-Ke Shih Cc: "linux-wireless\@vger.kernel.org" , "Kevin Yang" Subject: Re: [PATCH 13/13] rtw89: prohibit mac80211 chanctx ops without HW scan References: <20220617084954.61261-1-pkshih@realtek.com> <20220617084954.61261-14-pkshih@realtek.com> <877d5bprxn.fsf@kernel.org> <027f1de5f6ed0da21754c17154cc09411f2c5aa5.camel@realtek.com> <6f6682f8d8c7aec02d113330c87484cbcab14ff3.camel@realtek.com> Date: Fri, 02 Sep 2022 11:28:26 +0300 In-Reply-To: (Ping-Ke Shih's message of "Tue, 9 Aug 2022 11:00:12 +0000") Message-ID: <87ler2b2ol.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Ping-Ke Shih writes: >> > > So if the user has not update the firmware a kernel upgrade will break >> > > their internet? That's not good, we should not break existing setups. So >> > > what firmware version is required? >> > > >> > >> > Firmware version 0.13.35.0 is required. The firmware has been in >> > linux-firmware repository on 2022-02-18. I think people being able >> > to update kernel can update firmware as well. >> > >> > The alternative ways could be >> > 1. add a module parameter, like no_channel_context. We can add a >> > prompt to note people can set it to 1 for old firmware. >> > >> > 2. wait version of request_firmware() as first step of pci probe. >> > The probe could cost longer time, because currently we use >> > request_firmware_nowait() and continue to initialize in parallel. >> > More, hw->priv isn't allocated at that moment, so it could be not >> > so straightforward. >> > >> >> To prevent break users' existing setups, modified approach 1 is adopted >> by patchset v2. We add a module parameter rtw89_use_chanctx, and disable >> it by default. So, users' setups with old firmware can still work. >> >> If a user wants channel context to support concurrency, he can set >> rtw89_use_chanctx=1 and upgrade firmware. >> >> I think this could be a better user experience of kernel. >> > > We have a better idea that load firmware header and parse firmware > features when probing before ieee80211_register_hw(). If firmware > doesn't support hw_scan, it still can work as original. So, users > don't need to update firmware or set module parameters. > > I have sent v3 with this idea that is friendly to users. Sorry for the delay, I was not able to look at this in detail earlier. Indeed v3 is much better approach and actually what we prefer in upstream. iwlwifi, ath10k and ath11k do something similar. Forcing users to update the firmware or fiddling with module parameters when updating the kernel is bad from user's point of view. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches