From: Steven Newbury Subject: Re: R200 DRM/KMS Date: Mon, 06 Jul 2015 21:06:28 +0100 Message-ID: <1436213188.24965.37.camel@snewbury.org.uk> References: <1436189945.21533.12.camel@snewbury.org.uk> <1436208021.24965.31.camel@snewbury.org.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1635099152==" Return-path: Received: from know-smtprelay-omc-11.server.virginmedia.net (know-smtprelay-omc-11.server.virginmedia.net [80.0.253.75]) by gabe.freedesktop.org (Postfix) with ESMTP id 534F26E927 for ; Mon, 6 Jul 2015 13:06:43 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Alex Deucher Cc: Maling list - DRI developers List-Id: dri-devel@lists.freedesktop.org --===============1635099152== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Tv0rQZYCNH+ok/XpdCvk" --=-Tv0rQZYCNH+ok/XpdCvk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2015-07-06 at 15:42 -0400, Alex Deucher wrote: > On Mon, Jul 6, 2015 at 2:40 PM, Steven Newbury > wrote: > > On Mon, 2015-07-06 at 12:25 -0400, Alex Deucher wrote: > > > On Mon, Jul 6, 2015 at 9:39 AM, Steven Newbury < > > > steve@snewbury.org.uk > > > > wrote: > > > > Hi, > > > > I've been trying to get DRM/KMS working with the current=20 > > > > graphics > > > > stack (xf86-video-ati 7.5, xserver-1.17) on a R200 series=20 > > > > card. I > > > > assumed this should be working since KMS was implemented for=20 > > > > it a > > > > while back, and it has been working with xf86-video-ati-6.x. > > > >=20 > > > > Unfortunately, it doesn't seem to work. > > > >=20 > > > > I've narrowed it down to drmSetInterfaceVersion() failing when > > > > called > > > > from the ATI driver (in radeon_kms.c). This is a bit strange > > > > since, > > > > /sys/class/drm/version correctly reports 1.1.0 20060810.=20 > > > > Presuably > > > > it's getting the correct fd for the DRM master otherwise it=20 > > > > should > > > > bail earlier? > > > >=20 > > > >=20 > > > > Googling confirms others have had the same issue, and=20 > > > > generally the > > > > resolution has been to stick with the old driver. > > > >=20 > > > > Should this be working? Is it known to be broken? > > >=20 > > > It should be working. Make sure the kernel driver has kms=20 > > > enabled, > > > firmware available, and that the kernel driver is loaded before > > > starting X. If the kernel driver is not loaded before X starts=20 > > > you > > > can get a version mis-match error. > >=20 > > Yes, using Gentoos 4.1.1 kernel, driver is definitely loaded, with > > modeset=3D1, which is working, all sysfs entries are there. gdm=20 > > manages > > to fall back to starting up an X session without using DRM swrast > > -only, not something you want to experience on such a weak CPU! > >=20 >=20 > If the kernel driver loads properly and you get a kms console you > should be good to go. >=20 > > Manually starting X fails with the "[drm] failed to set drm=20 > > interface > > version." error. > >=20 >=20 > Maybe the ddx with that old system was build without KMS support? Everything is freshly compiled. The error itself is coming from radeon_kms.c:651 in the ddx. >=20 > Alex >=20 > > It's a very old system, PCI-only(!) Coppermine-128, belonging to a > > friend. The system previously was (very slowly) running Ubuntu 10 > > LTS, I think. It's not my machine so I'm not able to have=20 > > continuous > > access, but R200 DRM/KMS was working. Apparently, Ubuntu no longer > > support R200, so no further updates were possible. > >=20 > > My friend can't afford a new machine at the moment; and since I'm a > > long time Gentoo dev I took it upon myself to build him a optimized > > desktop with gcc-5, where possible LTO, -Os, -march=3Dpentium3 with=20 > > the > > system L1 and L2 cache size information. It's quite possible some > > part of the gfx stack is miscompiled, I tested it pretty throughly > > under qemu (with qxl) before deployment, but that of course didn't > > exercise the R200 driver. FWIW, other than the failing DRI, > > performance is surprisingly OK, not super fast obviously, but a=20 > > *lot* > > better than under Ubuntu! (start-up time is alot quicker, by an=20 > > order > > of magnitude!) > >=20 > > I'm attempting to downgrade the xserver and drivers (on the live > > system) to see if that works, you can imagine that takes a little > > while on a Coppermine-128! I'll find out tomorrow. Otherwise, I > > guess I'm recompiling the stack with gcc-4.9 and no-LTO... --=-Tv0rQZYCNH+ok/XpdCvk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEABECAAYFAlWa38oACgkQGcb56gMuC600MgCffRb1Ot/YaET+xmckj/Cqq8g7 DiAAoJYrHhhNrvJ9Z/uDyM3s9kgOoqsl =Okp9 -----END PGP SIGNATURE----- --=-Tv0rQZYCNH+ok/XpdCvk-- --===============1635099152== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1635099152==--