Bug 99524

Summary: kernel hangs during shutdown (similar to Bug 98200)
Product: DRI Reporter: wwa <10dmar10>
Component: DRM/RadeonAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: DRI git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
serial terminal capture (power on, login, shutdown)
none
possible fix none

Description wwa 2017-01-25 01:18:18 UTC
Created attachment 129131 [details]
serial terminal capture (power on, login, shutdown)

Hi,
 
this bug is similar to Bug 98200.

Since upgrade from kernel 4.8.17 to 4.9.{1,2,5} I am unable to restart or shutdown my PC. 
Poweroff/restart always ends with black screen (display shows "no signal"). 
System stays frozen with fans / hard discs spinning. 
Reset button does not bring the system back - it stays completely frozen.
Only manual (power button) power off/on cycle brings the system back.

GPU: [AMD/ATI] Juniper XT [Radeon HD 5770]

I was able to capture kernel messages over serial line, last lines:

...
[  136.326236] systemd-shutdown[1]: All loop devices detached.
[  136.353887] kvm: exiting hardware virtualization
[  136.380090] Console: switching to colour VGA+ 80x25
[  136.406675] [drm] radeon: finishing device.  

I tested kernel 4.9.1, 4.9.2 and 4.9.5.
Comment 1 Peter Bowey 2017-01-25 11:53:40 UTC
I also have this problem:

Kernel 4.9.5 and 4.9.4 both fail on restart or shutdown (same symptoms).

Kernel 4.8.16 and earlier are OK.

Video card:

Advanced Micro Devices, Inc. [AMD/ATI] Redwood XT GL [FirePro V4800]

	Subsystem: Hewlett-Packard Company Device 2306
	Physical Slot: 2
	Flags: bus master, fast devsel, latency 0, IRQ 29
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0100000 (64-bit, non-prefetchable) [size=128K]
	I/O ports at 2100 [size=256]
	[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
	Capabilities: [50] Power Management version 3
	Capabilities: [58] Express Legacy Endpoint, MSI 00
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Capabilities: [150] Advanced Error Reporting
	Capabilities: [240] Power Budgeting <?>
	Kernel driver in use: radeon
	Kernel modules: radeon

Serial Capture logs show the same kernel data as for @wwa
Comment 2 Alex Deucher 2017-01-25 17:05:35 UTC
Created attachment 129145 [details] [review]
possible fix

Does the attached patch help?
Comment 3 wwa 2017-01-25 18:41:41 UTC
Yes, "possible fix" patch fixes the problem, tested with 4.9.5.
Comment 4 wwa 2017-02-01 20:49:01 UTC
Bug fixed in 4.9.7, thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.