Subject: Re: Adaptec 4 port ethernet not working
To: Jonathan A. Kollasch <jakllsch@kollasch.net>
From: John Klos <john@ziaspace.com>
List: port-macppc
Date: 07/07/2006 19:51:39
> Hmm, interesting, perhaps OFW is not setting things behind bridges up for us?
> But in short, pci_mapreg_map(9) is failing somehow.

I douubt that OFW knows about bridges other than the ones that shipped in 
Macs...

> I'd like to see the output of the debugging code near here. tlp_srom_debug
> needs to be non-zero. (short pause while I go off to find the email
> that explained how) Backup your kernel, then:
>
> gdb --write $TEST_KERNEL
> set tlp_srom_debug=1
> quit
>
> and then boot $TEST_KERNEL.

Thanks. Good flag to know about. Here're my dmesg snippets:

ppb0 at pci0 dev 13 function 0: Digital Equipment DC21152 PCI-PCI Bridge 
(rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
tlp0 at pci1 dev 4 function 0: DECchip 21140A Ethernet, pass 2.2
tlp0: unable to map device registers
tlp1 at pci1 dev 5 function 0: DECchip 21140A Ethernet, pass 2.2
tlp1: broken MicroWire interface detected; setting SROM size to 1Kb
SROM CONTENTS:
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
tlp1: sorry, unable to handle your board
tlp2 at pci1 dev 6 function 0: DECchip 21140A Ethernet, pass 2.2
tlp2: broken MicroWire interface detected; setting SROM size to 1Kb
SROM CONTENTS:
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
tlp2: sorry, unable to handle your board
tlp3 at pci1 dev 7 function 0: DECchip 21140A Ethernet, pass 2.2
tlp3: broken MicroWire interface detected; setting SROM size to 1Kb
SROM CONTENTS:
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
         0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
tlp3: sorry, unable to handle your board


> Something (hardware, firmware, kernel) is not handling the PCI bus
> properly.

Ya, something's amiss...

> And why don't we see identical errors for all the tlp(4)s behind the
> ppb(4)?

Good question...

Thanks,
John
-- 
Today is the day that my destiny calls me!
   Meowth