With 3.10.41-r1 everything works, it's more than a year that I try to update the kernel but still get this error.
/var/log/Xorg.1.log with 3.10.41-r1 (highlights are missing lines with 4.0.5)
/var/log/Xorg.1.log with 4.0.5[ 9.995]
X.Org X Server 1.16.4
Release Date: 2014-12-20
[ 9.995] X Protocol Version 11, Revision 0
[ 9.995] Build Operating System: Linux 3.10.41-gentoo-r1 x86_64 Gentoo
[ 9.995] Current Operating System: Linux lynnfield 3.10.41-gentoo-r1 #2 SMP PREEMPT Wed Feb 4 01:53:56 CET 2015 x86_64
[ 9.995] Kernel command line: BOOT_IMAGE=gentoo-3.10.41 ro root=807
[ 9.995] Build Date: 14 April 2015 02:21:32AM
[ 9.995]
[ 9.995] Current version of pixman: 0.32.6
[ 9.995] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 9.995] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 9.996] (==) Log file: "/var/log/Xorg.1.log", Time: Tue Jun 23 20:10:11 2015
[ 10.000] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 10.000] (==) No Layout section. Using the first Screen section.
[ 10.000] (==) No screen section available. Using defaults.
[ 10.000] (**) |-->Screen "Default Screen Section" (0)
[ 10.000] (**) | |-->Monitor "<default monitor>"
[ 10.001] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 10.001] (==) Automatically adding devices
[ 10.001] (==) Automatically enabling devices
[ 10.001] (==) Automatically adding GPU devices
[ 10.004] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/OTF/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/
[ 10.004] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 10.004] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 10.004] (II) Loader magic: 0x805c60
[ 10.004] (II) Module ABI versions:
[ 10.004] X.Org ANSI C Emulation: 0.4
[ 10.004] X.Org Video Driver: 18.0
[ 10.004] X.Org XInput driver : 21.0
[ 10.004] X.Org Server Extension : 8.0
[ 10.004] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 10.006] (--) PCI:*(0:1:0:0) 1002:94902931 rev 0, Mem @ 0xd0000000/268435456, 0xfbae0000/65536, I/O @ 0x0000b000/256, BIOS @ 0x????????/131072
[ 10.006] (II) "glx" will be loaded by default.
[ 10.006] (II) LoadModule: "dri2"
[ 10.006] (II) Module "dri2" already built-in
[ 10.006] (II) LoadModule: "glamoregl"
[ 10.008] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[ 10.027] (EE) Failed to load /usr/lib64/xorg/modules/libglamoregl.so: /usr/lib64/xorg/modules/libglamoregl.so: undefined symbol: _glapi_tls_Context
[ 10.027] (II) UnloadModule: "glamoregl"
[ 10.027] (II) Unloading glamoregl
[ 10.027] (EE) Failed to load module "glamoregl" (loader failed, 7)
[ 10.027] (II) LoadModule: "glx"
[ 10.027] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 10.030] (II) Module glx: vendor="X.Org Foundation"
[ 10.030] compiled for 1.16.4, module version = 1.0.0
[ 10.030] ABI class: X.Org Server Extension, version 8.0
[ 10.030] (==) AIGLX enabled
[ 10.030] (==) Matched ati as autoconfigured driver 0
[ 10.030] (==) Matched ati as autoconfigured driver 1
[ 10.030] (==) Matched modesetting as autoconfigured driver 2
[ 10.030] (==) Matched fbdev as autoconfigured driver 3
[ 10.030] (==) Matched vesa as autoconfigured driver 4
[ 10.030] (==) Assigned the driver to the xf86ConfigLayout
[ 10.030] (II) LoadModule: "ati"
[ 10.031] (II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
[ 10.031] (II) Module ati: vendor="X.Org Foundation"
[ 10.031] compiled for 1.16.4, module version = 7.5.0
[ 10.031] Module class: X.Org Video Driver
[ 10.031] ABI class: X.Org Video Driver, version 18.0
[ 10.031] (II) LoadModule: "radeon"
[ 10.031] (II) Loading /usr/lib64/xorg/modules/drivers/radeon_drv.so
[ 10.035] (II) Module radeon: vendor="X.Org Foundation"
[ 10.035] compiled for 1.16.4, module version = 7.5.0
[ 10.035] Module class: X.Org Video Driver
[ 10.035] ABI class: X.Org Video Driver, version 18.0
[ 10.035] (II) LoadModule: "modesetting"
[ 10.036] (WW) Warning, couldn't open module modesetting
[ 10.036] (II) UnloadModule: "modesetting"
[ 10.036] (II) Unloading modesetting
[ 10.036] (EE) Failed to load module "modesetting" (module does not exist, 0)
[ 10.036] (II) LoadModule: "fbdev"
[ 10.036] (WW) Warning, couldn't open module fbdev
[ 10.036] (II) UnloadModule: "fbdev"
[ 10.036] (II) Unloading fbdev
[ 10.036] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 10.036] (II) LoadModule: "vesa"
[ 10.036] (WW) Warning, couldn't open module vesa
[ 10.036] (II) UnloadModule: "vesa"
[ 10.036] (II) Unloading vesa
[ 10.036] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 10.036] (II) RADEON: Driver for ATI Radeon chipsets:
[...]
[ 10.039] (--) using VT number 7
[ 10.046] (II) [KMS] Kernel modesetting enabled.
[ 10.046] (II) RADEON(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 10.046] (==) RADEON(0): Depth 24, (--) framebuffer bpp 32
[ 10.046] (II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[ 10.046] (==) RADEON(0): Default visual is TrueColor
[ 10.046] (==) RADEON(0): RGB weight 888
[ 10.046] (II) RADEON(0): Using 8 bits per RGB (8 bit DAC)
[ 10.046] (--) RADEON(0): Chipset: "ATI RV730XT [Radeon HD 4670]" (ChipID = 0x9490)
[ 10.046] (II) RADEON(0): GPU accel disabled or not working, using shadowfb for KMS
[ 10.046] (II) Loading sub module "shadow"
[ 10.046] (II) LoadModule: "shadow"
[ 10.046] (II) Loading /usr/lib64/xorg/modules/libshadow.so
[ 10.047] (II) Module shadow: vendor="X.Org Foundation"
[ 10.047] compiled for 1.16.4, module version = 1.1.0
[ 10.047] ABI class: X.Org ANSI C Emulation, version 0.4
[...]
Since often this error is caused by some framebuffer conflict, I compared the config files and found this difference:[ 14.096]
X.Org X Server 1.16.4
Release Date: 2014-12-20
[ 14.097] X Protocol Version 11, Revision 0
[ 14.097] Build Operating System: Linux 3.10.41-gentoo-r1 x86_64 Gentoo
[ 14.097] Current Operating System: Linux lynnfield 4.0.5-gentoo #1 SMP PREEMPT Tue Jun 23 20:03:54 CEST 2015 x86_64
[ 14.097] Kernel command line: BOOT_IMAGE=gentoo-4.0.5 ro root=807
[ 14.097] Build Date: 14 April 2015 02:21:32AM
[ 14.097]
[ 14.097] Current version of pixman: 0.32.6
[ 14.098] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 14.098] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 14.099] (==) Log file: "/var/log/Xorg.1.log", Time: Tue Jun 23 20:05:32 2015
[ 14.103] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 14.104] (==) No Layout section. Using the first Screen section.
[ 14.104] (==) No screen section available. Using defaults.
[ 14.104] (**) |-->Screen "Default Screen Section" (0)
[ 14.104] (**) | |-->Monitor "<default monitor>"
[ 14.105] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 14.105] (==) Automatically adding devices
[ 14.105] (==) Automatically enabling devices
[ 14.105] (==) Automatically adding GPU devices
[ 14.108] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/OTF/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/
[ 14.108] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 14.108] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 14.108] (II) Loader magic: 0x805c60
[ 14.108] (II) Module ABI versions:
[ 14.108] X.Org ANSI C Emulation: 0.4
[ 14.108] X.Org Video Driver: 18.0
[ 14.108] X.Org XInput driver : 21.0
[ 14.108] X.Org Server Extension : 8.0
[ 14.109] (--) PCI:*(0:1:0:0) 1002:94902931 rev 0, Mem @ 0xd0000000/268435456, 0xfbae0000/65536, I/O @ 0x0000b000/256, BIOS @ 0x????????/131072
[ 14.110] (II) "glx" will be loaded by default.
[ 14.110] (II) LoadModule: "dri2"
[ 14.110] (II) Module "dri2" already built-in
[ 14.110] (II) LoadModule: "glamoregl"
[ 14.112] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[ 14.133] (EE) Failed to load /usr/lib64/xorg/modules/libglamoregl.so: /usr/lib64/xorg/modules/libglamoregl.so: undefined symbol: _glapi_tls_Context
[ 14.133] (II) UnloadModule: "glamoregl"
[ 14.133] (II) Unloading glamoregl
[ 14.133] (EE) Failed to load module "glamoregl" (loader failed, 7)
[ 14.133] (II) LoadModule: "glx"
[ 14.133] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 14.137] (II) Module glx: vendor="X.Org Foundation"
[ 14.137] compiled for 1.16.4, module version = 1.0.0
[ 14.137] ABI class: X.Org Server Extension, version 8.0
[ 14.137] (==) AIGLX enabled
[ 14.137] (==) Matched ati as autoconfigured driver 0
[ 14.137] (==) Matched modesetting as autoconfigured driver 1
[ 14.137] (==) Matched fbdev as autoconfigured driver 2
[ 14.137] (==) Matched vesa as autoconfigured driver 3
[ 14.137] (==) Assigned the driver to the xf86ConfigLayout
[ 14.137] (II) LoadModule: "ati"
[ 14.137] (II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
[ 14.138] (II) Module ati: vendor="X.Org Foundation"
[ 14.138] compiled for 1.16.4, module version = 7.5.0
[ 14.138] Module class: X.Org Video Driver
[ 14.138] ABI class: X.Org Video Driver, version 18.0
[ 14.138] (II) LoadModule: "radeon"
[ 14.138] (II) Loading /usr/lib64/xorg/modules/drivers/radeon_drv.so
[ 14.142] (II) Module radeon: vendor="X.Org Foundation"
[ 14.142] compiled for 1.16.4, module version = 7.5.0
[ 14.142] Module class: X.Org Video Driver
[ 14.142] ABI class: X.Org Video Driver, version 18.0
[ 14.142] (II) LoadModule: "modesetting"
[ 14.143] (WW) Warning, couldn't open module modesetting
[ 14.143] (II) UnloadModule: "modesetting"
[ 14.143] (II) Unloading modesetting
[ 14.143] (EE) Failed to load module "modesetting" (module does not exist, 0)
[ 14.143] (II) LoadModule: "fbdev"
[ 14.143] (WW) Warning, couldn't open module fbdev
[ 14.143] (II) UnloadModule: "fbdev"
[ 14.143] (II) Unloading fbdev
[ 14.143] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 14.143] (II) LoadModule: "vesa"
[ 14.143] (WW) Warning, couldn't open module vesa
[ 14.143] (II) UnloadModule: "vesa"
[ 14.143] (II) Unloading vesa
[ 14.143] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 14.143] (II) RADEON: Driver for ATI Radeon chipsets:
[...]
[ 14.145] (--) using VT number 7
[ 14.149] (II) [KMS] drm report modesetting isn't supported.
[ 14.149] (EE) Screen 0 deleted because of no matching config section.
[ 14.149] (II) UnloadModule: "radeon"
[ 14.149] (EE) Device(s) detected, but none match those in the config file.
[ 14.149] (EE)
Fatal server error:
[ 14.149] (EE) no screens found(EE)
[ 14.149] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 14.149] (EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
[ 14.149] (EE)
[ 14.151] (EE) Server terminated with error (1). Closing log file.
cat linux-3.10.41-gentoo-r1/.config | grep DRM
cat linux-4.0.5-gentoo/.config | grep DRMCONFIG_DRM=m
CONFIG_DRM_KMS_HELPER=m
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
CONFIG_DRM_TTM=m
# CONFIG_DRM_I2C_CH7006 is not set
# CONFIG_DRM_I2C_SIL164 is not set
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
CONFIG_DRM_RADEON=m
I tried to change it manually but it keeps adding it before compiling.CONFIG_DRM=m
CONFIG_DRM_KMS_HELPER=m
CONFIG_DRM_KMS_FB_HELPER=y
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
CONFIG_DRM_TTM=m
# CONFIG_DRM_I2C_ADV7511 is not set
# CONFIG_DRM_I2C_CH7006 is not set
# CONFIG_DRM_I2C_SIL164 is not set
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
CONFIG_DRM_RADEON=m
Any ideas?


