Skip to contentSkip to conversation

New: Broken power management for amdgpu

Bug 213823 [email protected] 2 participants 9 messages Jul 22, 2021 – Oct 2, 2022

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=213823

            Bug ID: 213823
           Summary: Broken power management for amdgpu
           Product: Drivers
           Version: 2.5
    Kernel Version: 5.13.4
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: Video(DRI - non Intel)
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Created attachment 298003
--> https://bugzilla.kernel.org/attachment.cgi?id=298003&action=edit
amdgpu dmesg output on 5.12

After upgrading to kernel 5.13.4 (from 5.12.15, on Arch Linux), I’ve realized my AMD dGPU was not powering off anymore resulting in increased power consumption, heat and noise (because of the fan trying to dissipate the heat).

I’ve compared kernel dmesg on both kernels, and I’ve found related differences:

@@ -1,4 +1,6 @@
[drm] amdgpu kernel modesetting enabled.
+amdgpu: CRAT table not found
+amdgpu: Virtual CRAT table created for CPU
amdgpu: Topology: Add CPU node
fb0: switching to amdgpudrmfb from EFI VGA
amdgpu 0000:01:00.0: enabling device (0006 -> 0007)
@@ -14,7 +16,10 @@ amdgpu 0000:01:00.0: amdgpu: GART: 256M 0x000000FF00000000 - 0x000000FF0FFFFFFF
[drm] amdgpu: 4096M of VRAM memory ready
[drm] amdgpu: 4096M of GTT memory ready.
amdgpu: hwmgr_sw_init smu backed is vegam_smu
+kfd kfd: amdgpu: Allocated 3969056 bytes on gart
+amdgpu: Virtual CRAT table created for GPU
amdgpu: Topology: Add dGPU node [0x694f:0x1002]
+kfd kfd: amdgpu: added device 1002:694f
amdgpu 0000:01:00.0: amdgpu: SE 4, SH per SE 1, CU per SH 6, active_cu_number
20
-amdgpu 0000:01:00.0: amdgpu: Using ATPX for runtime pm
-[drm] Initialized amdgpu 3.40.0 20150101 for 0000:01:00.0 on minor 1 +amdgpu 0000:01:00.0: amdgpu: Using BOCO for runtime pm
+[drm] Initialized amdgpu 3.41.0 20150101 for 0000:01:00.0 on minor 1

I’ve attached both excerpt matching the diff above.

FWIW, this is a Dell Precision 5530 2-in-1 with a Kaby Lake-G CPU, which has an Intel HD 630 iGPU as well as an AMD Polaris 22 MGL XL [Radeon Pro WX Vega M GL] dGPU.

Please tell me if there is anything else that I can provide in order to fix this.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw

[Bug 213823] Broken power management for amdgpu

https://bugzilla.kernel.org/show_bug.cgi?id=213823

Bruno Pagani ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Bruno Pagani ([email protected]) --- Created attachment 298005
--> https://bugzilla.kernel.org/attachment.cgi?id=298005&action=edit
amdgpu dmesg output on 5.13

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#3 lore raw

[Bug 213823] Broken power management for amdgpu

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=213823

Alex Deucher ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #2 from Alex Deucher ([email protected]) --- Please attach your full dmesg outputs. Can you bisect?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#6 lore raw

[Bug 213823] Broken power management for amdgpu

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=213823

--- Comment #5 from Bruno Pagani ([email protected]) --- (In reply to Alex Deucher from comment #2)

Quoted 1 line

Please attach your full dmesg outputs. Can you bisect?

Done. Unfortunately no: I’ve never done so before, so while I expect to be technically able to do it, I guess it will take some time for me to setup (I have never compiled a kernel myself either), and time is something I definitively lack of currently (several deadlines to meet each week until the end of August).

Since I can live with a 5.12 kernel (or even 5.10 LTS), I’m fine with it having to wait until I have time to setup bisecting if need be though.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#7 lore raw

[Bug 213823] Broken power management for amdgpu

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=213823

--- Comment #6 from Bruno Pagani ([email protected]) --- So while I still don’t have time to setup bisecting, I’m now affected even on LTS kernel. Also, I’ve been in touch with other users having a similar laptop (the XPS version instead of the Precision, but still KabyLake-G), and they don’t seem affected. Thus I’m not sure anymore this is a kernel issue (and whether BOCO vs ATPX is relevant). Where should I seek for guidance in understanding why my dGPU stays stuck in D0 instead of going into D3? Is this or https://gitlab.freedesktop.org/drm/amd and appropriate place?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#8 lore raw

[Bug 213823] Broken power management for amdgpu

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=213823

Bruno Pagani ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |OBSOLETE

--- Comment #7 from Bruno Pagani ([email protected]) --- Closing this old bug, this seems gone now on newer kernels.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.