2001-12-09 22:50:27

by Roel Teuwen

[permalink] [raw]
Subject: 2.4.16 / 2.4.17pre6 hang when loading agpgart

Hi all,

On my HP Omnibook 4150, 2.4.16 and 2.4.17-pre6 hang on boot right after
the messages below.
I need to press the reset button and load a kernel without agpgart
compiled in to boot. When compiled as a module, the machine hangs after
printing these lines when loading the module.

"
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory : 96M
agpgart: Detected Intel 440BX chipset
"

I selected the agpgart "440BX" option in menuconfig.
AGP information :

00:01.0 PCI bridge: Intel Corp. 440BX/ZX - 82443BX/ZX AGP bridge (rev
02) (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 128
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
Memory behind bridge: fe700000-fecfffff
Prefetchable memory behind bridge: fd000000-fe3fffff

Please tell me if more information is needed.

Best regards,

Roel



2001-12-09 23:48:51

by Reid Hekman

[permalink] [raw]
Subject: Re: 2.4.16 / 2.4.17pre6 hang when loading agpgart

On Sun, 2001-12-09 at 18:00, Roel Teuwen wrote:
> On my HP Omnibook 4150, 2.4.16 and 2.4.17-pre6 hang on boot right after
> the messages below.
> I need to press the reset button and load a kernel without agpgart
> compiled in to boot. When compiled as a module, the machine hangs after
> printing these lines when loading the module.
>
> "
> Linux agpgart interface v0.99 (c) Jeff Hartmann
> agpgart: Maximum main memory to use for agp memory : 96M
> agpgart: Detected Intel 440BX chipset
> "
>
> I selected the agpgart "440BX" option in menuconfig.
> AGP information :
>
> 00:01.0 PCI bridge: Intel Corp. 440BX/ZX - 82443BX/ZX AGP bridge (rev
> 02) (prog-if 00 [Normal decode])
> Flags: bus master, 66Mhz, medium devsel, latency 128
> Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
> Memory behind bridge: fe700000-fecfffff
> Prefetchable memory behind bridge: fd000000-fe3fffff

I had the same problem after upgrading the BIOS on a Trigem Napoli-2
mainboard with a 440BX (eMachine 500a). Tested with kernels 2.4.5-RH
through 2.4.13-ac7. With Bios image v1.12 it hangs with agpgart built in
or on module load exactly as you described, it also fails when I use
nvidia's NVdriver agp support. After upgrading to Bios 1.13 the problem
went away.

Something to check for anyway...

For completeness, my working setup displays the normal kernel apggart
info and shows this:

00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge
(rev 03) (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: fc600000-fe6fffff
Prefetchable memory behind bridge: f0400000-f44fffff

Regards,
Reid

2001-12-11 14:22:44

by Diego SANTA CRUZ

[permalink] [raw]
Subject: Re: 2.4.16 / 2.4.17pre6 hang when loading agpgart

Hi,

> On my HP Omnibook 4150, 2.4.16 and 2.4.17-pre6 hang on boot right
after
> the messages below.
> I need to press the reset button and load a kernel without agpgart
> compiled in to boot. When compiled as a module, the machine hangs
after
> printing these lines when loading the module.
>

I also have an HP Omnibook 4150 (model F1629N, PII 300 MHz and Neomagic
NM2200 card) and I have similar problems (if I try to load the agpgart
module it locks up the machine). Some time ago I did a bit of debugging
and I arrived to the conclusion that the BIOS does not initialize the
base of the aperture table (that can be seen by reading the APBASE
register of the PCI AGP controller or by doing "lspci -v" and seeing
that the memory is unassigned). That locks up the system whenever AGP is
enabled by the agpgart module (will try to access memory at 0x0).

Have you ever managed to get agpgart working on the OB 4150? If yes,
which exact model and with which BIOS on which kernel?

I'm using BIOS 2.28 and running kernel 2.4.9-13 (RedHat 7.2).

Relevant lspci data is:

00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge
(rev 02)
Flags: bus master, medium devsel, latency 64
Memory at <unassigned> (32-bit, prefetchable) [size=64M]
Capabilities: [a0] AGP version 1.0

00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge
(rev 02) (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 128
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
Memory behind bridge: fe700000-fecfffff
Prefetchable memory behind bridge: fd000000-fe3fffff


As you can see, 00:00.0 has the memory unassigned. I guess the BIOS
should set that up.

Any feedback very much appreciated!

Diego

PS: I'm not on lkml so a CC would be appreciated. More info on my HP
4150 setup at http://ltswww.epfl.ch/~dsanta/resources/hp4150-linux


--
-------------------------------------------------------
Diego Santa Cruz
PhD. student
Publications available at http://ltswww.epfl.ch/~dsanta
Signal Processing Laboratory (LTS)
Swiss Federal Institute of Technology (EPFL)
EPFL - DE - LTS, CH-1015 Lausanne, Switzerland
E-mail: [email protected]
Phone: +41 - 21 - 693 26 57
Fax: +41 - 21 - 693 76 00
-------------------------------------------------------