From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34DDD2DCF67 for ; Mon, 30 Mar 2026 13:47:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878450; cv=none; b=QgGvIHx8d9pYHVKFL4ZU/S0DLtvy68oBOuIYGLYoab18yNcJKU/X+8JJeYR/xcckwevn45r5UgBtbyytrTIkKgD1RlgYr89hRPcdYWrrLjR+XQNU4ywFWepYIy/PzOszJODs3Ghk7sLLr0jho8zAKc+qt8UUyv0xp5wH/P1KPvg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774878450; c=relaxed/simple; bh=ymffO+99cr0cUlZDC7E5l9+6MTjgPipNgjxbG0Yc/Rs=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=or947o7pTEohIqFzoCofwSgVATg5z9jwqSb2BvB5oR2VFY1xKznra4ukTcUKFfxC5GB4YT9fM/KnHDvk902sFT/vqZUiMimPtTRks1E7WZt5suXr+lTVw0EgMbhcRISTuXW/w5DqwVhQKReKKpG97aSQ09EzgaPRTTrSII1ViRk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=XhQ0Rm+f; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="XhQ0Rm+f" Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 1F70540E029A; Mon, 30 Mar 2026 13:47:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZKwJY4XmIzo5; Mon, 30 Mar 2026 13:47:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1774878434; bh=kg/N24CAXC54XQHOQj86NO7tLswxWrNJ60+wKyww0HY=; h=Date:From:To:Cc:Subject:From; b=XhQ0Rm+fglPBfxTSwgKWoO5ZfUiWP1KH6AugDgw1O6w6Q1ETT4wYE/e9Q7x/2nNGm owzmjjPKcLSc6etNAZGLEVQWzfIyZJdSR6vHwSkTtPihPwEJsuZ+v2ckM8XWyDBzyI WHztEk0tosa7mB6H7ks69y2EuUhjjoZfn7OeHZTGQ0hCiyuu5DSav3F7KAll4Ub2Om CE6PS4LwXoqwmrm/33ulGhDDEhzfjR8btLKpskRk3QODqUljqu3+ZGqPSd/H4tFJOf PDNDV1iH/ybbEpmPneCuDsRIS0XydFSMhQ0gwLUikjkw9vGpgZ4CDik/yxif2LPeJF TJZGmBY4HsaN4mFpt/YBoKWslOV93xaSmKuuK8jvb/mOWAP7wkwu+s+VSPcRgmLHaf topehJEQRyI9lDF8GO+qqWuy5+bny+/x5dgHz3bKMDYWRbY46o/WN8thBhBsmmG+Zv 1C9nCBUbOjo+iKJVAmtg9tTcWfN+XBS3OePCUrAeL1UqzG3y3ooRlBA3tTt84eW4Gq 6w2EJuG8LhhElA5wergrTZdO0quzIT+SwPN1DkIC4R8uX6Iq0nT8+gfLKE/2qwir6P iLeXNRCZep/ldrtnVQK/ThVNgSDsOGfvhCYzj2FAFKyY80AI4Ikk/XcmnL7068ZmWQ oitkRJkOynATYrP0Q4Ircnsk= Received: from zn.tnic (p5de8e020.dip0.t-ipconnect.de [93.232.224.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with UTF8SMTPSA id 205B640E0298; Mon, 30 Mar 2026 13:47:07 +0000 (UTC) Date: Mon, 30 Mar 2026 15:47:00 +0200 From: Borislav Petkov To: amd-gfx@lists.freedesktop.org Cc: Alex Deucher , Christian =?utf-8?B?S8O2bmln?= , Eric Huang , Arvind Yadav , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: 7.0-rc6: amdgpu: BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:323 Message-ID: <20260330134700.GBacp-1CFyWlXo7LcZ@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi folks, this is on a Zen2 laptop: [ 13.819253] amdgpu: Virtual CRAT table created for CPU [ 13.821152] amdgpu: Topology: Add CPU node [ 13.823395] amdgpu 0000:06:00.0: enabling device (0006 -> 0007) [ 13.824714] amdgpu 0000:06:00.0: initializing kernel modesetting (RENOIR 0x1002:0x1636 0x17AA:0x5099 0xD1). [ 13.830092] amdgpu 0000:06:00.0: register mmio base: 0xFD300000 [ 13.830925] amdgpu 0000:06:00.0: register mmio size: 524288 [ 13.856868] amdgpu 0000:06:00.0: detected ip block number 0 (soc15_common) [ 13.857744] amdgpu 0000:06:00.0: detected ip block number 1 (gmc_v9_0) [ 13.858510] amdgpu 0000:06:00.0: detected ip block number 2 (vega10_ih) [ 13.859299] amdgpu 0000:06:00.0: detected ip block number 3 (psp) [ 13.860037] amdgpu 0000:06:00.0: detected ip block number 4 (smu) [ 13.860763] amdgpu 0000:06:00.0: detected ip block number 5 (dm) [ 13.861484] amdgpu 0000:06:00.0: detected ip block number 6 (gfx_v9_0) [ 13.862213] amdgpu 0000:06:00.0: detected ip block number 7 (sdma_v4_0) [ 13.862988] amdgpu 0000:06:00.0: detected ip block number 8 (vcn_v2_0) [ 13.863704] amdgpu 0000:06:00.0: detected ip block number 9 (jpeg_v2_0) [ 13.864450] amdgpu 0000:06:00.0: Fetched VBIOS from VFCT [ 13.865144] amdgpu 0000:06:00.0: [drm] ATOM BIOS: 113-RENOIR-026 [ 13.894122] amdgpu 0000:06:00.0: vgaarb: deactivate vga console [ 13.895053] amdgpu 0000:06:00.0: Trusted Memory Zone (TMZ) feature enabled [ 13.896463] amdgpu 0000:06:00.0: vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit [ 13.897230] amdgpu 0000:06:00.0: VRAM: 512M 0x000000F400000000 - 0x000000F41FFFFFFF (512M used) [ 13.897939] amdgpu 0000:06:00.0: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF [ 13.898716] amdgpu 0000:06:00.0: [drm] Detected VRAM RAM=512M, BAR=512M [ 13.899407] amdgpu 0000:06:00.0: [drm] RAM width 128bits DDR4 [ 13.908463] amdgpu 0000:06:00.0: 512M of VRAM memory ready [ 13.909211] amdgpu 0000:06:00.0: 7569M of GTT memory ready. [ 13.910896] amdgpu 0000:06:00.0: [drm] GART: num cpu pages 262144, num gpu pages 262144 [ 13.912527] amdgpu 0000:06:00.0: [drm] PCIE GART of 1024M enabled. [ 13.913187] amdgpu 0000:06:00.0: [drm] PTB located at 0x000000F41FC00000 [ 13.917136] amdgpu 0000:06:00.0: [drm] Loading DMUB firmware via PSP: version=0x01010028 [ 13.921080] amdgpu 0000:06:00.0: [VCN instance 0] Found VCN firmware Version ENC: 1.21 DEC: 6 VEP: 0 Revision: 0 [ 13.925929] amdgpu 0000:06:00.0: reserve 0x400000 from 0xf41f800000 for PSP TMR [ 14.013599] amdgpu 0000:06:00.0: RAS: optional ras ta ucode is not available [ 14.024160] amdgpu 0000:06:00.0: RAP: optional rap ta ucode is not available [ 14.029775] amdgpu 0000:06:00.0: psp gfx command LOAD_TA(0x1) failed and response status is (0x7) [ 14.031696] amdgpu 0000:06:00.0: SMU is initialized successfully! [ 14.034094] amdgpu 0000:06:00.0: [drm] Display Core v3.2.369 initialized on DCN 2.1 [ 14.035077] amdgpu 0000:06:00.0: [drm] DP-HDMI FRL PCON supported [ 14.036454] amdgpu 0000:06:00.0: [drm] DMUB hardware initialized: version=0x01010028 [ 14.071376] snd_hda_intel 0000:06:00.1: bound 0000:06:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu]) [ 14.251260] amdgpu 0000:06:00.0: [drm] Using ACPI provided EDID for eDP-1 [ 14.262586] amdgpu 0000:06:00.0: kiq ring mec 2 pipe 1 q 0 [ 14.278743] kfd kfd: Allocated 3969056 bytes on gart [ 14.279639] kfd kfd: Total number of KFD nodes to be created: 1 [ 14.282841] amdgpu: Virtual CRAT table created for GPU [ 14.287260] amdgpu: Topology: Add GPU node [0x1002:0x1636] [ 14.288300] kfd kfd: added device 1002:1636 [ 14.289236] amdgpu 0000:06:00.0: SE 1, SH per SE 1, CU per SH 8, active_cu_number 7 [ 14.290147] amdgpu 0000:06:00.0: ring gfx uses VM inv eng 0 on hub 0 [ 14.290945] amdgpu 0000:06:00.0: ring comp_1.0.0 uses VM inv eng 1 on hub 0 [ 14.291677] amdgpu 0000:06:00.0: ring comp_1.1.0 uses VM inv eng 4 on hub 0 [ 14.292391] amdgpu 0000:06:00.0: ring comp_1.2.0 uses VM inv eng 5 on hub 0 [ 14.293108] amdgpu 0000:06:00.0: ring comp_1.3.0 uses VM inv eng 6 on hub 0 [ 14.293806] amdgpu 0000:06:00.0: ring comp_1.0.1 uses VM inv eng 7 on hub 0 [ 14.294501] amdgpu 0000:06:00.0: ring comp_1.1.1 uses VM inv eng 8 on hub 0 [ 14.295243] amdgpu 0000:06:00.0: ring comp_1.2.1 uses VM inv eng 9 on hub 0 [ 14.295940] amdgpu 0000:06:00.0: ring comp_1.3.1 uses VM inv eng 10 on hub 0 [ 14.296631] amdgpu 0000:06:00.0: ring kiq_0.2.1.0 uses VM inv eng 11 on hub 0 [ 14.297326] amdgpu 0000:06:00.0: ring sdma0 uses VM inv eng 0 on hub 8 [ 14.298022] amdgpu 0000:06:00.0: ring vcn_dec uses VM inv eng 1 on hub 8 [ 14.298767] amdgpu 0000:06:00.0: ring vcn_enc0 uses VM inv eng 4 on hub 8 [ 14.299471] amdgpu 0000:06:00.0: ring vcn_enc1 uses VM inv eng 5 on hub 8 [ 14.300173] amdgpu 0000:06:00.0: ring jpeg_dec uses VM inv eng 6 on hub 8 [ 14.308567] amdgpu 0000:06:00.0: Runtime PM not available [ 14.317036] amdgpu 0000:06:00.0: [drm] Using custom brightness curve [ 14.325476] [drm] Initialized amdgpu 3.64.0 for 0000:06:00.0 on minor 2 [ 14.332003] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:323 [ 14.333000] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 415, name: (udev-worker) [ 14.333733] preempt_count: 1, expected: 0 [ 14.334407] RCU nest depth: 0, expected: 0 [ 14.335152] 2 locks held by (udev-worker)/415: [ 14.335836] #0: ffff888102509200 (&dev->mutex){....}-{4:4}, at: __driver_attach+0xaf/0x1f0 [ 14.336613] #1: ffffffffa1465998 (amdgpu_pasid_idr_lock){+.+.}-{3:3}, at: amdgpu_pasid_alloc+0x1d/0x110 [amdgpu] [ 14.338343] Preemption disabled at: [ 14.338351] [<0000000000000000>] 0x0 [ 14.339821] CPU: 2 UID: 0 PID: 415 Comm: (udev-worker) Not tainted 7.0.0-rc6 #1 PREEMPT(full) [ 14.339830] Hardware name: LENOVO 20Y2MMMMCC/20Y2MMMMCC, BIOS R1BET58W(1.27 ) 10/20/2020 [ 14.339834] Call Trace: [ 14.339841] [ 14.339847] dump_stack_lvl+0x57/0x80 [ 14.339869] __might_resched.cold+0xe5/0x120 [ 14.339891] kmem_cache_alloc_noprof+0x296/0x580 [ 14.339920] radix_tree_node_alloc.constprop.0+0x44/0xf0 [ 14.339944] idr_get_free+0x237/0x2e0 [ 14.339972] idr_alloc_u32+0x6e/0xe0 [ 14.339987] ? lock_acquire+0xdb/0x310 [ 14.340012] idr_alloc_cyclic+0x56/0xc0 [ 14.340041] amdgpu_pasid_alloc+0x41/0x110 [amdgpu] [ 14.340913] amdgpu_driver_open_kms+0x9b/0x320 [amdgpu] [ 14.341661] ? srso_return_thunk+0x5/0x5f [ 14.341670] ? lock_acquire+0xcb/0x310 [ 14.341684] ? srso_return_thunk+0x5/0x5f [ 14.341690] ? find_held_lock+0x2b/0x80 [ 14.341701] ? kfree+0x262/0x420 [ 14.341711] ? kfree+0x262/0x420 [ 14.341718] ? srso_return_thunk+0x5/0x5f [ 14.341725] ? lock_release+0x170/0x2d0 [ 14.341765] drm_file_alloc+0x206/0x2d0 [ 14.341787] drm_client_init+0x7b/0x110 [ 14.341819] amdgpu_amdkfd_drm_client_create+0x56/0x70 [amdgpu] [ 14.342778] amdgpu_pci_probe+0x2a0/0x450 [amdgpu] [ 14.343115] local_pci_probe+0x41/0x90 [ 14.343115] pci_call_probe+0x55/0x2e0 [ 14.343115] ? srso_return_thunk+0x5/0x5f [ 14.343115] ? _raw_spin_unlock+0x29/0x50 [ 14.343115] ? srso_return_thunk+0x5/0x5f [ 14.343115] ? pci_match_device+0xf8/0x120 [ 14.343115] pci_device_probe+0x91/0x140 [ 14.343115] ? srso_return_thunk+0x5/0x5f [ 14.343115] really_probe+0xde/0x380 [ 14.343115] ? srso_return_thunk+0x5/0x5f [ 14.343115] ? __pfx___driver_attach+0x10/0x10 [ 14.343115] __driver_probe_device+0x78/0x120 [ 14.343115] driver_probe_device+0x1f/0xa0 [ 14.343115] __driver_attach+0xba/0x1f0 [ 14.343115] bus_for_each_dev+0x7c/0xd0 [ 14.343115] bus_add_driver+0x11e/0x200 [ 14.343115] driver_register+0x6e/0xc0 [ 14.343115] ? __pfx_amdgpu_init+0x10/0x10 [amdgpu] [ 14.343115] do_one_initcall+0x58/0x3c0 [ 14.343115] ? do_init_module+0x22/0x220 [ 14.343115] ? srso_return_thunk+0x5/0x5f [ 14.343115] ? rcu_is_watching+0xd/0x40 [ 14.343115] ? srso_return_thunk+0x5/0x5f [ 14.343115] ? __kmalloc_cache_noprof+0x3a9/0x580 [ 14.343115] do_init_module+0x60/0x220 [ 14.343115] init_module_from_file+0xc8/0xe0 [ 14.343115] idempotent_init_module+0x104/0x300 [ 14.343115] ? xen_error_entry+0x30/0x60 [ 14.343115] __x64_sys_finit_module+0x6d/0xe0 [ 14.343115] ? do_syscall_64+0x28/0x510 [ 14.343115] do_syscall_64+0xc2/0x510 [ 14.343115] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 14.343115] RIP: 0033:0x7fad2ecbbc29 [ 14.343115] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b7 51 0d 00 f7 d8 64 89 01 48 [ 14.343115] RSP: 002b:00007ffe23a10fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 14.343115] RAX: ffffffffffffffda RBX: 00005648c5acf5c0 RCX: 00007fad2ecbbc29 [ 14.343115] RDX: 0000000000000000 RSI: 00007fad2e9f844d RDI: 0000000000000025 [ 14.343115] RBP: 0000000000000000 R08: 0000000000000000 R09: 00005648c59d8fe0 [ 14.343115] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fad2e9f844d [ 14.343115] R13: 0000000000020000 R14: 00005648c5ace500 R15: 0000000000000000 [ 14.343115] [ 14.398663] fbcon: amdgpudrmfb (fb1) is primary device [ 14.398682] fbcon: Remapping primary device, fb1, to tty 1-63 [ 14.399847] [drm] pre_validate_dsc:1667 MST_DSC dsc precompute is not needed [ 21.521405] amdgpu 0000:06:00.0: [drm] fb1: amdgpudrmfb frame buffer device -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette