From owner-freebsd-mobile Thu Apr 25 4: 4:47 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from dignus.com (sdsl-64-32-254-102.dsl.iad.megapath.net [64.32.254.102]) by hub.freebsd.org (Postfix) with ESMTP id 33D7137B417 for ; Thu, 25 Apr 2002 04:04:35 -0700 (PDT) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.11.6/8.11.3) with ESMTP id g3PB0bA01350; Thu, 25 Apr 2002 07:00:37 -0400 (EDT) (envelope-from rivers@dignus.com) Received: (from rivers@localhost) by lakes.dignus.com (8.11.6/8.11.3) id g3PB2Hu49105; Thu, 25 Apr 2002 07:02:17 -0400 (EDT) (envelope-from rivers) Date: Thu, 25 Apr 2002 07:02:17 -0400 (EDT) From: Thomas David Rivers Message-Id: <200204251102.g3PB2Hu49105@lakes.dignus.com> To: freebsd-mobile@freebsd.org, imp@village.org, rivers@dignus.com Subject: Re: pcic/pccard hang? In-Reply-To: <20020424.214449.110162894.imp@village.org> Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > Hmmm, are you running with PCI or ISA interrupts? I think that I have > a bug in the OLDCARD code that doesn't like most sony laptops. You'll > have to work around it by doing hw.pcic.intr_path=1. > > Warner > Perhaps it's time for more information. Here's the things I've tried: set hw.pcic.intr_path=1 Causes the "hang" to occur as soon as the card is inserted, instead of when pccardd tries to read the CIS set hw.pcic.intr_path=1 set hw.pcic.irq=10 IRQ=10 was the IRQ used under 4.1-RELEASE, setting this (along with hw.pcic.intr_path=1) causes a panic at boot: pcic0: PCI Memory allocated: 0x44000000 pcic0: Can't route ISA CSC interrupt panic: resource_list_release: can't find resource set hw.pcic.irq=10 Without setting hw.pcic.intr_path=1, the machine will boot - but the IRQ used for pcic0 is 9, here's the messages: pci_cfgintr_liked: linked (60) to hard-routed irq 9 pci_cfgintr: 0:12 INTA routed to irq 9 pcic0: irq 9 at device 12.0 on pci0 pccard0: on pcic0 pci_cgintr_linked: linked (61) to hard-routed irq 9 pci_cfgintr: 0:12 INTB routed to irq 9 pcic1: irq 9 at device 12.1 on pci0 pcic1: PCI Memory allocated: 0x44001000 pccard1: on pcic1 And - when I insert the card, I get the hang. The messages I see are: pccard: card inserted, slot 0 pccardd[41]: Card "PCMCIA"("FastEhternet") [V] [1.0] matched "PCMCIA"("FastEthernet") [(null)] [(null)] ed1 at port 0x300-0x31f irq 9 flags 0x30000 slot 0 on pccard0 ***hang*** -beeps (both the inserting & removing beeps) - ed1: address 01:02:00:ff:15:12, type NE2000 (16 bit) ed1: SmartLink inserted. ed1: detached pccard: card removed, slo 0 ed1: SmartLink removed "default" kernel (no setting): same messages/behaviour as the hw.pcic.irq=10 case I'm wondering if this "hard-routed irq 9" is the culprit, as I'm pretty sure it should be irq 10. Does that come from a kernel config? And - I'm pretty handy at debugging the kernel, if you could just point me to the area, I can sprinkle some printf()s around to see where the hang occurs. - Many Thanks for all your help! - - Dave Riveres - -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message