Subject: post-DRM agp issues with i810
To: None <tech-x11@NetBSD.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-x11
Date: 03/23/2007 18:43:53
--iDpyORI+WvZmjlkd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

i just upgraded my -current kernel after a couple of weeks and
immediatelly found two regressions caused by the DRM changes.

one of them was already quickly fixed by Jared (thanks!), panic in=20
agp attach: http://mail-index.netbsd.org/source-changes/2007/03/23/0026.html

another one is caused by this change in agp_i810.c:

1.37  (drochner 20-Mar-07):      /*
1.37  (drochner 20-Mar-07):       * another device (drm) may need access to=
 this region
1.37  (drochner 20-Mar-07):       * we do not need it anymore
1.37  (drochner 20-Mar-07):       */
1.37  (drochner 20-Mar-07):      bus_space_unmap(isc->bst, isc->bsh, mmadrs=
ize);

the bus_space_unmap() call causes that X is no longer usable, the screen
is messed up, fonts unreadable: http://xtrmntr.org/salo/tmp/agp.jpg

commenting this line out (again, hinted by Jared) makes things work
normal again.

fyi, i don't have DRI enabled, yet.


regards,

--=20
-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

--iDpyORI+WvZmjlkd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (NetBSD)

iD8DBQFGBBHZiwjDDlS8cmMRAjabAJ4j3oMhRhdvUVwtHTXa+SEFy//LBwCgj51Y
RnIfp8DOON8poMT+ByYq/Us=
=2Rev
-----END PGP SIGNATURE-----

--iDpyORI+WvZmjlkd--