Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 423083 - Xorg does not start after upgrade to Kernel > 3.2
Summary: Xorg does not start after upgrade to Kernel > 3.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-23 08:38 UTC by Konstantin Agouros
Modified: 2012-06-24 08:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,4.89 KB, text/plain)
2012-06-23 08:38 UTC, Konstantin Agouros
Details
Full X.log (Xorg.0.log,53.88 KB, text/plain)
2012-06-23 08:39 UTC, Konstantin Agouros
Details
.config from the kernel (config-3.3.8,80.61 KB, text/plain)
2012-06-23 13:44 UTC, Konstantin Agouros
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Agouros 2012-06-23 08:38:32 UTC
Created attachment 316025 [details]
emerge --info

I am running with an ati card using the xf86-drivers (it's an onboard chip and not much fancy graphics needed on this machine).

I was running xen-sources 2.6.34 (we're talking about Dom0).
After I finally upgraded to 3.2.12 (and then to 3.3.8 where the problem persists) when I try to start X I get the following message in Xorg.0.log:


[  2623.310] (EE) XKB: Could not invoke xkbcomp
[  2623.310] (EE) XKB: Couldn't compile keymap
[  2623.310] (EE) XKB: Failed to load keymap. Loading default keymap instead.
[  2623.351] (EE) XKB: Could not invoke xkbcomp
[  2623.351] (EE) XKB: Couldn't compile keymap
[  2623.351] XKB: Failed to compile keymap
[  2623.351] Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
[  2623.351] 
Fatal server error:

Using strace I found that the clone systemcall to start xkbcomp fails with ENOMEM:


20706 rt_sigaction(SIGALRM, {SIG_IGN, [], SA_RESTORER, 0x7f1694cc4260}, {0x567cc
0, [ALRM], SA_RESTORER, 0x7f1694cc4260}, 8) = 0
20706 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD
, child_tidptr=0x7f1695965b50) = -1 ENOMEM (Cannot allocate memory)


There is plenty of memory in the system. When this happens dmesg also shows me:


[  908.073657] X:28283 map pfn expected mapping type write-back for fd1f0000-fd200000, got uncached-minus
[  908.192643] X:28283 freeing invalid memtype fd1f0000-fd200000
Comment 1 Konstantin Agouros 2012-06-23 08:39:01 UTC
Created attachment 316027 [details]
Full X.log
Comment 2 Rafał Mużyło 2012-06-23 13:34:24 UTC
Consider me lazy: what is your video card in terms of 'lspci -k' and its mesa model (that is r300, r500, etc).
Also, attach your kernel config - seems you'll need to adjust your kernel line.
Comment 3 Konstantin Agouros 2012-06-23 13:42:54 UTC
01:05.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS880 [Radeon HD 4250]
        Subsystem: ASRock Incorporation Device 9715
        Kernel modules: fglrx


The .config will be in a separate attachment
Comment 4 Konstantin Agouros 2012-06-23 13:44:12 UTC
Created attachment 316061 [details]
.config from the kernel
Comment 5 Konstantin Agouros 2012-06-23 16:49:21 UTC
(In reply to comment #2)
> Consider me lazy: what is your video card in terms of 'lspci -k' and its
> mesa model (that is r300, r500, etc).
> Also, attach your kernel config - seems you'll need to adjust your kernel
> line.

disable intel_iommu on the commandline or iommu=0 for the xen commandline?
Comment 6 Rafał Mużyło 2012-06-23 17:12:31 UTC
@comment 3:
fglrx and xf86-video-radeon *can't* work together - pick one.
If you pick open:
CONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FB_VESA is not set
# CONFIG_FB_UVESA is not set
# CONFIG_FB_RADEON is not set

sorry, know nothing about xen

but your config could use a tweak or two, i.e. CONFIG_IDE has been discouraged for quite awhile (you *seem* to have correct CONFIG_ATA options selected, you just need to make some of them builtin - basically same ones that were in CONFIG_IDE -- recheck though).

But basically, this seems to not be a bug, just a support question.
Comment 7 Rafał Mużyło 2012-06-23 17:17:10 UTC
In case of open driver, CONFIG_DRM_RADEON and CONFIG_DRM_RADEON_KMS=y config options are *usually* strongly suggested, but I'm not sure whether xen can interfere here.
Comment 8 Konstantin Agouros 2012-06-23 17:52:52 UTC
(In reply to comment #6)
> @comment 3:
> fglrx and xf86-video-radeon *can't* work together - pick one.
> If you pick open:
> CONFIG_FRAMEBUFFER_CONSOLE=y
> # CONFIG_FB_VESA is not set
> # CONFIG_FB_UVESA is not set
> # CONFIG_FB_RADEON is not set
> 
> sorry, know nothing about xen
> 
> but your config could use a tweak or two, i.e. CONFIG_IDE has been
> discouraged for quite awhile (you *seem* to have correct CONFIG_ATA options
> selected, you just need to make some of them builtin - basically same ones
> that were in CONFIG_IDE -- recheck though).
> 
> But basically, this seems to not be a bug, just a support question.

I know that and I tried both. fglrx leads to kernel freezes but I keep it in
to try newer versions for the moment if i use fglrx (and eselect opengl ati) x does not start with other error messages.
Comment 9 Konstantin Agouros 2012-06-23 17:53:32 UTC
(In reply to comment #7)
> In case of open driver, CONFIG_DRM_RADEON and CONFIG_DRM_RADEON_KMS=y config
> options are *usually* strongly suggested, but I'm not sure whether xen can
> interfere here.

Well I tried that, but can't get to the menu entries in make menuconfig. Maybe because of xen?
Comment 10 Rafał Mużyło 2012-06-23 18:57:53 UTC
As I decided to be lazy here, I leave up to you finding me a couple pages describing what is xen (unless you'll move this problem to its proper place - forum).

As for Radeons on standard desktop: for those two DRM options you obviously need to set CONFIG_DRM first (you're using menuconfig, right ?).

I'm not sure (kinda doubt) if radeon module can be still loaded after fglrx was.
For a reason, framebuffer console needs to be builtin.
KMS with open driver will definite *not* work if any of the mentioned FB options are set.

Just to make sure: we're talking about how to make KMS open driver work for you, not fglrx, right ?
Comment 11 Konstantin Agouros 2012-06-23 21:05:14 UTC
(In reply to comment #10)
> As I decided to be lazy here, I leave up to you finding me a couple pages
> describing what is xen (unless you'll move this problem to its proper place
> - forum).
OK XEN the hypervisor You might have heard of it... simply put I run in a VM
but DOM0 is the master VM with some special treats.
> 
> As for Radeons on standard desktop: for those two DRM options you obviously
> need to set CONFIG_DRM first (you're using menuconfig, right ?).
I can set this only to module (guessing I need something else built in?) Yes
I am using make menuconfig.
> 
> I'm not sure (kinda doubt) if radeon module can be still loaded after fglrx
> was.
> For a reason, framebuffer console needs to be builtin.
> KMS with open driver will definite *not* work if any of the mentioned FB
> options are set.
> 
> Just to make sure: we're talking about how to make KMS open driver work for
> you, not fglrx, right ?
Yes we are.

However: I didn't have CONFIG_DRM set in the 2.6.34 kernel I used before and there it worked. Was there some hard change in the behaveiour towards 3.2?
Comment 12 Rafał Mużyło 2012-06-23 21:57:45 UTC
Sorry, that part about hypervisor still doesn't ring a bell (yes, I could check wikipedia, no, I don't feel like it).

Lets make one thing straight - without CONFIG_DRM, I'm not sure *if* xserver could work. Even then it would be at best something like mesa software rendering, if even that.
Comment 13 Rafał Mużyło 2012-06-23 22:00:18 UTC
OK, correction: perhaps with fglrx it would work (haven't used that one in awhile), but that blob did many things in its own way.
Comment 14 Konstantin Agouros 2012-06-24 06:46:05 UTC
(In reply to comment #12)
> Sorry, that part about hypervisor still doesn't ring a bell (yes, I could
> check wikipedia, no, I don't feel like it).
> 
> Lets make one thing straight - without CONFIG_DRM, I'm not sure *if* xserver
> could work. Even then it would be at best something like mesa software
> rendering, if even that.

For Xen try www.xen.org.

Point is: It worked in 2.6.34 without CONFIG_DRM I reenabled it but need to wait until tomorrow until I reboot.
I don't necessarily nee 3D Accelleration I would be happy if X would start at all.
Comment 15 Konstantin Agouros 2012-06-24 07:41:56 UTC
OK I did not need to reboot...

modprobe radeon -> all is well case closed
Comment 16 Konstantin Agouros 2012-06-24 08:08:08 UTC
(In reply to comment #15)
> OK I did not need to reboot...
> 
> modprobe radeon -> all is well case closed

However: 

[157793.908] (II) RADEON(0): GPU accel disabled or not working, using shadowfb for KMS

In dmesg I see a stream of: 


[159347.740128] i2c i2c-1: master_xfer[0] W, addr=0x50, len=1
[159347.740130] i2c i2c-1: master_xfer[1] R, addr=0x50, len=8
[159347.741997] i2c i2c-1: NAK from device addr 0x50 msg #0