From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C13E4C88CB2 for ; Mon, 12 Jun 2023 13:47:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235566AbjFLNrJ (ORCPT ); Mon, 12 Jun 2023 09:47:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235581AbjFLNrI (ORCPT ); Mon, 12 Jun 2023 09:47:08 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD8771708 for ; Mon, 12 Jun 2023 06:47:03 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q8hso-0006i7-EA; Mon, 12 Jun 2023 15:46:58 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1q8hsl-0008Tn-Ja; Mon, 12 Jun 2023 15:46:55 +0200 Date: Mon, 12 Jun 2023 15:46:55 +0200 From: Sascha Hauer To: petter@technux.se Cc: pkshih@realtek.com, linux-wireless@vger.kernel.org, Larry.Finger@lwfinger.net, andreas@fatal.se, iam@valdikss.org.ru, kernel@pengutronix.de, kvalo@kernel.org, linux@ulli-kroll.de, petter.mabacker@esab.se Subject: Re: rtw8822cu (LM842) stalls when running HW offload scan Message-ID: <20230612134655.GD18491@pengutronix.de> References: <20230612133023.321060-1-petter@technux.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230612133023.321060-1-petter@technux.se> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-wireless@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, Jun 12, 2023 at 03:30:23PM +0200, petter@technux.se wrote: > Some time ago https://bugzilla.kernel.org/show_bug.cgi?id=217034 was > created. From the beginning it was just about some error printouts. > Then Andreas (who created the bug report) mentioned that it seems to > work worse after bumping the firmware to > 9.9.10. After some fixes > from Sascha the error printouts dissappeared. But when I also started > to run this using firmware > 9.9.10 I also got problems. On my i.MX8 > and RPi4 board it works fine, but on some of my less powerful boards > such as and older RPi and my i.MX6 SoloX board, it always fails using > 9.9.10 firmware. After some digging in the git log, I discovered > that HW scan offload was introduced in a later firmware. So when I > disable HW offload scan it seems to work again on all my boards. But > still I want to understand why the HW offload scan don't work for > me. Could it be that the number of CPU cores makes the difference? Can you try with maxcpus=1 on your boards with more than one CPU? I have a i.MX6s board here that I can use to try to reproduce your problem in the meantime. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |