From owner-freebsd-mobile Thu Apr 6 14:34: 5 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id B599E37BDB6 for ; Thu, 6 Apr 2000 14:34:00 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id PAA02806; Thu, 6 Apr 2000 15:33:54 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id PAA93664; Thu, 6 Apr 2000 15:33:03 -0600 (MDT) Message-Id: <200004062133.PAA93664@harmony.village.org> To: Mitsuru IWASAKI Subject: Re: Call for review: restart pccardd by SIGHUP Cc: nate@yogotech.com, freebsd-mobile@FreeBSD.ORG In-reply-to: Your message of "Fri, 07 Apr 2000 04:58:23 +0900." <200004061958.EAA15431@tasogare.imasy.or.jp> References: <200004061958.EAA15431@tasogare.imasy.or.jp> <200004061837.MAA92697@harmony.village.org> Date: Thu, 06 Apr 2000 15:33:03 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <200004061958.EAA15431@tasogare.imasy.or.jp> Mitsuru IWASAKI writes: : OK, I can check map[i] != 0 if the resource is in use for each : 8 bytes address. Yes. Assuming that your starting address is 8 byte aligned. : > also get IRQs this way, which is bar far the most useful thing to do. : > : > Hmmm, come to think of it, you could use this just before allocating : > resources to the card too if you wanted to. It would be the most : > flexible way to deal :-). : : Maybe we can get away from resource management in pccardd eventually :) cd sys/compile/NEWCARD ; make :-) : > BTW, on the topic of IRQs, I have two questions. How would you feel : > about making the default behavior of the pcic device to be polling : > rather than using an interrupt. This is a simple change to the config : > file. It should help on installations. Second, I'd like make the : : I prefer polling mode because it works in most of cases and user can : change to use interrupt easily by UserConfig or loader command. I'm : having `device pcic0 at isa? irq 0' line in my config file for a long time. Yes. I think that some thought should be given here since it would be nice to do polling or irq routing from userconfig. I like the irq 0 hack, I think. : > default for the pcic to *NOT* share interrupts. You'd have to set a : > flag in the device to enable it. This will also help people get : > things setup correctly. : : I'm not sure about this, but I believe you :) I've helped several people whose cardbus bridge was sharing an interrupt with another device. This caused problems. Moving it fixed the problem. : > I know that the default polling is dangarous because it increases the : > window of system hangs, but for system installs, this won't matter : > because one generally doesn't pull the plug and expect things to work : > :-) : : I'm using my development laptop in polling mode, but no serious : problems so far in spite of hard testing :-) Cool. I've noticed a 2x increase of hanging. One time in 100 (yes, I did 100 insert/removes) with polling, one time in 190 with IRQ managmenet interrupts. This was on a lightly loaded network card. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message