From owner-freebsd-arch@FreeBSD.ORG Thu Aug 12 13:11:43 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50F5C16A4CE for ; Thu, 12 Aug 2004 13:11:43 +0000 (GMT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id E913D43D39 for ; Thu, 12 Aug 2004 13:11:42 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 21021 invoked from network); 12 Aug 2004 13:11:42 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 12 Aug 2004 13:11:42 -0000 Received: from [10.50.41.91] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i7CDBGbW099702; Thu, 12 Aug 2004 09:11:38 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Rostislav Krasny Date: Wed, 11 Aug 2004 17:30:36 -0400 User-Agent: KMail/1.6.2 References: <20040811211241.17442.qmail@web14828.mail.yahoo.com> In-Reply-To: <20040811211241.17442.qmail@web14828.mail.yahoo.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408111730.36301.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: gibbs@FreeBSD.org cc: freebsd-arch@FreeBSD.org Subject: Re: adv(4) bandaid [Was Re: again question about "IRQ 2 problem"] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 13:11:43 -0000 On Wednesday 11 August 2004 05:12 pm, Rostislav Krasny wrote: > --- John Baldwin wrote: > > On Tuesday 10 August 2004 08:27 pm, Rostislav Krasny wrote: > > > --- John Baldwin wrote: > > > > On Saturday 07 August 2004 11:35 am, Rostislav Krasny wrote: > > > > > --- John Baldwin wrote: > > > > > > This should be fixed in rev 1.35 of sys/kern/subr_rman.c > > > > Please > > > > > > > > let me know if it is not, thanks! > > > > > > > > > > Thank you very much! The "IRQ 2 problem" is fixed now and that > > > > > device (ed1) is working. > > > > > > > > > > The only strange thing is what I see in 'dmesg -a' output after > > > > > booting in verbose mode (the first "adv1:..." line): > > > > > > > > Try this patch to the adv(4) driver to see if your messages go > > > > away: > > > > Index: dev/advansys/adv_isa.c > > > > =================================================================== > > > > > > RCS file: /usr/cvs/src/sys/dev/advansys/adv_isa.c,v > > > > retrieving revision 1.26 > > > > diff -u -r1.26 adv_isa.c > > > > --- dev/advansys/adv_isa.c 30 May 2004 20:08:24 -0000 1.26 > > > > +++ dev/advansys/adv_isa.c 9 Aug 2004 19:17:11 -0000 > > > > @@ -117,6 +117,12 @@ > > > > struct resource *iores, *irqres; > > > > > > > > /* > > > > + * We don't know of any PnP ID's for these cards. > > > > + */ > > > > + if (isa_get_logicalid(dev) != 0) > > > > + return (ENXIO); > > > > + > > > > + /* > > > > * Default to scanning all possible device locations. > > > > */ > > > > port_index = 0; > > > > > > After patching the "adv_isa.c" file and rebuilding the GENERIC > > > > kernel > > > > > those messages went away. Previously posted chunk of the 'dmesg -a' > > > output looks so now: > > > > > > isa_probe_children: probing PnP devices > > > ed1: at port 0x200-0x21f irq 5 on > > > > isa0 > > > > > ed1: [GIANT-LOCKED] > > > ed1: bpf attached > > > ed1: Ethernet address: 00:00:21:82:25:03 > > > type NE2000 (16 bit) > > > unknown: can't assign resources (port) > > > unknown: at port 0x60 on isa0 > > > unknown: failed to probe at port 0x61 on isa0 > > > unknown: can't assign resources (port) > > > unknown: at port 0x4d0-0x4d1 on isa0 > > > unknown: can't assign resources (port) > > > unknown: at port 0x208-0x20f on isa0 > > > unknown: can't assign resources (port) > > > unknown: at port 0x3f8-0x3ff on isa0 > > > unknown: can't assign resources (port) > > > unknown: at port 0x3f2-0x3f5 on isa0 > > > unknown: can't assign resources (port) > > > unknown: at port 0x378-0x37f on isa0 > > > unknown: can't assign resources (port) > > > unknown: at port 0x2f8-0x2ff on isa0 > > > Device configuration finished. > > > procfs registered > > > > > > > > > P.S. What are these "unknown: ..." messages? I don't have > > > > so > > > > > many PnP devices. And my speaker (port 0x61) is working properly. I > > > even can run 'kldload -v /boot/kernel/speaker.ko' and then 'morse > > > > -p -e > > > > > -w 23 I am a 5.2-CURRENT, test me.' :-) > > > > They are PnPBIOS entries for things like the ISA timers, AT 8259A > > PICs, and the speaker. FreeBSD doesn't currently use the PnPBIOS > > device entries to attach to these devices. > > If FreeBSD doesn't currently use the PnPBIOS device entries, why > FreeBSD tries assign or probe resources for those device entries > anyway? Please, correct me if I misunderstood something here. > > Thank you We use them for some devices like sio0. We just don't use all of them (yet). -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/