Re: PCI spec question/possible VIA quirk?

Mark Hahn (hahn@physics.mcmaster.ca)
Mon, 13 Aug 2001 02:46:40 +0000 (GMT)


> Can anyone tell me what the PCI specs say config registers 0x2c:0x2f
> should contain?

via's kt133a spec says 0x2c-2d is "subsystem vendor ID"
defaults to zero, and 0x2d-2f is "subsystem ID" (also def zero).
these are RW, so the bios could put something cute in them, I guess.

ah, yes the vid 0x1043 from your example is AsusTek.
on my (Asus) A7V133, those bytes are zero.

> In drivers/pci/pci.c (all 2.4.x kernels) pci_read_bridge_bases()
> is reading "mem_limit_hi" from them.
> (PCI_PREF_LIMIT_UPPER32 = 0x2c in pci.h)

again, the kt133a spec says "prefetchable memory base" should
be at register 0x24-25, and "prefetchable memory limit" at 0x26-27.

I'm guessing pci.h should have:

#define PCI_PREF_BASE_UPPER32 0x28 /* Upper half of prefetchable memory range */
- #define PCI_PREF_LIMIT_UPPER32 0x2c
+ #define PCI_PREF_LIMIT_UPPER32 0x2a

(pardon the manual pseudopatch)

-
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/