Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5709873rwl; Thu, 29 Dec 2022 01:27:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXvuGbqfhhkeCdbSUj8BHES7XYmIWNWGQ7X5gDOWkhpnRDYPaeWBJKBYDJ6q8hmG/py0t0c0 X-Received: by 2002:a17:902:ba93:b0:191:2c85:189f with SMTP id k19-20020a170902ba9300b001912c85189fmr28164430pls.69.1672306036281; Thu, 29 Dec 2022 01:27:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672306036; cv=none; d=google.com; s=arc-20160816; b=PmDgLpBashkK3XCxAXLy+gjlN3gAqvmTEiUMYv/3l8CuOysiCYbsyex669hGcQNXr7 rwbzxPU6nXkeV5O2xV0zP7oKQBzAVY6GK8GclF4cyCaiFumeBEngsOyWcB14X1Pt2uEW ThUwmyD9QXBh/wb4pEbfFef9k3a7wNU0AhzKLgLVu8B/8cApyxdu2UAv8ZamEEMTkb4S NJXwofxqGDkpzL47BGCaDaw32z0ChcKsH9Dw4Gm/yFv0QMsVFPz/+eEA71Wz1ta5Y2c1 er2jDeYEvVjGGAaVp4xZP7209JMaDpOUHqQ3y+DX9Ec/gPSK3hcH/Pyj+CdiJJH0LwJH no5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=2dcG7WK+15blDxW4d94Oo4OG2xQETxdAROThXRyC7Qk=; b=ztCFpI/gwIOslBRSXVV8slZFk/Q+B8F3pQ6znF25WXB/Ej4HF4E+ct0OP0+i6SkGLQ Bbf4vTrWoGTkpnTLUwz8G57N9nYjUsYIlAcTPPwqApK5Qt9tXCKf/MKoX64H0ItPF/41 b7nec829jJB7uXB7Iplc9Hxy2E7rLlTimURQ1IOgRIbCJ11jff+KUT2Yxf5KV4LahW66 gSwIRWcKobtCSpF51hmpMhIEBUy8Z5o7aGOLweLY/foaz/0a0vQTza7h3hAdmJei95KK WPKoLt6fFL8LwWANQMqnQkgpw00XewKTJRPnXeUUfCSVD6rkwdrwKj8qWqidtPQV9YFa BhKQ== 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 j12-20020a170903028c00b001888f93dc55si9200340plr.519.2022.12.29.01.27.08; Thu, 29 Dec 2022 01:27:16 -0800 (PST) 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 S233116AbiL2J1H convert rfc822-to-8bit (ORCPT + 67 others); Thu, 29 Dec 2022 04:27:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230416AbiL2J1G (ORCPT ); Thu, 29 Dec 2022 04:27:06 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 479AE2EE; Thu, 29 Dec 2022 01:27:05 -0800 (PST) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 2BT9Pt6iA029915, 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 2BT9Pt6iA029915 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Thu, 29 Dec 2022 17:25:55 +0800 Received: from RTEXMBS02.realtek.com.tw (172.21.6.95) 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, 29 Dec 2022 17:26:49 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS02.realtek.com.tw (172.21.6.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 29 Dec 2022 17:26:49 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::15b5:fc4b:72f3:424b]) by RTEXMBS04.realtek.com.tw ([fe80::15b5:fc4b:72f3:424b%5]) with mapi id 15.01.2375.007; Thu, 29 Dec 2022 17:26:49 +0800 From: Ping-Ke Shih To: Martin Blumenstingl , "linux-wireless@vger.kernel.org" CC: "tony0620emma@gmail.com" , "kvalo@kernel.org" , "tehuang@realtek.com" , "s.hauer@pengutronix.de" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 0/4] rtw88: Four fixes found while working on SDIO support Thread-Topic: [PATCH 0/4] rtw88: Four fixes found while working on SDIO support Thread-Index: AQHZGsFtyqvVdb8Ir06VvN9lkSQirK6EmVQw Date: Thu, 29 Dec 2022 09:26:49 +0000 Message-ID: <84e2f2289e964834b1eaf60d4f9f5255@realtek.com> References: <20221228133547.633797-1-martin.blumenstingl@googlemail.com> In-Reply-To: <20221228133547.633797-1-martin.blumenstingl@googlemail.com> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS02.realtek.com.tw, 9 x-kse-attachmentfiltering-interceptor-info: no applicable attachment filtering rules found x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: =?us-ascii?Q?Clean,_bases:_2022/12/29_=3F=3F_07:25:00?= x-kse-bulkmessagesfiltering-scan-result: protection disabled Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 > -----Original Message----- > From: Martin Blumenstingl > Sent: Wednesday, December 28, 2022 9:36 PM > To: linux-wireless@vger.kernel.org > Cc: tony0620emma@gmail.com; kvalo@kernel.org; Ping-Ke Shih ; tehuang@realtek.com; > s.hauer@pengutronix.de; netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Martin Blumenstingl > > Subject: [PATCH 0/4] rtw88: Four fixes found while working on SDIO support > > This series consists of three patches which are fixing existing > behavior (meaning: it either affects PCIe or USB or both) in the rtw88 > driver. > > The first change adds the packed attribute to the eFuse structs. This > was spotted by Ping-Ke while reviewing the SDIO support patches from > [0]. > > The remaining three changes relate to locking (barrier hold) problems. > We previously had discussed patches for this for SDIO support, but the > problem never ocurred while testing USB cards. It turns out that these > are still needed and I think that they also fix the same problems for > USB users (it's not clear how often it happens there though). > > The issue fixed by the second and third patches have been spotted by a > user who tested rtw88 SDIO support. Everything is working fine for him > but there are warnings [1] and [2] in the kernel log stating "Voluntary > context switch within RCU read-side critical section!". > > The solution in the third and fourth patch was actually suggested by > Ping-Ke in [3]. Thanks again! > > > [0] https://lore.kernel.org/linux-wireless/695c976e02ed44a2b2345a3ceb226fc4@realtek.com/ > [1] https://github.com/LibreELEC/LibreELEC.tv/pull/7301#issuecomment-1366421445 > [2] https://github.com/LibreELEC/LibreELEC.tv/pull/7301#issuecomment-1366610249 > [3] https://lore.kernel.org/lkml/e0aa1ba4336ab130712e1fcb425e6fd0adca4145.camel@realtek.com/ > > > Martin Blumenstingl (4): > rtw88: Add packed attribute to the eFuse structs I think this patch depends on another patchset or oppositely. Please point that out for reviewers. > rtw88: Configure the registers from rtw_bf_assoc() outside the RCU > lock > rtw88: Use rtw_iterate_vifs() for rtw_vif_watch_dog_iter() > rtw88: Use non-atomic rtw_iterate_stas() in rtw_ra_mask_info_update() > > drivers/net/wireless/realtek/rtw88/bf.c | 13 ++++++------ > drivers/net/wireless/realtek/rtw88/mac80211.c | 4 +++- > drivers/net/wireless/realtek/rtw88/main.c | 6 ++++-- > drivers/net/wireless/realtek/rtw88/main.h | 6 +++--- > drivers/net/wireless/realtek/rtw88/rtw8723d.h | 6 +++--- > drivers/net/wireless/realtek/rtw88/rtw8821c.h | 20 +++++++++---------- > drivers/net/wireless/realtek/rtw88/rtw8822b.h | 20 +++++++++---------- > drivers/net/wireless/realtek/rtw88/rtw8822c.h | 20 +++++++++---------- > 8 files changed, 50 insertions(+), 45 deletions(-) > > -- > 2.39.0