From owner-cvs-src@FreeBSD.ORG Tue Sep 19 20:46:56 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 EBE0F16A40F; Tue, 19 Sep 2006 20:46:56 +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 1380643D46; Tue, 19 Sep 2006 20:46:56 +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 DF5005D54; Wed, 20 Sep 2006 00:46:54 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id BE1235CB9; Wed, 20 Sep 2006 00:46:54 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id k8JKktZg044118; Wed, 20 Sep 2006 00:46:55 +0400 (MSD) (envelope-from ru) Date: Wed, 20 Sep 2006 00:46:55 +0400 From: Ruslan Ermilov To: Maksim Yevmenkin Message-ID: <20060919204655.GF23360@rambler-co.ru> References: <200609191303.k8JD3AHl050783@repoman.freebsd.org> <20060919190645.GA23068@rambler-co.ru> <20060919194819.GA23360@rambler-co.ru> <20060919203608.GE23360@rambler-co.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GV0iVqYguTV4Q9ER" Content-Disposition: inline In-Reply-To: <20060919203608.GE23360@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 20:46:57 -0000 --GV0iVqYguTV4Q9ER Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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*? : #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); : } On my i386 notebook after "kldload kbdmux" and the following config as a result: 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 : ./a < /dev/kbd1 : current mode =3D 1 : current mode =3D 1 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. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --GV0iVqYguTV4Q9ER Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFEFc/qRfpzJluFF4RAsHSAJ95IZiKlmJWLKw0KJgfsBwz3okB2gCgiPQT 9r9yEA+IiJgKo5W6HR0qQD0= =FQ+4 -----END PGP SIGNATURE----- --GV0iVqYguTV4Q9ER--