Bug 4690 - xorg won't start - mtrr patch problem
Summary: xorg won't start - mtrr patch problem
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 6.8.2
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Thomas Hellström
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-05 01:46 UTC by Matt
Modified: 2007-02-22 14:26 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch to add printout and guard removal of MTRR (1.60 KB, patch)
2005-10-12 13:52 UTC, Thomas Hellström
no flags Details | Splinter Review
Xorg.0.log file (232.10 KB, text/plain)
2005-10-15 23:28 UTC, Matt
no flags Details

Description Matt 2005-10-05 01:46:14 UTC
I am using Gentoo.  This problem started when I upgraded from xorg-x11-6.8.2-r1
to xorg-x11-6.8.2-r2.  After upgrading, X would not start.  The boot process ran
without error, and then started xdm.  The screen then went blank - there is no
keyboard response, and no mouse response.  In this state, I cannot ssh to the
machine.  When I reboot, /var/log/Xorg.0.log shows no errors, and stops at
different places.  Looking at the ebuilds, it looks like different patch sets
were used between r1 and later releases.  So far I've compiled r2, r3, r4 and
xorg-x11-6.8.99.15-r1.  All produce the same result.  

I'm not sure how much spec I need to give, but my video card (from lspci):

I have been working with the gentoo devs, and have tracked the issue down to a
couple of patches in the gentoo ebuild.  Here is a reference to the Gentoo
bugreport:

http://bugs.gentoo.org/show_bug.cgi?id=106871

and I understand that this is the upstream bug which lead to the original
patches that are causing the problem:

https://bugs.freedesktop.org/show_bug.cgi?id=2750
Comment 1 Adam Jackson 2005-10-05 10:42:11 UTC
reassigning to Thomas, this was his patch.
Comment 2 Thomas Hellström 2005-10-05 22:34:29 UTC
Hi!

Since I cannot reproduce this behaviour myself, I will need some help with
debugging. Since X doesn't start it's probably an infinite loop again.

What does 'cat /proc/mtrr' say before you start the X server?

Are you willing to try out some "instrumented" code?

/Thomas
Comment 3 Matt 2005-10-07 20:16:30 UTC
Sorry for the delay in responding - work/life/kids got in the way.

Anyway, cat /proc/mtrr before starting X gives:

reg00: base=0x100a0000 ( 256MB), size=  64KB: write-back, count=1
reg01: base=0x100b0000 ( 256MB), size=  64KB: write-back, count=1
reg02: base=0xfff80000 (4095MB), size= 512KB: write-protect, count=1
reg03: base=0x00000000 (   0MB), size= 256MB: write-back, count=1
reg04: base=0xf0000000 (3840MB), size=   2MB: write-combining, count=1

I'm willing to try "instrumented code" - assuming this won't severely break my
computer or give me indigestion.

Let me know what I need to do.
Comment 4 Thomas Hellström 2005-10-12 13:52:47 UTC
Created attachment 3549 [details] [review]
Patch to add printout and guard removal of MTRR

Could you try out this patch?

You need to cd to
 
xc/programs/Xserver/hw/xfree86/os-support/linux

Then 

patch -p0 < <patchfile>

And finally recompile and reinstall the X server

What I will be needing is the resulting /var/log/Xorg.0.log file.
Comment 5 Matt 2005-10-15 23:28:04 UTC
Created attachment 3561 [details]
Xorg.0.log file
Comment 6 Matt 2005-10-15 23:29:52 UTC
I've applied that patch, recompiled, and it no longer starts - I didn't exclude
the ealier mtrr patches that were causing the problem (I assume that this is
what you wanted).  My Xorg.0.log file is attached now.  Hope this helps.
Comment 7 Erik Andren 2006-04-30 17:19:01 UTC
Any improvements with a currentv version of xorg?
Comment 8 Timo Jyrinki 2007-02-22 14:26:54 UTC
Marking broken (status null/blank) bugs in xorg with no activity in a long time as fixed. Please reopen if you think it's necessary, but first do a search if a similar bug report is already filed and in a NEW/ASSIGNED state. These bugs do not currently show in most search results as they do not have any status.

Sorry for this janitorial spam, you know where to send hate mails to when your inbox gets full of bugs you're subscribed to.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.