Linux User #330250
2022-Jul-25 09:09 UTC
[Nouveau] nouveau failing on logoff: 1. can't change power state from D3cold to D0; 2. init and DRM failed with error -16
Hi! My hardware: Lenovo Legion 5 Pro 16ACH6H with hybrid graphics: * the respective output of "lspci -nn -k": 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] [10de:24dd] (rev a1) Subsystem: Lenovo GA104M [GeForce RTX 3070 Mobile / Max-Q] [17aa:3a4f] Kernel driver in use: nouveau Kernel modules: nouveau 06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [1002:1638] (rev c5) Subsystem: Lenovo Cezanne [17aa:3a4f] Kernel driver in use: amdgpu * the respective parts of /var/log/Xorg.0.log: (--) PCI: (1 at 0:0:0) 10de:24dd:17aa:3a4f rev 161, Mem @ 0xd0000000/16777216, 0xfa00000000/8589934592, 0xfc00000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/524288 (--) PCI:*(6 at 0:0:0) 1002:1638:17aa:3a4f rev 197, Mem @ 0xfc10000000/268435456, 0xfc20000000/2097152, 0xd1500000/524288, I/O @ 0x00001000/256 My software: Gentoo Linux (kernel 5.18.14 currently) ? I'm attaching my .config... My configuration and system use: I use the laptop with the amdgpu driver on Linux, and with the Nvidia graphics card for gaming on Windows. I compiled the bbswitch module in order to disable the nvidia card when running Linux, but bbswitch doesn't load. I suspect the nvidia card is constantly powered on, which unnecessarily drains the battery. I just recently added the nouveau driver and the Linux kernel ability for hybrid graphics. Gladly amdgpu remains as the primary output, even with nouveau loaded. 1. On logon, no error is logged in the kernel ringbuffer (dmesg). 2. Every time I terminate X.org-X11, the nouveau driver fails with a kernel oups. I retrieved the following dmesg snippet when I switched the user (logged in as an additional user, hereby starting a second SDDM and then X.org-X11 session). So, the error also appears when another X server is started (and the first one suspended?). BUT there is NO error when I switch to another virtual text terminal (Ctrl+Alt+F1...F12)! * dmesg output: ... [ 6176.462281] nouveau 0000:01:00.0: can't change power state from D3cold to D0 (config space inaccessible) [ 6176.462326] nouveau 0000:01:00.0: can't change power state from D3cold to D0 (config space inaccessible) [ 6176.524082] nouveau 0000:01:00.0: can't change power state from D3cold to D0 (config space inaccessible) [ 6176.527798] nouveau 0000:01:00.0: timer: stalled at ffffffffffffffff [ 6176.527799] ------------[ cut here ]------------ [ 6176.527800] nouveau 0000:01:00.0: timeout [ 6176.527810] WARNING: CPU: 5 PID: 38637 at drivers/gpu/drm/nouveau/nvkm/subdev/bar/g84.c:35 g84_bar_flush+0xf9/0x110 [nouveau] [ 6176.527829] Modules linked in: nf_tables nfnetlink btusb btrtl cdc_ether btbcm btintel usbnet btmtk bluetooth r8152 mii nouveau xt_hl ip6t_rt ipt_REJECT nf_reject_ipv4 xt_LOG nf_log_syslog xt_limit xt_addrtype xt_tcpudp xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_filter ip_tables x_tables bpfilter sch_fq_codel fuse [ 6176.527847] CPU: 5 PID: 38637 Comm: X Tainted: G T 5.18.14-gentoo-TPP #1 [ 6176.527850] Hardware name: LENOVO 82JQ/LNVNB161216, BIOS GKCN54WW 05/05/2022 [ 6176.527850] RIP: 0010:g84_bar_flush+0xf9/0x110 [nouveau] [ 6176.527864] Code: 8b 40 10 48 8b 78 10 4c 8b 6f 50 4d 85 ed 75 03 4c 8b 2f e8 e9 07 78 fc 4c 89 ea 48 c7 c7 1c 60 68 c0 48 89 c6 e8 be 11 df fc <0f> 0b eb a8 e8 ae 32 e9 fc 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f [ 6176.527865] RSP: 0018:ffffaefa4327f830 EFLAGS: 00010046 [ 6176.527866] RAX: 0000000000000000 RBX: ffff940670d2d400 RCX: 0000000000000000 [ 6176.527867] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 6176.527868] RBP: ffff940600bda898 R08: 0000000000000000 R09: 0000000000000000 [ 6176.527868] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000246 [ 6176.527869] R13: ffff9406102e71a0 R14: 0000000000000000 R15: 0000059e15832fd7 [ 6176.527870] FS: 00007fe84b0f6980(0000) GS:ffff940c11d40000(0000) knlGS:0000000000000000 [ 6176.527871] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 6176.527871] CR2: 000056472358a439 CR3: 0000000181e78000 CR4: 0000000000750ee0 [ 6176.527872] PKRU: 55555554 [ 6176.527873] Call Trace: [ 6176.527875] <TASK> [ 6176.527876] nv50_instobj_release+0x2f/0xc0 [nouveau] [ 6176.527896] nvkm_instobj_load+0x4a/0xb0 [nouveau] [ 6176.527910] nvkm_instmem_init+0x2b/0x80 [nouveau] [ 6176.527923] nvkm_subdev_init+0x9b/0xf0 [nouveau] [ 6176.527937] ? ktime_get+0x3b/0xb0 [ 6176.527940] nvkm_device_init+0x12a/0x1d0 [nouveau] [ 6176.527961] nvkm_udevice_init+0x48/0x70 [nouveau] [ 6176.527975] nvkm_object_init+0x3d/0x130 [nouveau] [ 6176.527989] nvkm_object_init+0x72/0x130 [nouveau] [ 6176.528002] nvkm_object_init+0x72/0x130 [nouveau] [ 6176.528014] nouveau_do_resume+0x26/0xd0 [nouveau] [ 6176.528033] nouveau_pmops_runtime_resume+0x80/0x160 [nouveau] [ 6176.528048] pci_pm_runtime_resume+0xa5/0xd0 [ 6176.528051] ? pci_pm_freeze_noirq+0x120/0x120 [ 6176.528052] __rpm_callback+0x35/0x120 [ 6176.528055] ? pci_pm_freeze_noirq+0x120/0x120 [ 6176.528056] rpm_callback+0x6a/0x80 [ 6176.528057] rpm_resume+0x50b/0x790 [ 6176.528058] __pm_runtime_resume+0x49/0x80 [ 6176.528059] nouveau_drm_open+0x70/0x1f0 [nouveau] [ 6176.528072] drm_file_alloc+0x198/0x270 [ 6176.528075] drm_open+0xde/0x270 [ 6176.528076] drm_stub_open+0xc2/0x160 [ 6176.528078] chrdev_open+0xd2/0x230 [ 6176.528080] ? cdev_device_add+0xa0/0xa0 [ 6176.528081] do_dentry_open+0x160/0x3c0 [ 6176.528083] path_openat+0xd23/0x1270 [ 6176.528085] do_filp_open+0xa1/0x160 [ 6176.528087] do_sys_openat2+0xc3/0x190 [ 6176.528089] __x64_sys_openat+0x54/0xa0 [ 6176.528090] do_syscall_64+0x60/0x90 [ 6176.528093] entry_SYSCALL_64_after_hwframe+0x49/0xb3 [ 6176.528095] RIP: 0033:0x7fe84b8c5f99 [ 6176.528097] Code: 41 00 3d 00 00 41 00 74 58 64 8b 04 25 18 00 00 00 85 c0 75 7c 41 89 da 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 9b 00 00 00 48 8b 54 24 28 64 48 2b 14 25 [ 6176.528097] RSP: 002b:00007ffd41adef40 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 6176.528099] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fe84b8c5f99 [ 6176.528099] RDX: 0000000000080002 RSI: 000056299fbd3ad0 RDI: 00000000ffffff9c [ 6176.528100] RBP: 000056299fbd3ad0 R08: 0000000000000000 R09: 0000000000000000 [ 6176.528100] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080002 [ 6176.528101] R13: 000056299fbd3ad0 R14: 000056299fbd3ad0 R15: 000056299fbd21e0 [ 6176.528102] </TASK> [ 6176.528102] ---[ end trace 0000000000000000 ]--- [ 6176.531387] nouveau 0000:01:00.0: timer: stalled at ffffffffffffffff [ 6176.531388] ------------[ cut here ]------------ ... The "cut here" parts are repeated 54 times (giving 55 almost identical "stalled timers", and ending with (the 55th stall): [ 6176.883137] ---[ end trace 0000000000000000 ]--- [ 6176.883162] nouveau 0000:01:00.0: timer: stalled at ffffffffffffffff [ 6176.883164] ------------[ cut here ]------------ [ 6176.883164] nouveau 0000:01:00.0: timeout [ 6176.883170] WARNING: CPU: 5 PID: 38637 at drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c:42 tu102_disp_init+0x543/0x560 [nouveau] [ 6176.883186] Modules linked in: nf_tables nfnetlink btusb btrtl cdc_ether btbcm btintel usbnet btmtk bluetooth r8152 mii nouveau xt_hl ip6t_rt ipt_REJECT nf_reject_ipv4 xt_LOG nf_log_syslog xt_limit xt_addrtype xt_tcpudp xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_filter ip_tables x_tables bpfilter sch_fq_codel fuse [ 6176.883195] CPU: 5 PID: 38637 Comm: X Tainted: G W T 5.18.14-gentoo-TPP #1 [ 6176.883196] Hardware name: LENOVO 82JQ/LNVNB161216, BIOS GKCN54WW 05/05/2022 [ 6176.883196] RIP: 0010:tu102_disp_init+0x543/0x560 [nouveau] [ 6176.883210] Code: 24 20 48 8b 40 10 48 8b 78 10 4c 8b 67 50 4d 85 e4 74 20 e8 af 2f 71 fc 4c 89 e2 48 c7 c7 1f b7 68 c0 48 89 c6 e8 84 39 d8 fc <0f> 0b b8 f0 ff ff ff eb 92 4c 8b 27 eb db e8 6a 5a e2 fc 66 2e 0f [ 6176.883211] RSP: 0018:ffffaefa4327f828 EFLAGS: 00010246 [ 6176.883212] RAX: 0000000000000000 RBX: ffff940670d2d400 RCX: 0000000000000000 [ 6176.883212] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 6176.883213] RBP: ffff9406e0c4a810 R08: 0000000000000000 R09: 0000000000000000 [ 6176.883213] R10: 0000000000000000 R11: 0000000000000000 R12: ffff9406102e71a0 [ 6176.883214] R13: ffff9406e0c4a810 R14: 0000000000000000 R15: 0000059e15832fd7 [ 6176.883214] FS: 00007fe84b0f6980(0000) GS:ffff940c11d40000(0000) knlGS:0000000000000000 [ 6176.883215] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 6176.883216] CR2: 000056472358a439 CR3: 0000000181e78000 CR4: 0000000000750ee0 [ 6176.883217] PKRU: 55555554 [ 6176.883217] Call Trace: [ 6176.883218] <TASK> [ 6176.883218] nvkm_disp_init+0x7c/0xf0 [nouveau] [ 6176.883232] nvkm_engine_init+0xb2/0x130 [nouveau] [ 6176.883244] nvkm_subdev_init+0x9b/0xf0 [nouveau] [ 6176.883257] ? ktime_get+0x3b/0xb0 [ 6176.883258] nvkm_device_init+0x12a/0x1d0 [nouveau] [ 6176.883271] nvkm_udevice_init+0x48/0x70 [nouveau] [ 6176.883285] nvkm_object_init+0x3d/0x130 [nouveau] [ 6176.883297] nvkm_object_init+0x72/0x130 [nouveau] [ 6176.883309] nvkm_object_init+0x72/0x130 [nouveau] [ 6176.883322] nouveau_do_resume+0x26/0xd0 [nouveau] [ 6176.883335] nouveau_pmops_runtime_resume+0x80/0x160 [nouveau] [ 6176.883348] pci_pm_runtime_resume+0xa5/0xd0 [ 6176.883350] ? pci_pm_freeze_noirq+0x120/0x120 [ 6176.883351] __rpm_callback+0x35/0x120 [ 6176.883352] ? pci_pm_freeze_noirq+0x120/0x120 [ 6176.883353] rpm_callback+0x6a/0x80 [ 6176.883354] rpm_resume+0x50b/0x790 [ 6176.883355] __pm_runtime_resume+0x49/0x80 [ 6176.883356] nouveau_drm_open+0x70/0x1f0 [nouveau] [ 6176.883369] drm_file_alloc+0x198/0x270 [ 6176.883370] drm_open+0xde/0x270 [ 6176.883371] drm_stub_open+0xc2/0x160 [ 6176.883372] chrdev_open+0xd2/0x230 [ 6176.883374] ? cdev_device_add+0xa0/0xa0 [ 6176.883375] do_dentry_open+0x160/0x3c0 [ 6176.883376] path_openat+0xd23/0x1270 [ 6176.883377] do_filp_open+0xa1/0x160 [ 6176.883379] do_sys_openat2+0xc3/0x190 [ 6176.883380] __x64_sys_openat+0x54/0xa0 [ 6176.883381] do_syscall_64+0x60/0x90 [ 6176.883382] entry_SYSCALL_64_after_hwframe+0x49/0xb3 [ 6176.883384] RIP: 0033:0x7fe84b8c5f99 [ 6176.883384] Code: 41 00 3d 00 00 41 00 74 58 64 8b 04 25 18 00 00 00 85 c0 75 7c 41 89 da 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 9b 00 00 00 48 8b 54 24 28 64 48 2b 14 25 [ 6176.883385] RSP: 002b:00007ffd41adef40 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 6176.883386] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fe84b8c5f99 [ 6176.883386] RDX: 0000000000080002 RSI: 000056299fbd3ad0 RDI: 00000000ffffff9c [ 6176.883387] RBP: 000056299fbd3ad0 R08: 0000000000000000 R09: 0000000000000000 [ 6176.883388] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080002 [ 6176.883388] R13: 000056299fbd3ad0 R14: 000056299fbd3ad0 R15: 000056299fbd21e0 [ 6176.883389] </TASK> [ 6176.883389] ---[ end trace 0000000000000000 ]--- [ 6176.883391] nouveau 0000:01:00.0: disp: init failed, -16 [ 6176.883451] nouveau 0000:01:00.0: init failed with -16 [ 6176.883453] nouveau: X[4313]:00000000:00000080: init failed with -16 [ 6176.883454] nouveau: DRM-master:00000000:00000000: init failed with -16 [ 6176.883455] nouveau: DRM-master:00000000:00000000: init failed with -16 [ 6176.883457] nouveau 0000:01:00.0: DRM: Client resume failed with error: -16 [ 6176.883458] nouveau 0000:01:00.0: DRM: resume failed with: -16 The final error seems to be "error -16" for both the nouveau init and the DRM client. Selected dmesg output during boot-up, before the issue occurs: ... pci 0000:01:00.0: [10de:24dd] type 00 class 0x030000 pci 0000:01:00.0: reg 0x10: [mem 0xd0000000-0xd0ffffff] pci 0000:01:00.0: reg 0x14: [mem 0xfa00000000-0xfbffffffff 64bit pref] pci 0000:01:00.0: reg 0x1c: [mem 0xfc00000000-0xfc01ffffff 64bit pref] pci 0000:01:00.0: reg 0x24: [io 0x3000-0x307f] pci 0000:01:00.0: reg 0x30: [mem 0xfff80000-0xffffffff pref] pci 0000:01:00.0: PME# supported from D0 D3hot pci 0000:01:00.0: 63.008 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x8 link at 0000:00:01.1 (capable of 252.048 Gb/s with 16.0 GT/s PCIe x16 link) pci 0000:01:00.1: [10de:228b] type 00 class 0x040300 pci 0000:01:00.1: reg 0x10: [mem 0xd1000000-0xd1003fff] ... pci 0000:06:00.0: [1002:1638] type 00 class 0x030000 pci 0000:06:00.0: reg 0x10: [mem 0xfc10000000-0xfc1fffffff 64bit pref] pci 0000:06:00.0: reg 0x18: [mem 0xfc20000000-0xfc201fffff 64bit pref] pci 0000:06:00.0: reg 0x20: [io 0x1000-0x10ff] pci 0000:06:00.0: reg 0x24: [mem 0xd1500000-0xd157ffff] pci 0000:06:00.0: enabling Extended Tags pci 0000:06:00.0: PME# supported from D1 D2 D3hot D3cold pci 0000:06:00.0: 126.016 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x16 link at 0000:00:08.1 (capable of 252.048 Gb/s with 16.0 GT/s PCIe x16 link) pci 0000:06:00.2: [1022:15df] type 00 class 0x108000 pci 0000:06:00.2: reg 0x18: [mem 0xd1400000-0xd14fffff] pci 0000:06:00.2: reg 0x24: [mem 0xd15c8000-0xd15c9fff] pci 0000:06:00.2: enabling Extended Tags pci 0000:06:00.3: [1022:1639] type 00 class 0x0c0330 pci 0000:06:00.3: reg 0x10: [mem 0xd1200000-0xd12fffff 64bit] pci 0000:06:00.3: enabling Extended Tags pci 0000:06:00.3: PME# supported from D0 D3hot D3cold pci 0000:06:00.4: [1022:1639] type 00 class 0x0c0330 pci 0000:06:00.4: reg 0x10: [mem 0xd1300000-0xd13fffff 64bit] pci 0000:06:00.4: enabling Extended Tags pci 0000:06:00.4: PME# supported from D0 D3hot D3cold pci 0000:06:00.5: [1022:15e2] type 00 class 0x048000 pci 0000:06:00.5: reg 0x10: [mem 0xd1580000-0xd15bffff] pci 0000:06:00.5: enabling Extended Tags pci 0000:06:00.5: PME# supported from D0 D3hot D3cold pci 0000:06:00.6: [1022:15e3] type 00 class 0x040300 pci 0000:06:00.6: reg 0x10: [mem 0xd15c0000-0xd15c7fff] pci 0000:06:00.6: enabling Extended Tags pci 0000:06:00.6: PME# supported from D0 D3hot D3cold ... pci 0000:01:00.0: vgaarb: setting as boot VGA device pci 0000:01:00.0: vgaarb: bridge control possible pci 0000:01:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none pci 0000:06:00.0: vgaarb: setting as boot VGA device (overriding previous) pci 0000:06:00.0: vgaarb: bridge control possible pci 0000:06:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none vgaarb: loaded ... pci 0000:01:00.0: can't claim BAR 6 [mem 0xfff80000-0xffffffff pref]: no compatible bridge window pci 0000:01:00.0: BAR 6: assigned [mem 0xd1080000-0xd10fffff pref] ... pci 0000:01:00.1: D0 power state depends on 0000:01:00.0 pci 0000:06:00.3: extending delay after power-on from D3hot to 20 msec pci 0000:06:00.3: quirk_usb_early_handoff+0x0/0x740 took 265756 usecs pci 0000:06:00.4: extending delay after power-on from D3hot to 20 msec pci 0000:06:00.4: quirk_usb_early_handoff+0x0/0x740 took 16372 usecs ... pci 0000:01:00.0: Adding to iommu group 10 pci 0000:01:00.1: Adding to iommu group 10 ... pci 0000:06:00.0: Adding to iommu group 7 pci 0000:06:00.2: Adding to iommu group 7 pci 0000:06:00.3: Adding to iommu group 7 pci 0000:06:00.4: Adding to iommu group 7 pci 0000:06:00.5: Adding to iommu group 7 pci 0000:06:00.6: Adding to iommu group 7 ... ACPI: video: Video Device [VGA] (multi-head: yes rom: no post: no) ... Linux agpgart interface v0.103 ... [drm] amdgpu kernel modesetting enabled. amdgpu: vga_switcheroo: detected switching method \_SB_.PCI0.GP17.VGA_.ATPX handle ATPX version 1, functions 0x00000001 ATPX Hybrid Graphics amdgpu: Virtual CRAT table created for CPU amdgpu: Topology: Add CPU node amdgpu 0000:06:00.0: vgaarb: deactivate vga console amdgpu 0000:06:00.0: enabling device (0006 -> 0007) [drm] initializing kernel modesetting (RENOIR 0x1002:0x1638 0x17AA:0x3A4F 0xC5). amdgpu 0000:06:00.0: amdgpu: Trusted Memory Zone (TMZ) feature enabled [drm] register mmio base: 0xD1500000 [drm] register mmio size: 524288 [drm] add ip block number 0 <soc15_common> [drm] add ip block number 1 <gmc_v9_0> [drm] add ip block number 2 <vega10_ih> [drm] add ip block number 3 <psp> [drm] add ip block number 4 <smu> [drm] add ip block number 5 <dm> [drm] add ip block number 6 <gfx_v9_0> [drm] add ip block number 7 <sdma_v4_0> [drm] add ip block number 8 <vcn_v2_0> [drm] add ip block number 9 <jpeg_v2_0> amdgpu 0000:06:00.0: amdgpu: Fetched VBIOS from VFCT amdgpu: ATOM BIOS: 113-CEZANNE-018 Loading firmware: amdgpu/green_sardine_sdma.bin [drm] VCN decode is enabled in VM mode [drm] VCN encode is enabled in VM mode [drm] JPEG decode is enabled in VM mode amdgpu 0000:06:00.0: amdgpu: PCIE atomic ops is not supported amdgpu 0000:06:00.0: amdgpu: MODE2 reset [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit amdgpu 0000:06:00.0: amdgpu: VRAM: 4096M 0x000000F400000000 - 0x000000F4FFFFFFFF (4096M used) amdgpu 0000:06:00.0: amdgpu: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF amdgpu 0000:06:00.0: amdgpu: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF [drm] Detected VRAM RAM=4096M, BAR=4096M [drm] RAM width 128bits DDR4 [drm] amdgpu: 4096M of VRAM memory ready [drm] amdgpu: 4096M of GTT memory ready. [drm] GART: num cpu pages 262144, num gpu pages 262144 [drm] PCIE GART of 1024M enabled. [drm] PTB located at 0x000000F400FA0000 Loading firmware: amdgpu/green_sardine_asd.bin Loading firmware: amdgpu/green_sardine_ta.bin amdgpu 0000:06:00.0: amdgpu: PSP runtime database doesn't exist Loading firmware: amdgpu/green_sardine_dmcub.bin [drm] Loading DMUB firmware via PSP: version=0x01010020 Loading firmware: amdgpu/green_sardine_pfp.bin Loading firmware: amdgpu/green_sardine_me.bin Loading firmware: amdgpu/green_sardine_ce.bin Loading firmware: amdgpu/green_sardine_rlc.bin Loading firmware: amdgpu/green_sardine_mec.bin Loading firmware: amdgpu/green_sardine_vcn.bin [drm] Found VCN firmware Version ENC: 1.17 DEC: 5 VEP: 0 Revision: 2 amdgpu 0000:06:00.0: amdgpu: Will use PSP to load VCN firmware [drm] reserve 0x400000 from 0xf4ff800000 for PSP TMR amdgpu 0000:06:00.0: amdgpu: RAS: optional ras ta ucode is not available amdgpu 0000:06:00.0: amdgpu: RAP: optional rap ta ucode is not available amdgpu 0000:06:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available amdgpu 0000:06:00.0: amdgpu: SMU is initialized successfully! [drm] Display Core initialized with v3.2.177! [drm] DMUB hardware initialized: version=0x01010020 [drm] kiq ring mec 2 pipe 1 q 0 [drm] VCN decode and encode initialized successfully(under DPG Mode). [drm] JPEG decode initialized successfully. kfd kfd: amdgpu: Allocated 3969056 bytes on gart amdgpu: HMM registered 4096MB device memory amdgpu: SRAT table not found amdgpu: Virtual CRAT table created for GPU amdgpu: Topology: Add dGPU node [0x1638:0x1002] kfd kfd: amdgpu: added device 1002:1638 amdgpu 0000:06:00.0: amdgpu: SE 1, SH per SE 1, CU per SH 8, active_cu_number 8 amdgpu 0000:06:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0 amdgpu 0000:06:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0 amdgpu 0000:06:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0 amdgpu 0000:06:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0 amdgpu 0000:06:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0 amdgpu 0000:06:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0 amdgpu 0000:06:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0 amdgpu 0000:06:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0 amdgpu 0000:06:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0 amdgpu 0000:06:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0 amdgpu 0000:06:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1 amdgpu 0000:06:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1 amdgpu 0000:06:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1 amdgpu 0000:06:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1 amdgpu 0000:06:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1 [drm] Initialized amdgpu 3.46.0 20150101 for 0000:06:00.0 on minor 0 fbcon: amdgpudrmfb (fb0) is primary device [drm] DSC precompute is not needed. Console: switching to colour frame buffer device 320x100 amdgpu 0000:06:00.0: [drm] fb0: amdgpudrmfb frame buffer device ... input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input14 Loading compiled-in X.509 certificates input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input15 Key type ._fscrypt registered input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input16 Key type .fscrypt registered input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input17 Key type fscrypt-provisioning registered input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input18 Btrfs loaded, crc32c=crc32c-intel, zoned=no, fsverity=no input: HDA NVidia HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input19 usb 1-1.1.1: new full-speed USB device number 7 using xhci_hcd ... ALSA device list: #0: HDA NVidia at 0xd1000000 irq 113 ... ...(at this point systemd takes the lead and the modules, including nouveau, are loaded)... ... ACPI Warning: \_SB.PCI0.GPP0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20211217/nsarguments-61) pci 0000:01:00.0: optimus capabilities: enabled, status dynamic power, hda bios codec supported VGA switcheroo: detected Optimus DSM method \_SB_.PCI0.GPP0.PEGP handle nouveau 0000:01:00.0: enabling device (0000 -> 0003) nouveau 0000:01:00.0: NVIDIA GA104 (b74000a1) nouveau 0000:01:00.0: bios: version 94.04.3f.00.c4 Loading firmware: nvidia/ga104/nvdec/scrubber.bin nouveau 0000:01:00.0: fb: 8192 MiB GDDR6 ... nouveau 0000:01:00.0: DRM: VRAM: 8192 MiB nouveau 0000:01:00.0: DRM: GART: 536870912 MiB nouveau 0000:01:00.0: DRM: BIT table 'A' not found nouveau 0000:01:00.0: DRM: BIT table 'L' not found nouveau 0000:01:00.0: DRM: TMDS table version 2.0 nouveau 0000:01:00.0: DRM: DCB version 4.1 nouveau 0000:01:00.0: DRM: DCB outp 00: 02800f66 04610020 nouveau 0000:01:00.0: DRM: DCB outp 01: 01811f36 04600010 nouveau 0000:01:00.0: DRM: DCB outp 02: 01811f32 00020010 nouveau 0000:01:00.0: DRM: DCB outp 03: 01022f46 04600020 nouveau 0000:01:00.0: DRM: DCB outp 04: 01022f42 00020020 nouveau 0000:01:00.0: DRM: DCB outp 05: 02033f52 00020010 nouveau 0000:01:00.0: DRM: DCB conn 00: 00020047 nouveau 0000:01:00.0: DRM: DCB conn 01: 00001146 nouveau 0000:01:00.0: DRM: DCB conn 02: 00002246 nouveau 0000:01:00.0: DRM: DCB conn 03: 00010361 nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies ... nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 1 nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes ... nouveau 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none amdgpu 0000:06:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none ... At this point, SDDM gets started and I login as my primary user without any other faults. I included nouveau in the hopes of being able to completely power-down the nvidia card. bbswitch isn't loading "modprobe bbswitch": modprobe: ERROR: could not insert 'bbswitch': No such device The error doesn't affect the stability of my system though, but it taints the kernel. I would be happy to help and to test stuff that you though at me, it should be fairly easy to do this on Gentoo Linux. Thanks! Linux User #330250 -------------- next part -------------- A non-text attachment was scrubbed... Name: .config.xz Type: application/x-xz Size: 38372 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20220725/7f7c65f1/attachment-0001.xz>