From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: KDFONTOP/PIO_UNIMAPCLR: Input/output error Date: Wed, 04 Jul 2018 16:29:46 +0200 Message-ID: <87d0w3846d.fsf@fastmail.com> References: <20180703101553.702b0b00@alma-ubu> <20180703152752.50f1795e@scratchpost.org> <874lhfccs5.fsf_-_@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fain2-0003fH-Sm for guix-devel@gnu.org; Wed, 04 Jul 2018 10:29:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1faimz-0006mG-Kq for guix-devel@gnu.org; Wed, 04 Jul 2018 10:29:52 -0400 In-Reply-To: <874lhfccs5.fsf_-_@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Danny Milosavljevic Cc: guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hello Danny & all, > > Danny Milosavljevic skribis: > >>> PIO_UNIMAPCLR: Input/output error >>> 3) PIO_UNIMAPCLR: Input/output error >>>=20 >>> Anything to worry about? >> >> According to https://elixir.bootlin.com/linux/v3.2/source/include/linux/= kd.h#L70 >> that's trying to clear the Unicode -> font map (that is, charmap). >> >> In Linux, ./drivers/tty/vt/vt_ioctl.c implements it. >> >> Can't see how that ever ends up in -EIO O_o > > Sometimes we also get: > > putfont: KDFONTOP: Input/output error > > In both cases, the warning comes from the =E2=80=98setfont=E2=80=99 progr= am, invoked > from =E2=80=98console-font-shepherd-services=E2=80=99. > > I=E2=80=99ve looked at the code and man pages and like you, I don=E2=80= =99t see where > EIO comes from. Maybe it=E2=80=99s a generic ioctl error that=E2=80=99s = return before > we reach the actual ioctl implementation in the VT driver, sorta like > EBADF? > > Until we find out, I=E2=80=99d like to just silence the warnings: > > --- a/gnu/services/base.scm > +++ b/gnu/services/base.scm > @@ -754,8 +754,10 @@ to add @var{device} to the kernel's entropy pool. T= he service will fail if > ;; systemd's vconsole support, let's not treat > ;; this as an error. > (case (status:exit-val > - (system* #$(file-append kbd "/bin/setfont= ") > - "-C" #$device #$font)) > + (with-error-to-port (%make-void-port "w") > + (lambda () > + (system* #$(file-append kbd "/bin/set= font") > + "-C" #$device #$font)))) > ((0 71) #t) > (else #f)))) > (stop #~(const #t)) > > Sounds good? Less scary warnings in the first impression sounds great :-) There should be an explaining comment with that code though. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAls82doACgkQoqBt8qM6 VPrXiAgAlg88qFsRmLmExltQAqawOh1HtxFTiCTamhz7HJbCxWjzffV7bmuFrvce 3FyeJzhk7NgqmoVOXpCJNReeiTv3LPh3NThR6UxuuX8O8URl7R7lDkccBK7c0p12 1TTlcu9e9tST8twfMDFk+B9OrNO7qnJ2pVA0bmuIMpD032IH7rsW7kYxJAGbZvcd 5ufPY6F1OilRLFhUJYwX0jE8ZF/Z5ovZgOqZM7ELKY8XUY7mhwafvF66h3LufLrG DYJ9/PHZY05Jg7PfIhby/LyOr86e90t/flUHn6XV8VfQuItMrg6eQOXBmG7hEnRT V7EmJmt88DG2JoUS8L863CyZpQqffQ== =GJWc -----END PGP SIGNATURE----- --=-=-=--