Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #72440 > unrolled thread

Bug#991453: linux-image-5.10.0-8-amd64: Radeon 6800 XT: 100% GPU core usage & 74 Watts when idle

Started byDiederik de Haas <didi.debian@cknow.org>
First post2021-07-24 14:30 +0200
Last post2021-07-25 01:20 +0200
Articles 3 — 1 participant

Back to article view | Back to linux.debian.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#991453: linux-image-5.10.0-8-amd64: Radeon 6800 XT: 100% GPU core usage & 74 Watts when idle Diederik de Haas <didi.debian@cknow.org> - 2021-07-24 14:30 +0200
    Bug#991453: linux-image-5.10.0-8-amd64: Radeon 6800 XT: 100% GPU core usage & 74 Watts when idle Diederik de Haas <didi.debian@cknow.org> - 2021-07-24 22:10 +0200
      Bug#991453: linux-image-5.10.0-8-amd64: Radeon 6800 XT: 100% GPU core usage & 74 Watts when idle Diederik de Haas <didi.debian@cknow.org> - 2021-07-25 01:20 +0200

#72440 — Bug#991453: linux-image-5.10.0-8-amd64: Radeon 6800 XT: 100% GPU core usage & 74 Watts when idle

FromDiederik de Haas <didi.debian@cknow.org>
Date2021-07-24 14:30 +0200
SubjectBug#991453: linux-image-5.10.0-8-amd64: Radeon 6800 XT: 100% GPU core usage & 74 Watts when idle
Message-ID<CEoX0-4R0-5@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Control: tags -1 confirmed

On zaterdag 24 juli 2021 01:29:55 CEST piorunz wrote:
> GPU core works at 100% usage at all times, even at idle.
> 
> $ cat /sys/class/drm/card0/device/gpu_busy_percent
> 99
> 
> $ sensors
> (...)
> amdgpu-pci-0900
> Adapter: PCI adapter
> vddgfx:        1.14 V
> fan1:        1098 RPM  (min =    0 RPM, max = 3000 RPM)
> edge:         +51.0°C  (crit = +100.0°C, hyst = -273.1°C)
>                        (emerg = +105.0°C)
> junction:     +55.0°C  (crit = +110.0°C, hyst = -273.1°C)
>                        (emerg = +115.0°C)
> mem:          +56.0°C  (crit = +100.0°C, hyst = -273.1°C)
>                        (emerg = +105.0°C)
> power1:       74.00 W  (cap = 272.00 W)
> 
> radeontop - 100% GPU usage and full clocks:
> Graphics pipe 100.00%
> 1.00G / 1.00G Memory Clock 100.00%
> 2.47G / 2.58G Shader Clock  95.92%

I'm getting the same results on my Radeon RX Vega 64.
$ cat /sys/class/drm/card0/device/gpu_busy_percent
99
$ sensors
nvme-pci-0100
Adapter: PCI adapter
Composite:    +43.9°C  (low  = -273.1°C, high = +72.8°C)
                       (crit = +75.8°C)
Sensor 1:     +43.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +49.9°C  (low  = -273.1°C, high = +65261.8°C)

amdgpu-pci-0c00
Adapter: PCI adapter
vddgfx:        1.09 V  
fan1:        1240 RPM  (min =    0 RPM, max = 3500 RPM)
edge:         +50.0°C  (crit = +85.0°C, hyst = -273.1°C)
                       (emerg = +90.0°C)
junction:     +63.0°C  (crit = +105.0°C, hyst = -273.1°C)
                       (emerg = +110.0°C)
mem:          +51.0°C  (crit = +95.0°C, hyst = -273.1°C)
                       (emerg = +100.0°C)
power1:       74.00 W  (cap = 260.00 W)

k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +66.0°C  
Tdie:         +46.0°C

And also for radeontop.

> This I believe has been fixed upstream:
> https://gitlab.freedesktop.org/drm/amd/-/issues/1632
> 
> Can you please make sure this will be backported to Debian 5.10 kernel?

It's already backported to 5.10, just after 5.10.46 was released:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=fea853aca3210c21dfcf07bb82d501b7fd1900a7

[toc] | [next] | [standalone]


#72447

FromDiederik de Haas <didi.debian@cknow.org>
Date2021-07-24 22:10 +0200
Message-ID<CEw8a-Ox-9@gated-at.bofh.it>
In reply to#72440

[Multipart message — attachments visible in raw view] — view raw

> It's already backported to 5.10, just after 5.10.46 was released:
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=l
> inux-5.10.y&id=fea853aca3210c21dfcf07bb82d501b7fd1900a7

Just found out the reverted commit was introduced just before the 5.10.46 tag
was created, which should mean that any version before 5.10.46 should NOT
have this problem. The version uploaded to the Debian archive before that
was 5.10.40-1, which in my case was linux-image-5.10.0-7-amd64.
I no longer had that installed, so added the following line to /e/a/sources.list:
deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/20210529T204006Z/ sid main

Installed linux-image-5.10.0-7-amd64 and rebooted into that ...

On zaterdag 24 juli 2021 14:22:38 CEST Diederik de Haas wrote:
> On zaterdag 24 juli 2021 01:29:55 CEST piorunz wrote:
> > GPU core works at 100% usage at all times, even at idle.
> > 
> > $ cat /sys/class/drm/card0/device/gpu_busy_percent
> > 99
> > 
> > $ sensors
> > (...)
> > amdgpu-pci-0900
> > Adapter: PCI adapter
> > vddgfx:        1.14 V
> > fan1:        1098 RPM  (min =    0 RPM, max = 3000 RPM)
> > edge:         +51.0°C  (crit = +100.0°C, hyst = -273.1°C)
> > 
> >                        (emerg = +105.0°C)
> > 
> > junction:     +55.0°C  (crit = +110.0°C, hyst = -273.1°C)
> > 
> >                        (emerg = +115.0°C)
> > 
> > mem:          +56.0°C  (crit = +100.0°C, hyst = -273.1°C)
> > 
> >                        (emerg = +105.0°C)
> > 
> > power1:       74.00 W  (cap = 272.00 W)
> > 
> > radeontop - 100% GPU usage and full clocks:
> > Graphics pipe 100.00%
> > 1.00G / 1.00G Memory Clock 100.00%
> > 2.47G / 2.58G Shader Clock  95.92%
> 
> I'm getting the same results on my Radeon RX Vega 64.
> $ cat /sys/class/drm/card0/device/gpu_busy_percent
> 99
> $ sensors
> nvme-pci-0100
> Adapter: PCI adapter
> Composite:    +43.9°C  (low  = -273.1°C, high = +72.8°C)
>                        (crit = +75.8°C)
> Sensor 1:     +43.9°C  (low  = -273.1°C, high = +65261.8°C)
> Sensor 2:     +49.9°C  (low  = -273.1°C, high = +65261.8°C)
> 
> amdgpu-pci-0c00
> Adapter: PCI adapter
> vddgfx:        1.09 V
> fan1:        1240 RPM  (min =    0 RPM, max = 3500 RPM)
> edge:         +50.0°C  (crit = +85.0°C, hyst = -273.1°C)
>                        (emerg = +90.0°C)
> junction:     +63.0°C  (crit = +105.0°C, hyst = -273.1°C)
>                        (emerg = +110.0°C)
> mem:          +51.0°C  (crit = +95.0°C, hyst = -273.1°C)
>                        (emerg = +100.0°C)
> power1:       74.00 W  (cap = 260.00 W)
> 
> k10temp-pci-00c3
> Adapter: PCI adapter
> Tctl:         +66.0°C
> Tdie:         +46.0°C
> 
> And also for radeontop.

$ cat /sys/class/drm/card0/device/gpu_busy_percent

0
$ sensors
nvme-pci-0100
Adapter: PCI adapter
Composite:    +32.9°C  (low  = -273.1°C, high = +72.8°C)
                       (crit = +75.8°C)
Sensor 1:     +32.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +41.9°C  (low  = -273.1°C, high = +65261.8°C)

amdgpu-pci-0c00
Adapter: PCI adapter
vddgfx:      750.00 mV 
fan1:        1182 RPM  (min =    0 RPM, max = 3500 RPM)
edge:         +37.0°C  (crit = +85.0°C, hyst = -273.1°C)
                       (emerg = +90.0°C)
junction:     +38.0°C  (crit = +105.0°C, hyst = -273.1°C)
                       (emerg = +110.0°C)
mem:          +39.0°C  (crit = +95.0°C, hyst = -273.1°C)
                       (emerg = +100.0°C)
power1:        7.00 W  (cap = 260.00 W)

k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +65.6°C  
Tdie:         +45.6°C

# radeontop
Graphics pipe 0.83%
0.17G / 0.94G Memory Clock 17.67%
0.03G / 1.63G Shader Clock  1.81%

So running a kernel != 5.10.46 does not have this problem :)

[toc] | [prev] | [next] | [standalone]


#72450

FromDiederik de Haas <didi.debian@cknow.org>
Date2021-07-25 01:20 +0200
Message-ID<CEz62-2vR-3@gated-at.bofh.it>
In reply to#72447

[Multipart message — attachments visible in raw view] — view raw

On zaterdag 24 juli 2021 22:03:23 CEST Diederik de Haas wrote:
> > It's already backported to 5.10, just after 5.10.46 was released:
> > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h
> > =l inux-5.10.y&id=fea853aca3210c21dfcf07bb82d501b7fd1900a7
> 
> Just found out the reverted commit was introduced just before the 5.10.46
> tag was created, which should mean that any version before 5.10.46 should
> NOT have this problem. 

I just found out it's 2 commits that should be reverted
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=1bd81429d53ded4e111616c755a64fad80849354
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=fea853aca3210c21dfcf07bb82d501b7fd1900a7

The first one I saved (and attached) as 'fix-bug991453-part1.patch' and the 
second one as 'fix-bug991453-part1.patch'

Then I followed step 4.2.1 and 4.2.2 of the kernel handbook:
https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-common-official
That resulted in 'linux-image-5.10.0-8-amd64-unsigned_5.10.46-2a~test_amd64.deb'
which I then installed on my system and rebooted into that.

$ uname -a
Linux bagend 5.10.0-8-amd64 #1 SMP Debian 5.10.46-2a~test (2021-07-24) x86_64 GNU/Linux
$ cat /sys/class/drm/card0/device/gpu_busy_percent

0
$ sensors
nvme-pci-0100
Adapter: PCI adapter
Composite:    +40.9°C  (low  = -273.1°C, high = +72.8°C)
                       (crit = +75.8°C)
Sensor 1:     +40.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +51.9°C  (low  = -273.1°C, high = +65261.8°C)

amdgpu-pci-0c00
Adapter: PCI adapter
vddgfx:      750.00 mV 
fan1:        1208 RPM  (min =    0 RPM, max = 3500 RPM)
edge:         +42.0°C  (crit = +85.0°C, hyst = -273.1°C)
                       (emerg = +90.0°C)
junction:     +42.0°C  (crit = +105.0°C, hyst = -273.1°C)
                       (emerg = +110.0°C)
mem:          +43.0°C  (crit = +95.0°C, hyst = -273.1°C)
                       (emerg = +100.0°C)
power1:        7.00 W  (cap = 260.00 W)

k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +76.5°C  
Tdie:         +56.5°C

# radeontop
Graphics pipe 0.83%
0.17G / 0.94G Memory Clock 17.67%
0.03G / 1.63G Shader Clock  1.78%

These are the same 'scores' as I had with the 5.10.0-7-amd64 kernel.
So applying the mentioned/attached patches on top of the current kernel
as available in Debian Testing/Bullseye and Sid, fixes the problem.

In the last year I've spend considerable time to bring down my energy
usage/needs and I never expected that (reverting) 2 kernel commits
would save me 67W (continuously), so thank you very much piorunz for
bringing this to my attention.
I normally have a quiet system and noticed it often wasn't quiet lately; 
I blame(d) 'baloo' (file indexing) for that, but it turns out it was mostly
my GPU running at 100% all the time.

As it looks like a lot of users with AMD GPUs are affected and the 
considerable energy wasted because of it (Climate Change), 
I really hope/urge that these 2 patches/reverts are applied before Bullseye
gets released.

Cheers,
  Diederik

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web