New: Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
https://bugzilla.kernel.org/show_bug.cgi?id=106271
Bug ID: 106271
Summary: Switch between AMD hybrid graphics (HD 8650G / HD
8970M) makes hardware reset.
Product: Drivers
Version: 2.5
Kernel Version: 4.2.3
Hardware: x86-64
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Video(DRI - non Intel)
Assignee: [email protected]
Reporter: [email protected]
Regression: NoCreated attachment 190531
--> https://bugzilla.kernel.org/attachment.cgi?id=190531&action=edit
lspci -vvv
Hello,
Hardware: MSI GX60 with two graphic cards, integrated inside A10 GPU and discrete AMD R9 M290X.
Integrated card is the main card by default:
sudo cat /sys/kernel/debug/vgaswitcheroo/switch
0:IGD:+:Pwr:0000:00:01.0
1:DIS: :DynOff:0000:01:00.0
If I try to swich to discrete card:
sudo echo DIS > /sys/kernel/debug/vgaswitcheroo/switch
Hardware reboot happend and BIOS starting.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
https://bugzilla.kernel.org/show_bug.cgi?id=106271
--- Comment #1 from Aneroid <[email protected]> ---
Created attachment 190541
--> https://bugzilla.kernel.org/attachment.cgi?id=190541&action=edit
glxinfo
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=106271
--- Comment #2 from Aneroid <[email protected]> ---
Created attachment 190551
--> https://bugzilla.kernel.org/attachment.cgi?id=190551&action=edit
dmesg
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=106271
Lukas Wunner <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #3 from Lukas Wunner <[email protected]> ---
The pitcairn GPU says "No connectors reported connected with modes". I suppose that's the discrete GPU?
Does this machine have a hardware mux at all? If not, the discrete GPU can only be used to offload rendering and switching won't work. I guess the only thing that can be improved in this case is to make radeon_atpx_switchto() a no-op on muxless machines.
If on the other hand the machine *does* have a mux, the question is why the pitcairn GPU didn't find any modes. Are there none in VBT? If so, the issue can probably be solved by temporarily switching DDC to the discrete GPU on probe. I'm working on patches to do that with apple-gmux on the MacBook Pro.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=106271
Alex Deucher <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #4 from Alex Deucher <[email protected]> --- According to the log, the dGPU has a single VGA port. I doubt it's muxed, just about all AMD PX laptops have been muxless for a while now. It's probably a VGA port on a docking station. As Lukas mentioned, if you want to use the dGPU, you can only use it for offscreen rendering. See this page for how to utilize that functionality:
http://nouveau.freedesktop.org/wiki/Optimus/
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=106271
--- Comment #5 from Aneroid <[email protected]> --- Yes, I try to do that.
xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x7e cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 4 associated providers: 0 name:radeon Provider 1: id: 0x46 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 1 associated providers: 0 name:radeon
xrandr --setprovideroffloadsink 0x7e 0x46
And it ruined my xorg completely. X fall out in to the shell without any errors.
I could switch between graphics card on flgrx driver with "aticonfig --px-dgpu" and "aticonfig --px-igpu". It worked well.
But now, it seems that I stuck in low power graphics mode and I can't switch to my power card. '
glxinfo always show me AMD ARUBA chip:
glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Gallium 0.4 on AMD ARUBA (DRM 2.43.0, LLVM 3.7.0)
DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Gallium 0.4 on AMD ARUBA (DRM 2.43.0, LLVM 3.7.0)
DRI_PRIME=0 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Gallium 0.4 on AMD ARUBA (DRM 2.43.0, LLVM 3.7.0)
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=106271
--- Comment #6 from Alex Deucher <[email protected]> --- (In reply to Aneroid from comment #5)
Quoted 10 lines
Yes, I try to do that.
xrandr --listproviders
Providers: number : 2
Provider 0: id:0x7ecap:0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 4 associated providers: 0 name:radeon Provider 1: id:0x46cap:0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 1 associated providers: 0 name:radeonxrandr --setprovideroffloadsink
0x7e0x46
You've got the arguments reversed; the first is the offload device, the second is the display device. Try:
xrandr --setprovideroffloadsink 0x46 0x7e
Quoted 3 lines
And it ruined my xorg completely. X fall out in to the shell without any errors.
Can you attach your dmesg output and xorg log when you do that?
Does adding amdgpu.runpm=0 to the kernel command line in grub help?
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=106271
--- Comment #7 from Aneroid <[email protected]> --- (In reply to Alex Deucher from comment #6)
Quoted 5 lines
You've got the arguments reversed; the first is the offload device, the second is the display device. Try:
xrandr --setprovideroffloadsink
0x460x7e
Ok.
[an@GX60 ~]$ xrandr --setprovideroffloadsink 0x46 0x7e [an@GX60 ~]$ DRI_PRIME=0 glxinfo | grep "OpenGL renderer" OpenGL renderer string: Gallium 0.4 on AMD ARUBA (DRM 2.43.0, LLVM 3.7.0) [an@GX60 ~]$ DRI_PRIME=1 glxinfo | grep "OpenGL renderer" OpenGL renderer string: Gallium 0.4 on AMD ARUBA (DRM 2.43.0, LLVM 3.7.0)
But in that case nothing happend at all.
Quoted 7 lines
Quoted 3 lines
And it ruined my xorg completely. X fall out in to the shell without any errors.
Can you attach your dmesg output and xorg log when you do that?
Does adding amdgpu.runpm=0 to the kernel command line in grub help?
This line does not change anything either.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=106271
--- Comment #8 from Aneroid <[email protected]> ---
Created attachment 191621
--> https://bugzilla.kernel.org/attachment.cgi?id=191621&action=edit
dmesg after Xorg fall
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=106271
--- Comment #9 from Aneroid <[email protected]> ---
Created attachment 191631
--> https://bugzilla.kernel.org/attachment.cgi?id=191631&action=edit
Xorg.log
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=106271
--- Comment #10 from Aneroid <[email protected]> ---
Created attachment 191771
--> https://bugzilla.kernel.org/attachment.cgi?id=191771&action=edit
Kernel crash log
Very strange things happend.
Kernel crash on every reboot now.
It looks like kernel switch on pitcairin card, but can't boot from it.
I remove any kernel options.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=106271
--- Comment #11 from Aneroid <[email protected]> ---
May be the root of that problem is that Radeon HD 8970M is not a Pitcairn card ?
It is a Neptune XT, some kind of mobile version:
http://www.techpowerup.com/gpudb/1966/radeon-hd-8970m.html
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=106271
--- Comment #12 from Alex Deucher <[email protected]> --- (In reply to Aneroid from comment #11)
Quoted 5 lines
May be the root of that problem is that Radeon HD 8970M is not a Pitcairn card ?
It is a Neptune XT, some kind of mobile version:
http://www.techpowerup.com/gpudb/1966/radeon-hd-8970m.html
Neptune is the just the code name for mobile Pitcairn chips.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=106271
--- Comment #13 from Aneroid <[email protected]> --- Ok.
But this strange error: "radeon 0000:01:00.0: VCE init error (-22)." What does it mean ?
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 106271] Switch between AMD hybrid graphics (HD 8650G / HD 8970M) makes hardware reset.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=106271
--- Comment #14 from Alex Deucher <[email protected]> --- (In reply to Aneroid from comment #13)
Quoted 4 lines
Ok.
But this strange error: "radeon 0000:01:00.0: VCE init error (-22)." What does it mean ?
The video encoding engine failed to initialize. This is a known issue on certain SI parts, but is harmless unless you need to use the encoding engine.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel