Bug 99628

Summary: AMD Radeon HD 8600M graphics card doesn't work with amdgpu
Product: DRI Reporter: mohsen2120habibikhoo
Component: DRM/AMDgpuAssignee: Default DRI bug account <dri-devel>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: medium CC: intel-gfx-bugs
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg result
none
The result of cat ~/.local/share/xorg/Xorg.0.log
none
fortuanatly wayland started after compiling 4.10-rc6 + new patch of Alex Deucher with some errors and hanging some programs like Setting (when click on Details) but "Gnome on Xorg" just hangs.
none
new Cat log
none
cat log result
none
dmesg now none

Description mohsen2120habibikhoo 2017-02-01 15:42:05 UTC
My Dell inspiron 15R 5537 laptop boot in a black screen with amdgpu kernel driver. My laptop has a hybrid graphics (intel haswell iGPU and a radeon hd 8600m dGPU). using fedora 25 and amd-staging-kernel-4.9-6. this is the result of  lspci -nnk:

00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller [8086:0a04] (rev 09)
	Subsystem: Dell Device [1028:05ea]
	Kernel driver in use: hsw_uncore
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 09)
	Subsystem: Dell Device [1028:05ea]
	Kernel driver in use: i915
	Kernel modules: i915
00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 09)
	Subsystem: Dell Device [1028:05ea]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:14.0 USB controller [0c03]: Intel Corporation 8 Series USB xHCI HC [8086:9c31] (rev 04)
	Subsystem: Dell Device [1028:05ea]
	Kernel driver in use: xhci_hcd
00:16.0 Communication controller [0780]: Intel Corporation 8 Series HECI #0 [8086:9c3a] (rev 04)
	Subsystem: Dell Device [1028:05ea]
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:1b.0 Audio device [0403]: Intel Corporation 8 Series HD Audio Controller [8086:9c20] (rev 04)
	Subsystem: Dell Device [1028:05ea]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 3 [8086:9c14] (rev e4)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1c.3 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 4 [8086:9c16] (rev e4)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1c.4 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 5 [8086:9c18] (rev e4)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1d.0 USB controller [0c03]: Intel Corporation 8 Series USB EHCI #1 [8086:9c26] (rev 04)
	Subsystem: Dell Device [1028:05ea]
	Kernel driver in use: ehci-pci
00:1f.0 ISA bridge [0601]: Intel Corporation 8 Series LPC Controller [8086:9c43] (rev 04)
	Subsystem: Dell Device [1028:05ea]
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich
00:1f.2 SATA controller [0106]: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] [8086:9c03] (rev 04)
	Subsystem: Dell Device [1028:05ea]
	Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 8 Series SMBus Controller [8086:9c22] (rev 04)
	Subsystem: Dell Device [1028:05ea]
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 07)
	Subsystem: Dell Device [1028:05ea]
	Kernel driver in use: r8169
	Kernel modules: r8169
02:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev 73)
	Subsystem: Intel Corporation Wireless-N 7260 [8086:4462]
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
03:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430] [1002:6660]
	Subsystem: Dell Radeon HD 8670M [1028:05ea]
	Kernel modules: amdgpu
Comment 1 Alex Deucher 2017-02-01 15:45:58 UTC
Please attach your xorg log and dmesg output.  I think this is a duplicate of bug
99387.  Does attachment 129182 [details] [review] fix the issue?
Comment 2 mohsen2120habibikhoo 2017-02-01 16:03:28 UTC
Created attachment 129273 [details]
dmesg result

No, it didn't help. dmesg result
Comment 3 Alex Deucher 2017-02-01 16:09:01 UTC
The driver appears to be loaded fine.  What exactly are you trying to do?  The dGPU has no displays attached so you have to use the integrated GPU for display.  You can select the dGPU to offscreen rendering using xrandr.  See this page for more info:
https://wiki.archlinux.org/index.php/PRIME
Comment 4 mohsen2120habibikhoo 2017-02-01 16:29:01 UTC
Created attachment 129274 [details]
The result of cat ~/.local/share/xorg/Xorg.0.log
Comment 5 Alex Deucher 2017-02-01 16:31:52 UTC
This appears to be a problem with the intel driver.
Comment 6 Emil Velikov 2017-02-01 20:36:52 UTC
Seems like both radeon and amdgpu [attempt to] load, according to dmesg

[    4.881589] [drm] radeon kernel modesetting enabled.
...
[    5.293850] [drm] amdgpu kernel modesetting enabled.

Is there a way to "claim" device, such that no other driver uses it ? Alternatively one could add some runtime detection/interop between radeon and amdgpu ?

Mostly thinking out loud ^^ ;-)
Comment 7 mohsen2120habibikhoo 2017-02-02 05:31:10 UTC
(In reply to Emil Velikov from comment #6)
> Seems like both radeon and amdgpu [attempt to] load, according to dmesg
> 
> [    4.881589] [drm] radeon kernel modesetting enabled.
> ...
> [    5.293850] [drm] amdgpu kernel modesetting enabled.
> 
> Is there a way to "claim" device, such that no other driver uses it ?
> Alternatively one could add some runtime detection/interop between radeon
> and amdgpu ?
> 
> Mostly thinking out loud ^^ ;-)

If you mean by runtime detection/interop betwean radeon and amdgpu using "modprobe.blacklist=radeon" at boot time or in modprobe.conf that solution doesn't work and X (or wayland) doesn't start. it just hang after tracing amdgpu driver and display manager doesn't start no matter how long i wait...
Comment 8 mohsen2120habibikhoo 2017-02-02 05:37:25 UTC
and i just desabled radeon module at compile time and system doesn't start X or wayland unless amdgpu driver become blacklisted
Comment 9 mohsen2120habibikhoo 2017-02-03 10:22:01 UTC
Created attachment 129316 [details]
fortuanatly wayland started after compiling 4.10-rc6 + new patch of Alex Deucher with some errors and hanging some programs like Setting (when click on Details) but "Gnome on Xorg" just hangs.
Comment 10 mohsen2120habibikhoo 2017-02-03 10:23:19 UTC
Created attachment 129317 [details]
new Cat log
Comment 11 mohsen2120habibikhoo 2017-02-11 14:19:24 UTC
This attachment resolved the problem of my xwayland problems. https://bugs.freedesktop.org/attachment.cgi?id=129497
Thank you Alex Deucher. Now i can play games by my dGPU. Hope the problem of X will be solved soon. Still can't log in Xorg session...
Comment 12 mohsen2120habibikhoo 2017-02-11 14:28:42 UTC
Created attachment 129504 [details]
cat log result
Comment 13 mohsen2120habibikhoo 2017-02-11 14:29:15 UTC
Created attachment 129505 [details]
dmesg now
Comment 14 mohsen2120habibikhoo 2017-02-12 16:39:38 UTC
Now everything works. this bug report could be closed if the second patch of Alex lands in linux kernel.

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.