Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Jan 2001 02:03:43 -0800
From:      Peter Wemm <peter@netplex.com.au>
To:        Warner Losh <imp@harmony.village.org>
Cc:        Jonathan Chen <jon@spock.org>, freebsd-mobile@FreeBSD.ORG, gibbs@scsiguy.com
Subject:   Re: NEWCARD update 
Message-ID:  <200101071003.f07A3hB01022@mobile.wemm.org>
In-Reply-To: <200101070640.f076ebs67682@harmony.village.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh wrote:

> :  - pccard children currently shares irq lines.  It appears to work for my
> :    laptop, but is this good/correct for pci based pccbb bridges?  What
> :    about ISA based pcic bridges?
> 
> *THIS*IS*BOGUS*  ISA CANNOT SHARE INTERRUPTS.  At least not reliably.
> But since newcard didn't work for isa cards anyway...  I have a bunch
> of uncommitted cleanups in this area, and will merge your changes into
> that work.

The problem is that we are asking the pccard driver to decide the policy.
The card has no way of knowing if it is attached to a pcic (cannot share
interrupts) or pccbb (can share interrupts).

Personally, I think the bridge itself should be setting this policy since
there appears to be a status bit for the bridge to tell if one of its
cards triggered the interrupt.  The bridge can perform the sharing logic
itself.

Anyway, this is a requirement to get cardbus/pccard to work on modern
laptops, as can be seen by my currently running NEWCARD system with
an ed0 16 bit PCCARD:

uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xfca0-0xfcbf irq 9 at device 7.2 on pci0
intpm0: <Intel 82371AB Power management controller> port 0x1040-0x104f irq 9 at device 7.3 on pci0
pcm0: <Yamaha DS-1E (YMF744)> port 0xfc8c-0xfc8f,0xfcc0-0xfcff mem 0xfedf8000-0xfedfffff irq 9 at device 9.0 on pci0
pci_cfgintr_unique: hard-routed to irq 9
pci_cfgintr: 0:12 INTA routed to irq 9
pci_cfgintr_unique: hard-routed to irq 9
pci_cfgintr: 0:12 INTB routed to irq 9
ed0: <Kingston KNE-PC2 Ethernet> at port 0x300-0x31f irq 9 function 0 config 32 on pccard0

Note all the devices are on IRQ9, including the ACPI embedded controller,
and the cardbus/pccard slots and the ed0 driver.

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5



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?200101071003.f07A3hB01022>