vgapci doesn't want to attach agp on ASUS M5A

Dmitry Pryanishnikov dmitry at
Mon Dec 26 02:39:09 PST 2005


On Mon, 26 Dec 2005, Max Laier wrote:
>> Dmitry Pryanishnikov <dmitry at> 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).
>> # pciconf -lv | grep vgapci0
>> vgapci0 at pci0:2:0:	class=0x030000 card=0x102913bd chip=0x35778086 rev=0x04
>> hdr=0x00
>> # pciconf -rb pci0:2:0 0x0000:0x00ff | manual-formating...
> /me too on a IBM X41, pciconf -lv and -rb 0x0000:0x00ff for both instances
> attached.  As well, only 0x01 capability set.

  According to Intel's Mobile 915 PM/GM/GMS and 910GML Express Chipset 
Datasheet, we'll get such a picture on every chipset from this product
line: they define power management capability (0x01) as the only one, see

7.2.29	PMCAPID - Power Management Capabilities ID

 	PCI Device:	2
 	Function:	0
 	Address Offset:	D0h
 	Default Value:	0001h
 	Access:		RO
 	Size:		16 bits

Bit	Access &			Description

15:8	  RO		NEXT_PTR
 	  00h		This contains a pointer to next item in capabilities
 			list. This is the final capability in the list
 			and must be set to 00h.

  7:0      RO		CAP_ID.
 	  01h		SIG defines this ID is 01h for power management.

Sincerely, Dmitry
Atlantis ISP, System Administrator
e-mail:  dmitry at
nic-hdl: LYNX-RIPE

More information about the freebsd-current mailing list