radeon - failed to load r600

AmigaOne X5000 platform specific issues related to Linux only.
User avatar
caseycullen
Posts: 519
Joined: Sat Dec 17, 2016 7:12 am
Location: Madison, WI USA
Contact:

radeon - failed to load r600

Post by caseycullen »

Sorry if I missed an explanation of this posted already, I've not found a reference to this issue and it has been puzzling me. My video seems to be functioning correctly, except I keep seeing an error:
casey@Utopia:~$ glxgears
libGL error: Version 7 or imageFromFds image extension not found
libGL error: failed to load driver: r600
I believe hardware acceleration is working:
casey@Utopia:~$ glxinfo | grep OpenGL
libGL error: Version 7 or imageFromFds image extension not found
libGL error: failed to load driver: r600
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD BARTS (DRM 2.48.0)
OpenGL core profile version string: 3.2 (Core Profile) Mesa 11.2.0
OpenGL core profile shading language version string: 1.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.2.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.2.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
Running glxgears seems to give good values:
casey@Utopia:~$ vblank_mode=0 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
libGL error: Version 7 or imageFromFds image extension not found
libGL error: failed to load driver: r600
ATTENTION: default value of option vblank_mode overridden by environment.
7133 frames in 5.0 seconds = 1426.516 FPS
7097 frames in 5.0 seconds = 1419.041 FPS
7247 frames in 5.0 seconds = 1449.393 FPS
7412 frames in 5.0 seconds = 1482.110 FPS
7343 frames in 5.0 seconds = 1468.531 FPS
7359 frames in 5.0 seconds = 1471.635 FPS
7190 frames in 5.0 seconds = 1437.919 FPS
7338 frames in 5.0 seconds = 1467.579 FPS
Any idea what the "libGL error / failed to load r600" messages are about?

Radeon HD 6870 on Ubuntu-Mate 16.04 with kernel 4.10-rc4
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: radeon - failed to load r600

Post by xeno74 »

Hi Caseycullen,

I have the same graphics card and the same Mesa version but I don't have this issue on ubuntu MATE 16.04 LTS.

ubuntu MATE 16.04 LTS with kernel 4.10-rc6 and with a Radeon HD 6870 on my AmigaOne X1000.

Code: Select all

christian@ubuntu:~$ glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD BARTS (DRM 2.48.0)
OpenGL core profile version string: 3.2 (Core Profile) Mesa 11.2.0
OpenGL core profile shading language version string: 1.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.2.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.2.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

Code: Select all

christian@ubuntu:~$ vblank_mode=0 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
6930 frames in 5.0 seconds = 1385.840 FPS
7821 frames in 5.0 seconds = 1564.019 FPS
7822 frames in 5.0 seconds = 1564.330 FPS
7793 frames in 5.0 seconds = 1558.476 FPS
7717 frames in 5.0 seconds = 1543.393 FPS
7837 frames in 5.0 seconds = 1567.214 FPS
7840 frames in 5.0 seconds = 1567.880 FPS
7843 frames in 5.0 seconds = 1568.556 FPS
7842 frames in 5.0 seconds = 1568.276 FPS
7842 frames in 5.0 seconds = 1568.262 FPS
7849 frames in 5.0 seconds = 1569.624 FPS
7839 frames in 5.0 seconds = 1567.734 FPS
7313 frames in 5.0 seconds = 1462.465 FPS
7805 frames in 5.0 seconds = 1560.948 FPS
7781 frames in 5.0 seconds = 1556.119 FPS
Maybe a package is missing. A new Mesa version is available for ubuntu MATE 16.04.1 LTS. Please upgrade your system. Maybe it solves the issue.

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: radeon - failed to load r600

Post by xeno74 »

I successfully upgraded ubuntu MATE 16.04.1 LTS today and I got the Mesa version 12.0.6.

Code: Select all

christian@ubuntu:~$ glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD BARTS (DRM 2.48.0 / 4.10.0-rc6_A-EON_AmigaONE_X1000_Nemo)
OpenGL core profile version string: 3.2 (Core Profile) Mesa 12.0.6
OpenGL core profile shading language version string: 1.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 12.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 12.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
@Casecullen
Please upgrade your ubuntu MATE 16.04.1 LTS.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
caseycullen
Posts: 519
Joined: Sat Dec 17, 2016 7:12 am
Location: Madison, WI USA
Contact:

Re: radeon - failed to load r600

Post by caseycullen »

xeno74 wrote:@Casecullen
Please upgrade your ubuntu MATE 16.04.1 LTS.
Hi Christian,
Thanks for your response. I updated ubuntu-Mate to Mesa 12.0.6 and still received the message. To be sure install was OK I did fresh install of ubuntu-Mate 16.04 and upgraded packages again to Mesa 12.0.6; and also tried with kernel 4.10.0-rc5. Unfortunately I still see this message:

Code: Select all

casey@Utopia:~$ glxinfo | grep OpenGL
casey@Utopia:~$ glxinfo | grep OpenGL
libGL error: Version 7 or imageFromFds image extension not found
libGL error: failed to load driver: r600
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD BARTS (DRM 2.48.0 / 4.10.0-rc5-X5000-Sinan)
OpenGL core profile version string: 3.2 (Core Profile) Mesa 12.0.6
OpenGL core profile shading language version string: 1.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 12.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 12.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
I saw in X1000 forum musa was getting the same error; but it looked like it was fixed by upgrading to Mesa 13.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: radeon - failed to load r600

Post by xeno74 »

Hi Casecullen,

Yes, maybe Mesa 13 fixes the issue but why I don't have this issue?

Could you please post more details of your Radeon HD6870?

Thanks,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 9:22 pm

Re: radeon - failed to load r600

Post by mechanic »

lib/modules ?
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
caseycullen
Posts: 519
Joined: Sat Dec 17, 2016 7:12 am
Location: Madison, WI USA
Contact:

Re: radeon - failed to load r600

Post by caseycullen »

xeno74 wrote: Could you please post more details of your Radeon HD6870?
Hi Christian / mechanic,
Thanks for your reply! I have a Sapphire Radeon HD 6870, I believe it has reference card specs... This Card

More card info...

Code: Select all

root@Utopia:/home/casey# lspci -vnn | grep VGA -A 12
0000:01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Barts XT [Radeon HD 6870] [1002:6738] (prog-if 00 [VGA controller])
	Subsystem: PC Partner Limited / Sapphire Technology Barts XT [Radeon HD 6870] [174b:e177]
	Flags: bus master, fast devsel, latency 0, IRQ 27
	Memory at c00000000 (64-bit, prefetchable) [size=256M]
	Memory at c10000000 (64-bit, non-prefetchable) [size=128K]
	I/O ports at 1000 [size=256]
	Expansion ROM at c10040000 [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
	Kernel driver in use: radeon
lsmod

Code: Select all

root@Utopia:/home/casey# lsmod
Module                  Size  Used by
uio_pdrv_genirq         7397  0
uio                    17418  1 uio_pdrv_genirq
Also I noticed this error, I'm not sure what this module is or if it could be related?

Code: Select all

root@Utopia:/home/casey# systemctl status systemd-modules-load.service
● systemd-modules-load.service - Load Kernel Modules
   Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2017-02-02 22:12:58 CST; 2 days ago
     Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
  Process: 2051 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
 Main PID: 2051 (code=exited, status=1/FAILURE)

Code: Select all

root@Utopia:/home/casey# journalctl _PID=2051
-- Logs begin at Thu 2017-02-02 22:12:58 CST, end at Sat 2017-02-04 20:50:31 CST. --
Feb 02 22:12:58 Utopia systemd-modules-load[2051]: Failed to find module 'lp'
Feb 02 22:12:58 Utopia systemd-modules-load[2051]: Failed to find module 'ppdev'
Feb 02 22:12:58 Utopia systemd-modules-load[2051]: Failed to find module 'parport_pc'
Do you have the package "linux-firmware" installed? I installed it but it made no difference.
---Casey
tlosmx
Beta Tester
Beta Tester
Posts: 195
Joined: Sat Feb 09, 2013 9:15 am

Re: radeon - failed to load r600

Post by tlosmx »

plz can you share a shot of the wrong colors?
i think compiz is using opengles 1 or opengles 2 this library heve endianess in colors on linux.
your speed in glxgears suffer by version of xorg + version of mesa. old mate version means slowest performances

this are my performances on glxgears on mate 16.10 X.Org X Server 1.18.4 and mesa 17 rc2 on a 6570HD

vblank_mode=0 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
8812 frames in 5.0 seconds = 1762.292 FPS
9624 frames in 5.0 seconds = 1924.756 FPS
9725 frames in 5.0 seconds = 1944.889 FPS
10203 frames in 5.0 seconds = 2040.538 FPS
10180 frames in 5.0 seconds = 2035.892 FPS
9948 frames in 5.0 seconds = 1989.544 FPS
AmigaOne Xe 933 mhz Radeon 9000pro Samsung 840 SSD
Pegasos2 1266mhz Radeon 9800pro Verbatib Sata3 SSD
Sam 460ex Lite 2gb Ram , Radeon 6670,Toshiba 500gb Sata/HDD
Amiga Cd32 / Amiga 600 / Amiga 500 / Amiga CDtv/ Amiga 4000 / Amiga 1200 /Amiga 2000 and many many many z3 Boards
User avatar
caseycullen
Posts: 519
Joined: Sat Dec 17, 2016 7:12 am
Location: Madison, WI USA
Contact:

Re: radeon - failed to load r600

Post by caseycullen »

tlosmx wrote:plz can you share a shot of the wrong colors?
i think compiz is using opengles 1 or opengles 2 this library heve endianess in colors on linux.
your speed in glxgears suffer by version of xorg + version of mesa. old mate version means slowest performances
Hi tiosmx,
My colors are fine on 16.04.1 with Mesa 12.0.6.
The error prevents some software from running, like VLC:

Code: Select all

casey@Utopia:~$ vlc
VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)
[102f2918] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libGL error: Version 7 or imageFromFds image extension not found
libGL error: failed to load driver: r600
Illegal instruction (core dumped)
I only get wrong colors on 17.04 using compiz.

What version of Mesa do you have? I think the upstream version is only up to 13...
tlosmx
Beta Tester
Beta Tester
Posts: 195
Joined: Sat Feb 09, 2013 9:15 am

Re: radeon - failed to load r600

Post by tlosmx »

Hi im using Mesa 17.0 rc2 ,
but im pretty sure the wrong color are because the last version of compiz who is present on mate 17.04 probably is using gles or gles2.
this why i was asking a screenshot ... because wrong color can be from mesa gles bug or altivec optimizations .
Im using Mate 16.10 on X5000, i hope christian will made an img for 17.04 for check what wrong there and help better

Vlc crash because altivec instruction i know this for sure.
Usually i rebuild some system libs without altivec like SDL and SDL2 or FFMpeg etc
AmigaOne Xe 933 mhz Radeon 9000pro Samsung 840 SSD
Pegasos2 1266mhz Radeon 9800pro Verbatib Sata3 SSD
Sam 460ex Lite 2gb Ram , Radeon 6670,Toshiba 500gb Sata/HDD
Amiga Cd32 / Amiga 600 / Amiga 500 / Amiga CDtv/ Amiga 4000 / Amiga 1200 /Amiga 2000 and many many many z3 Boards
Post Reply