From owner-freebsd-current@FreeBSD.ORG Mon Dec 20 19:51:24 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BA24106566B for ; Mon, 20 Dec 2010 19:51:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id E7F558FC1E for ; Mon, 20 Dec 2010 19:51:23 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 80BBC46B17; Mon, 20 Dec 2010 14:51:23 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 5F3368A01D; Mon, 20 Dec 2010 14:51:22 -0500 (EST) From: John Baldwin To: Ivan Klymenko Date: Mon, 20 Dec 2010 14:51:15 -0500 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20101102; KDE/4.4.5; amd64; ; ) References: <20101218203020.1cec8dc7@ukr.net> <201012201249.53159.jhb@freebsd.org> <20101220201435.76234dee@ukr.net> In-Reply-To: <20101220201435.76234dee@ukr.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201012201451.15057.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Mon, 20 Dec 2010 14:51:22 -0500 (EST) X-Virus-Scanned: clamav-milter 0.96.3 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=4.2 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bigwig.baldwin.cx Cc: freebsd-current@freebsd.org Subject: Re: dev/psm0 not found X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2010 19:51:24 -0000 On Monday, December 20, 2010 1:14:35 pm Ivan Klymenko wrote: > =D0=92 Mon, 20 Dec 2010 12:49:53 -0500 > John Baldwin =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >=20 > > On Monday, December 20, 2010 11:53:34 am Ivan Klymenko wrote: > > > =D0=92 Mon, 20 Dec 2010 09:58:57 -0500 > > > John Baldwin =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > >=20 > > > > On Saturday, December 18, 2010 1:30:20 pm Ivan Klymenko wrote: > > > > >=20 http://svn.freebsd.org/viewvc/base/head/sys/dev/atkbdc/psm.c?view=3Dlog > > > > >=20 > > > > > after updating svn revision =3D> 216491 system is not detecting > > > > > the device psm > > > > > http://svn.freebsd.org/viewvc/base?view=3Drevision&revision=3D216= 491 > > > >=20 > > > > Can you please get verbose dmesg's from before and after? > > > >=20 > > >=20 > > > Voila. > >=20 > > Please boot with this and capture the output: > >=20 > > Index: psm.c > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > --- psm.c (revision 216591) > > +++ psm.c (working copy) > > @@ -1100,11 +1100,17 @@ > > */ > > psmc =3D device_find_child(device_get_parent(parent), > > PSMCPNP_DRIVER_NAME, unit); > > - if (psmc =3D=3D NULL) > > + if (psmc =3D=3D NULL) { > > + printf("psm%d: could not find %s%d\n", unit, > > + PSMCPNP_DRIVER_NAME, unit); > > return; > > + } > > irq =3D bus_get_resource_start(psmc, SYS_RES_IRQ, 0); > > - if (irq <=3D 0) > > + if (irq <=3D 0) { > > + printf("psm%d: no IRQ from %s%d\n", unit, > > PSMCPNP_DRIVER_NAME, > > + unit); > > return; > > + } > > bus_delete_resource(psmc, SYS_RES_IRQ, 0); > > bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1); > > } Try this instead. You can use a non-verbose dmesg to trim the spammage. Index: psm.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D-- psm.c (revision 216591) +++ psm.c (working copy) @@ -1080,7 +1080,7 @@ device_t psmc; device_t psm; u_long irq; =2D int unit; + int error, unit; =20 unit =3D device_get_unit(parent); =20 @@ -1090,8 +1090,10 @@ return; =20 irq =3D bus_get_resource_start(psm, SYS_RES_IRQ, KBDC_RID_AUX); =2D if (irq > 0) + if (irq > 0) { + printf("psm%d: already has an IRQ?\n", unit); return; + } =20 /* * If the PS/2 mouse device has already been reported by ACPI or @@ -1100,13 +1102,27 @@ */ psmc =3D device_find_child(device_get_parent(parent), PSMCPNP_DRIVER_NAME, unit); =2D if (psmc =3D=3D NULL) + if (psmc =3D=3D NULL) { + printf("psm%d: could not find %s%d\n", unit, + PSMCPNP_DRIVER_NAME, unit); return; + } irq =3D bus_get_resource_start(psmc, SYS_RES_IRQ, 0); =2D if (irq <=3D 0) + if (irq <=3D 0) { + printf("psm%d: no IRQ from %s\n", unit, + device_get_nameunit(psmc)); return; =2D bus_delete_resource(psmc, SYS_RES_IRQ, 0); =2D bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1); + } + error =3D bus_delete_resource(psmc, SYS_RES_IRQ, 0); + if (error) + printf("psm%d: failed to remove IRQ from %s: %d\n", unit, + device_get_nameunit(psmc), error); + error =3D bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1); + if (error) + printf("psm%d: failed to add IRQ %lu: %d\n", unit, irq, + error); + else + printf("psm%d: added IRQ %lu\n", unit, irq); } =20 #define endprobe(v) do { \ =2D-=20 John Baldwin