Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Sep 2008 23:07:49 -0400
From:      Robert Noland <rnoland@2hip.net>
To:        freebsd-x11 <freebsd-x11@freebsd.org>
Subject:   radeon rs48x and rs690 drm
Message-ID:  <1220670469.1860.8.camel@wombat.2hip.net>

next in thread | raw e-mail | index | archive | help

--=-6CB5adR0Y16awOTqInlm
Content-Type: multipart/mixed; boundary="=-dLrMxXSKOYUZemlWsk+c"


--=-dLrMxXSKOYUZemlWsk+c
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

The linux guys seem to have stumbled onto the issue with the rs48x and
rs690 radeons.  I'm attaching a patch that *should* get these working,
at least as a test.  It also has one of the locking patches in it, that
I need radeon testers before I can commit.

If you have one of these cards, please apply this patch to -CURRENT and
let me know, I don't have any of these cards.

robert.


--=-dLrMxXSKOYUZemlWsk+c
Content-Disposition: attachment; filename=drm_ati_pcigart-rs48x.patch
Content-Transfer-Encoding: base64
Content-Type: text/x-patch; name=drm_ati_pcigart-rs48x.patch; charset=UTF-8

SW5kZXg6IGRldi9kcm0vZHJtX2J1ZnMuYw0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIGRldi9kcm0vZHJtX2J1
ZnMuYwkocmV2aXNpb24gMTgyNDY2KQ0KKysrIGRldi9kcm0vZHJtX2J1ZnMuYwkod29ya2luZyBj
b3B5KQ0KQEAgLTU5OCw4ICs1OTgsMTAgQEANCiAJcGFnZV9jb3VudCA9IDA7DQogDQogCXdoaWxl
ICggZW50cnktPmJ1Zl9jb3VudCA8IGNvdW50ICkgew0KKwkJRFJNX1NQSU5VTkxPQ0soJmRldi0+
ZG1hX2xvY2spOw0KIAkJZHJtX2RtYV9oYW5kbGVfdCAqZG1haCA9IGRybV9wY2lfYWxsb2MoZGV2
LCBzaXplLCBhbGlnbm1lbnQsDQogCQkgICAgMHhmZmZmZmZmZnVsKTsNCisJCURSTV9TU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pbmZvICpnYXJ0X2luZm8pDQogew0KLQlkZXYtPnNnLT5kbWFo
ID0gZHJtX3BjaV9hbGxvYyhkZXYsIGdhcnRfaW5mby0+dGFibGVfc2l6ZSwNCi0JCQkJCQlQQUdF
X1NJWkUsDQotCQkJCQkJZ2FydF9pbmZvLT50YWJsZV9tYXNrKTsNCi0JaWYgKGRldi0+c2ctPmRt
YWggPT0gTlVMTCkNCisJZHJtX2RtYV9oYW5kbGVfdCAqZG1haDsNCisNCisJRFJNX1VOTE9DSygp
Ow0KKwlkbWFoID0gZHJtX3BjaV9hbGxvYyhkZXYsIGdhcnRfaW5mby0+dGFibGVfc2l6ZSwgUEFH
RV9TSVpFLA0KKwkgICAgZ2FydF9pbmZvLT50YWJsZV9tYXNrKTsNCisJRFJNX0xPQ0soKTsNCisJ
aWYgKGRtYWggPT0gTlVMTCkNCiAJCXJldHVybiBFTk9NRU07DQogDQorCWRldi0+c2ctPmRtYWgg
PSBkbWFoOw0KKw0KIAlyZXR1cm4gMDsNCiB9DQogDQpAQCAtMTUwLDcgKzE1NSw3IEBADQogCQl9
DQogCX0NCiANCi0JRFJNX01FTU9SWUJBUlJJRVIoKTsNCisJd2JpbnZkKCk7DQogDQogCXJldCA9
IDE7DQogDQo=


--=-dLrMxXSKOYUZemlWsk+c--

--=-6CB5adR0Y16awOTqInlm
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEABECAAYFAkjB9AQACgkQM4TrQ4qfRONaXQCeJlM5rKDXZxkHr12qL8FaFRA8
f8kAnjarACNBr0YUT5WeB8nwCQSCafya
=oilF
-----END PGP SIGNATURE-----

--=-6CB5adR0Y16awOTqInlm--




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