Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1581614rdb; Mon, 2 Oct 2023 14:21:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEx6npimAV/nbhGcIRpJY3DYjHFF0hUf3/JHtWL+NqpcqccTGu63GaLE6oqtNUnHI49yqtr X-Received: by 2002:a05:6a20:42a7:b0:13f:13cb:bc50 with SMTP id o39-20020a056a2042a700b0013f13cbbc50mr1217847pzj.25.1696281663271; Mon, 02 Oct 2023 14:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696281663; cv=none; d=google.com; s=arc-20160816; b=N0GGnC6yfKA/WLB+wyKwSFOSCR1d5sWf8mT6/jz3jBASDMYA6Bpb67NVwEAU+GzO9x 0Yemi1DRpBbJc4zldvP4YWrBoQUTxfNweGAwaRmfYOcVoOuj8lk7D3kd4dLzPPLRaAgz ybsnvpLR8RC8zZy+csTay6lkbOg5d4Xf19KQXT8OepwNp3FZBOEfKkFFngplhUrWWe0F HkN2Klgr0KlJXkhgTwg90oGWjmmwryfQxCcUM39/CWmjOX+gYUY3Gns8uN9BOMgksi1Z Dx2XM7omqf+Qap1Yu/LBtutP6iHUIR0LVSOsDpLHqWssdE9m375PBXT/wq5QOD4iKpXC 6YhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GepljF1EQTI9r70EH4tqi9RpNkoQyh/hyQxu9GZweVk=; fh=jBsDYaOG43lg4MyCYcC1BbsxPwrMo9FSC5aoRpxEZBk=; b=HK2E1A/2SQ/mjKpP24BzlvdA0VbSWJ28F4EI1E7dcib1g44nFah3BjVAklzaBTeCOz kTdNzV99UxZLeiofcn8phJ9KRgHc0fViiG2KmM8iDJzYZb6WOvUh34t5Fu2MEKuE8aH8 vglvUfaQBQ2R6VKlbbdxAl+UUuKrDlVSBNPpP0y+2aFkLUKHObISOOY5Re6XNL+bWqwU XaFv1JAXzPkPdAcELq9NmFdt34x9ZaRqkxAg5lh2FwrRMVvhwvtIjcR8f5TXbilqu7ib Ny0SQiweQOyKDXWIpEIVaT9FhJ5zWkLab+9MfZV3pxfBJUchjr6ODzdjUM+Xhx9W/bbW o99Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=IWGGnhxf; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z16-20020a656650000000b0056a1ea34f45si26464059pgv.670.2023.10.02.14.21.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 14:21:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=IWGGnhxf; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id EE514806C368; Mon, 2 Oct 2023 11:51:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238843AbjJBSvB (ORCPT + 53 others); Mon, 2 Oct 2023 14:51:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbjJBSvA (ORCPT ); Mon, 2 Oct 2023 14:51:00 -0400 Received: from mx4.wp.pl (mx4.wp.pl [212.77.101.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE253AB for ; Mon, 2 Oct 2023 11:50:56 -0700 (PDT) Received: (wp-smtpd smtp.wp.pl 42026 invoked from network); 2 Oct 2023 20:50:54 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1696272654; bh=GepljF1EQTI9r70EH4tqi9RpNkoQyh/hyQxu9GZweVk=; h=From:To:Cc:Subject; b=IWGGnhxfjpYf6rC2AzOjOIHwe/vB1LOrIcefmkfFh25VqtFS5EqdYTiKGun2Fim6t rTPdESj/5rszSFz5/JDkHBVs0QDnjJSN+F+QucwuMfLkcDqws+Zccvr28B811SM+SV IKXeZi6JJC6kq7HQCU6AgaNDi7yYEwQz4EmcmTsc= Received: from 89-64-13-175.dynamic.chello.pl (HELO localhost) (stf_xl@wp.pl@[89.64.13.175]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 2 Oct 2023 20:50:54 +0200 Date: Mon, 2 Oct 2023 20:50:53 +0200 From: Stanislaw Gruszka To: Bagas Sanjaya Cc: enc0der , Linux Regressions , Linux Kernel Mailing List , Linux Wireless Subject: Re: rt8000usb driver issue (maybe interaction with other drivers) Message-ID: <20231002185053.GB402943@wp.pl> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-WP-MailID: 5ca95ff5381d87fae914a0949b3625fa X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [IWPl] X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 02 Oct 2023 11:51:01 -0700 (PDT) (cc list is too big, I shrink it) On Sun, Oct 01, 2023 at 12:12:02PM +0700, Bagas Sanjaya wrote: > On Sat, Sep 30, 2023 at 06:04:22PM -0400, enc0der wrote: > > Hello all! > > > > This is the first time I have ever reported anything linux related, so > > if this is not the proper way, please let me know what the correct way > > is. > > > > I am using an NVIDIA Jetson Orin Nano developer platform. They > > release what they call a jetpack that comes with linux and their > > additions on top. We are using the latest version they release (just > > released about a month ago) > > Something like a distro? What version? > > > > > When I plug in a USB WiFi adapter that uses the rt8000usb driver, if I > > connect to a network it sees, I get a kernel panic. If I have > > "automatically connect" it kernel panics when I plug the USB in. > > > > The version of the kernel they ship is: > > > > 5.10.120-tegra. (tegra is their additions) > > > > I talked with NVIDIA first on what I was seeing and after looking at > > my log, they said it is likely a driver problem. Is possible that this is rt2800usb or usb host driver issue. But without full logs we can not be sure. > > Right after I plug in the device, this is the sequence of messages I see: > > > > [ 264.400281] BUG: scheduling while atomic: NetworkManager/622/0x00000203 After that message there should be stack trace visible. To debug this you would need to find a way to see the full logs (dmesg/kmsg) after the crash. It can be serial console, netconsole, pstore or some other thing. Perhaps your platform allow to boot debug kernel with various check, which will not panic when the bug occures and will show useful info in the logs. > > [ 28.071586] lr : arm_smmu_dma_sync+0x40/0x70 > > [ 28.075965] sp : ffff8000100231a0 > > [ 28.079365] x29: 0000000000001000 x28: ffff4655c01d0ec0 > > [ 28.084817] x27: ffffaced1f227000 x26: ffff4655c6ee32c0 > > [ 28.090270] x25: 0000000000000000 x24: ffffaced1e405858 > > [ 28.095718] x23: ffff46572e84ae00 x22: ffff4655c6ee2c40 > > [ 28.101165] x21: ffff4655c82c3480 x20: ffffaced1db49e08 > > [ 28.106618] x19: ffff8000100231c0 x18: 0000000000010101 > > [ 28.112073] x17: 0000000000cccccc x16: ffffaced1d23382c > > [ 28.117520] x15: 0000000000000000 x14: 0000000000000000 > > [ 28.122970] x13: 0000000000000001 x12: 0000000000000000 > > [ 28.128421] x11: 0000000000000008 x10: 0000000000000ab0 > > [ 28.133863] x9 : ffff800010023180 x8 : ffff4655c6ee3750 > > [ 28.139309] x7 : 000000067eb29c20 x6 : 0000000000000238 > > [ 28.144763] x5 : 00000000410fd420 x4 : 0000000000f0000f > > [ 28.150214] x3 : 0000000000001000 x2 : ffff4655c82c3480 > > [ 28.155658] x1 : ffffaced1db49e08 x0 : ffff465704c37558 > > [ 28.161107] Call trace: > > [ 28.163620] 0x1000 > > [ 28.165777] Code: bad PC value > > [ 28.168911] ---[ end trace 62dc42c98ec427ca ]--- > > [ 28.183964] Kernel panic - not syncing: Oops: Fatal exception > > [ 28.189864] SMP: stopping secondary CPUs > > [ 29.275883] SMP: failed to stop secondary CPUs 0-5 > > [ 29.280811] Kernel Offset: 0x2ced0d200000 from 0xffff800010000000 This actually suggest that the issue is somewhere in the core. But again, without full logs we can not be sure. > > [ 29.287066] PHYS_OFFSET: 0xffffb9ab40000000 > > [ 29.291360] CPU features: 0x08040006,4a80aa38 > > [ 29.295832] Memory Limit: none > > [ 29.309234] ---[ end Kernel panic - not syncing: Oops: Fatal exception ]--- > > > > (This one I believe when I started with the wifi adapter connected to > > USB3 and networking was set to automatically connect. > > > > I see in the git repo that these drivers have been changed over the > > last few years. Given the age of the kernel that NVIDIA is using, I > > am not sure how to correlate changes listed in the history of the > > files with the release. I guess I could download and diff them until > > I figure out where. The rt2800 driver wasn't modified for ages. It's rater stable, but perhaps there are issues in other involved modules i.e. mac80211. Regards Stanislaw