You are not logged in.

#1 2017-01-30 14:19:13

peapy
Member
Registered: 2017-01-30
Posts: 7

Xorg don't start with radeon driver

Hi all,

Since 6 days, (before the kernel upgrade) Xorg stopped working, when i launch it with startx i get this backtrace :

[    90.828] (EE) 
[    90.828] (EE) Backtrace:
[    90.828] (EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x139) [0x59b7e9]
[    90.828] (EE) 1: /usr/lib/libpthread.so.0 (__restore_rt+0x0) [0x7f7b26ea107f]
[    90.829] (EE) 2: /usr/lib/xorg/modules/dri/radeonsi_dri.so (__driDriverGetExtensions_virtio_gpu+0x225a1a) [0x7f7b2095ad7a]
[    90.829] (EE) 3: /usr/lib/xorg/modules/dri/radeonsi_dri.so (__driDriverGetExtensions_virtio_gpu+0x2267a1) [0x7f7b2095bf11]
[    90.829] (EE) 4: /usr/lib/xorg/modules/dri/radeonsi_dri.so (__driDriverGetExtensions_virtio_gpu+0x1f676c) [0x7f7b208fc85c]
[    90.829] (EE) 5: /usr/lib/xorg/modules/dri/radeonsi_dri.so (__driDriverGetExtensions_virtio_gpu+0x24cad1) [0x7f7b209a8c41]
[    90.830] (EE) 6: /usr/lib/xorg/modules/dri/radeonsi_dri.so (__driDriverGetExtensions_virtio_gpu+0xe74fe) [0x7f7b206de36e]
[    90.830] (EE) 7: /usr/lib/xorg/modules/libglamoregl.so (glamor_validate_gc+0x43c) [0x7f7b21d7f3ec]
[    90.830] (EE) 8: /usr/lib/xorg/modules/libglamoregl.so (glamor_create_gc+0xa95b) [0x7f7b21d9452b]
[    90.831] (EE) 9: /usr/lib/xorg/modules/libglamoregl.so (glamor_create_gc+0xb0b7) [0x7f7b21d95437]
[    90.831] (EE) 10: /usr/lib/xorg/modules/libglamoregl.so (glamor_init+0x9a4) [0x7f7b21d7cec4]
[    90.831] (EE) 11: /usr/lib/xorg/modules/drivers/radeon_drv.so (_init+0x4a805) [0x7f7b22477bb5]
[    90.831] (EE) 12: /usr/lib/xorg/modules/drivers/radeon_drv.so (_init+0x2cb8) [0x7f7b223e8508]
[    90.832] (EE) 13: /usr/lib/xorg/modules/drivers/radeon_drv.so (_init+0x40624) [0x7f7b22463504]
[    90.832] (EE) 14: /usr/lib/xorg-server/Xorg (AddScreen+0xd7) [0x436ae7]
[    90.832] (EE) 15: /usr/lib/xorg-server/Xorg (InitOutput+0x420) [0x47c750]
[    90.832] (EE) 16: /usr/lib/xorg-server/Xorg (InitFonts+0x216) [0x43a686]
[    90.833] (EE) 17: /usr/lib/libc.so.6 (__libc_start_main+0xf1) [0x7f7b26b12291]
[    90.833] (EE) 18: /usr/lib/xorg-server/Xorg (_start+0x2a) [0x42453a]
[    90.834] (EE) 19: ? (?+0x2a) [0x2a]
[    90.834] (EE) 
[    90.834] (EE) Segmentation fault at address 0x4
[    90.834] (EE) 
Fatal server error:
[    90.834] (EE) Caught signal 11 (Segmentation fault). Server aborting
[    90.834] (EE) 
[    90.834] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    90.834] (EE) Please also check the log file at "/home/arch/.local/share/xorg/Xorg.0.log" for additional information.
[    90.834] (EE) 
[    90.840] (EE) Server terminated with error (1). Closing log file.

20-radeon.conf :

Section "Device"
    Identifier "Radeon"
    Driver "radeon"
    Option "ColorTiling" "on"
    Option "ColorTiling2D" "on"
    Option "DRI" "3"
EndSection

As I failed to fix this, i installed catalyst driver, and xorg succeed to start with it. The problem is that proprietary driver are worse than open source, i get lot of xorg crash, performances are bad, textures bugs in games... So I reinstalled radeon driver and I'm trying to make him work but I'm out of ideas to make this.

I'll enjoy a bit of help...

Offline

#2 2017-01-30 20:01:23

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Xorg don't start with radeon driver

That's SUPER strange... The open source Radeon drivers should just work automatically.

What's the output of these commands?

cd /var/cache/pacman/pkg/
ls -l *xf86*ati*
ls -l *linux-4*

Why did you create a "20-radeon.conf" file?

Offline

#3 2017-01-30 23:45:51

peapy
Member
Registered: 2017-01-30
Posts: 7

Re: Xorg don't start with radeon driver

Thanks,

the output of :

ls -l *xf86*ati* :
-rw-r--r-- 1 root root 123072 11 nov. 2015 xf86-video-ati-1:7.5.0-2-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root 140840 9 janv. 20:32 xf86-video-ati-1:7.8.99.r16.gea30d856-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root 141140 27 janv. 09:59 xf86-video-ati-1:7.8.99.r23.gd611d21d-1-x86_64.pkg.tar.xz
ls -l *linux-4* :
-rw-r--r-- 1 root root 63152564 9  déc. 09:42 linux-4.8.13-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root 63001244 26 janv. 10:59 linux-4.9.6-1-x86_64.pkg.tar.xz

I think I create 20-radeon.conf to be sure theses options were enabled, but i don't really remember.

Last edited by peapy (2017-01-30 23:46:35)

Offline

#4 2017-01-31 14:58:06

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Xorg don't start with radeon driver

Your list of packages looks good.

Try removing the "20-radean.conf" file and starting X. Does X now work as expected?

What is your video card? ("lspci | grep VGA")

Offline

#5 2017-01-31 19:28:43

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,222

Re: Xorg don't start with radeon driver

With the 4.9.x series of kernels there is now a requirement to have the xf86-video-amdgpu package installed that has the new amdgpu driver and the kernel automatically loads this at boot even though amdgpu only supports very recent amd gpus. I have a hybrid graphics laptop with an older amd gpu that requires the radeon driver. I now have to install the new package referred to above in addition to xf86-video-ati, and also I can no longer blacklist the radeon driver to have only the Intel driver working. So now I allow early KMS for radeon, the amdgpu module loads whether I like it or not, and I can use prime (provided I have a stanza for the radeon deviice in my xorg config files) where prime didn't work a year or two back.  However I also found I had to have a kernel parameter for the bootloader "radeon.runpm=0" otherwise I got nasty red lines in the journal log.  So it seems that a lot of new code for amd gpus is in the 4.9.x series of kernels, and this may improve in the 4.10.x series - in the meantime you may find installing xf86-video-amdgpu may help. Though even with that you may need to look at not blacklisting radeon (or amdgpu), and having a stanza in the xorg configs.  Hope this helps.

Last edited by mcloaked (2017-01-31 19:31:48)


Mike C

Offline

#6 2017-01-31 23:27:30

peapy
Member
Registered: 2017-01-30
Posts: 7

Re: Xorg don't start with radeon driver

Thanks for the information, but i don't think this is related to the kernel because the problem started before, and i got the same with others kernels (linux-zen). If I don't find solution I'll try installing amdgpu (but for now there is no support for my graphic card).

Deleting 20-radeon.conf just added some errors in Xorg.0.log :

Failed to load module "fbdev" (module does not exist, 0)
Failed to load module "vesa" (module does not exist, 0)

my gpu :

lspci | grep VGA
01:00.0 VGA compatible controller : Advanced Micro devices, Inc. [AMD/ATI] CApe Verde XT [Radeon HD 7770/8760 / R7 250X]

if I remember well it is a HD 7780.

Offline

#7 2017-02-01 16:32:40

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Xorg don't start with radeon driver

Sorry, I'm running out of ideas. sad

Can you please post the entire output of the "Xorg.0.log" file?

Have you made any changes / additions to the "/etc/mkinitcpio.conf" file, maybe that you forgot about? (like adding "radeon")

And if you REALLY want to try some BIGGER tests...

Start downgrading radeon / Linux / Linux firmware packages. Can you find an older set of packages that allows X to start?

Or, download the latest copy of Linux Mint and try a live boot. Does X start from Linux Mint?

EDIT: I agree, the suggestion from mcloaked would be very easy to try. smile

Last edited by drcouzelis (2017-02-01 17:44:40)

Offline

#8 2017-02-01 17:24:06

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,222

Re: Xorg don't start with radeon driver

In my case although my AMD graphics card needs the radeon driver (i.e. xorg ati driver) and not amdgpu, if I didn't have the xf86-video-amdgpu package installed then I couldn't complete the boot to graphics. It is possible that the OP may have a similar issue and simply installing that package is a very simple thing to try. Even then there may be other configs that also need amending. I don't know why in my case although my card can't use the new amdgpu driver it wouldn't work without that being installed?


Mike C

Offline

#9 2017-02-01 18:16:13

ozooha
Member
Registered: 2009-09-29
Posts: 173

Re: Xorg don't start with radeon driver

mcloaked wrote:

With the 4.9.x series of kernels there is now a requirement to have the xf86-video-amdgpu package installed that has the new amdgpu driver and the kernel automatically loads this at boot even though amdgpu only supports very recent amd gpus. I have a hybrid graphics laptop with an older amd gpu that requires the radeon driver. I now have to install the new package referred to above in addition to xf86-video-ati, and also I can no longer blacklist the radeon driver to have only the Intel driver working. So now I allow early KMS for radeon, the amdgpu module loads whether I like it or not, and I can use prime (provided I have a stanza for the radeon deviice in my xorg config files) where prime didn't work a year or two back.  However I also found I had to have a kernel parameter for the bootloader "radeon.runpm=0" otherwise I got nasty red lines in the journal log.  So it seems that a lot of new code for amd gpus is in the 4.9.x series of kernels, and this may improve in the 4.10.x series - in the meantime you may find installing xf86-video-amdgpu may help. Though even with that you may need to look at not blacklisting radeon (or amdgpu), and having a stanza in the xorg configs.  Hope this helps.

I did not mean to hijack this thread just wanted some info, my apologies.
I have a 7480D Southern Island APU and it works fine with radeon. But now with 4.9 kernel I need to also install the amdgpu?
I guess you are making this assertion right?
Do I need to then disable radeon or not?
Thanks
OZooHA

Offline

#10 2017-02-01 18:59:09

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,222

Re: Xorg don't start with radeon driver

ozooha: If you can boot without installing amdgpu in the 4.9.6-01 kernel then that would be lovely- but if you too find you can't boot without it then try installing the driver package. It is possible that since the amdgpu driver and kernel module are relatively new that it may need some tinkering with different configs and settings for any specific hardware combination that includes one or other of the AMD graphics chips. For some people it seems that the amdgpu module and driver works for "some" older AMD gpus, even though they are not listed as needing amdgpu, though with the much more recent graphics chips it may be that the radeon driver doesn't work and the new one is essential. Also whether or not configs in xorg are needed will likely be something that you need to try and see if it works. Certainly in my case even though the amdgpu package was needed to get the system to boot properly once I updated the kernel to 4.9.6-1, once I got it booted I then fiddled with xorg radeon stanzas, as well as trying blacklisting of both or either of amdgpu and radeon until I got the journal log to be clean of warnings and red lines relating to either of the two drivers. However one issue that remains in my system is that I don't seem to be able to blacklist and power off the dGPU so it will take additional power whereas in the past I could simply blacklist the radeon module and have the dGPU powered off and only use the iGPU (Intel) since it is a hybrid graphics laptop.  So the places I fiddled were, xorg configs in /etc/X11/xorg.conf.d/ as well as blacklist config files in /etc/modprobe.d/ and also the modules section of /etc/mkinitcpio.conf and then regenerating the initramfs if I changed anything to switch on or off early KMS (mkinitcpio -p linux).  I currently have both xf86-video-ati and xf86-video-amdgpu packages installed, and the journal boot log is clean.

Prior to kernel 4.9.6-1 (i.e. for the 4.8.x kernels) none of this was needed and I simply blacklisted the radeon module and it booted with only the integrated Intel graphics in use. I'd be interested to hear how the OP resolves the problems when he/she reaches a working solution.

Last edited by mcloaked (2017-02-01 19:00:11)


Mike C

Offline

#11 2017-02-01 20:38:10

ozooha
Member
Registered: 2009-09-29
Posts: 173

Re: Xorg don't start with radeon driver

Thanks for your response mcloaked. I can boot just fine with radeon into the 4.9 but I have issues when I try to shut it down - both via CLI and DE.
See the relevant thread. https://bbs.archlinux.org/viewtopic.php?id=222571
Therefore when i saw what you mentioned I thought it might be related. But I don't want to complicate things unnecessarily unless required.
Appreciate you inputs again and I might seek your help later if required.
OZooHA

Offline

#12 2017-02-02 15:40:33

peapy
Member
Registered: 2017-01-30
Posts: 7

Re: Xorg don't start with radeon driver

Well unfortunately amdgpu didn't changed anything. I'll try later downgrading xorg/radeon.

Thanks for the help anyway.

The funny thing is that i have the same problem than ozooha, my computer reboot instead of shutdown, since I use arch. It stopped with 4.8 kernel, and now the problem is back.

Offline

#13 2017-02-04 11:58:30

xvzf
Member
Registered: 2014-05-18
Posts: 86

Re: Xorg don't start with radeon driver

I experienced a similar error (with AMD CPU and GPU) while setting up arch on a friends pc. The problem was solved by adding

amd_iommu=on

to the boot parameters.
After that it worked just fine!

Offline

#14 2017-02-05 14:41:28

ozooha
Member
Registered: 2009-09-29
Posts: 173

Re: Xorg don't start with radeon driver

xvzf wrote:

I experienced a similar error (with AMD CPU and GPU) while setting up arch on a friends pc. The problem was solved by adding

amd_iommu=on

to the boot parameters.
After that it worked just fine!

In my case (see my posts above) this option does not work - meaning my PC still reboots when asked to shutdown.
OZooHA

Offline

#15 2017-07-13 05:30:20

mattbat131
Member
Registered: 2016-02-08
Posts: 2

Re: Xorg don't start with radeon driver

I was experiencing the same problem recently as well.
I found that adding

Option "AccelMethod" "none"

to /etc/X11/xorg.conf.d/20-amdgpu.conf had fixed the Xorg problem.

However, without the 2D acceleration, some apps don't work as well as intended.

I'd like to add that this fixed worked with:
llvm-git
mesa-git
xf86-amdgpu-git

With current drivers and non git packages it works without the fix above.

Last edited by mattbat131 (2017-07-13 06:59:01)

Offline

Board footer

Powered by FluxBB