Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Dec 2005 13:01:19 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-current@freebsd.org
Cc:        Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>, Norikatsu Shigemura <nork@freebsd.org>
Subject:   Re: vgapci doesn't want to attach agp on ASUS M5A
Message-ID:  <200512271301.20955.jhb@freebsd.org>
In-Reply-To: <20051226014329.152c6918.nork@FreeBSD.org>
References:  <20051225135216.Y1294@atlantis.atlantis.dp.ua> <20051226014329.152c6918.nork@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 25 December 2005 11:43 am, Norikatsu Shigemura wrote:
> On Sun, 25 Dec 2005 14:28:47 +0200 (EET)
>
> Dmitry Pryanishnikov <dmitry@atlantis.dp.ua> wrote:
> > I've tried both to compile devices agp,drm,i915 to the kernel and load
> > them via /boot/loader.conf - result with the stock kernel was the same:
> > vgapci0: <VGA-compatible display> port 0xec00-0xec07 mem
> >    0xfeb80000-0xfebfffff,0xd0000000-0xdfffffff,0xfeb40000-0xfeb7ffff irq
> > 16 at device 2.0 on pci0
> > drm0: <Intel i915GM> on vgapci0
> > error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't initialize
> > AGP. device_attach: drm0 attach returned 12
> > I had to hack /sys/dev/pci/vga_pci.c:
>
> 	I have same problem in my i830M, too and fixed Dmitry's patch.
> 	According to my pciconf -rb, pci_find_extcap(dev, PCIY_AGP, NULL)
> 	never find PCIY_AGP(because of 0x01).

Ok, it looks like agp_i810.c doesn't actually look for the AGP cap either 
which is quite odd, but anyways.  The best fix is to fix the AGP drivers to 
use identify routines and change the hostb and vgapci drivers to be dumber.  
Creating agp and drm devices in vgapci is a temporary hack anyway.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



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