Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2010 21:24:17 -0600
From:      Robert Noland <rnoland@FreeBSD.org>
To:        =?ISO-8859-1?Q?Fran=E7ois?= Leclerc <fleclerc@gmail.com>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: Xorg crashes and reboots my computer
Message-ID:  <1264476257.2869.67.camel@balrog.2hip.net>
In-Reply-To: <363673bf1001251907l3b397e8bj33d5d47fcb4928bc@mail.gmail.com>
References:  <363673bf0912301143x72aa6177g898648a7de5384e@mail.gmail.com> <1262204181.2314.189.camel@balrog.2hip.net> <363673bf1001251655q64accc9oa612c3fa5a87d17c@mail.gmail.com> <1264468144.2869.26.camel@balrog.2hip.net> <363673bf1001251734h6b397040va564be5c0763d6ae@mail.gmail.com> <1264472992.2869.59.camel@balrog.2hip.net> <363673bf1001251840i59a51807tfcbcc567de189f06@mail.gmail.com> <1264473790.2869.61.camel@balrog.2hip.net> <363673bf1001251857h4e622218uca61fac7ee583b41@mail.gmail.com> <1264474871.2869.62.camel@balrog.2hip.net> <363673bf1001251907l3b397e8bj33d5d47fcb4928bc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2010-01-25 at 22:07 -0500, François Leclerc wrote:
> Ok!
>  
> How do you apply the patch? I am a newbie and have never done this!

cd /usr/ports && patch -C -p0 -s -i <patchfile>

if that doesn't show any errors, then

patch -p0 -s -i <patchfile>

rebuild/install at least libGL and dri.

you will need to either manually bump the version of libdrm or get it
from one of the other patches.  IIRC, it needs to be at 2.4.15 or
higher.

robert.

> After the patch has been applied, what ports do I upgrade? Just mesa?
>  
> Thanks!
> 
> 
> 2010/1/25 Robert Noland <rnoland@freebsd.org>
>         On Mon, 2010-01-25 at 21:57 -0500, François Leclerc wrote:
>         > Ok... so I'll install mesa from the mesa7.6.1 rc4 archive
>         file I got.
>         >
>         > Is it better to use the final released mesa 7.6.1 from the
>         mesa web
>         > site?
>         
>         
>         http://people.freebsd.org/~rnoland/mesa-7.6.1-release.patch
>         
>         
>         robert.
>         
>         > Thanks!
>         >
>         >
>         > 2010/1/25 Robert Noland <rnoland@freebsd.org>
>         >         On Mon, 2010-01-25 at 21:40 -0500, François Leclerc
>         wrote:
>         >         > Hi again,
>         >         >
>         >         > Mesa 7.6.1 is pretty recent and includes a new
>         driver for
>         >         r600 cards
>         >         > like mine. Should I install that?
>         >         >
>         >         > For drm, I guess I will have to find a patched
>         version.
>         >         Someone gave
>         >         > me a link to a mesa 7.6.1 rc4 file that includes a
>         makefile
>         >         for drm. I
>         >         > guess I'll try that. And see if mesa 7.6.1 is ok,
>         unless you
>         >         think it
>         >         > will likely don't work.
>         >
>         >
>         >         Yes, you can use my mesa-7.6.1-final patch and just
>         bump
>         >         liddrm manually
>         >         or take the libdrm patch from the other diff.
>         >
>         >         robert.
>         >
>         >
>         >         > Thanks!
>         >         >
>         >         >
>         >         > 2010/1/25 Robert Noland <rnoland@freebsd.org>
>         >         >         On Mon, 2010-01-25 at 20:34 -0500,
>         François Leclerc
>         >         wrote:
>         >         >         > Hi Robert,
>         >         >         >
>         >         >         > Here are my Xorg log and xorg.conf
>         files.
>         >         >
>         >         >
>         >         >         Ok, I think what it is referring to is
>         mesa... Which
>         >         if you
>         >         >         aren't
>         >         >         running from git or using one of the
>         patches isn't
>         >         new enough
>         >         >         to support
>         >         >         your card with 3D.  I posted a patch for
>         the mesa
>         >         ports a
>         >         >         little while
>         >         >         back to x11@ I think.  I didn't include
>         libdrm in my
>         >         patch,
>         >         >         but there
>         >         >         are a couple of patches floating around
>         for that as
>         >         well.
>         >         >
>         >         >         If it is for some reason still crashing,
>         then it
>         >         will take a
>         >         >         lot more
>         >         >         detailed debugging to sort it out.  I
>         regularly use
>         >         an HD
>         >         >         4650, but I
>         >         >         have a 3650 and 3850 around here somewhere
>         also...
>         >         >
>         >         >         robert.
>         >         >
>         >         >
>         >         >         > Thanks,
>         >         >         >
>         >         >         > François.
>         >         >         >
>         >         >         >
>         >         >         > 2010/1/25 Robert Noland
>         <rnoland@freebsd.org>
>         >         >         >         On Mon, 2010-01-25 at 19:55
>         -0500,
>         >         François Leclerc
>         >         >         wrote:
>         >         >         >         > Hi,
>         >         >         >         >
>         >         >         >
>         >         >         >         > I have new information. I said
>         in an
>         >         earlier
>         >         >         message that
>         >         >         >         when I
>         >         >         >         > disabled dri and dri2, things
>         worked
>         >         well - when
>         >         >         issuing a
>         >         >         >         xinit
>         >         >         >         > command. It does, only when I
>         get back
>         >         in console
>         >         >         mode,
>         >         >         >         there is an
>         >         >         >         > error (which occured when
>         xinit was
>         >         called):
>         >         >         >         >
>         >         >         >         > (EE) RADEON(0): [dri]
>         >         RADEONDRIGetVersion failed
>         >         >         (libdri too
>         >         >         >         old)
>         >         >         >         >
>         >         >         >         > I had removed X, deleted my
>         ports tree,
>         >         rebuilt it
>         >         >         using
>         >         >         >         portsnap and
>         >         >         >         > then re-installed X. What
>         needs to be
>         >         updated now
>         >         >         if my
>         >         >         >         library is
>         >         >         >         > "too old"?
>         >         >         >
>         >         >         >
>         >         >         >         I would need to see the full log
>         at least
>         >         to have a
>         >         >         clue...
>         >         >         >          It is most
>         >         >         >         likely referring to either
>         libdrm or the
>         >         actual
>         >         >         kernel...
>         >         >         >
>         >         >         >         robert.
>         >         >         >
>         >         >         >
>         >         >         >         > Thanks.
>         >         >         >         >
>         >         >         >         >
>         >         >         >         > 2009/12/30 Robert Noland
>         >         <rnoland@freebsd.org>
>         >         >         >         >         On Wed, 2009-12-30 at
>         14:43
>         >         -0500,
>         >         >         François Leclerc
>         >         >         >         wrote:
>         >         >         >         >         > Hi,
>         >         >         >         >         >
>         >         >         >         >         > I saw that someone
>         already
>         >         posted
>         >         >         something
>         >         >         >         similar. I have
>         >         >         >         >         the same
>         >         >         >         >         > problem.
>         >         >         >         >         >
>         >         >         >         >
>         >         >         >
>         >         >
>         >
>         http://lists.freebsd.org/pipermail/freebsd-x11/2009-December/009124.html
>         >         >         >         >         >
>         >         >         >         >         > My system is: Intel
>         Q6600 on a
>         >         ASUS
>         >         >         Maximus X38
>         >         >         >         board with a
>         >         >         >         >         Radeon HD 3870.
>         >         >         >         >         >
>         >         >         >         >         > I have FreeBSD - 8.0
>         - STABLE
>         >         - AMD64
>         >         >         installed.
>         >         >         >         >         >
>         >         >         >         >         > It doesn't matter
>         which driver
>         >         I use
>         >         >         (radeon or
>         >         >         >         radeonhd),
>         >         >         >         >         my machine
>         >         >         >         >         > freezes or reboots
>         when
>         >         switching to
>         >         >         graphical
>         >         >         >         mode. Note
>         >         >         >         >         that my xorg.conf
>         >         >         >         >         > file is ok as per
>         "Xorg
>         >         -config
>         >         >         xorg.conf -retro":
>         >         >         >         I get the
>         >         >         >         >         grey screen and
>         >         >         >         >         > my mouse cursor is
>         working
>         >         correctly.
>         >         >         Things get
>         >         >         >         bad when I
>         >         >         >         >         "xinit" or
>         >         >         >         >         > "startx". If I
>         disable "dri"
>         >         and "dri2"
>         >         >         >         >         in /etc/X11/xorg.conf
>         things
>         >         work
>         >         >         >         >         > flawlessly.
>         >         >         >         >         >
>         >         >         >         >         > I read the list and
>         someone
>         >         else
>         >         >         mentionned a new
>         >         >         >         version of
>         >         >         >         >         Xorg (7.6.1 I
>         >         >         >         >         > think) is due soon.
>         Will it
>         >         fix issues
>         >         >         like the
>         >         >         >         one we are
>         >         >         >         >         having? When will
>         >         >         >         >         > it be released?
>         >         >         >         >
>         >         >         >         >
>         >         >         >         >         The "7.6.1" that is
>         referred to
>         >         is Mesa,
>         >         >         not Xorg.
>         >         >         >          (libGL and
>         >         >         >         >         dri,
>         >         >         >         >         among other bits)
>          That is
>         >         needed for 3d.
>         >         >          I'll need
>         >         >         >         a bit
>         >         >         >         >         more info
>         >         >         >         >         before I can try to
>         diagnose the
>         >         issue
>         >         >         though.
>         >         >         >          Let's start
>         >         >         >         >         with a
>         >         >         >         >         "pciconf -lvb".  I may
>         already
>         >         have a
>         >         >         patch to fix
>         >         >         >         this, but
>         >         >         >         >         the
>         >         >         >         >         reported issue is
>         generally
>         >         screen
>         >         >         corruption, not
>         >         >         >         panics.
>         >         >         >         >
>         >         >         >         >         robert.
>         >         >         >         >
>         >         >         >         >         > Like the other
>         poster, I can
>         >         work with
>         >         >         VESA in the
>         >         >         >         meantime,
>         >         >         >         >         but I would
>         >         >         >         >         > prefer this issue
>         fixed!
>         >         >         >         >         >
>         >         >         >         >         > Cheers!
>         >         >         >         >         >
>         >         >         >         >         > François
>         >         >         >         >
>         >         >         >         >         >
>         >         >
>         _______________________________________________
>         >         >         >         >         >
>         freebsd-x11@freebsd.org
>         >         mailing list
>         >         >         >         >         >
>         >         >         >
>         >         >
>         >
>         http://lists.freebsd.org/mailman/listinfo/freebsd-x11
>         >         >         >         >         > To unsubscribe, send
>         any mail
>         >         to
>         >         >         >         >
>         >         "freebsd-x11-unsubscribe@freebsd.org"
>         >         >         >         >         --
>         >         >         >         >         Robert Noland
>         >         <rnoland@FreeBSD.org>
>         >         >         >         >         FreeBSD
>         >         >         >         >
>         >         >         >         >
>         >         >         >
>         >         >         >         --
>         >         >         >
>         >         >         >         Robert Noland
>         <rnoland@FreeBSD.org>
>         >         >         >         FreeBSD
>         >         >         >
>         >         >         >
>         >         >         >
>         >         >
>         >         >         --
>         >         >
>         >         >         Robert Noland <rnoland@FreeBSD.org>
>         >         >         FreeBSD
>         >         >
>         >         >
>         >         >
>         >
>         >         --
>         >
>         >         Robert Noland <rnoland@FreeBSD.org>
>         >         FreeBSD
>         >
>         >
>         >
>         
>         --
>         
>         Robert Noland <rnoland@FreeBSD.org>
>         FreeBSD
>         
>         
> 
-- 
Robert Noland <rnoland@FreeBSD.org>
FreeBSD




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1264476257.2869.67.camel>