From owner-cvs-src@FreeBSD.ORG Tue Sep 19 21:25:14 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 115B816A403; Tue, 19 Sep 2006 21:25:13 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74A5743D9B; Tue, 19 Sep 2006 21:24:46 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id 286A75DA2; Wed, 20 Sep 2006 01:24:45 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 079BE5D88; Wed, 20 Sep 2006 01:24:45 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id k8JLOjqC044478; Wed, 20 Sep 2006 01:24:45 +0400 (MSD) (envelope-from ru) Date: Wed, 20 Sep 2006 01:24:45 +0400 From: Ruslan Ermilov To: Maksim Yevmenkin Message-ID: <20060919212445.GA44298@rambler-co.ru> References: <200609191303.k8JD3AHl050783@repoman.freebsd.org> <20060919190645.GA23068@rambler-co.ru> <20060919194819.GA23360@rambler-co.ru> <20060919203608.GE23360@rambler-co.ru> <20060919204655.GF23360@rambler-co.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline In-Reply-To: <20060919204655.GF23360@rambler-co.ru> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: No virus found Cc: cvs-src@FreeBSD.org, Marius Strobl , src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/kbdmux kbdmux.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Sep 2006 21:25:14 -0000 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 20, 2006 at 12:46:55AM +0400, Ruslan Ermilov wrote: > On Wed, Sep 20, 2006 at 12:36:08AM +0400, Ruslan Ermilov wrote: > > KDSETLED isn't used outside the kernel, so I assume you tested it > > only when it's called from within the kernel? If so, try passing > > it from useland to see the endianness problem; I'm pretty sure it > > will fire. [...] > >=20 > Can you please compile and run the following utility on sparc64, > on any non-busy /dev/kbd*? >=20 > : #include > : #include > : #include > : #include > : #include > :=20 > : int > : main(void) > : { > : int mode; > :=20 > : if (ioctl(0, KDGKBMODE, &mode) =3D=3D -1) > : err(1, "ioctl(KDGKBMODE)"); > : printf("current mode =3D %d\n", mode); > :=20 > : if (ioctl(0, KDSKBMODE, mode) =3D=3D -1) > : err(1, "ioctl(KDSKBMODE)"); > :=20 > : if (ioctl(0, KDGKBMODE, &mode) =3D=3D -1) > : err(1, "ioctl(KDGKBMODE)"); > : printf("current mode =3D %d\n", mode); > :=20 > : exit (0); > : } >=20 > On my i386 notebook after "kldload kbdmux" and the > following config as a result: >=20 > lrwxr-xr-x 1 root wheel 6 Jan 1 1970 /dev/kbd0 -> atkbd0 > lrwxr-xr-x 1 root wheel 7 Sep 20 00:43 /dev/kbd1 -> kbdmux0 >=20 > : ./a < /dev/kbd1 > : current mode =3D 1 > : current mode =3D 1 >=20 > If it works properly on sparc64, it should be identical. > If you'll see a different value in the second "current > mode", it'll indicate an endianness bug we're talking > about. >=20 It doesn't, on sparc64, work properly: # uname -p sparc64 # ./a < /dev/vkbdctl0 current mode =3D 1 current mode =3D 0 Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --HlL+5n6rz5pIUxbD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFEGAdqRfpzJluFF4RAgkYAKCBsKR1ok+jKeTxlqx6dIGdmVuc8ACfaVC4 oa8xYWDpOR+oaX5/AzdDzYI= =oVwF -----END PGP SIGNATURE----- --HlL+5n6rz5pIUxbD--