From nobody@FreeBSD.org Tue Feb 21 20:50:43 2006 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B01216A420 for ; Tue, 21 Feb 2006 20:50:43 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27D3443D46 for ; Tue, 21 Feb 2006 20:50:43 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k1LKoeRn032799 for ; Tue, 21 Feb 2006 20:50:40 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k1LKoeVl032798; Tue, 21 Feb 2006 20:50:40 GMT (envelope-from nobody) Message-Id: <200602212050.k1LKoeVl032798@www.freebsd.org> Date: Tue, 21 Feb 2006 20:50:40 GMT From: Jan Blaha To: freebsd-gnats-submit@FreeBSD.org Subject: Yet another i915G drm/agp issue X-Send-Pr-Version: www-2.3 >Number: 93676 >Category: kern >Synopsis: [agp] Yet another i915G drm/agp issue >Confidential: no >Severity: non-critical >Priority: low >Responsible: anholt >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 21 21:00:15 GMT 2006 >Closed-Date: Mon Mar 26 20:32:29 GMT 2007 >Last-Modified: Mon Mar 26 20:32:29 GMT 2007 >Originator: Jan Blaha >Release: 7.0-CURRENT >Organization: >Environment: FreeBSD cl084016105115.unet.cz 7.0-CURRENT FreeBSD 7.0-CURRENT #5: Tue Feb 21 19:12:11 CET 2006 root@cl084016105115.unet.cz:/usr/obj/usr/src/sys/KERNEL amd64 >Description: Attaching drm0 device yields following kernel error messages on recent -current system: drm0: on vgapci0 [drm:pid0:drm_load] [drm:pid0:drm_agp_init] agp_available = 0 error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't initialize AGP. [drm:pid0:drm_lastclose] device_attach: drm0 attach returned 12 No drm nor agp devices appear in /dev. Xorg is unable to open /dev/agpgart and allocate more than 8M of memory. Xv extension is off, direct rendering is disabled. (EE) GARTInit: Unable to open /dev/agpgart (No such file or directory) (WW) I810(0): /dev/agpgart is either not available, or no memory is available for allocation. Using pre-allocated memory only. The problem is similar to http://www.freebsd.org/cgi/query-pr.cgi?pr=80396 but since that pr is closed and problem should be fixed in -current, there must be some difference. Full system information is available on the uris: http://freebsd.vyky.net/pciconf.txt http://freebsd.vyky.net/dmesg.txt http://freebsd.vyky.net/Xorg.0.log http://freebsd.vyky.net/KERNEL.txt >How-To-Repeat: Boot os with described hardware and software configuration. >Fix: >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-bugs->anholt Responsible-Changed-By: linimon Responsible-Changed-When: Thu Aug 31 18:16:57 UTC 2006 Responsible-Changed-Why: anholt has expressed an interest in agp PRs. http://www.freebsd.org/cgi/query-pr.cgi?pr=93676 From: Eric Anholt To: bug-followup@FreeBSD.org, Jan.Blaha@unet.cz Cc: Subject: Re: kern/93676: [agp] Yet another i915G drm/agp issue Date: Thu, 31 Aug 2006 20:27:07 -0700 --=-6UNG0VJrU14M2dMHwQC+ Content-Type: multipart/mixed; boundary="=-zTuq0Njg3CV35Yrrym36" --=-zTuq0Njg3CV35Yrrym36 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Could you try applying the following patch and seeing if it works for you? I'm interested in whether the agp driver attaches, whether basic 2D works, and whether 3D also works. Thanks for providing all those logs so I could figure out what was going on! Patch also at: http://people.freebsd.org/~anholt/agp_i810-amd64.diff --=20 Eric Anholt anholt@FreeBSD.org eric@anholt.net eric.anholt@intel.com --=-zTuq0Njg3CV35Yrrym36 Content-Disposition: attachment; filename=agp_i810-amd64.diff Content-Type: text/x-patch; name=agp_i810-amd64.diff; charset=utf-8 Content-Transfer-Encoding: base64 SW5kZXg6IGNvb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AtMTIsNyArMTIsNyBAQA0KIFNSQ1MrPQlhZ3BfYW1k NjQuYw0KIC5lbmRpZg0KIC5pZiAgJHtNQUNISU5FX0FSQ0h9ID09ICJhbWQ2NCINCi1TUkNTKz0J YWdwX2FtZDY0LmMNCitTUkNTKz0JYWdwX2FtZDY0LmMgYWdwX2k4MTAuYw0KIC5lbmRpZg0KIFNS Q1MrPQlkZXZpY2VfaWYuaCBidXNfaWYuaCBhZ3BfaWYuaCBwY2lfaWYuaA0KIFNSQ1MrPQlvcHRf YnVzLmgNCg== --=-zTuq0Njg3CV35Yrrym36-- --=-6UNG0VJrU14M2dMHwQC+ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBE96iLHUdvYGzw6vcRAmJGAKCOujiXsxJA+v95+VswWAvSnPDKnwCfcCju LdWK7mVyhE0Nxc//zWPDgnU= =PEp/ -----END PGP SIGNATURE----- --=-6UNG0VJrU14M2dMHwQC+-- State-Changed-From-To: open->feedback State-Changed-By: anholt State-Changed-When: Fri Sep 1 03:56:17 UTC 2006 State-Changed-Why: Proposed patch awaiting feedback. http://www.freebsd.org/cgi/query-pr.cgi?pr=93676 State-Changed-From-To: feedback->patched State-Changed-By: anholt State-Changed-When: Tue Sep 5 16:55:40 UTC 2006 State-Changed-Why: Committed to -current, MFC to follow. http://www.freebsd.org/cgi/query-pr.cgi?pr=93676 State-Changed-From-To: patched->closed State-Changed-By: anholt State-Changed-When: Wed Sep 27 06:42:31 UTC 2006 State-Changed-Why: Was closing wrong patched issue, but I'll be MFCing this in a moment as well. http://www.freebsd.org/cgi/query-pr.cgi?pr=93676 State-Changed-From-To: closed->patched State-Changed-By: anholt State-Changed-When: Wed Sep 27 06:44:09 UTC 2006 State-Changed-Why: Never mind, we're in freeze anyway. http://www.freebsd.org/cgi/query-pr.cgi?pr=93676 State-Changed-From-To: patched->closed State-Changed-By: remko State-Changed-When: Mon Mar 26 20:32:28 UTC 2007 State-Changed-Why: I'll assume this got fixed already. http://www.freebsd.org/cgi/query-pr.cgi?pr=93676 >Unformatted: