Skip to contentSkip to conversation

suspend / rx550 / extremely slow after 2nd thaw

Bug 105021 [email protected] 1 participant 28 messages Feb 9, 2018 – Mar 7, 2018 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

Michel Dänzer <[email protected]> changed:

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

          Component|Driver/AMDgpu               |DRM/AMDgpu
            Product|xorg                        |DRI
           Assignee|[email protected] |[email protected]
                   |                            |.org
         QA Contact|[email protected]       |
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #4 from [email protected] ---
Created attachment 137247
--> https://bugs.freedesktop.org/attachment.cgi?id=137247&action=edit
amdgpu related interrupt count

Michel Dänzer asked:

Quoted 3 lines

When it's slow, do the numbers on the amdgpu line in /proc/interrupts increase over time?

in the first few seconds yes, but then no...
and the CPU number changes from 1 to 0...
-arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #5 from [email protected] ---
the new kernel 4.15.2-2-MANJARO still says during the second resume:

Feb 11 14:07:21 vaako.intern.wgboome.org kernel: [drm:uvd_v6_0_ring_test_ring

[amdgpu]] *ERROR* amdgpu: ring 12 test failed (0xCAFEDEAD)

it cannot even "halt -p" after the first thaw (it just reboots, instead of turning off the power)...

and the command

Quoted 1 line

echo schedutil > /sys/devices/system/cpu/cpufreq/policy1/scaling_governor

fails after the second resume ("no such file" IIRC)... is it possibly not just related to amdgpu?

-arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #6 from [email protected] ---
FYI:
neither
(A) a new BIOS (Gigabyte F2A88XM-D3H, BIOS F10a 02/23/2016 (before it was F9)) nor
(B) turning off IOMMU support in the BIOS
nor
(C) kernel parameters "intremap=off amd_iommu=off"
helped...

-arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #8 from Michel Dänzer <[email protected]> --- (In reply to arne_woerner from comment #4)

Quoted 1 line

in the first few seconds yes, but then no...

So the slowness is probably due to the GPU's IRQ no longer working, the question is why that happens...

Assuming you're running with DC enabled, does amdgpu.dc=0 make a difference? (Or amdgpu.dc=1 otherwise)

If not, since this seems to be a regression, bisecting between 4.14 and 4.15 would probably be the best way forward.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #9 from [email protected] --- weird news:
the bug seems to be not or not only in the kernel... because:
i had the same problem at thaw, when i downgraded like this:
linux414 (4.14.10-2 <- 4.14.16-1)
linux414-headers (4.14.10-2 <- 4.14.16-1)
mesa (17.3.1-0 <- 17.3.3-2)
xorg-server-common (1.19.6-0.1 <- 1.19.6+13+gd0d1a694f-1) xorg-server (1.19.6-0.1 <- 1.19.6+13+gd0d1a694f-1)

i also tried linux414 4.14.13 and 4.14.16... they all do not change that bug...

i thought, that i saw this bug in linux415 only, which i test since Febuary 2018... but now i see it everywhere...

after the first thaw, switching between tty2(text mode) and tty1(Xorg) back and forth (with ALT+CTRL+F2 and ALT+F1) provokes that bug, too...

funnily even without Xorg, the second thaw fails...

does anybody have an idea, which package i should bisect?

is linux413 a good idea?
i mean: i often heard of linux414-drm-next-stage or so? maybe something happened with linux414?
but then i did not c the bug from 2017-11-24 to 2018-01-31...

or did a package change in January/Febuary 2018, that could cause this?

-arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #10 from [email protected] ---
could it be the linux-firmware update?
[2018-01-27 05:38] [ALPM] upgraded linux-firmware (20180104.65b1c68-1 -> 20180119.2a713be-1)
[2018-01-30 06:22] [ALPM] upgraded linux-firmware (20180119.2a713be-1 -> 20180119.2a713be-2)

-arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #11 from Alex Deucher <[email protected]> --- (In reply to arne_woerner from comment #10)

Quoted 5 lines

could it be the linux-firmware update?
[2018-01-27 05:38] [ALPM] upgraded linux-firmware (20180104.65b1c68-1 -> 20180119.2a713be-1)
[2018-01-30 06:22] [ALPM] upgraded linux-firmware (20180119.2a713be-1 -> 20180119.2a713be-2)

Were any amdgpu firmwares included in that update?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #12 from [email protected] --- looks like:
[a: linux-firmware-20180119.2a713be-2-any.pkg.tar.xz] [b: linux-firmware-20180104.65b1c68-1-any.pkg.tar.xz]

# diff -r a/usr/lib/firmware/amdgpu b/usr/lib/firmware/amdgpu
Binary files a/usr/lib/firmware/amdgpu/fiji_vce.bin and
b/usr/lib/firmware/amdgpu/fiji_vce.bin differ
Binary files a/usr/lib/firmware/amdgpu/polaris10_uvd.bin and
b/usr/lib/firmware/amdgpu/polaris10_uvd.bin differ
Binary files a/usr/lib/firmware/amdgpu/polaris11_uvd.bin and
b/usr/lib/firmware/amdgpu/polaris11_uvd.bin differ
Binary files a/usr/lib/firmware/amdgpu/polaris12_uvd.bin and
b/usr/lib/firmware/amdgpu/polaris12_uvd.bin differ
Binary files a/usr/lib/firmware/amdgpu/raven_vcn.bin and
b/usr/lib/firmware/amdgpu/raven_vcn.bin differ
Binary files a/usr/lib/firmware/amdgpu/vega10_uvd.bin and
b/usr/lib/firmware/amdgpu/vega10_uvd.bin differ
Binary files a/usr/lib/firmware/amdgpu/vega10_vce.bin and
b/usr/lib/firmware/amdgpu/vega10_vce.bin differ

even polaris12 seems to be different (RX550 uses polaris12, right?)... i will test it tomorrow... :)

-arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #13 from [email protected] ---
1. (on Manjaro Linux) it is not enough to downgrade linux-firmware... u also need to do a mkinitcpio... :)
2. downgrading the directory /usr/lib/firmware/amdgpu from linux-firmware-20180119.2a713be-2 to linux-firmware-20180104.65b1c68-1 fixes this bug...
3. linux-firmware-20180119.2a713be-1 has this bug, too...
4. downgrading only the file polaris12_uvd.bin is not enough (but it looks slightly better)...
5. how does my box use the other new files in /usr/lib/firmware/amdgpu (fiji_vce.bin, polaris10_uvd.bin, polaris11_uvd.bin, raven_vcn.bin, vega10_uvd.bin, vega10_vce.bin)? i thought my box would not use these...
6. does this suffice to find the bug? or do u want me to try certain other combinations of version 20180104 and 20180119.2a713be-2?

-arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #14 from [email protected] ---
i forgot to mention:
both kernels (4.15.2-2-MANJARO (60Hz vert freq) and 4.14.16-1-MANJARO (40Hz vert freq)) work fine,
_but_ they both need at least one of these kernel parameters in the grub.cfg:
amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.audio=0

-arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #15 from Alex Deucher <[email protected]> --- (In reply to arne_woerner from comment #14)

Quoted 5 lines

i forgot to mention:
both kernels (4.15.2-2-MANJARO (60Hz vert freq) and 4.14.16-1-MANJARO (40Hz vert freq)) work fine,
_but_ they both need at least one of these kernel parameters in the grub.cfg:
amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.audio=0

Can you clarify this last statement? The first two options are irrelevant for your board since it's not SI or CIK.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #16 from Alex Deucher <[email protected]> --- Does disabling MSIs help? Append amdgpu.msi=0 to the kernel command line in grub?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #17 from [email protected] --- (In reply to Alex Deucher from comment #15)

Quoted 7 lines

(In reply to arne_woerner from comment #14)

Quoted 2 lines

_but_ they both need at least one of these kernel parameters in the grub.cfg:
amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.audio=0

Can you clarify this last statement? The first two options are irrelevant for your board since it's not SI or CIK.

yup:
i mean: i did not test, which one is necessary...
so i cannot say, if all three r necessary, or if just one/two of them suffice...

tomorrow i will test "amdgpu.audio=0 amdgpu.msi=0"... with the stable linux-firmware package... right?

or do u mean just "amdgpu.msi=0"?
maybe hdmi audio works already, if amdgpu.msi is 0?

-arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #18 from Alex Deucher <[email protected]> --- (In reply to arne_woerner from comment #17)

Quoted 10 lines

yup:
i mean: i did not test, which one is necessary...
so i cannot say, if all three r necessary, or if just one/two of them suffice...

tomorrow i will test "amdgpu.audio=0 amdgpu.msi=0"... with the stable linux-firmware package... right?

or do u mean just "amdgpu.msi=0"?
maybe hdmi audio works already, if amdgpu.msi is 0?

I doubt the audio parameter would affect anything in this regard, but you said it was required for the board to work properly? Is that the case or am I misinterpreting you? For audio on your board, you need to enable DC which is only available on kernel 4.15 and newer. You can boot with amdgpu.dc=1 to enable DC. The msi option may help narrow down the interrupt issue. If it helps, it seems MSIs are not working properly on your system after resume. This would probably be something outside of the driver if it's a regression.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #19 from [email protected] ---
ok...

but why is it necessary to use that old amdgpu firmware, if it was some other part of the kernel?

i cant find the change log of those firmware files... could there be something, that does not like to suspend/resume?

-arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #20 from Alex Deucher <[email protected]> --- (In reply to arne_woerner from comment #19)

Quoted 7 lines

ok...

but why is it necessary to use that old amdgpu firmware, if it was some other part of the kernel?

i cant find the change log of those firmware files... could there be something, that does not like to suspend/resume?

Is it the firmware that caused the regression? Does everything work with the old firmware?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#19 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #21 from Alex Deucher <[email protected]> --- (In reply to arne_woerner from comment #13)

Quoted 8 lines

1. (on Manjaro Linux) it is not enough to downgrade linux-firmware... u also need to do a mkinitcpio... :)
2. downgrading the directory /usr/lib/firmware/amdgpu from linux-firmware-20180119.2a713be-2 to linux-firmware-20180104.65b1c68-1 fixes this bug...
3. linux-firmware-20180119.2a713be-1 has this bug, too...
4. downgrading only the file polaris12_uvd.bin is not enough (but it looks slightly better)...

Sorry, I missed this part.

Quoted 3 lines

5. how does my box use the other new files in /usr/lib/firmware/amdgpu (fiji_vce.bin, polaris10_uvd.bin, polaris11_uvd.bin, raven_vcn.bin, vega10_uvd.bin, vega10_vce.bin)? i thought my box would not use these...

Your system doesn't use those additional firmwares. They are for other chips.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#20 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #22 from [email protected] ---
(In reply to Alex Deucher from comment #20)

Quoted 2 lines

Is it the firmware that caused the regression? Does everything work with the old firmware?

i did the following experiments:

1.
via kernel parameters in grub.cfg i changed
amdgpu.dc from -1 to 1
amdgpu.msi from -1 to 0
amdgpu.audio from -1 to 0.
i installed version 20180119.2a713be-2 of linux-firmware.
result:
during the second suspend the screen went black (no signal) and the following thaw produced the slow box syndrome...

2.
via kernel parameters in grub.cfg i changed
amdgpu.dc from -1 to 1
and left amdgpu.msi and amdgpu.audio untouched.
i installed version 20180119.2a713be-2 of linux-firmware.
and version 20180104.65b1c68-1 of /usr/lib/firmware/amdgpu/polaris12_uvd.bin (package linux-firmware).
now it works three times in a row...
the 3rd time there even was a running mplayer, that uses HDMI Audio... :)

what is that new polaris12_uvd.bin good for?

-arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#21 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #23 from [email protected] ---
i did another experiment:

i set amdgpu.dc=1 and left amdgpu.msi and amdgpu.audio unchanged and installed the new firmware (180119-2).
result:
i still get this slowness error during second thaw:
PM: Device 0000:01:00.0 failed to thaw async: error -22 dpm_run_callback(): pci_pm_thaw+0x0/0x80 returns -22 [drm:amdgpu_device_resume [amdgpu]] *ERROR* amdgpu_resume failed (-22)

with amdgpu.dc=1 and amdgpu.msi==amdgpu.audio==-1 and
the old firmware (180104) i get this not so bad error during suspend but no slowness even after the 5th thaw in a row:
amdgpu 0000:01:00.0: GPU pci config reset
[drm:amdgpu_suspend [amdgpu]] *ERROR* suspend of IP block <uvd_v6_0> failed -12

-arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#22 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #24 from [email protected] ---
with
kernel 4.15.4-2-MANJARO
and
mesa 17.3.5-0
and
linux-firmware 20180119.2a713be-2
the bug is still there...
-arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#24 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #26 from [email protected] ---
Created attachment 137492
--> https://bugs.freedesktop.org/attachment.cgi?id=137492&action=edit
dmesg of boot/suspend/resume with polaris12_uvd.bin from 20180104

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#25 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #27 from [email protected] ---
Created attachment 137493
--> https://bugs.freedesktop.org/attachment.cgi?id=137493&action=edit
journalctl -r|tac of a resume failure with polaris12_uvd.bin from 20180119-2

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#26 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #28 from [email protected] --- linux kernel 4.15.7-1-MANJARO
with mesa 17.3.6-1
still does not like 20180119-2 polaris12 firmware... -arne

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#27 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

--- Comment #29 from Alex Deucher <[email protected]> ---
We are actively debugging this with the firmware teams. Will update once we get to the root cause.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#28 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=105021

[email protected] <[email protected]> changed:

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

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #30 from [email protected] <[email protected]> ---
https://lists.freedesktop.org/archives/amd-gfx/2018-March/019801.html
the above patch should solve this suspend/resume issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel