Date: Sat, 18 Apr 2009 13:58:39 -0500 From: Robert Noland <rnoland@FreeBSD.org> To: cpghost <cpghost@cordula.ws> Cc: freebsd-stable@freebsd.org Subject: Re: page fault in sis.ko / drm.ko Message-ID: <1240081119.3525.5.camel@balrog.2hip.net> In-Reply-To: <20090418171306.GA1983@phenom.cordula.ws> References: <20090418171306.GA1983@phenom.cordula.ws>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-a5in5gY0PZgTfCzT+OIi Content-Type: multipart/mixed; boundary="=-px8h5nZdITw2q2EfsbLZ" --=-px8h5nZdITw2q2EfsbLZ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2009-04-18 at 19:13 +0200, cpghost wrote: > Could a drm guru please have a look at kern/133554? >=20 > Thanks, > -cpghost. Give this patch a try, it looks like the sis driver doesn't have irq's. robert. --=20 Robert Noland <rnoland@FreeBSD.org> FreeBSD --=-px8h5nZdITw2q2EfsbLZ Content-Disposition: attachment; filename="drm_drv-fix-no-irq.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="drm_drv-fix-no-irq.patch"; charset="us-ascii" SW5kZXg6IGRldi9kcm0vZHJtX2Rydi5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQotLS0gZGV2L2RybS9kcm1fZHJ2 LmMJKHJldmlzaW9uIDE5MDk4NykNCisrKyBkZXYvZHJtL2RybV9kcnYuYwkod29ya2luZyBjb3B5 KQ0KQEAgLTEzNCw3ICsxMzQsNyBAQA0KIAkuZF9mbGFncyA9CURfVFJBQ0tDTE9TRQ0KIH07DQog DQotaW50IGRybV9tc2kgPSAxOwkvKiBFbmFibGUgYnkgZGVmYXVsdC4gKi8NCitzdGF0aWMgaW50 IGRybV9tc2kgPSAxOwkvKiBFbmFibGUgYnkgZGVmYXVsdC4gKi8NCiBUVU5BQkxFX0lOVCgiaHcu ZHJtLm1zaSIsICZkcm1fbXNpKTsNCiAN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gTfCzT+OIi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEABECAAYFAknqIt8ACgkQM4TrQ4qfROMfdACdHxcggwJ+k2KdV28Mz+ta4kwW 1jIAn1jQAINyfYR/BHb06ov/+XTX1Y8q =4WCP -----END PGP SIGNATURE----- --=-a5in5gY0PZgTfCzT+OIi--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1240081119.3525.5.camel>