Subject: Re: Ati Rage IIc: could not be detected?
To: Florian Stoehr <netbsd@wolfnode.de>
From: Michael <macallan18@earthlink.net>
List: port-sparc64
Date: 07/30/2005 11:47:42
--Signature_Sat__30_Jul_2005_11_47_42_-0400_HhUJBMfskGMTKgc8
Content-Type: multipart/mixed;
boundary=Multipart_Sat__30_Jul_2005_11_47_42_-0400_9ESF.3Alv51JZj8v
--Multipart_Sat__30_Jul_2005_11_47_42_-0400_9ESF.3Alv51JZj8v
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hello,
> Wait a second. There's one thing I didn't try yet. Your XFree86.0.log
> is full of messages like this:=20
> (II) PCI Memory resource overlap reduced 0x00004000 from 0x00007fff to
> 0x00005fff
> - I don't see a single one of them.
Not quite true - just checked and there are a few.
> When XFree messes with PCI BARs machfb won't notice and probably mmap
> wrong address ranges. I'll mail you a patch for machfb to test this.
Here's the patch against -current sys/dev/pci/machfb.c. It contains some
other stuff as well but that should be disabled and not do anything bad
( after all - it works here ). It will check the PCI BARs on every call
to mmap() and report any tampering. So please apply it, build a new
kernel and try to run X. Then check your dmesg output, if XFree messed
with the BARs there will be messages saying so and tell you what exactly
changed.
( I send this over the list too since mails directly to your address
came back and the patch is small enough )
have fun
Michael
--Multipart_Sat__30_Jul_2005_11_47_42_-0400_9ESF.3Alv51JZj8v
Content-Type: application/octet-stream; name=machfb.patch
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=machfb.patch
SW5kZXg6IG1hY2hmYi5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnNyb290L3NyYy9zeXMvZGV2
L3BjaS9tYWNoZmIuYyx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4zMApkaWZmIC11IC13IC1yMS4z
MCBtYWNoZmIuYwotLS0gbWFjaGZiLmMJNyBKdWwgMjAwNSAxODo0Mzo0NyA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IDB4ZjAwMDAwMDApICYmIChvZmZzZXQg
PCAweGYwODAwMDAwKSkgeworCQlwYSA9IGJ1c19zcGFjZV9tbWFwKHNjLT5zY19pb3Qsb2Zmc2V0
IC0gMHhmMDAwMDAwMCwgMCwgcHJvdCwgCisJCSAgICBCVVNfU1BBQ0VfTUFQX0xJTkVBUik7CisJ
CXJldHVybiBwYTsKKwl9CisjZW5kaWYKKwogCXJldHVybiAtMTsKIH0KIAo=
--Multipart_Sat__30_Jul_2005_11_47_42_-0400_9ESF.3Alv51JZj8v--
--Signature_Sat__30_Jul_2005_11_47_42_-0400_HhUJBMfskGMTKgc8
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)
iQEVAwUBQuuhIspnzkX8Yg2nAQIGfwf+L7Wj0BqukI27Kyhr84c32Ox9Ui89zNg/
wmq/ER0rPurqHz2YacY1Cp2rxqBa3JWojF3sOEhReAM36g7O9RoQWqCY30f5/T8F
BP73V6/j4193lBXaObqFrOww2KN922HWXukH06jHx8XsFxPKxvw+S7y14DblcH2D
p2Jt031iYMtpEu+nCCqU2nPFZ857SOEBYdO3XWfYHrejDe+4B5ZQ96KHEl1BAIJF
r5/7CbA5ZdzkpzYbahLSVZguRhEU/KPUmCpBBg3PO/c89gaXGnUCaGwnuo6GG7XV
MMaKX0W29LMrPs/gA6MjW9SEskRWSW4tUAaEKDkU36B5gRaQTpun3A==
=EoUF
-----END PGP SIGNATURE-----
--Signature_Sat__30_Jul_2005_11_47_42_-0400_HhUJBMfskGMTKgc8--