Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Mar 2011 23:08:31 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        "Hartmann, O." <ohartman@mail.zedat.fu-berlin.de>
Cc:        freebsd-x11 <freebsd-x11@freebsd.org>, freebsd-current@freebsd.org, Andriy Gapon <avg@freebsd.org>
Subject:   Re: XIO: fatal IO error 35 (Resource temporarily unavailable) on X server ":0.0"
Message-ID:  <20110326210831.GG78089@deviant.kiev.zoral.com.ua>
In-Reply-To: <4D8E308C.2060004@mail.zedat.fu-berlin.de>
References:  <4D8DAD7E.8090109@mail.zedat.fu-berlin.de> <4D8DC619.9080503@freebsd.org> <4D8DDFC4.9070003@mail.zedat.fu-berlin.de> <20110326134804.GA78089@deviant.kiev.zoral.com.ua> <4D8E2830.70105@mail.zedat.fu-berlin.de> <20110326191927.1bd25c06@ernst.jennejohn.org> <4D8E308C.2060004@mail.zedat.fu-berlin.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

--0Wno+JmTDwXv9sgk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Mar 26, 2011 at 07:29:32PM +0100, Hartmann, O. wrote:
> On 03/26/11 19:19, Gary Jennejohn wrote:
> >On Sat, 26 Mar 2011 18:53:52 +0100
> >"O. Hartmann"<ohartman@mail.zedat.fu-berlin.de>  wrote:
> >
> >>On 03/26/11 14:48, Kostik Belousov wrote:
> >>>On Sat, Mar 26, 2011 at 01:44:52PM +0100, O. Hartmann wrote:
> >>>>On 26.03.2011 11:55, Andriy Gapon wrote:
> >>>>>on 26/03/2011 11:10 O. Hartmann said the following:
> >>>>>>Updating ports and source of my FreeBSD 9.0-CURRENT/amd64 host,=20
> >>>>>>equipted
> >>>>>>with a
> >>>>>>AMD/ATi HD4830 graphics board driven by X11 xf86-video-ati driver=
=20
> >>>>>>(which
> >>>>>>has
> >>>>>>been recently update as far as I saw),
> >>>>>>resulted this morning in an 'un-login-able' box.
> >>>>>>
> >>>>>>I see the xdm-login requester, but after successfully login, I see=
=20
> >>>>>>for a
> >>>>>>second
> >>>>>>the desktop (windowmaker), but X11 immediately dies and resets to t=
he=20
> >>>>>>xdm
> >>>>>>requester again.
> >>>>>Are you subscribed to our x11 list?  It's quite low volume.
> >>>>>Please see recent messages in its archive, perhaps they could help y=
ou.
> >>>>>
> >>>>
> >>>>Hello.
> >>>>
> >>>>No, I'm actually not subscribed to that list. Since the problem occur=
ed
> >>>>since yesterday's update out of the blue, I thought it could be more
> >>>>FreeBSD related than X11 related. But I will reply to the X11 list as
> >>>>well. I simply forgot in my desperate pain, sorry.
> >>>>
> >>>See
> >>>http://lists.freebsd.org/pipermail/freebsd-x11/2011-March/010737.html
> >>
> >>I downgraded the AMD/ATi driver to version xf86-video-ati-6.14.0_1, I
> >>desperately need my boxes since I have to finish work.
> >>Three different types of AMD/ATi graphics cards out of the same product
> >>class are not working with the new xf86-video-ati-6.14.1 and as the
> >>above mentioned link suggests, the solution is well known. I was
> >>wondering how this port could be so easily slipped into the repository =
...
> >>
> >>Since the patch Jun-uk Kim referred to is a GIT patch and it seems to
> >>work, is there a 'simple' way without installing the GIT stuff from
> >>ports to patch the defective port?
> >>
> >Have you looked at the link?  The patch is trivial and can easily be
> >applied by hand.
> >
> Yes I did.

Put the following content into the ports/x11-drivers/xf86-video-ati/files/p=
atch-all


=46rom fe2e0ad3ffa58f40311319c950b842e2928a5740 Mon Sep 17 00:00:00 2001
From: matthew green <mrg@eterna.com.au>
Date: Mon, 21 Mar 2011 16:17:58 +0000
Subject: bug fix for r6xx/r7xx UMS

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
---
diff --git src/r600_exa.c src/r600_exa.c
index 0ed0ced..7736d24 100644
--- src/r600_exa.c
+++ src/r600_exa.c
@@ -621,8 +621,12 @@ R600PrepareCopy(PixmapPtr pSrc,   PixmapPtr pDst,
 	return FALSE;
=20
     if (accel_state->same_surface =3D=3D TRUE) {
+#if defined(XF86DRM_MODE)
 	unsigned height =3D RADEON_ALIGN(pDst->drawable.height,
 				       drmmode_get_height_align(pScrn, accel_state->dst_obj.tiling_fla=
gs));
+#else
+	unsigned height =3D pDst->drawable.height;
+#endif
 	unsigned long size =3D height * accel_state->dst_obj.pitch * pDst->drawab=
le.bitsPerPixel/8;
=20
 #if defined(XF86DRM_MODE)
diff --git src/radeon_textured_video.c src/radeon_textured_video.c
index c886ed0..d247db6 100644
--- src/radeon_textured_video.c
+++ src/radeon_textured_video.c
@@ -248,7 +248,11 @@ RADEONPutImageTextured(ScrnInfoPtr pScrn,
     BoxRec dstBox;
     int dst_width =3D width, dst_height =3D height;
     int aligned_height;
+#ifdef XF86DRM_MODE
     int h_align =3D drmmode_get_height_align(pScrn, 0);
+#else
+    int h_align =3D 1;
+#endif
     /* make the compiler happy */
     s2offset =3D s3offset =3D srcPitch2 =3D 0;
=20
--
cgit v0.8.3-6-g21f6

--0Wno+JmTDwXv9sgk
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk2OVc8ACgkQC3+MBN1Mb4jZsACg1ALoMUJOAZEj175bqNuxUFrq
D+8AnROQ1Bh/r4VLUOwWLfcFYwl4bxAe
=7RHU
-----END PGP SIGNATURE-----

--0Wno+JmTDwXv9sgk--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20110326210831.GG78089>