Re: PNPBIOS: warning: >= 16 resources, overflow? - SOLVED

From: Dumitru Ciobarcianu (cioby@lnx.ro)
Date: Thu Sep 06 2001 - 07:12:20 EST


On J, 2001-09-06 at 14:32, Dumitru Ciobarcianu wrote:
> On J, 2001-09-06 at 11:42, Gerd Knorr wrote:
> > lspnp (comes with pcmcia-cs) would be more intresting. The pnpbios code
> > fills a "struct pci_dev" for each device reported by the pnpbios, and it
> > looks like your portable has one device with alot ressources, so the
> > ressources array in struct pci_dev can't hold them all. There is a
> > #define in include/linux/pci.h for the array size ...
> >
> > Gerd
> >

That solved the warning.

The current pnp boot messages:

PnP: PNP BIOS installation structure at 0xc00f7470
PnP: PNP BIOS version 1.0, entry at f0000:a905, dseg at 400
PnP: 15 devices detected total
PNPBIOS: request ports [PNP0c01]:
PNPBIOS: request ports [PNP0c02]: 0x4d0-0x4d2 0x1000-0x1040
0x1040-0x1050
PNPBIOS: request ports [PNP0c02]:
PNPBIOS: request ports [PNP0c02]:

What is strange is that PNPBIOS reports 15 devices detected, and lspnp
detects 18 (00 - 17):

[root@LNX /root]# lspnp
00 PNP0c02 system peripheral: other
01 PNP0c01 memory controller: RAM
02 PNP0200 system peripheral: DMA controller
03 PNP0000 system peripheral: programmable interrupt controller
04 PNP0100 system peripheral: system timer
05 PNP0b00 system peripheral: real time clock
06 PNP0303 input device: keyboard
07 PNP0c04 reserved: other
08 PNP0800 multimedia controller: audio
09 PNP0a03 bridge controller: PCI
0a PNP0c02 bridge controller: ISA
0b PNP0c02 memory controller: RAM
0c PNP0c02 memory controller: RAM
11 PNP0f13 input device: mouse
15 PNP0700 mass storage device: floppy
17 PNP0400 communications device: AT parallel port

Trivial patch below (for the warning):

--- pci-orig.h Thu Sep 6 14:59:00 2001
+++ pci.h Thu Sep 6 15:09:45 2001
@@ -317,7 +317,7 @@
 #define DEVICE_COUNT_COMPATIBLE 4
 #define DEVICE_COUNT_IRQ 2
 #define DEVICE_COUNT_DMA 2
-#define DEVICE_COUNT_RESOURCE 16
+#define DEVICE_COUNT_RESOURCE 32
 
 #define PCI_ANY_ID (~0)
 

//Cioby

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 07 2001 - 21:00:34 EST