Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2068575rwo; Thu, 3 Aug 2023 04:22:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlE833AJT7VTcjglgcSWZi3aXUCr3BTNmv4iIoNya/NFAC0AcYozUPFHPA5Ki0y9JnnK//SY X-Received: by 2002:a17:906:7382:b0:99b:f08d:a399 with SMTP id f2-20020a170906738200b0099bf08da399mr6899750ejl.43.1691061744227; Thu, 03 Aug 2023 04:22:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691061744; cv=none; d=google.com; s=arc-20160816; b=U+SCfMvKpi62BYTjVQQQQ7RuZRkuMPlaB0Fl5hJgm2JPXJ3fu3+l8kQF+c9RBNNvvq Hfnc/Me2Xdr7K2Ys6fws54Cvrd6WT/N/yMolUMdlOZNH3Kp1ymDTtPpiv+OMYEDmU6Ao +HuOvQpj0tqBc/Hr0EHwq7uuNNUOAEOu0Ag4imtfpfew0Q5+B5K81X0b7jY6m+3Q4eDK DeYKWIk34XIiioKKy2C+PPxGOU4MZiLAoLT/1KZIjM4OJP3K+9MCri6rwYxcUls2y93S C5rWinLuptINjcDygpj4DfX3KUlp8k/uCO46a9xOJsS3TIZ1O+iQJf1/LyjV6gQnPuVs 97GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:authenticated-by; bh=M+Vl8JVoEUClZjz65XUW5csvz0Ii9RV1fGzxdKSloug=; fh=FMY1i7fAs9DEfDvCeycwSB192dPjLenfsErsqSgnTMU=; b=QnDn1WSPPEHEf+7bBdOhlDvwD/rWXqoflBbKGyHKop01oQ7PoJ+S13ZEWplPiAZCIh Nsi6dN5DwlSHFfTh4ixrEeLQNMafGpRZbhJeMfmQi53hJ6lqXdulORrV3XSsGnG3+QXb VjlM/YN0fGV9Ad2WFXbxmjx4EYylNOJ19DaJPyzCy4sT5hfgbLmf5vsLeuJeMB7dK0mb wtaAK+wF5jbmGs0L3ad/BZd5mihIit3k9wwyF3teVNZcuYxgp2JkvcEKpcXHuLlmQnXe junmHiaSg9QfWrYZsV/j0yLd0+oSAmcnjwrSl5GNaU1KF/rOxnwgDajPMOuCTPSrkF2z PuYA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a1709067e0a00b0099bd5a1b111si11482473ejr.411.2023.08.03.04.22.01; Thu, 03 Aug 2023 04:22:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234787AbjHCLCn (ORCPT + 58 others); Thu, 3 Aug 2023 07:02:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235374AbjHCLCd (ORCPT ); Thu, 3 Aug 2023 07:02:33 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 026E630DB for ; Thu, 3 Aug 2023 04:02:31 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 373B260u8003583, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 373B260u8003583 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Thu, 3 Aug 2023 19:02:06 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Thu, 3 Aug 2023 19:02:15 +0800 Received: from [127.0.1.1] (172.16.16.139) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 3 Aug 2023 19:02:15 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH] wifi: rtw89: 8852b: rfk: fine tune IQK parameters to improve performance on 2GHz band Date: Thu, 3 Aug 2023 19:01:50 +0800 Message-ID: <20230803110150.8457-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.16.16.139] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 A few samples get bad performance on 2GHz band, so use proper IQK command code and select another group to have wider range of calibration value. Fixes: f2abe804e823 ("wifi: rtw89: 8852b: rfk: add IQK") Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/rtw8852b_rfk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw89/rtw8852b_rfk.c b/drivers/net/wireless/realtek/rtw89/rtw8852b_rfk.c index fa018e1f499b..259df67836a0 100644 --- a/drivers/net/wireless/realtek/rtw89/rtw8852b_rfk.c +++ b/drivers/net/wireless/realtek/rtw89/rtw8852b_rfk.c @@ -846,7 +846,7 @@ static bool _iqk_one_shot(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, case ID_NBTXK: rtw89_phy_write32_mask(rtwdev, R_P0_RFCTM, B_P0_RFCTM_EN, 0x0); rtw89_phy_write32_mask(rtwdev, R_IQK_DIF4, B_IQK_DIF4_TXT, 0x011); - iqk_cmd = 0x308 | (1 << (4 + path)); + iqk_cmd = 0x408 | (1 << (4 + path)); break; case ID_NBRXK: rtw89_phy_write32_mask(rtwdev, R_P0_RFCTM, B_P0_RFCTM_EN, 0x1); @@ -1078,7 +1078,7 @@ static bool _iqk_nbtxk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, u8 { struct rtw89_iqk_info *iqk_info = &rtwdev->iqk; bool kfail; - u8 gp = 0x3; + u8 gp = 0x2; switch (iqk_info->iqk_band[path]) { case RTW89_BAND_2G: -- 2.25.1