Subject: Thinkpad X30 and Intel 82820MP on NetBSD 1.6.1
To: None <port-i386@netbsd.org>
From: Gilbert Fernandes <gilbertf@netbsd-fr.org>
List: port-i386
Date: 04/25/2003 21:04:40
Hello all,

Been trying to configure XFree under the Thinkpad X30. Machine
uses an IBM 82830MP which doesn't seem configured by the kernel.
Checking /usr/src/sys/dev/pci/agp.c I found that this was not
used (though a #ifdef 0) :

---

#if 0
/* XXX needs somewhat different driver */
	{ PCI_VENDOR_INTEL,	PCI_PRODUCT_INTEL_82830MP_IO_1,
	  NULL,			agp_i810_attach },
#endif

---

Setting this to 1 and compiling a new kernel doesn't seem
to work very well. The dmesg says :

agp0 at pchb0: can't find internal VGA device config space

But I have found a message from someone using a Thinkpad X30
(on 1.6-current) and he (namely our beloved Shingo Watanabe)
got this :

----

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)
...

----

So I got the very same machine with the same VGA crap
(you know, the kind of that uses a part of central memory
as video Ram, from 8 to 32 Mb on the 82830) but on 1.6.1 it
doesn't get me anywhere. The post from Shingo is there :

http://marc.theaimsgroup.com/?l=netbsd-port-i386&m=103895583603330&w=2

Has anyone a X30 with 82830 working on XFree ?
Or should I have done more than putting a #ifdef 1 into my
/usr/src/sys/dev/pci/agp.c to try to use the chip.

I tried to compile with and without agp0 but result is always the
same : trying to run /usr/X11R6/bin/xf86cfg just core dumps.
The whole script(1) of this is there:

perso.wanadoo.fr/gilbert.fernandes/xf86_x30_cored.txt

Of course, my kernel has MTRR which I suppose is required
to have the 82830 being able to map its VRAM to a part of
the central memory.

Any help welcome.

-- 
Gilbert Fernandes