From owner-freebsd-mobile Sun Jan 7 2: 3:33 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from mobile.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id E434737B400 for ; Sun, 7 Jan 2001 02:03:16 -0800 (PST) Received: from netplex.com.au (localhost [127.0.0.1]) by mobile.wemm.org (8.11.1/8.11.1) with ESMTP id f07A3hB01022; Sun, 7 Jan 2001 02:03:44 -0800 (PST) (envelope-from peter@netplex.com.au) Message-Id: <200101071003.f07A3hB01022@mobile.wemm.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Warner Losh Cc: Jonathan Chen , freebsd-mobile@FreeBSD.ORG, gibbs@scsiguy.com Subject: Re: NEWCARD update In-Reply-To: <200101070640.f076ebs67682@harmony.village.org> Date: Sun, 07 Jan 2001 02:03:43 -0800 From: Peter Wemm Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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: port 0xfca0-0xfcbf irq 9 at device 7.2 on pci0 intpm0: port 0x1040-0x104f irq 9 at device 7.3 on pci0 pcm0: 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: 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