Skip to contentSkip to conversation

Kernel Panic on shutdown caused by "drm/amdgpu: always apply pci shutdown callbacks"

Bug 98276 [email protected] 1 participant 15 messages Oct 16, 2016 – Nov 19, 2019

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 98276
Summary: Kernel Panic on shutdown caused by "drm/amdgpu: always
apply pci shutdown callbacks"
Product: DRI
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

Kernel 4.9-rc1 fails on shutdown/reboot with a panic. Bisect pointed me to

00ea8cba5ef7b783f11cb1a0b900b7c18d2ce0b6 is the first bad commit commit 00ea8cba5ef7b783f11cb1a0b900b7c18d2ce0b6

Author: Alex Deucher <[email protected]>
Date:   Thu Sep 22 14:40:29 2016 -0400

drm/amdgpu: always apply pci shutdown callbacks (v2)

We can't properly detect all hypervisors and we need this to properly tear down the hardware.

v2: trivial warning fix

:040000 040000 868a00ff980f95dac82b908df0737342bf40cdc3
02bf2cf4e8797d37d454301afedf2f97735b60ca M drivers

After removing this commit, everything works again. System is a Carrizo.

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 [email protected]

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

--- Comment #2 from Alex Deucher <[email protected]> --- If you can't get them during a reboot/shutdown, you can reproduce it my unloading the module as they use the same code. E.g., modprobe -r amdgpu

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 [email protected]

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

--- Comment #3 from Johannes Hirte <[email protected]> --- I only have a black screen when the panic happens. Rebuild the kernel with amdgpu as module for the unloading module option, but this way I can't remove the driver cause the module is in use.

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 [email protected]

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

Mike Lothian <[email protected]> changed:

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

--- Comment #4 from Mike Lothian <[email protected]> --- rmmod -f amdgpu should do the trick

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

#5 lore raw
In reply to [email protected]

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

--- Comment #5 from Johannes Hirte <[email protected]> --- (In reply to Mike Lothian from comment #4)

Quoted 1 line

rmmod -f amdgpu should do the trick

This way I can remove the module, but I don't get the panic. The screen goes black and I have to reboot via SysReq Keys.

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 [email protected]

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

--- Comment #6 from Alex Deucher <[email protected]> --- You can also unbind the console before unloading the module.

sudo bash -c "echo 0 > /sys/class/vtconsole/vtcon1/bind" sudo modprobe -r amdgpu

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 [email protected]

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

--- Comment #7 from Johannes Hirte <[email protected]> --- (In reply to Alex Deucher from comment #6)

Quoted 3 lines

You can also unbind the console before unloading the module.

sudo bash -c "echo 0 > /sys/class/vtconsole/vtcon1/bind"

First time this resulted in a black screen with a panic, next time the system hung, but reboot via SysReq Keys worked. Always happened on the unbind.

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 [email protected]

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

--- Comment #8 from Johannes Hirte <[email protected]> --- Created attachment 127488
--> https://bugs.freedesktop.org/attachment.cgi?id=127488&action=edit
dmesg output after unloading amdgpu.ko

I've retried removing the module via ssh session and the second time I was successful. The dmesg output is attached.

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 [email protected]

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

--- Comment #9 from Ernst Sjöstrand <[email protected]> --- Is this fixed somewhere now also?
Related to https://bugs.freedesktop.org/show_bug.cgi?id=98200 I guess?

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 [email protected]

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

--- Comment #10 from Johannes Hirte <[email protected]> --- (In reply to Ernst Sjöstrand from comment #9)

Quoted 1 line

Is this fixed somewhere now also?

still happens with 4.9-rc2 as well as 4.10-wip

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 [email protected]

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

--- Comment #11 from Johannes Hirte <[email protected]> --- As the dmesg shows a problem in the ACP code, I've just disabled it now and it works. Don't know what's the real problem, but without ACP my system reboot fine.

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 [email protected]

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

--- Comment #12 from Alex Deucher <[email protected]> --- Created attachment 127736
--> https://bugs.freedesktop.org/attachment.cgi?id=127736&action=edit
possible fix

This should fix it.

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 [email protected]

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

--- Comment #13 from Johannes Hirte <[email protected]> --- (In reply to Alex Deucher from comment #12)

Quoted 4 lines

Created attachment 127736 [details] [review]
possible fix

This should fix it.

Yes, this fixes the panic on reboot/unloading the driver.

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 [email protected]

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

Martin Peres <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #14 from Martin Peres <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/106.

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