Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp594005pxb; Thu, 15 Apr 2021 01:47:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU0pYGuO4yMNk5nfxzQQelaJo6hrWrlxhsu/+Qi4vx3LUL6CIS5A4y3gSIO3O7GfbxJ2Xf X-Received: by 2002:a05:6402:a4a:: with SMTP id bt10mr2755752edb.39.1618476476682; Thu, 15 Apr 2021 01:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618476476; cv=none; d=google.com; s=arc-20160816; b=ZfV8vy1MGD203luIIvplzoUtY+f08Ah40WiiMDP19iHEM9czaKdDBiE5D9PGO0ZRMZ CigLUyc1iF0S+7lNAh5SrAv59MJp5aFq0LC59c27VzsepPDc3vFKFz9pEw8Uyxj9054n 6wo5assp5oi7z4uy3/Id9VTL5U913p+g71Dv/8L9ojyxMzkvk3jxiSMKCUTcPoVFX+XF FSFwdiUHI4khxNhgoD1Tp5Eec+4vduS4fUCtGUmewm8Gghls3rvKtE9tjpISM+07tTzV c11hEIhrb4RapjdB8UTGqlJlZ7BTkY+Iq8sppTJL2J1Lg0zfGq1L+wug5DtBcbMyCh6V 5t5g== 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=hSwsJFAsuYAL6qfwrxAbWbHdGaroQk8JxS/33v0DSWQ=; b=jxFP521ZxeUN+ifwZmM3pNqrtenv0SVDEtLUbjoa+yPn2q3kGGNB84TQ0rtrbpiK6F DrF4Oal+pTwKt/o6NVKond2zO6/Zt2oV7bRxv89k51rURVZ+Py9vpmiY/Xio0p8Bfgr1 ol8uJp7Z7Zx4Pf0K4zNhL3HENmilm613SVKLR5WGWKLnmoSC4jUj+j6lcFRle7Vk91o0 2Td62C/0JBvLQ2nZtc8YSFX9cNlc08U7H2yYJ3HN5BE2TAx4UyItx+f8MEWWvL5L+mrp qrcvSsQJxVbGbNL4pkPSTUSvnaSfUwQ7ZZ87a382wh8VnKeifoc1ycPQ/UyytRIsj009 pHZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ba26si922448edb.105.2021.04.15.01.47.31; Thu, 15 Apr 2021 01:47:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231398AbhDOIrs (ORCPT + 99 others); Thu, 15 Apr 2021 04:47:48 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:52856 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231143AbhDOIrr (ORCPT ); Thu, 15 Apr 2021 04:47:47 -0400 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.73 with qID 13F8lGafD022663, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36502.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.71/5.88) with ESMTPS id 13F8lGafD022663 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 15 Apr 2021 16:47:16 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36502.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.2106.2; Thu, 15 Apr 2021 16:47:15 +0800 Received: from localhost (172.21.69.146) 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.2106.2; Thu, 15 Apr 2021 16:47:15 +0800 From: Ping-Ke Shih To: , CC: , , , , Subject: [PATCH 0/3] rtw88: fix some TX/RX bugs Date: Thu, 15 Apr 2021 16:47:00 +0800 Message-ID: <20210415084703.27255-1-pkshih@realtek.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.69.146] X-ClientProxiedBy: RTEXMBS03.realtek.com.tw (172.21.6.96) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5?B?Q2xlYW4sIGJhc2VzOiAyMDIxLzQvMTUgpFekyCAwNjowMDowMA==?= X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-AntiSpam-Outbound-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 04/15/2021 08:05:31 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 10 X-KSE-AntiSpam-Info: Lua profiles 163124 [Apr 15 2021] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: pkshih@realtek.com X-KSE-AntiSpam-Info: LuaCore: 442 442 b985cb57763b61d2a20abb585d5d4cc10c315b09 X-KSE-AntiSpam-Info: {Prob_from_in_msgid} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: realtek.com:7.1.1;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1 X-KSE-AntiSpam-Info: {Track_Chinese_Simplified, headers_charset} X-KSE-AntiSpam-Info: Rate: 10 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 04/15/2021 08:07:00 X-KSE-ServerInfo: RTEXH36502.realtek.com.tw, 9 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5?B?Q2xlYW4sIGJhc2VzOiAyMDIxLzQvMTUgpFekyCAwNzoxMDowMA==?= X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-AntiSpam-Outbound-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 04/15/2021 08:09:32 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 10 X-KSE-AntiSpam-Info: Lua profiles 163124 [Apr 15 2021] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: pkshih@realtek.com X-KSE-AntiSpam-Info: LuaCore: 442 442 b985cb57763b61d2a20abb585d5d4cc10c315b09 X-KSE-AntiSpam-Info: {Prob_from_in_msgid} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.199:7.1.2;realtek.com:7.1.1 X-KSE-AntiSpam-Info: {Track_Chinese_Simplified, headers_charset} X-KSE-AntiSpam-Info: Rate: 10 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 04/15/2021 08:12:00 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This patchset fix bugs happened during TX/RX performance test. First is 88221c doesn't set proper RX_FLAG_DECRYPTED. Second is to fix count of available TX queue, and then it can wake ieee80211 queue correctly; otherwise, it can't tx anymore. Third patch is to refine NAPI deinit flow to safely stop PCI; without this fix, system spin while it is going to down. Guo-Feng Fan (1): rtw88: 8821c: Don't set RX_FLAG_DECRYPTED if packet has no encryption Po-Hao Huang (1): rtw88: refine napi deinit flow Yu-Yen Ting (1): rtw88: Fix potential unrecoverable tx queue stop drivers/net/wireless/realtek/rtw88/pci.c | 29 ++++++++++++++----- drivers/net/wireless/realtek/rtw88/pci.h | 1 + drivers/net/wireless/realtek/rtw88/rtw8821c.c | 3 +- 3 files changed, 25 insertions(+), 8 deletions(-) -- 2.21.0