Re: vgapci doesn't want to attach agp on ASUS M5A

From: Norikatsu Shigemura <nork_at_FreeBSD.org>
Date: Mon, 26 Dec 2005 01:43:29 +0900
On Sun, 25 Dec 2005 14:28:47 +0200 (EET)
Dmitry Pryanishnikov <dmitry_at_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).

# 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...
     | 00 01 02 03 04 05 06 07  08 09 0A 0B 0C 0D 0E 0F
-----+-------------------------------------------------
0000 | 86 80 77 35 07 00 90 00  04 00 00 03 00 00 80 00
0010 | 08 00 00 e8 00 00 00 e0  00 00 00 00 00 00 00 00
0020 | 00 00 00 00 00 00 00 00  00 00 00 00 bd 13 29 10
0030 | 00 00 00 00 d0 00 00 00  00 00 00 00 05 01 00 00
                  ~~
0040 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0050 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0060 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0070 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0080 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0090 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00A0 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00B0 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00C0 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00D0 | 01 00 21 02 00 00 00 00  80 80 13 2a 00 00 00 00
       ~~ This is not 0x02(=PCIY_AGP)
00E0 | 2a 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00F0 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
Received on Sun Dec 25 2005 - 15:43:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:49 UTC