suijingfeng / test

0 stars 0 forks source link

AMD GPU on Loongnix #2

Closed suijingfeng closed 4 years ago

suijingfeng commented 4 years ago

[ 8.835937] Can't find requested voltage id in vdd_dep_on_sclk table! [ 8.839843] amdgpu: powerplay initialized

[ 8.890625] [drm] Found UVD firmware Version: 1.130 Family ID: 16 [ 8.925781] amdgpu 0000:03:00.0: fence driver on ring 11 use gpu addr 0x00000000008a3a80, cpu addr 0x90000000408a3a80 [ 8.933593] [drm] Found VCE firmware Version: 53.26 Binary ID: 3 [ 9.007812] [AVFS] Something is broken. See log!VDDCI is larger than max VDDCI in VDDCI Voltage Table! [ 9.007812] VDDCI is larger than max VDDCI in VDDCI Voltage Table! [ 9.007812] VDDCI is larger than max VDDCI in VDDCI Voltage Table! [ 9.050781] [drm] UVD initialized successfully. [ 9.152343] [drm] VCE initialized successfully. [ 9.191406] [drm] Initialized amdgpu 3.9.0 20150101 for 0000:03:00.0 on minor 0 [ 9.191406] PCI: Enabling device 0000:03:00.1 (0000 -> 0002)

suijingfeng commented 4 years ago

amdgpu.dpm=0 to shut off the Dynamic Power Management module, which contains AMD's powerplay, and everything works fine.

suijingfeng commented 4 years ago

Upon further investigation, I would like to ammend my previous comment.

Setting amdgpu.dpm=0 will allow you to bypass those errors by disabling dpm altogether, but the consequence is that the fans will stop spinning almost entirely (slow or no fan speeds when they should be ramping up).

Instead, set:

amdgpu.ppfeaturemask=1

which enables the card to broadcast all of its power states properly. With this enabled, all the errors mentioned in this thread vanished from my system, and in addition, the hwmon features actually showed up under /sys/class/drm/card0/device/hwmon/hwmon0/ and I can even echo speeds to pwm1.

suijingfeng commented 4 years ago

I'm unsure if this has any adverse effects on anything, but if it does not, perhaps ppfeaturemask should be set to default enabled in the amdgpu driver.

suijingfeng commented 4 years ago

amdgpu.ppfeaturemask=1 add the GPU does not overheat.

suijingfeng commented 4 years ago

Package Arch Version Repository Size

Installing: mesa-libGL-devel x86_64 18.3.1-5.el8_0 AppStream 176 k Installing dependencies: libX11-devel x86_64 1.6.7-1.el8 AppStream 976 k libXau-devel x86_64 1.0.8-13.el8 AppStream 20 k libXdamage-devel x86_64 1.1.4-14.el8 AppStream 15 k libXext-devel x86_64 1.3.3-9.el8 AppStream 80 k libXfixes-devel x86_64 5.0.3-7.el8 AppStream 19 k libXxf86vm-devel x86_64 1.1.4-9.el8 AppStream 20 k libdrm-devel x86_64 2.4.96-2.el8 AppStream 152 k libglvnd-core-devel x86_64 1:1.0.1-0.9.git5baa1e5.el8 AppStream 24 k libglvnd-devel x86_64 1:1.0.1-0.9.git5baa1e5.el8 AppStream 16 k libglvnd-opengl x86_64 1:1.0.1-0.9.git5baa1e5.el8 AppStream 48 k libxcb-devel x86_64 1.13-5.el8 AppStream 1.1 M mesa-khr-devel x86_64 18.3.1-5.el8_0 AppStream 33 k xorg-x11-proto-devel noarch 2018.4-1.el8 AppStream 283 k

suijingfeng commented 4 years ago

1) https://bugzilla.redhat.com/show_bug.cgi?id=1499580 2) https://bugzilla.redhat.com/show_bug.cgi?id=1499570 3) dracut --force