<div dir="ltr"><div>Hi,</div><div><br></div><div>I'm coming here hoping someone could shed some light on this weird problem I have.</div><div><br></div><div>My setup is:</div><div><ul><li>Acer Nitro AN515-44 (V1.04) laptop</li><li>AMD Radeon Vega Series / Radeon Vega Mobile Series iGPU</li><li>NVIDIA GeForce GTX 1650 Mobile dGPU</li><li>Fedora 42</li></ul><div>If I boot the laptop on battery (unplugged from the charger) internal display either fails to initialize completely (remains blank) or isn't properly recognized and is set to fixed 60Hz instead of its 144Hz.</div><div><br></div><div>The fixed 60Hz refresh rate happens when I boot on battery with kernel 6.14.11-300 and Nvidia open source driver. I have filed a <a href="https://bugzilla.redhat.com/show_bug.cgi?id=2372819">bug report</a> on Fedora's kernel bugzilla, there are a couple of (hopefully useful) log snippets there, like this:</div><div><br></div><div><pre class="gmail-bz_comment_text" id="gmail-comment_text_0">[    8.311152] amdgpu 0000:05:00.0: enabling device (0006 -> 0007)
[    8.311219] [drm] initializing kernel modesetting (RENOIR 0x1002:0x1636 0x1025:0x1455 0xC6).
[    8.311536] [drm] register mmio base: 0xD1500000
[    8.311539] [drm] register mmio size: 524288
[    8.311550] workqueue: Failed to create a rescuer kthread for wq "amdgpu-reset-dev": -EINTR
[    8.311557] [drm:amdgpu_reset_create_reset_domain [amdgpu]] *ERROR* Failed to allocate wq for amdgpu_reset_domain!
[    8.312266] amdgpu 0000:05:00.0: amdgpu: Fatal error during GPU init
[    8.312272] amdgpu 0000:05:00.0: amdgpu: amdgpu: finishing device.
[    8.312351] amdgpu 0000:05:00.0: probe with driver amdgpu failed with error -12
</pre>I have just tried booting with rawhide 6.16.0rc2 kernel from Fedora Rawhide, and it completely failed to initialize the display (log is also attached there). Here's a snippet:</div><div><br></div><div><span style="font-family:monospace">jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: vgaarb: deactivate vga console<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: Trusted Memory Zone (TMZ) feature enabled<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: MODE2 reset<br>jun 23 17:51:46 kernel: [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: VRAM: 512M 0x000000F400000000 - 0x000000F41FFFFFFF (512M used)<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF<br>jun 23 17:51:46 kernel: [drm] Detected VRAM RAM=512M, BAR=512M<br>jun 23 17:51:46 kernel: [drm] RAM width 128bits DDR4<br>jun 23 17:51:46 kernel: [drm] amdgpu: 512M of VRAM memory ready<br>jun 23 17:51:46 kernel: [drm] amdgpu: 15723M of GTT memory ready.<br>jun 23 17:51:46 kernel: [drm] GART: num cpu pages 262144, num gpu pages 262144<br>jun 23 17:51:46 kernel: [drm] PCIE GART of 1024M enabled.<br>jun 23 17:51:46 kernel: [drm] PTB located at 0x000000F41FC00000<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: [drm] Loading DMUB firmware via PSP: version=0x0101002B<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: Found VCN firmware Version ENC: 1.24 DEC: 8 VEP: 0 Revision: 3<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: reserve 0x400000 from 0xf41f800000 for PSP TMR<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: RAS: optional ras ta ucode is not available<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: RAP: optional rap ta ucode is not available<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: psp gfx command LOAD_TA(0x1) failed and response status is (0x7)<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: psp gfx command INVOKE_CMD(0x3) failed and response status is (0x4)<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: Secure display: Generic Failure.<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: SECUREDISPLAY: query securedisplay TA failed. ret 0x0<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: SMU is initialized successfully!<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: [drm] Display Core v3.2.334 initialized on DCN 2.1<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: [drm] DP-HDMI FRL PCON supported<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: [drm] DMUB hardware initialized: version=0x0101002B<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: [drm] *ERROR* amdgpu: failed to initialize sw for display support.<br>jun 23 17:51:46 kernel: [drm:amdgpu_device_ip_init [amdgpu]] *ERROR* hw_init of IP block <dm> failed -22<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: amdgpu_device_ip_init failed<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: Fatal error during GPU init<br>jun 23 17:51:46 kernel: amdgpu 0000:05:00.0: amdgpu: amdgpu: finishing device.<br>jun 23 17:51:46 kernel: BUG: kernel NULL pointer dereference, address: 00000000000005b8<br>jun 23 17:51:46 kernel: #PF: supervisor read access in kernel mode<br>jun 23 17:51:46 kernel: #PF: error_code(0x0000) - not-present page<br>jun 23 17:51:46 kernel: PGD 0 P4D 0 <br>jun 23 17:51:46 kernel: Oops: Oops: 0000 [#1] SMP NOPTI<br>jun 23 17:51:46 kernel: CPU: 3 UID: 0 PID: 384 Comm: (udev-worker) Not tainted 6.16.0-0.rc2.24.fc43.x86_64 #1 PREEMPT(lazy) <br>jun 23 17:51:46 kernel: Hardware name: Acer Nitro AN515-44/Stonic_RNS, BIOS V1.04 02/04/2021<br>jun 23 17:51:46 kernel: RIP: 0010:dc_resource_is_dsc_encoding_supported+0x9/0x30 [amdgpu]<br>jun 23 17:51:46 kernel: Code: e9 95 77 06 00 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 0f 1f 44 00 00 <48> 8b 87 b8 05 00 00 48 85 c0 74 14 48 8b 80 b8 04 00 00 8b 40 24<br>jun 23 17:51:46 kernel: RSP: 0018:ffffca408083b630 EFLAGS: 00010246<br>jun 23 17:51:46 kernel: RAX: 0000000000000000 RBX: ffff895b22280010 RCX: 0000000000000000<br>jun 23 17:51:46 kernel: RDX: ffff895b22280010 RSI: ffff895b20250a00 RDI: 0000000000000000<br>jun 23 17:51:46 kernel: RBP: ffff895b042beb80 R08: 0000000000000000 R09: 0000000000000000<br>jun 23 17:51:46 kernel: R10: ffffca408083b7a0 R11: 0000000000000000 R12: 0000000000000000<br>jun 23 17:51:46 kernel: R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000<br>jun 23 17:51:46 kernel: FS:  00007ff2d298d040(0000) GS:ffff896264dff000(0000) knlGS:0000000000000000<br>jun 23 17:51:46 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033<br>jun 23 17:51:46 kernel: CR2: 00000000000005b8 CR3: 0000000103a5f000 CR4: 0000000000350ef0<br>jun 23 17:51:46 kernel: Call Trace:<br>jun 23 17:51:46 kernel:  <TASK><br>jun 23 17:51:46 kernel:  amdgpu_dm_atomic_check+0xf5/0x1510 [amdgpu]<br>jun 23 17:51:46 kernel:  drm_atomic_check_only+0x190/0x3f0<br></span><br></div><div>Booting with the charger plugged properly initializes the internal display every time. It doesn't make much sense to me, but it's 100% reproducible here.</div><div><br></div><div>Any tips on how to workaround this will be most welcome.</div><div><br></div><div>Regards,</div><div>Andre</div><div><br></div></div></div>