[Bug 76840] HybridGraphics: Kernel driver in use: radeon but adapter not listed

2015-11-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=76840

Michael Eagle  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #9 from Michael Eagle  ---
Issue is fixed now with fedora 23.

Packages:
kernel 4.4.0-0.rc1.git
mesa-libwayland-egl-11.1.0-0.devel.34.292df19.fc23.x86_64
mesa-libglapi-11.1.0-0.devel.34.292df19.fc23.i686
mesa-libxatracker-11.1.0-0.devel.34.292df19.fc23.x86_64
mesa-libEGL-11.1.0-0.devel.34.292df19.fc23.i686
mesa-libgbm-11.1.0-0.devel.34.292df19.fc23.x86_64
mesa-libgbm-11.1.0-0.devel.34.292df19.fc23.i686
mesa-libEGL-11.1.0-0.devel.34.292df19.fc23.x86_64
mesa-libOSMesa-11.1.0-0.devel.34.292df19.fc23.x86_64
mesa-libGLU-9.0.0-9.fc23.x86_64
mesa-libGL-11.1.0-0.devel.34.292df19.fc23.i686
mesa-libglapi-11.1.0-0.devel.34.292df19.fc23.x86_64
mesa-filesystem-11.1.0-0.devel.34.292df19.fc23.x86_64
mesa-dri-drivers-11.1.0-0.devel.34.292df19.fc23.x86_64
mesa-libGLES-11.1.0-0.devel.34.292df19.fc23.x86_64
mesa-dri-drivers-11.1.0-0.devel.34.292df19.fc23.i686
mesa-filesystem-11.1.0-0.devel.34.292df19.fc23.i686
mesa-libGL-11.1.0-0.devel.34.292df19.fc23.x86_64
xorg-x11-drv-ati-7.6.99-1.20151115gitdfb5277.fc23.x86_64
xorg-x11-server-Xorg-1.18.0-2.fc23.x86_64
xorg-x11-drv-intel-2.99.917-16.20150729.fc23.x86_64
llvm-libs-3.7.0-1.fc23.i686
llvm-libs-3.7.0-1.fc23.x86_64

now, inxi -G shows both adapters:
Graphics:  Card-1: Intel Haswell-ULT Integrated Graphics Controller
   Card-2: Advanced Micro Devices [AMD/ATI] Sun XT [Radeon HD
8670A/8670M/8690M / R5 M330]
   Display Server: X.org 1.18.0 drivers: ati,radeon,intel (unloaded:
fbdev,vesa)
   tty size: 211x49 Advanced Data: N/A for root


xrandr --listproviders
Providers: number : 3
Provider 0: id: 0x78 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs:
4 outputs: 5 associated providers: 2 name:Intel
Provider 1: id: 0x4f cap: 0xf, Source Output, Sink Output, Source Offload, Sink
Offload crtcs: 0 outputs: 0 associated providers: 2 name:radeon
Provider 2: id: 0x4f cap: 0xf, Source Output, Sink Output, Source Offload, Sink
Offload crtcs: 0 outputs: 0 associated providers: 2 name:radeon


glxinfo  | grep 'OpenGL renderer\|Mesa'
client glx vendor string: Mesa Project and SGI
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.1.0-devel
OpenGL version string: 3.0 Mesa 11.1.0-devel
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.1.0-devel

DRI_PRIME=1 glxinfo  | grep 'OpenGL renderer\|Mesa'
client glx vendor string: Mesa Project and SGI
OpenGL renderer string: Gallium 0.4 on AMD HAINAN (DRM 2.43.0, LLVM 3.7.0)
OpenGL core profile version string: 4.1 (Core Profile) Mesa 11.1.0-devel
OpenGL version string: 3.0 Mesa 11.1.0-devel
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.1.0-devel


I can also instruct steam to use my secondary adapter to render games.
DRI_PRIME=1 steam

Thank you to all the people involved into solving this!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 76840] HybridGraphics: Kernel driver in use: radeon but adapter not listed

2014-04-04 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=76840

--- Comment #8 from Michael Eagle  ---
Hello,

I upgraded my kernel with latest ubuntu mainline
Linux mike-g337 3.14.0-999-generic #201404040227 SMP Fri Apr 4 06:28:24 UTC
2014 x86_64 x86_64 x86_64 GNU/Linux

and also webstack from oibaf-ppa:

Upgrade: libg3dvl-mesa:amd64 (10.2~git1404021931.0f641b~gd~s,
10.2~git1404040730.4fa58a~gd~s), xserver-xorg-video-intel:amd64
(2.99.911+git1404021930.baef22~gd~s, 2.99.911+git1404031930.f05658~gd~s),
xserver-xorg-video-ati:amd64 (7.3.99+git1404021930.ed0cfb~gd~s,
7.3.99+git1404022026.ed0cfb~gd~s), xserver-xorg-video-radeon:amd64
(7.3.99+git1404021930.ed0cfb~gd~s, 7.3.99+git1404022026.ed0cfb~gd~s),
mesa-common-dev:amd64 (10.2~git1404021931.0f641b~gd~s,
10.2~git1404040730.4fa58a~gd~s)

and now, xrandr --listproviders shows the desired output:

Providers: number : 3
Provider 0: id: 0x68 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs:
4 outputs: 5 associated providers: 2 name:Intel
Provider 1: id: 0x3f cap: 0xf, Source Output, Sink Output, Source Offload, Sink
Offload crtcs: 0 outputs: 0 associated providers: 2 name:radeon
Provider 2: id: 0x3f cap: 0xf, Source Output, Sink Output, Source Offload, Sink
Offload crtcs: 0 outputs: 0 associated providers: 2 name:radeon

DRI_PRIME, also works

mike-g337 mike # DRI_PRIME=0 glxinfo  | grep 'OpenGL'
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.2.0-devel
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.2.0-devel
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
mike-g337 mike # DRI_PRIME=1 glxinfo  | grep 'OpenGL'
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD HAINAN
OpenGL core profile version string: 3.1 (Core Profile) Mesa 10.2.0-devel
OpenGL core profile shading language version string: 1.40
OpenGL core profile context flags: (none)
OpenGL core profile extensions:
OpenGL version  string: 3.0 Mesa 10.2.0-devel
OpenGL shading languagew, version string: 1.30
OpenGL context flags: (none)
OpenGL extensions

Now because radeon is active, I can not remove the module from within X
anymore: 
rmmod radeon
Error: Module radeon is in use

DRI_PRIME=1 glxgears also works, I don't have any game to test now, But,
everything is fine in your opinion ?


And also, perhaps I shouldn't do this, but if I run:
 DRI_PRIME=2 glxinfo  | grep 'OpenGL'
X server crashes with the following backtrace (it wasn't crashing before): 

[   913.503] (EE) 
[   913.503] (EE) Backtrace:
[   913.503] (EE) 0: /usr/bin/X (xorg_backtrace+0x3d) [0x7fae2101cfdd]
[   913.503] (EE) 1: /usr/bin/X (0x7fae20e7a000+0x1a6d49) [0x7fae21020d49]
[   913.503] (EE) 2: /lib/x86_64-linux-gnu/libpthread.so.0
(0x7fae1ff7a000+0xfbb0) [0x7fae1ff89bb0]
[   913.503] (EE) 3: /usr/bin/X (DRI2Connect+0x5f) [0x7fae20ff0a7f]
[   913.503] (EE) 4: /usr/bin/X (0x7fae20e7a000+0x1776dc) [0x7fae20ff16dc]
[   913.503] (EE) 5: /usr/bin/X (0x7fae20e7a000+0x5525e) [0x7fae20ecf25e]
[   913.503] (EE) 6: /usr/bin/X (0x7fae20e7a000+0x447ba) [0x7fae20ebe7ba]
[   913.503] (EE) 7: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf5)
[0x7fae1ebb5de5]
[   913.503] (EE) 8: /usr/bin/X (0x7fae20e7a000+0x44aff) [0x7fae20ebeaff]
[   913.503] (EE) 
[   913.503] (EE) Segmentation fault at address 0x0
[   913.503] (EE) 
Fatal server error:
[   913.503] (EE) Caught signal 11 (Segmentation fault). Server aborting
[   913.503] (EE) 
[   913.503] (EE) 
Please consult the The X.Org Foundation support 
 at http://wiki.x.org
 for help. 
[   913.503] (EE) Please also check the log file at "/var/log/Xorg.0.log" for
additional information.
[   913.503] (EE) 
[   913.503] (II) AIGLX: Suspending AIGLX clients for VT switch
[   913.521] (EE) Server terminated with error (1). Closing log file.

Thank you,
Cheers Mike.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 76840] HybridGraphics: Kernel driver in use: radeon but adapter not listed

2014-03-31 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=76840

--- Comment #7 from Michael Eagle  ---
Sorry, seems like the comment I entered just vanished,

So, without my xorg conf, X server crashes with the following:

(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 31 18:11:05 2014
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
(II) [KMS] Kernel modesetting enabled.
X: ../../../../include/privates.h:123: dixGetPrivateAddr: Assertion
`key->initialized' failed.


If I restart mdm once again or if I execute, startx. Then the system hangs, and
I can't access any VTYs but I can reboot with CTRL + Alt + del.

However, if I rmmod the radeon driver and then modprobe it once again. I get
kernel panic, and I could only reboot from the powerbutton.

Attached images from above represents crash backtrace messages after modprobe
fails.

Hope it helps,

Thank you.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 76840] HybridGraphics: Kernel driver in use: radeon but adapter not listed

2014-03-31 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=76840

--- Comment #6 from Michael Eagle  ---
Created attachment 96673
  --> https://bugs.freedesktop.org/attachment.cgi?id=96673=edit
crashimg3

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 76840] HybridGraphics: Kernel driver in use: radeon but adapter not listed

2014-03-31 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=76840

--- Comment #5 from Michael Eagle  ---
Created attachment 96672
  --> https://bugs.freedesktop.org/attachment.cgi?id=96672=edit
crashimg2

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 76840] HybridGraphics: Kernel driver in use: radeon but adapter not listed

2014-03-31 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=76840

--- Comment #4 from Michael Eagle  ---
Created attachment 96671
  --> https://bugs.freedesktop.org/attachment.cgi?id=96671=edit
crash

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 76840] HybridGraphics: Kernel driver in use: radeon but adapter not listed

2014-03-31 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=76840

--- Comment #3 from Alex Deucher  ---
Remove your xorg.conf and try again.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 76840] HybridGraphics: Kernel driver in use: radeon but adapter not listed

2014-03-31 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=76840

--- Comment #2 from Michael Eagle  ---
And how can I --setprovideroffloadsink if 
xrandr --listproviders

only shows Intel device?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 76840] HybridGraphics: Kernel driver in use: radeon but adapter not listed

2014-03-31 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=76840

--- Comment #1 from Alex Deucher  ---
There are no displays connected to the radeon card.  You can only use it for
rendering, not display.  You need to set up the radeon card to be used as an
offload sink.  Additionally, you need to be sunning a compositor.

xrandr --listproviders
xrandr --setprovideroffloadsink radeon Intel

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: