Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Oct 1999 13:11:46 -0600
From:      Warner Losh <imp@village.org>
To:        Doug Ambrisko <ambrisko@whistle.com>
Cc:        mark@grondar.za, mobile@FreeBSD.ORG
Subject:   Re: PCIC/Libretto brokenness - fixed! 
Message-ID:  <199910261911.NAA56152@harmony.village.org>
In-Reply-To: Your message of "Tue, 26 Oct 1999 10:58:34 PDT." <199910261758.KAA10547@whistle.com> 
References:  <199910261758.KAA10547@whistle.com>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <199910261758.KAA10547@whistle.com> Doug Ambrisko writes:
: And then I got endless splx & splhigh for pcicintr.  It also didn't detect
: PCCard insertions.  So it looks like polled mode is broken.  I then hard
: coded for now the pcic_intr to 15 and then life was good.  So it looks 
: like trying to allocate an available pcic_intr is broken.  Now I get

I would believe this.  I've had to hardwire my irq, and that made it
work.

: I haven't run the full set of experiments on all machines yet, but the
: 	IBM 770z                -> same problem as NEC 6030X
: 	PC & ISA PCCard adapter -> didn't locate a free IRQ for pcic_intr.
: So my observations so far.
:       -	The pcic stuff in the sys/pci/pcic_p.c is confusing things, bad
: 	side effect?

It is a gross kludge.  The purpose of it was to put the pci cardbus
bridge into legacy mode so that things could pick it up later.  Gross,
gross, gross, but it used to be effective.

The thing I don't understand is why sometimes it would probe as
pcic0,1 and other times as pcic2,3.  The isa probe happens much later
in the process...

I'd love to have access to some of this hardware for a few hours.
Anybody in Boulder Colorado with the problem?

:       - Polled mode of the pcic controller is broken

I'm unsure why this might be.

:       - Allocating a free pcic_intr is broken

I've noticed this as well.

: I'm going to do some more playing around and try to dig up my TI specs
: for PCCard controller and play around with this stuff some more.  Also
: I'm going to work on making the new ata driver with this new code
: (I had some hacks before to make it work with the old stuff) which 
: support external IDE devices such as CD-RW, Hard drive, Zip etc (ie 
: the Microtech stuff or addonics).

I'd love to have a pointer to the TI specs.

: Once I get this somewhat stable, then I'll start to track the new stuff
: (to support Cardbus).  BTW and recommendation on CardBus Ethernet cards?
: I may get 2 since I use two PCMCIA in my laptop.
: 
: Thanks, we seem to be making good progress.

I hope so.  Doug, if you could track down these problems, it would
free me to focus completely on the new code.  The card suspend/eject
problem is likely due to disconnecting the driver AFTER turning off
the card, but since all this is done with timeouts I've not had time
to focus on the code to get it all into my head to find the likely
obvious problem...

This stuff is further complicated by interrupt bouncing and the
corresponding debouncing code....

Warner


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?199910261911.NAA56152>