Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1460691rdb; Mon, 2 Oct 2023 10:06:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcS+cTxwQLzMTvgiP5ZZbtF10AluHHmemhOnmC7SuN7jV/s6OWOSgnjlCzVVWLcrLfiCw2 X-Received: by 2002:a05:6a20:8426:b0:163:5bfd:ae5b with SMTP id c38-20020a056a20842600b001635bfdae5bmr10706031pzd.15.1696266373779; Mon, 02 Oct 2023 10:06:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696266373; cv=none; d=google.com; s=arc-20160816; b=LH2hILtpTyDgnEOlVAnnU+GT+oIzhqPxUO5g+Nfj06w9d2reAPmwk7nQY6opTiXo8i qEXoAZ7rVCJj+7+mVwmkjq3gVWVH9Cj/HQsPI+rL5tssYmsqA3PY+kfgfHX+sQOh21zr K3CmuJRHCIQEVrMqt59Iujo2cLwrBEWtRAKC43kXD1gkufeQALOd8mHHfF1rftWyKv1X +A9enZMroc8Yd2ZF5asZ9QUYxlf0aTJBGVQ8rfoiXOfSF/+ndsO6JRurflVy5IwO2Ux+ IM5nIrqIWjtyNvB/L+WxVlirWigHWc1CgtkU24yhk1QLmUNQq06J2OM2CYMPm/1IslzU vlww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=N6TMO410kt59IA65gbT6DNKiSHTrmJWrOXH6++ariZY=; fh=X02GaSdWdepDW6pYbPPVjDpbeTH/fDIGeUYyIyuOihQ=; b=hxikBj77MpwvTX5ytGDjGo0tDVi7qI0MCeC2gabzbvcCohg0tQXJwev9Xx1iSMZLhW j01VxCLcJtCj2aMEXObZpCaj5tphf114YhdvFLribPzg7bD4lpfhK6paJn2m+OafrBHt AhyLELDgVk1bSInfn07gvOqh3vq9Xyi2434++fqDLULivfAzsXll26de1WQcBoyEAN2v cnxyBz8sY+ovo97o/1zPwf++jTha+VV1QidYtndr6o+QSSPu4uJkrMIqkiUdAO3DLLjR U1R0Chwx0C6b7Obc71R2mMxOQKheR0FJN2bfrywERWf75HLefrXiCPe5xOqE0tnAuRym skQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hFf9DP4T; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id z35-20020a056a001da300b00690f9e835d8si26447007pfw.132.2023.10.02.10.06.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 10:06:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hFf9DP4T; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 86D198027975; Mon, 2 Oct 2023 09:53:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238543AbjJBQxw (ORCPT + 53 others); Mon, 2 Oct 2023 12:53:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238536AbjJBQxu (ORCPT ); Mon, 2 Oct 2023 12:53:50 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B86B8E1 for ; Mon, 2 Oct 2023 09:53:47 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1933EC433C8; Mon, 2 Oct 2023 16:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696265627; bh=oTuYt4RKTX5vllByYPk/pwJSTZDswhr00Q277HMhn70=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=hFf9DP4T4MLMSB0Z2Q2Wl1QtBGIGcckftF1zzpfwVx5bLlx+W6MTaVN1+FKwoka5g AQnfy1+M99FqKxmxzOKXWk53iohWqEl//EbRXQZwr+YhPMWvMZCHSHewcxX8rNt83Q EfSfLFPAzY/1ehQCbWeDJ9Q8+Kgjr7+sV4AB6V1Bfc10HmFY6pmc4G0Ybmze6YCnse UmffHpasUAgXUj4fDab3vjHJgo6KjXzywJD3MYqHWHJgfZjEeIqFb71iRAC+G+AVxi CbyeuKzO1V36mfv5y6d/bsyexhXXuD4bbb6CeI3P3C5YFwBxqpujS+M1Y5kVA72jYj mvfNEU+rls9qw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: ath12k: add keep backward compatibility of PHY mode to avoid firmware crash From: Kalle Valo In-Reply-To: <20230913105757.17744-1-quic_wgong@quicinc.com> References: <20230913105757.17744-1-quic_wgong@quicinc.com> To: Wen Gong Cc: , , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169626562397.3936351.5793272402512844617.kvalo@kernel.org> Date: Mon, 2 Oct 2023 16:53:45 +0000 (UTC) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 02 Oct 2023 09:53:51 -0700 (PDT) Wen Gong wrote: > In a special WCN7855 firmware release the EHT (IEEE 802.11be) support has > been disabled for size reduction. Currently ath12k always enables EHT PHY > mode during vdev start but with the special firmware that will cause a > firmware crash during vdev start in firmware initialisation. This is > because the firmware will use the EHT mode to allocate resources but as > the EHT mode is not available in the firmware, there's an internal > conflict and the firmware will crash. > > To fix the crash check the WMI_TLV_SERVICE_11BE flag to see if the firmware > supports EHT. If EHT is not supported downgrade the PHY mode to HE > (IEEE 802.11ax). > > This does not impact QCN9274, because WMI_SERVICE_11BE is always enabled > for QCN9274, then eht_cap->has_eht will always set for it, and the logic > of this patch will not take effect and the PHY mode will not down grade > for it. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Wen Gong > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 972754bfeec4 wifi: ath12k: add keep backward compatibility of PHY mode to avoid firmware crash -- https://patchwork.kernel.org/project/linux-wireless/patch/20230913105757.17744-1-quic_wgong@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches