Re: Updated 2.4 TODO List - more on PCI resources...

From: Dag B (dagb@os.telia.no)
Date: Wed Oct 11 2000 - 15:31:07 EST


Linus Torvalds wrote:
>
> On Wed, 11 Oct 2000, Dag B wrote:
> > 2.4.0-test9/10p1
>
> Can you do another test with this (ie in-kernel pcmcia), AND enable
> debugging in both drivers/pci/pci.c and in arch/i386/kernel/pci-i386.h (in
[snip]

> drivers/pcmcia/yenta.c to allocate more than 4MB of PCI memory window.
[snip]

> align = size = 32*1024*1024;
Done.
Didn't work. But it certainly made a difference.

lspci -v now says:

06:00.0 Ethernet controller: Xircom Cardbus Ethernet 10/100 (rev 03)
        Subsystem: Xircom Cardbus Ethernet 10/100
        Flags: medium devsel, IRQ 11
        I/O ports at 1800 [size=128]
        [virtual] Memory at 18000000 (32-bit, non-prefetchable)
[size=32M]
        [virtual] Memory at 18000000 (32-bit, non-prefetchable)
[size=32M]
        Expansion ROM at 18000000 [disabled] [size=32M]
        Capabilities: [dc] Power Management version 1

What used to be a 4M expansion ROM is now 32M. Just for grins, I made a
version with align = size = 64*1024*1024; and got

        [virtual] Memory at 20000000 (32-bit, non-prefetchable)
[size=64M]
        Expansion ROM at 20000000 [disabled] [size=64M]

debug output from boot follows:
dagblap:~# dmesg | more
Linux version 2.4.0-test9 (root@dagblap) (gcc version 2.95.2 19991024
(release)) #3 Wed Oct 11 22:0
6:48 CEST 2000
BIOS-provided physical RAM map:
 BIOS-e820: 000000000009fc00 @ 0000000000000000 (usable)
 BIOS-e820: 0000000000000400 @ 000000000009fc00 (reserved)
 BIOS-e820: 000000000000c000 @ 00000000000c0000 (reserved)
 BIOS-e820: 0000000005ef0000 @ 0000000000100000 (usable)
 BIOS-e820: 0000000000010000 @ 0000000005ff0000 (ACPI data)
 BIOS-e820: 0000000000060000 @ 00000000100a0000 (reserved)
 BIOS-e820: 0000000000200000 @ 00000000ffe00000 (reserved)
On node 0 totalpages: 24560
zone(0): 4096 pages.
zone(1): 20464 pages.
zone(2): 0 pages.
Kernel command line: BOOT_IMAGE=test10p1a ro root=/dev/discs/disc0/part5
pci=rom
[...]
PCI: Using configuration type 1
PCI: Probing PCI hardware
Scanning bus 00
Found 00:00 [8086/7190] 000600 00
Found 00:08 [8086/7191] 000604 01
Found 00:18 [104c/ac1c] 000607 02
Found 00:19 [104c/ac1c] 000607 02
Found 00:38 [8086/7110] 000680 00
Found 00:39 [8086/7111] 000101 00
PCI: IDE base address fixup for 00:07.1
Found 00:3a [8086/7112] 000c03 00
Found 00:3b [8086/7113] 000680 00
Found 00:68 [10b7/9050] 000200 00
Fixups for bus 00
PCI: Scanning for ghost devices on bus 0
Scanning behind PCI bridge 00:01.0, config 010100, pass 0
Scanning bus 01
Found 01:00 [10c8/0005] 000300 00
Found 01:01 [10c8/8005] 000401 00
Fixups for bus 01
PCI: Scanning for ghost devices on bus 1
Bus scan for 01 returning with max=01
Scanning behind PCI bridge 00:03.0, config 000000, pass 0
Scanning behind PCI bridge 00:03.1, config 000000, pass 0
Scanning behind PCI bridge 00:01.0, config 010100, pass 1
Scanning behind PCI bridge 00:03.0, config 000000, pass 1
Scanning behind PCI bridge 00:03.1, config 000000, pass 1
Bus scan for 00 returning with max=09
PCI: IRQ init
PCI: Interrupt Routing Table found at 0xc00fbda0
00:07 slot=00 0:00/0000 1:00/0000 2:00/0000 3:63/def8
01:00 slot=00 0:60/def8 1:61/def8 2:00/0000 3:00/0000
00:03 slot=00 0:63/def8 1:63/def8 2:00/0000 3:00/0000
00:0d slot=00 0:62/def8 1:00/0000 2:00/0000 3:00/0000
00:11 slot=00 0:62/def8 1:62/def8 2:62/def8 3:62/def8
PCI: Bus 01 already known
PCI: Using IRQ router default [8086/1234] at 00:07.0
PCI: IRQ fixup
PCI: Allocating resources
PCI: Resource f4000000-f7ffffff (f=1208, d=0, p=0)
PCI: Resource 00000860-0000086f (f=101, d=0, p=0)
PCI: Resource 0000ece0-0000ecff (f=101, d=0, p=0)
PCI: Resource 0000ec80-0000ecbf (f=101, d=0, p=0)
PCI: Resource fb000000-fbffffff (f=1208, d=0, p=0)
PCI: Resource fdc00000-fdffffff (f=200, d=0, p=0)
PCI: Resource fdb00000-fdbfffff (f=200, d=0, p=0)
PCI: Resource fac00000-faffffff (f=1208, d=0, p=0)
PCI: Resource fda00000-fdafffff (f=200, d=0, p=0)
Limiting direct PCI/PCI transfers.
Linux NET4.0 for Linux 2.4
[...]
NeoMagic 256AV/256ZX audio driver, version 1.1
NM256: Found card signature in video RAM: 0x27ec00
Trying to free nonexistent resource <c6a63c00-c6a63c0f>
NM256: Mapping port 1 from 0x266c00 - 0x27ec00
Initialized NeoMagic 256AV audio in PCI native mode
Initialized AC97 mixer
Done installing NM256 audio driver.
Linux PCMCIA Card Services 3.1.20
  options: [pci] [cardbus] [pm]
devfs: v0.102 (20000622) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x2
kmem_create: Forcing size word alignment - nfs_fh
Yenta IRQ list 0298, PCI irq11
Socket status: 30000006
Yenta IRQ list 0298, PCI irq11
Socket status: 30000020
ACPI: support found
ACPI: PBLK 1 @ 0x0810:0
ACPI: S1 supported
ACPI: S5 supported
cs: cb_alloc(bus 6): vendor 0x115d, device 0x0003
Found 06:00 [115d/0003] 000200 00
PCI: Failed to allocate resource 1 for PCI device 115d:0003
PCI: Failed to allocate resource 2 for PCI device 115d:0003
PCI: Failed to allocate resource 6 for PCI device 115d:0003
PCI: Enabling device 06:00.0 (0000 -> 0003)
Found 06:01 [115d/0103] 000300 00
PCI: Failed to allocate resource 1 for PCI device 115d:0103
PCI: Failed to allocate resource 2 for PCI device 115d:0103
PCI: Failed to allocate resource 6 for PCI device 115d:0103
PCI: Enabling device 06:00.1 (0000 -> 0003)
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 192k freed
Warning: unable to open an initial console.
cs: IO port probe 0x0c00-0x0cff: clean.
cs: IO port probe 0x0800-0x08ff: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x4d0-0x4d7
cs: IO port probe 0x0a00-0x0aff: clean.

The boot output is with the 64M version. I note that the Xircom card
announces
        Capabilities: [dc] Power Management version 1
while I built a kernel with ACPI. I'll play with some other variants.

Does the output make you any wiser?

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



This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:19 EST