Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1974310rwd; Thu, 25 May 2023 23:01:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ49ZBa7T0F4Qz58mkA/d4Ci5mFgFZEcwk1FN56OmvBPhJiB2qCh5mlaPFGoAILnGto5M3Gs X-Received: by 2002:a17:90a:c6:b0:253:5c1b:104d with SMTP id v6-20020a17090a00c600b002535c1b104dmr1419216pjd.33.1685080915996; Thu, 25 May 2023 23:01:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685080915; cv=none; d=google.com; s=arc-20160816; b=g5gUI6IoCQ3Ul2flg1e2wzGfqp0vw4m7DgtkiBqvP9CUQ8uTPpeUvhE7d2LfjQHQLW bZyhDEXbQJhRP5uIV42PGAX1V9oyQvorOCA628829c/BoVQEHhLoYVwXYuIXWcJTFoxQ pEl3ZbfBsnA1UloD6PGJfb//jmJwJGGecEVR47lvB2H7V/qCTlDiWou8VkRRgbXKKu9g l6fPYAgI2m56r8mw9TAByvo3yZnR1aoPdobPb2CrgWjl1hlb42eWWHjRstQXCCkd12lG NnEQuHu000jXVrJssQ9b4OewjfWIFqqpBjvw1yago1C5UIWgj8/3Sxx3FMEMPBj/N7m5 maog== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :authorized-sender; bh=Y/ar9G8/hmADeadWIP5EdC89iBIGX9S3R1MXhiZQBuQ=; b=QFD+rzgcky9DtiZUZyQCkAQ2I5g3zJ0CK4pe8PeAICLWfw9Cx2/S11RM45q+Egu9bn Fk1VHyGjxVyR6+xKMhqI9Tm3gfrtsnRoblttT7+E9KD0vuLz7fcgBdq4DIOf+m9+vG/k 63yCGj8XdMLwLuxyZr2GpxwtDGnSMR/3TPpaWMzzbZ2/yeRPboxo8fFHgNCNFUxfT/tJ M6y50JAPRFGI++1zAhFdgkRqT5kxKfbdJ8P7bqhsGRUliCytmuvFTRi/NYLL2uTyUfcQ jhw1Glp6F0+h8oHQvq03K8MWAFtNXkW/aOcd5gulFgKt+hgDd/gOcNlZO5kHQIkJqqv9 LEiQ== 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 gp16-20020a17090adf1000b00250252e39besi3322636pjb.135.2023.05.25.23.01.43; Thu, 25 May 2023 23:01:55 -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 S230058AbjEZF4B (ORCPT + 63 others); Fri, 26 May 2023 01:56:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjEZF4A (ORCPT ); Fri, 26 May 2023 01:56:00 -0400 Received: from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net [195.74.38.228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FE1BE7 for ; Thu, 25 May 2023 22:55:58 -0700 (PDT) X-Halon-ID: f8928910-fb89-11ed-b7d6-cf458ee68324 Authorized-sender: petter@technux.se Received: from localhost.localdomain (user33.85-195-12.netatonce.net [85.195.12.33]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPSA id f8928910-fb89-11ed-b7d6-cf458ee68324; Fri, 26 May 2023 07:55:54 +0200 (CEST) From: Petter Mabacker To: s.hauer@pengutronix.de Cc: linux-wireless@vger.kernel.org, petter@technux.se, pkshih@realtek.com, tony0620emma@gmail.com Subject: Re: rtw88: rtw8822cu (LM842) -> failed to get tx report from firmware Date: Fri, 26 May 2023 07:55:51 +0200 Message-Id: <20230526055551.1823094-1-petter@technux.se> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230524104510.GV15436@pengutronix.de> References: <20230524104510.GV15436@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 >Hi Petter, >On Thu, Apr 06, 2023 at 10:41:20AM +0000, petter@technux.se wrote: >> Hi, >> >> I have seen a very similar issue as Andreas. It was found when streaming a mender file (using mender install from my arm device. But I have also managed to reproduce a similar issue by flooding the interface using iperf. >> >> on target: >> $ sudo iperf -s -u >> >> On host: >> $ iperf -c -u -b 200M -t 300 >> >> Then it will almost instantly get problems causing the lm842 dongle to stop working. >I could finally reproduce this problem by placing an access point close >enough to my device. Only then the incoming packet rate is high enough >that the "failed to get rx_queue, overflow" message triggers. >In my case the time it takes to print this message many times is enough >to confuse the device so that it finally responds with: >[ 126.449305] rtw_8822cu 1-1:1.2: failed to get tx report from firmware >[ 142.081419] rtw_8822cu 1-1:1.2: firmware failed to report density after scan >[ 175.929407] rtw_8822cu 1-1:1.2: firmware failed to report density after scan >I just sent a patch printing the message with dev_dbg_ratelimited >instead which fixes that problem for me, you're on Cc. >It likely won't fix Andreas' problem though, as I don't see this message >in his bug report. >Sascha Nice work. I have tested your patch v1 for the flooding at it solves my iperf issue. Also when you describe above, its the very same situation for me, I have been using a board that is very close to the access point, so this is likely why I could reproduce it quite easy. I have however finally manage to make some break-through about the original issue Andreas described, that so far has only been seen when running mender install. A similar behaviour is to download large amount of data combined with writing to the disk. So for me I can reproduce the issue on my i.MX6 SoloX (single cpu board) by doing. $ sudo dd if=/dev/urandom of=/path/to/bigfile bs=4M count=500 and in parallell download a large file such as: $ wget -O /dev/null http://speedtest.tele2.net/10GB.zip This will trigger the problem quite fast (within 5-15 min at least): [ 374.763424] rtw_8822cu 1-1.2:1.2: failed to get tx report from firmware [ 377.771790] rtw_8822cu 1-1.2:1.2: failed to send h2c command [ 407.813460] rtw_8822cu 1-1.2:1.2: firmware failed to report density after scan [ 414.965826] rtw_8822cu 1-1.2:1.2: failed to send h2c command [ 444.993462] rtw_8822cu 1-1.2:1.2: firmware failed to report density after scan [ 452.144551] rtw_8822cu 1-1.2:1.2: failed to send h2c command [ 482.183445] rtw_8822cu 1-1.2:1.2: firmware failed to report density after scan However one very interesting thing is that I can not reproduce this on a more powerful device, such as i.MX8 or RPi4 etc.. But when I tried this on another less powerful old single core device (BCM2835), I was able to reproduce it quite easily again.. So from my understanding it seems to be a bit related to how the driver behaves when the network queue/buffer etc are a bit stretch and the system occupied with high I/O and/or system load. By increasing buffer sizes and priorities for network queues, the system can handle it a bit better, but still enough stress of the system seems to trigger the driver to bail out completely.. Any suggestions or ideas around this is most welcome.. BR Petter >-- >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 |