Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Oct 2001 18:41:56 +0200 (MET DST)
From:      "Joerg Lehners" <Joerg.Lehners@Informatik.Uni-Oldenburg.DE>
To:        <freebsd-mobile@freebsd.org>
Subject:   Re: PC Card modem problems 
Message-ID:  <Pine.ULT.4.33.0110111821390.3477-100000@co2.Informatik.Uni-Oldenburg.DE>
In-Reply-To: <E15riaD-0001Ax-00@bruessel.Informatik.Uni-Oldenburg.DE>

next in thread | previous in thread | raw e-mail | index | archive | help

Warner wrote:
> In message <3BC59BD4.6050106@chain.demon.nl> Sven Hazejager writes:
> : But now when I change the PCMCIA mode in my laptop's BIOS from
> : "auto-detect" to "Cardbus/16-bit", FreeBSD detects pcic as a ToPic95b
> : controller (instead of ToPic97 if it is set to "auto-detect"), and
> : everything works, even without hw.pcic.intr_path=1.
> :
> : Is this expected behaviour?
> Sadly yes.  There's a number of minor issues here, which I've not had
> adequate access to hardware to resolve.
> Can you boot the machine with "auto-detect" and send me a
> 	pciconf -r pciX:Y:Z 0:0xff
> for each device that's a ToPIC.  And then do the same thing with it
> set to Cardbus/16-bit?  That would be most helpful.

I have a Libretto 100CT and a Tecra 750 and I see similiar levels
of 'it works' when using different PC-Cards with these notebooks.

Here's some output from my Libretto 100 CT when setting the PC Card
Controller Mode (BIOS Setting) to different values (/var/log/messages
excerpts with surrounding lines). There where no /boot/loader.conf
lines in effect. This is with FreeBSD-4.4-STABLE as of 1.10.2001.


Setting 'Auto-Selected':

Oct 11 18:11:54 lesebuch /kernel: chip1: <Toshiba Fast Infra Red controller> port 0xffe0-0xffff irq 11 at device 17.0 on pci0
Oct 11 18:11:54 lesebuch /kernel: pci_cfgintr_virgin: using routable interrupt 3
Oct 11 18:11:54 lesebuch /kernel: pci_cfgintr: 0:19 INTA routed to irq 3
Oct 11 18:11:54 lesebuch /kernel: pcic0: <Toshiba ToPIC97 PCI-CardBus Bridge> mem 0xfff00000-0xfff00fff irq 3 at device 19.0 on pci0
Oct 11 18:11:54 lesebuch /kernel: pccard0: <PC Card bus (classic)> on pcic0
Oct 11 18:11:54 lesebuch /kernel: pci_cfgintr_search: linked (1) to configured irq 3 at 0:19:0
Oct 11 18:11:54 lesebuch /kernel: pci_cfgintr: 0:19 INTB routed to irq 3
Oct 11 18:11:54 lesebuch /kernel: pcic1: <Toshiba ToPIC97 PCI-CardBus Bridge> mem 0xfff01000-0xfff01fff irq 3 at device 19.1 on pci0
Oct 11 18:11:54 lesebuch /kernel: pccard1: <PC Card bus (classic)> on pcic1
Oct 11 18:11:54 lesebuch /kernel: isa0: <ISA bus> on motherboard

lesebuch> pciconf -r pci0:19:0 0:0xff
0x060f1179 0x04800007 0x06070020 0x00820000
0xfff00000 0x04800000 0x00141400 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x04200103
0x00011179 0x00000001 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x01000000
0x00000000 0x00000000 0x00000000 0x00000000
0x860011d0 0x00000002 0x00000000 0x0000d100
0x3f3f3fc3 0x0a081020 0x00010100 0x000003f1
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000008
lesebuch> pciconf -r pci0:19:1 0:0xff
0x060f1179 0x04800007 0x06070020 0x00820000
0xfff01000 0x04800000 0x00151500 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x04a00203
0x00011179 0x00000001 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x01000000
0x00000000 0x00000000 0x00000000 0x00000000
0x860021d0 0x00000002 0x00000000 0x0000d100
0x3f3f3fc3 0x0a081020 0x00010100 0x000003f1
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000008
lesebuch>


Setting: 'CardBus/16Bit'

Oct 11 18:14:14 lesebuch /kernel: chip1: <Toshiba Fast Infra Red controller> port 0xffe0-0xffff irq 11 at device 17.0 on pci0
Oct 11 18:14:14 lesebuch /kernel: pcic0: <Toshiba ToPIC95B PCI-CardBus Bridge> irq 11 at device 19.0 on pci0
Oct 11 18:14:14 lesebuch /kernel: pcic0: PCI Memory allocated: 0x44000000
Oct 11 18:14:14 lesebuch /kernel: pccard0: <PC Card bus (classic)> on pcic0
Oct 11 18:14:14 lesebuch /kernel: pcic1: <Toshiba ToPIC95B PCI-CardBus Bridge> irq 11 at device 19.1 on pci0
Oct 11 18:14:14 lesebuch /kernel: pcic1: PCI Memory allocated: 0x44001000
Oct 11 18:14:14 lesebuch /kernel: pccard1: <PC Card bus (classic)> on pcic1
Oct 11 18:14:14 lesebuch /kernel: isa0: <ISA bus> on motherboard

lesebuch> pciconf -l
chip0@pci0:0:0: class=0x060000 card=0x00011179 chip=0x06011179 rev=0x2e hdr=0x00
none0@pci0:4:0: class=0x030000 card=0x00011179 chip=0x000410c8 rev=0x01 hdr=0x00
chip1@pci0:17:0:        class=0x078000 card=0x00011179 chip=0x07011179 rev=0x22 hdr=0x00
pcic0@pci0:19:0:        class=0x060700 card=0x00011179 chip=0x060a1179 rev=0x07 hdr=0x02
pcic1@pci0:19:1:        class=0x060700 card=0x00011179 chip=0x060a1179 rev=0x07 hdr=0x02
lesebuch> pciconf -r pci0:19:0 0:0xff
0x060a1179 0x04800003 0x06070007 0x00820000
0x44000000 0x04800000 0x00141400 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x0420010b
0x00011179 0x00000001 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x01000000
0x00000000 0x00000000 0x00000000 0x00000000
0x860011d0 0x00000002 0x00000000 0x0000d100
0x3f3f3fc3 0x0a081020 0x00010100 0x000003f1
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000008
lesebuch> pciconf -r pci0:19:1 0:0xff
0x060a1179 0x04800003 0x06070007 0x00820000
0x44001000 0x04800000 0x00151500 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x04a0020b
0x00011179 0x00000001 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x01000000
0x00000000 0x00000000 0x00000000 0x00000000
0x860021d0 0x00000002 0x00000000 0x0000d100
0x3f3f3fc3 0x0a081020 0x00010100 0x000003f1
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000008
lesebuch>

Setting 'PCIC-Compatible':

Oct 11 18:17:48 lesebuch /kernel: pcm0: <OPL3-SAx (YMF719)> at port 0x530-0x537,0x370-0x371,0xf8c-0xf94,0xe0e irq 5 drq 1 flags 0xc100 on isa0
Oct 11 18:17:48 lesebuch /kernel: pcic0: <Intel i82365SL-A/B> at port 0x3e0-0x3e1 on isa0
Oct 11 18:17:48 lesebuch /kernel: pcic0: Polling mode
Oct 11 18:17:48 lesebuch /kernel: pccard0: <PC Card bus (classic)> on pcic0
Oct 11 18:17:48 lesebuch /kernel: pccard1: <PC Card bus (classic)> on pcic0
Oct 11 18:17:48 lesebuch /kernel: ad0: 11513MB <IBM-DARA-212000> [23392/16/63] at ata0-master BIOSPIO

lesebuch> pciconf -l
chip0@pci0:0:0: class=0x060000 card=0x00011179 chip=0x06011179 rev=0x2e hdr=0x00
none0@pci0:4:0: class=0x030000 card=0x00011179 chip=0x000410c8 rev=0x01 hdr=0x00
chip1@pci0:17:0:        class=0x078000 card=0x00011179 chip=0x07011179 rev=0x22 hdr=0x00
lesebuch> # There are no pcic type pci devices, as expected.


I'm using the following cards
	3COM 3CCM156 (Modem)
	3Com Megahertz 589E (Ethernet)
	PCMCIA Ethernet Card (Ethernet)
	Adaptec, Inc. APA-1460 SCSI Host Adapter (SCSI)
	Y-E DATA External FDD (PC-Card Floppy)
regulary.

The different levels of works range from: works ok (all cards in PCIC
Compatible mode) to does not work at all (Y-E DATA External FDD when
attaching in Auto-Selecting mode, or Cardbus/16 mode, don't know for sure
offhand). There are even cases where attching works ok, but detaching
results in locks of the system when powering down a slot
(pccardc power <slot> 0). Most times the locks where cleared when
I physically removed the card.

I'm a bit unsure to what path to take to help to resolv these
problems. Should I concentrate on helping to debug the ToPIC97 or
the ToPIC95B mode? I'm not a kernel hacker at all, but I'm
experienced in C and UNIX/FreeBSD.

  Joerg
-- 
Mail: Joerg.Lehners@arbi.Informatik.Uni-Oldenburg.DE
Real: Joerg Lehners, Informatik ARBI (2198), Uni Oldenburg, D-26111 Oldenburg
Unwoerter: Kostensenkung - Gewinnmaximierung - billig, billig, billig


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.ULT.4.33.0110111821390.3477-100000>