From owner-freebsd-current@FreeBSD.ORG Fri Mar 20 06:01:22 2009 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 91F161065674 for ; Fri, 20 Mar 2009 06:01:22 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 641FA8FC19 for ; Fri, 20 Mar 2009 06:01:22 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.156] (adsl-19-214-182.bna.bellsouth.net [68.19.214.182]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n2K5xv4A085571 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Mar 2009 01:59:58 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Mattia Rossi In-Reply-To: <49C31ED0.2070908@swin.edu.au> References: <49C083A4.5020608@swin.edu.au> <200903180904.52127.hselasky@c2i.net> <49C17A53.8030608@swin.edu.au> <200903190925.31551.hselasky@c2i.net> <49C2CB27.30102@swin.edu.au> <49C31ED0.2070908@swin.edu.au> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-AIJLf/ed42LFvNfFPYDX" Organization: FreeBSD Date: Fri, 20 Mar 2009 01:01:01 -0500 Message-Id: <1237528861.1777.523.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, MIME_QP_LONG_LINE,RDNS_DYNAMIC autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-current@freebsd.org, Hans Petter Selasky Subject: Re: USB2, mouse and X 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: Fri, 20 Mar 2009 06:01:23 -0000 --=-AIJLf/ed42LFvNfFPYDX Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2009-03-20 at 15:42 +1100, Mattia Rossi wrote: > Okay. Got some help from Lawrence (Stewart), who cleaned up my messy=20 > system, and it seems everything resolved itself, after we recompiled=20 > world and the kernel, and recompiled also the libpciaccess port. >=20 > It seems that the msi pci stuff of the old libpciaccess was interfering=20 > with the changes in the new kernel. >=20 > I can't tell more details, just that it works now. So, the issue is that for some reason that I don't understand... libpciaccess seems to trash usb for a few folks when it frobs the registers on it's own. jhb@ added an ioctl to the kernel so that userland could just ask for the info, rather than digging around in the bowels of the pci bus. The port will use the ioctl if it exists at build time. So, you need a semi-recent -STABLE or -CURRENT and then rebuild devel/libpciaccess. robert. > Mat >=20 > P.s.: It also improved 2D acceleration massively! >=20 > Mattia Rossi wrote: > > Hans Petter Selasky wrote: > >> Hi Mattia, > >> > >> I see that your keyboard is connected through a High-Speed HUB. > >> > >> 1) Has your setup ever worked with the USB2 stack? It's strange that=20 > >> there is only one interrupt on the EHCI. And when was the kernel built= ? > >> =20 > > FreeBSD 8.0-CURRENT #11 r189933M: Wed Mar 18 10:34:42 EST 2009 > > > > Actually the trouble with the mouse started with the USB2 stack. It=20 > > never worked properly since then. > > First I thought it's an X problem, then a KDE4 problem, and after=20 > > rebuilding and rebuilding I gave up.. > >> 2) When you run "usbconfig" you will see some lines with "pwr=3DSAVE".= =20 > >> Maybe there is a bug that will disable the wrong ports at power save. > >> =20 > > ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen2.1: at usbus2, cfg=3D0 md=3DHOST spd=3DHIGH=20 > > (480Mbps) pwr=3DON > > ugen3.1: at usbus3, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen4.1: at usbus4, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen5.1: at usbus5, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen6.1: at usbus6, cfg=3D0 md=3DHOST spd=3DHIGH=20 > > (480Mbps) pwr=3DON > > ugen6.2: at usbus6, cfg=3D0=20 > > md=3DHOST spd=3DHIGH (480Mbps) pwr=3DSAVE > > ugen6.3: at usbus6, cfg=3D0 md=3DHOST spd= =3DLOW=20 > > (1.5Mbps) pwr=3DON > > ugen6.4: at usbus6, cfg=3D0 md=3DHOST=20 > > spd=3DLOW (1.5Mbps) pwr=3DON > > > > That's what it looks like. > >> 3) Can you try other ports or connect another High Speed HUB in betwee= n? > >> > >> usbconfig -u 6 -a 2 power_on > >> =20 > > Tried to switch power on. It looks like this now: > > > > ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen2.1: at usbus2, cfg=3D0 md=3DHOST spd=3DHIGH=20 > > (480Mbps) pwr=3DON > > ugen3.1: at usbus3, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen4.1: at usbus4, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen5.1: at usbus5, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen6.1: at usbus6, cfg=3D0 md=3DHOST spd=3DHIGH=20 > > (480Mbps) pwr=3DON > > ugen6.2: at usbus6, cfg=3D0=20 > > md=3DHOST spd=3DHIGH (480Mbps) pwr=3DON > > ugen6.3: at usbus6, cfg=3D0 md=3DHOST spd= =3DLOW=20 > > (1.5Mbps) pwr=3DON > > ugen6.4: at usbus6, cfg=3D0 md=3DHOST=20 > > spd=3DLOW (1.5Mbps) pwr=3DON > > > > but it doesn't change the situation. There is still the lag. Plugging=20 > > keyboard and mouse in on the back port of the PC > > just gives the following output: > > > > ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen2.1: at usbus2, cfg=3D0 md=3DHOST spd=3DHIGH=20 > > (480Mbps) pwr=3DON > > ugen3.1: at usbus3, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen4.1: at usbus4, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen5.1: at usbus5, cfg=3D0 md=3DHOST spd=3DFULL=20 > > (12Mbps) pwr=3DON > > ugen6.1: at usbus6, cfg=3D0 md=3DHOST spd=3DHIGH=20 > > (480Mbps) pwr=3DON > > ugen6.2: at usbus6, cfg=3D0=20 > > md=3DHOST spd=3DHIGH (480Mbps) pwr=3DSAVE > > ugen5.2: at usbus5, cfg=3D0 md=3DHOST spd= =3DLOW=20 > > (1.5Mbps) pwr=3DON > > ugen5.3: at usbus5, cfg=3D0 md=3DHOST=20 > > spd=3DLOW (1.5Mbps) pwr=3DON > > > > Nothing changes here either. > > > > I'll rebuild the latest kernel, and see what happens then. > > > > Thanks for your help! > > > > Mat > >> --HPS > >> > >> ugen6.2: at usbus6 > >> uhub7: >> 2.00/0.00, addr 2> on usbus6 > >> uhub7: 2 ports with 1 removable, self powered > >> ugen6.3: at usbus6 > >> ukbd0: >> 3> on usbus6 > >> kbd2 at ukbd0 > >> ugen6.4: at usbus6 > >> ums0: =20 > >> on usbus6 > >> ums0: 3 buttons and [XYZ] coordinates > >> > >> =20 > >>> irq22: ehci0 uhci4 1 0 > >>> Then to the console switching part: It's not possible to switch to th= e > >>> console until the text shows up again. As I said, it seems the system > >>> gets blocked. > >>> =20 > > > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to=20 > > "freebsd-current-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " --=20 Robert Noland FreeBSD --=-AIJLf/ed42LFvNfFPYDX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEABECAAYFAknDMR0ACgkQM4TrQ4qfRONalwCfTQ4enfilGmlo7oIYlR0/ksCr E4gAnRcTLdvPL/R7JRwMNhkNXhG0z3OT =8jJS -----END PGP SIGNATURE----- --=-AIJLf/ed42LFvNfFPYDX--