From owner-freebsd-new-bus Thu Aug 12 22:59:38 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 5AA0A14C4B; Thu, 12 Aug 1999 22:59:24 -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 XAA25911; Thu, 12 Aug 1999 23:58:59 -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 XAA08029; Thu, 12 Aug 1999 23:58:57 -0600 (MDT) Message-Id: <199908130558.XAA08029@harmony.village.org> Cc: mobile@freebsd.org To: new-bus@freebsd.org Subject: Wanted: reviewers for newbus pccard extentions Date: Thu, 12 Aug 1999 23:58:57 -0600 From: Warner Losh Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm looking for code reviewers. I have extended the current pccard code base to have shadow nodes in the newbus system. The code is incomplete, but to the stage that people can review it. A beta of the code will be forthcoming when this review is complete. No drivers have been converted at this time, so this code is not useful yet to the masses of people that desire their pccard modems, floppy drives or ata memory cards to work. I want to make sure that I'm headed in the right direction and am not doing silly things that are easier to do in some other way with newbus. Briefly, here's a description of pccnbk (PCCard - NewBus Kludge[*]). I create a node named pccard0 and attach it to the nexus. When pccardd wants to attach the device, we do what we've always done with pccard code, except we also create a pccnbk node in the tree and attach it to pccard0. This is true no matter how many slots are in the system. This node is then used to allocate the resources so that the target drivers can use this node in the tree as their attachment point. The code can be found in http://www.freebsd.org/~imp/pccard_nbk.diff.19990812.gz Since I'm finding that my time to work on this is irregular, I thought I'd post what I have, even though it is very much a work in progress to stimulate feedback (which in turn stimulates my work on this). Warner [*] Kludge here referrs to this code, and not newbus. This is a big hammer to whap the current code into the newbus system w/o really changing the current code much at all. It is best thought of as bridge code: code that will bridge the gap until a more proper system can be put into place. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Thu Aug 12 23:48:55 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.133]) by hub.freebsd.org (Postfix) with ESMTP id 6C52D15861; Thu, 12 Aug 1999 23:48:46 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id IAA14578; Fri, 13 Aug 1999 08:46:03 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199908130646.IAA14578@gratis.grondar.za> To: Warner Losh Cc: new-bus@FreeBSD.ORG, mobile@FreeBSD.ORG Subject: Re: Wanted: reviewers for newbus pccard extentions Date: Fri, 13 Aug 1999 08:46:02 +0200 From: Mark Murray Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > The code can be found in > http://www.freebsd.org/~imp/pccard_nbk.diff.19990812.gz Building it now! M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Fri Aug 13 22:12:44 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 93F6C15085; Fri, 13 Aug 1999 22:12:28 -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 XAA29231; Fri, 13 Aug 1999 23:11:30 -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 XAA13843; Fri, 13 Aug 1999 23:11:40 -0600 (MDT) Message-Id: <199908140511.XAA13843@harmony.village.org> To: mobile@freebsd.org Cc: new-bus@freebsd.org Subject: pccard newbus kludge patches updated Date: Fri, 13 Aug 1999 23:11:40 -0600 From: Warner Losh Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've updated the newbus kludge retrofit patches to pccard. I've cleaned up the shadow node creation. I've also added allocation of i/o space. I've not done the irq part of the work. It does need to be done, but I'm not completely sure how to do that right now. I've been running this with the ep0 driver to make sure that I've not broken anything. I have had one report of a crash with yesterday's patch (which I couldn't recreate). This should fix that given the vague description. Once the irq stuff is added, then sio, fdc and ata could be added easily. Sadly, the irq and interrupt handling of this code is twisted and will take a little while to unwind. I'm too tired to do this tonight. It may be easy and it may be hard. The patches, for review, are at http://www.freebsd.org/~imp/pccard_nbk.diff.19990813.gz and are against -current of Aug 12, 1999 (although I don't think it will matter). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Fri Aug 13 23:18:50 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id BE1A814E36; Fri, 13 Aug 1999 23:18:45 -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 AAA29342; Sat, 14 Aug 1999 00:16:15 -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 AAA14045; Sat, 14 Aug 1999 00:16:25 -0600 (MDT) Message-Id: <199908140616.AAA14045@harmony.village.org> Subject: Re: pccard newbus kludge patches updated Cc: mobile@FreeBSD.ORG, new-bus@FreeBSD.ORG In-reply-to: Your message of "Fri, 13 Aug 1999 23:11:40 MDT." <199908140511.XAA13843@harmony.village.org> References: <199908140511.XAA13843@harmony.village.org> Date: Sat, 14 Aug 1999 00:16:24 -0600 From: Warner Losh Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <199908140511.XAA13843@harmony.village.org> Warner Losh writes: : Once the irq stuff is added, then sio, fdc and ata could be added : easily. Sadly, the irq and interrupt handling of this code is twisted : and will take a little while to unwind. I'm too tired to do this : tonight. It may be easy and it may be hard. Had a brain storm before heading to bed, and it turned out that the interrupt stuff is what is twisted, but the irq wasn't too bad... I've also fixed a multiple insert/remove crash. This should allow adding support to sio, fdc and ata to proceed. Careful about isa_{get,set}_* since pccard does not and will not implement isa ivars (since I have to use ivars for something else...)... http://www.freebsd.org/~imp/pccard_nbk.diff.19990813a.gz Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Sat Aug 14 2:33:46 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.133]) by hub.freebsd.org (Postfix) with ESMTP id 8C4B414E2A; Sat, 14 Aug 1999 02:33:04 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id LAA22165; Sat, 14 Aug 1999 11:31:59 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199908140931.LAA22165@gratis.grondar.za> To: Warner Losh Cc: mobile@FreeBSD.ORG, new-bus@FreeBSD.ORG Subject: Re: pccard newbus kludge patches updated Date: Sat, 14 Aug 1999 11:31:55 +0200 From: Mark Murray Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Had a brain storm before heading to bed, and it turned out that the > interrupt stuff is what is twisted, but the irq wasn't too bad... > I've also fixed a multiple insert/remove crash. This should allow > adding support to sio, fdc and ata to proceed. Careful about > isa_{get,set}_* since pccard does not and will not implement isa > ivars (since I have to use ivars for something else...)... > > http://www.freebsd.org/~imp/pccard_nbk.diff.19990813a.gz It's still crashing when pccardd tries to do its stuff; I have a crash dump that I'll backtrace. Would you like a copy? M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Sat Aug 14 9:51: 4 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 6D7B514DD2; Sat, 14 Aug 1999 09:51: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 KAA32957; Sat, 14 Aug 1999 10:49:11 -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 KAA19759; Sat, 14 Aug 1999 10:49:26 -0600 (MDT) Message-Id: <199908141649.KAA19759@harmony.village.org> To: Mark Murray Subject: Re: pccard newbus kludge patches updated Cc: mobile@FreeBSD.ORG, new-bus@FreeBSD.ORG In-reply-to: Your message of "Sat, 14 Aug 1999 11:31:55 +0200." <199908140931.LAA22165@gratis.grondar.za> References: <199908140931.LAA22165@gratis.grondar.za> Date: Sat, 14 Aug 1999 10:49:26 -0600 From: Warner Losh Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <199908140931.LAA22165@gratis.grondar.za> Mark Murray writes: : It's still crashing when pccardd tries to do its stuff; I have : a crash dump that I'll backtrace. Would you like a copy? Yes. Please do because it works for me w/o a hitch here. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Sat Aug 14 10: 2:20 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.133]) by hub.freebsd.org (Postfix) with ESMTP id B623615268; Sat, 14 Aug 1999 10:02:07 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id TAA24495; Sat, 14 Aug 1999 19:00:26 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199908141700.TAA24495@gratis.grondar.za> To: Warner Losh Cc: mobile@FreeBSD.ORG, new-bus@FreeBSD.ORG Subject: Re: pccard newbus kludge patches updated Date: Sat, 14 Aug 1999 19:00:25 +0200 From: Mark Murray Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In message <199908140931.LAA22165@gratis.grondar.za> Mark Murray writes: > : It's still crashing when pccardd tries to do its stuff; I have > : a crash dump that I'll backtrace. Would you like a copy? > > Yes. Please do because it works for me w/o a hitch here. Having made the offer, I'm struggling. I get the "Dumping..." message, but savecore seems hosed. How would you feel about an account on my system and a serial debugger to the libretto? M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Sat Aug 14 21:38: 6 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 48A15152EA; Sat, 14 Aug 1999 21:37:57 -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 WAA34553; Sat, 14 Aug 1999 22:37:30 -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 WAA22456; Sat, 14 Aug 1999 22:37:50 -0600 (MDT) Message-Id: <199908150437.WAA22456@harmony.village.org> To: Mark Murray Subject: Re: pccard newbus kludge patches updated Cc: mobile@FreeBSD.ORG, new-bus@FreeBSD.ORG In-reply-to: Your message of "Sat, 14 Aug 1999 11:31:55 +0200." <199908140931.LAA22165@gratis.grondar.za> References: <199908140931.LAA22165@gratis.grondar.za> Date: Sat, 14 Aug 1999 22:37:50 -0600 From: Warner Losh Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <199908140931.LAA22165@gratis.grondar.za> Mark Murray writes: : It's still crashing when pccardd tries to do its stuff; I have : a crash dump that I'll backtrace. Would you like a copy? Dang. I'll respin the patch at somepoint, but until then, please add the following additional patch which was omitted from the one I posted earlier. Warner Index: i386/i386/nexus.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/sys/i386/i386/nexus.c,v retrieving revision 1.13 diff -u -r1.13 nexus.c --- nexus.c 1999/07/29 01:02:52 1.13 +++ nexus.c 1999/08/13 02:29:07 @@ -210,6 +210,10 @@ if (child == 0) panic("nexus_probe isa"); + child = device_add_child(dev, "pccard", 0, 0); + if (child == 0) + panic("nexus_probe pccard"); + return 0; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message