Bug 99524 - kernel hangs during shutdown (similar to Bug 98200)
Summary: kernel hangs during shutdown (similar to Bug 98200)
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-25 01:18 UTC by wwa
Modified: 2017-02-01 20:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
serial terminal capture (power on, login, shutdown) (54.35 KB, text/plain)
2017-01-25 01:18 UTC, wwa
no flags Details
possible fix (1.21 KB, patch)
2017-01-25 17:05 UTC, Alex Deucher
no flags Details | Splinter Review

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.