Subject: Re: Intel i845G on-board graphics
To: WATANABE/$BEOJU <nabe@nabechan.org>>)>
From: Daniel Brewer <danielb@cat.co.za>
List: tech-x11
Date: 12/04/2002 10:51:37
Thanks

Unfortunately, this doesn't work. There are no agp* files in my 151 src/sys/
tree to patch. I seem to recall some posts a while back saying that NetBSD
treated the agp bus as an extension of the PCI bus, and that was limiting
direct access to the video card's memory, so DRI wasn't supported (or
something to that effect). There were also plans to fix this. I assume this
has been done in 1.6.

Selecting the standard vga driver, I can get 640x480x8bit working. Using the
vesa drivers just turns the screen black and won't allow me to switch
terminals. The requirement is for 1024x768x24bit.

Is there something I can do to get around this in 1.5.x or do I have to move
1.6? (since this is not for just a personal PC, this is not a great option).

Here's an extract from my dmesg:
...
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel product 0x2560 (rev. 0x01)
vga1 at pci0 dev 2 function 0: Intel product 0x2562 (rev. 0x01)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
...

and here are some snips from my XFree86.0.log:
...
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 8086,2560 card 8086,2560 rev 01 class 06,00,00 hdr
00
(II) PCI: 00:02:0: chip 8086,2562 card 8086,2562 rev 01 class 03,00,00 hdr
00
(II) PCI: 00:1d:0: chip 8086,24c2 card 8086,24c2 rev 01 class 0c,03,00 hdr
80
...
(II) Bus 1: bridge is at (0:30:0), (0,1,1), BCTRL: 0x06 (VGA_EN is cleared)
(II) Bus 1 I/O range:
 [0] -1 0x0000c000 - 0x0000c0ff (0x100) IX[B]
 [1] -1 0x0000c400 - 0x0000c4ff (0x100) IX[B]
 [2] -1 0x0000c800 - 0x0000c8ff (0x100) IX[B]
 [3] -1 0x0000cc00 - 0x0000ccff (0x100) IX[B]
(II) Bus 1 non-prefetchable memory range:
 [0] -1 0xec000000 - 0xedffffff (0x2000000) MX[B]
(II) Bus 1 prefetchable memory range:
(II) Bus -1: bridge is at (0:31:0), (0,-1,0), BCTRL: 0x08 (VGA_EN is set)
(II) Bus -1 I/O range:
(II) Bus -1 non-prefetchable memory range:
(II) Bus -1 prefetchable memory range:
(--) PCI:*(0:2:0) Intel unknown chipset (0x2562) rev 1, Mem @ 0xe0000000/27,
0xee000000/19
(II) Addressable bus resource ranges are
 [0] -1 0x00000000 - 0xffffffff (0x0) MX[B]
 [1] -1 0x00000000 - 0x0000ffff (0x10000) IX[B]
...

-Daniel

----- Original Message -----
From: <Shingo WATANABE / $BEOJU (B $B?-8c(B <nabe@nabechan.org>)>
To: <danielb@cat.co.za>
Cc: <tech-kern@netbsd.org>; <port-i386@netbsd.org>; <tech-x11@netbsd.org>
Sent: Tuesday, December 03, 2002 6:38 PM
Subject: Re: Intel i845G on-board graphics


Hello.

The patch for i830/845G agp driver is attached in this mail.

At Tue, 3 Dec 2002 17:08:47 +0200,
"Daniel Brewer" <danielb@cat.co.za> wrote:

> Sorry for the cross-post, but I'm having trouble getting X server to
> recognize the on-boad i845G graphics card. It seems to identify that there
> is an Intel graphics chip, but can't identify the exact part number.

How is the agp driver recognized?

> I'm running v1.5.1 and have checked out & built the XFree86 4.2 branch.
I'm
> still looking and trying things, but has anyone had similar problems? Or
has
> someone found a solution?

I've just written the agp driver for i830/845G. The patch is
attached for 1.6-current.  The PC is under repair, so I did not test
well, sorry.   Please try it and send comments to me.

I don't know you can use this patch in 1.5.1-release.


dmesg from ThinkPad X30 (i830MP)
...
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82830MP CPU to I/O Bridge 1 (rev. 0x04)
agp0 at pchb0: detected 8060k stolen memory
agp0: aperture size is 128M
agp0: aperture at 0xe0000000, size 0x8000000
vga1 at pci0 dev 2 function 0: Intel 82830MP Integrated Video (rev. 0x04)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
...