Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp733771rdb; Sun, 1 Oct 2023 03:16:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG0uHrWDGhYDI9H6A0bpn9rX0+chcfDGTk91Kexq9ca09nrNXz+iGtlxiVm1ZjG2vFSVea1 X-Received: by 2002:a05:6a20:8f01:b0:158:17e6:7a6 with SMTP id b1-20020a056a208f0100b0015817e607a6mr11723835pzk.42.1696155402071; Sun, 01 Oct 2023 03:16:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696155402; cv=none; d=google.com; s=arc-20160816; b=QxsAjyUVd2zB/woYolVmcnBiVUYiyO2kBtlfsmllBX4hYFMFtvLzJyJ2/wdvBw45z2 9dTs/AHIcNGeKbKDqWTzOwoWhd3n17c0TJprEnFd+3j6qYnNaA3RipBKzilvpQWQyilV vOWg0gTC4eKmCdqjhFkSS1Yb8pmQOy9EX9CEbxkraKR4aPnTQTWLK6++hy9gSr1tfs4q wctvfGyjicqDRMAS52bPhFFKS/uJGAfwsYg4s1sz0zJmVk7XL4PQKVqe8f12aJvlcHac Y2lP1lDixRWnbQglM8AFS5cp+TDAmE6HOUm53SGe/35bw2ZmcvWuZ0OW8SU1J1zsvDtb gF0w== 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=S4YUhySqj0LKSfhzqzSpnPiis7zCCeIWybzjnn9kJe4=; fh=F5qqbdxG3klBeWX0t7N4hzimTpzpAdfxx+fB7HJ5dr8=; b=fKQmWKnwAkJgr61HE4tHV+t7hlu+ts+XdvDvorS6EuQ4/b2D8n0MoLlXzkgNXmh7RQ Lr7VeqRwmaV4iFUt9PHu2WSQNhPePl9SkTa+N0swWJoRWcSkRaQMe3/XrFc6goLMcKN8 /7UJYXO/vOk2qpFKWa3X5HCXbwAR5H7IOKywglBfNm2GMSwIbZKSlMOMimc2Tfv17KxP xtYgobWmkV5YW+3VMdOD/YCIB/TYNSuLnEzbDHnnw4dsIyrDneeBM0KedgZziNu45QvR S/S2mV02Qki7xD13+J6PiMzFiji42fJU1Q97+uPfFuu5qipA2cCCTDU/q98znJhWdUh5 MGiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CuZvVkRn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id cd10-20020a056a00420a00b006875398611csi24308371pfb.80.2023.10.01.03.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 03:16:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CuZvVkRn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id BFEBD811547F; Sat, 30 Sep 2023 22:12:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232533AbjJAFMN (ORCPT + 99 others); Sun, 1 Oct 2023 01:12:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbjJAFML (ORCPT ); Sun, 1 Oct 2023 01:12:11 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EE82C2; Sat, 30 Sep 2023 22:12:09 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-584a761b301so6894261a12.3; Sat, 30 Sep 2023 22:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696137129; x=1696741929; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=S4YUhySqj0LKSfhzqzSpnPiis7zCCeIWybzjnn9kJe4=; b=CuZvVkRnK8BdLw6UpYg+uEnhju5vQlOUS25g2RKuXTbsf7yc+HQkGArIPiw61iWfWH osRQRY4c9cq5KMBQtQ+cU46ZMY92IVGm1IDlRJMYxv1wamaqkEdR3YmkERj5cABIFREC xAQ5urL/tvliW2GR2VaG7Q/TEjn7y3CWhKJwSKCKyc5uVT/aiNStGdQFMjOR4/XWULW+ hYcWIbppc/zJobVCOc1sC3/K3BTd9LpbCQQ1BZ3G+z2VXFGo0dZgrpj6XJMf53TQ7QUJ Iq11qBLvtI2159DD3U2WexWntIDV92Mk+IZCokRnESIWO3MGQt4DECRBlz4++ro6VBp9 kwNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696137129; x=1696741929; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=S4YUhySqj0LKSfhzqzSpnPiis7zCCeIWybzjnn9kJe4=; b=ah0RFDz/V16fbghRh7hZerx5n7+3+66Cz3kuYOMnXpAjobYbhVvin+9caaxd6zUnmQ 9pKYZCkVLGYV/o/0oxNTjLzK9Iev+mDp6VRkP4OxF8+wsWTdUusTB6Z4RSYTFg0dTzPl FYqY9S1uVeVdTZwAxfKn10lQZVyfnfHz5p1yll8v1wA9FiFEW2Njdyq6IpeNBsL6wfOT yPobjnh8n03jiPSzywH8v18zPHlw/8DVaLLeyzURBVBNmoKsCa4wQiYhUsXuAZ+KuAd7 mprr8KBHdzTwUa/WDyy6qU5AZOR/3FIGvpfXRiDpsqQsBCd3IWD1XhsVaZevWdt8z6tP qajA== X-Gm-Message-State: AOJu0Yx8ohXAdaf+niyxX4iaE9evHRR4k8ReP8MsBOw6b9/lDSsaJPWT erVa7FXzZrYUKfdVixMplDo= X-Received: by 2002:a05:6a20:4406:b0:153:dff0:c998 with SMTP id ce6-20020a056a20440600b00153dff0c998mr11017262pzb.6.1696137128430; Sat, 30 Sep 2023 22:12:08 -0700 (PDT) Received: from debian.me ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id s22-20020a62e716000000b0069023d80e63sm17251232pfh.25.2023.09.30.22.12.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 22:12:07 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id A0B608C4A20F; Sun, 1 Oct 2023 12:12:03 +0700 (WIB) Date: Sun, 1 Oct 2023 12:12:02 +0700 From: Bagas Sanjaya To: enc0der , Linux Regressions , Linux Kernel Mailing List , Linux Wireless , Linux Networking , Linux USB , Linux RCU Cc: Stanislaw Gruszka , Helmut Schaa , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hayes Wang , Simon Horman , Andre Przywara , Andrew Gaul , =?utf-8?B?QmrDuHJu?= Mork , "Paul E. McKenney" , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang Subject: Re: rt8000usb driver issue (maybe interaction with other drivers) Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zlCIcyjmXaMZlAlu" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 30 Sep 2023 22:12:53 -0700 (PDT) --zlCIcyjmXaMZlAlu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 30, 2023 at 06:04:22PM -0400, enc0der wrote: > Hello all! >=20 > 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. >=20 > 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? >=20 > 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. >=20 > The version of the kernel they ship is: >=20 > 5.10.120-tegra. (tegra is their additions) >=20 > I talked with NVIDIA first on what I was seeing and after looking at > my log, they said it is likely a driver problem. >=20 > Right after I plug in the device, this is the sequence of messages I see: >=20 > [ 264.400281] BUG: scheduling while atomic: NetworkManager/622/0x00000203 > [ 264.408778] BUG: scheduling while atomic: NetworkManager/622/0xfffffdff > [ 264.417178] BUG: scheduling while atomic: swapper/2/0/0x00000504 > [ 264.423685] bad: scheduling from the idle thread! >=20 > Then it panics >=20 > Sometimes it prints more, like: >=20 > [ 21.657382] BUG: scheduling while atomic: NetworkManager/630/0x00000203 > [ 21.664818] WARNING: CPU: 4 PID: 630 at > kernel/rcu/tree_plugin.h:297 rcu_note_context_switch+0x50/0x540 > [ 21.675028] ---[ end trace 62dc42c98ec427c8 ]--- > [ 21.679873] BUG: scheduling while atomic: NetworkManager/630/0x00000505 > [ 21.687591] WARNING: CPU: 4 PID: 0 at kernel/rcu/tree.c:624 > rcu_eqs_enter.isra.0+0x128/0x130 > [ 21.696512] ---[ end trace 62dc42c98ec427c9 ]--- >=20 > I've also seen this: >=20 > [ 27.885487] Unable to handle kernel paging request at virtual > address 0000000000001000 > [ 27.893656] Mem abort info: > [ 27.896524] ESR =3D 0x86000004 > [ 27.899664] EC =3D 0x21: IABT (current EL), IL =3D 32 bits > [ 27.905124] SET =3D 0, FnV =3D 0 > [ 27.908257] EA =3D 0, S1PTW =3D 0 > [ 27.911480] user pgtable: 4k pages, 48-bit VAs, pgdp=3D00000001110cb000 > [ 27.918090] [0000000000001000] pgd=3D0000000000000000, p4d=3D000000000= 0000000 > [ 27.925066] Internal error: Oops: 86000004 [#1] PREEMPT SMP > [ 27.930794] Modules linked in: mtd_blkdevs(E) mtd(E) lzo_rle(E) > lzo_compress(E) zram(E) ramoops(E) reed_solomon(E) bnep(E) loop(E) > rt2800usb(E) rt2x00usb(E) rt2800lib(E) rt2x00lib(E) aes_ce_blk(E) > rtl8822ce(E) mac80211(E) crypto_simd(E) cryptd(E) rtk_btusb(E) > snd_soc_tegra186_asrc(E) input_leds(E) snd_soc_tegra186_dspk(E) > snd_soc_tegra210_ope(E) aes_ce_cipher(E) snd_soc_tegra186_arad(E) > snd_soc_tegra210_iqc(E) ghash_ce(E) btusb(E) snd_soc_tegra210_mvc(E) > snd_soc_tegra210_afc(E) sha2_ce(E) btrtl(E) snd_soc_tegra210_amx(E) > snd_soc_tegra210_dmic(E) snd_soc_tegra210_adx(E) r8168(E) > snd_soc_tegra210_adsp(E) snd_soc_tegra210_admaif(E) sha256_arm64(E) > btbcm(E) snd_soc_tegra210_mixer(E) snd_soc_tegra210_sfc(E) > snd_soc_tegra210_i2s(E) cfg80211(E) snd_soc_tegra_machine_driver(E) > snd_soc_tegra_pcm(E) sha1_ce(E) btintel(E) snd_hda_codec_hdmi(E) > snd_soc_tegra_utils(E) snd_hda_tegra(E) snd_soc_simple_card_utils(E) > snd_soc_spdif_tx(E) nvadsp(E) snd_soc_tegra210_ahub(E) > snd_hda_codec(E) userspace_alert(E) > [ 27.930905] snd_hda_core(E) tegra_bpmp_thermal(E) nv_imx219(E) > spi_tegra114(E) tegra210_adma(E) nvidia(OE) binfmt_misc(E) ina3221(E) > pwm_fan(E) nvgpu(E) nvmap(E) ip_tables(E) x_tables(E) [last unloaded: > mtdblock] > [ 28.042400] CPU: 4 PID: 630 Comm: NetworkManager Tainted: G > W OE 5.10.120-tegra #1 Out-of-tree modules, right? > [ 28.051233] Hardware name: Unknown NVIDIA Orin Nano Developer > Kit/NVIDIA Orin Nano Developer Kit, BIOS 4.1-33958178 08/01/2023 > [ 28.062910] pstate: 60400089 (nZCv daIf +PAN -UAO -TCO BTYPE=3D--) > [ 28.069071] pc : 0x1000 > [ 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 > [ 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= ]--- >=20 > (This one I believe when I started with the wifi adapter connected to > USB3 and networking was set to automatically connect. >=20 > 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. Where? >=20 > I'm just not sure where to go from here. I do know without question, > older versions of these drivers work on the Jetson Nano and Raspberry > Pi 3 which are MUCH older kernels. What version? Confused... --=20 An old man doll... just what I always wanted! - Clara --zlCIcyjmXaMZlAlu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZRj/nAAKCRD2uYlJVVFO o1/uAP9U5c+HrCnrgS9+9Fz84uFAVGGXGNNCchVTz4xKlXb4cwD+P/3vhahwAQpE I5Jgd6FkdvFx1EOhylnVvJg4ej7R8Q4= =LHJ5 -----END PGP SIGNATURE----- --zlCIcyjmXaMZlAlu--