From nobody Mon Sep 04 18:10:56 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RfcC240Qrz4ssFd for ; Mon, 4 Sep 2023 18:11:10 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RfcC225q9z3Myh for ; Mon, 4 Sep 2023 18:11:10 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-52a49a42353so2472703a12.2 for ; Mon, 04 Sep 2023 11:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1693851068; x=1694455868; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=CgDVW8W41U5236zdZ/MziXCdAS07SHBfYyncMCmOOeI=; b=sLsmG2nwauCpLJ2hgIVHRQth1J3M6C/s7jun1DBwjWStNw/l40S2UDmjJjMMPw7D3N MM1bBcQuDFXpZLHf67y5vEAnTNR/bP48aRobMT2dZc3IBhyCUz4znqZQOWmzoRhOFGoO hrBtozKYXWvJDFC0xhjewkRWa+pQj1aqoiRKDTsZCFR835FE79u0fAbO1buwJal2IMpe CG5LQzcmVTpBqs3v2lTJJTdzAVrC0ZvvBbjd3FvX/odO/gHPM7hFpD0X9GRh8j0RY+4b I2VPL6rlKsKzJaK+jnnHhIsnR3uf0M/Ewgo93DCDkDF0Y6fm9/vaSnNxlGzIEkUX5Bh8 SaQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693851068; x=1694455868; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CgDVW8W41U5236zdZ/MziXCdAS07SHBfYyncMCmOOeI=; b=SvdC/qaXqydd8lxVoZ6OicPqw9GHaF7YZi63A3znCCO5EF+kjQkhPCq/2lCz6CevgL cYdfvrjnhpA7X8iF4+NjGv+8iC+GHiWXcodd5ko8kbMrNsCiRXpNd+QGfsAnpvggQn/o rRvQnRzWU57DzTWF9e4rCo5J2A8YujwiOR2ln55JOzvdVl3UoDFnRMArcEa7EK2vGcxl Y5IJVESZ/6m+hg++FurcVHgs9AsU8MBLgMHg0hAFt7hXHXjSGTTOpYyf67GXKtChNtQQ vBz7dRZGtp3PuvZwDnUAdTgRPSOWzRTLgKD3RJN97nUyQZw/rdNajQdWMBq+qB03RbP8 0a4A== X-Gm-Message-State: AOJu0Yz7oXJc9ygJ9qiglMs3Ng8avk95ajjGfsZCcLT865+65Iz89aW5 DHRC/dkvcyRyPsBrT9VruQP6sC7wKzdj6Oe4jwK5rg== X-Google-Smtp-Source: AGHT+IF/kv2j9zga42tWCfiZQbTO0A9mE0Pa63h66IOHUFMQAI4EdvwMFCoFnaGNVoXjc4Wvg/R8m1PTb0qbaAdzt6g= X-Received: by 2002:a05:6402:3202:b0:52e:585a:e95 with SMTP id g2-20020a056402320200b0052e585a0e95mr654309eda.2.1693851067855; Mon, 04 Sep 2023 11:11:07 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <58E9D0C9-747F-4DEB-9DC7-5A2E8C54EABF@freebsd.org> In-Reply-To: <58E9D0C9-747F-4DEB-9DC7-5A2E8C54EABF@freebsd.org> From: Warner Losh Date: Mon, 4 Sep 2023 12:10:56 -0600 Message-ID: Subject: Re: 14.0-CURRENT boots fine but keyboard does not work To: Michael Gmelin Cc: Matthias Apitz , Alexander Motin , FreeBSD Current Content-Type: multipart/alternative; boundary="00000000000033cdb406048c6feb" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4RfcC225q9z3Myh --00000000000033cdb406048c6feb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Sep 4, 2023, 11:40 AM Michael Gmelin wrote: > > > On 4. Sep 2023, at 19:34, Matthias Apitz wrote: > > =EF=BB=BFEl d=C3=ADa lunes, septiembre 04, 2023 a las 07:29:41p. m. +0200= , Michael > Gmelin escribi=C3=B3: > > > > On 4. Sep 2023, at 19:23, Matthias Apitz wrote: > > > =EF=BB=BF > > Added Alexander Motin to To: as the origin of the CI; > > > Neither hw.atkbd.hz=3D1 nor hw.atkbd.hz=3D10 makes the keyboard working o= n > > my beloved Acer C720. Should I file a new PR? > > > > Filing a PR makes sense, could you please Cc me on it? > > > Do you know which version of FreeBSD was the last that worked for you? > > > I'm actually using (and typing this on it) r368166. Will file a PR > tomorrow. Thanks > > > This could also be related: > > > https://cgit.freebsd.org/src/commit/?id=3D319d2bf407b3762da6f1c67ffe8dce2= fee587aaf > > You could try to undo that patch and build a new kernel. > It shouldn't make a difference... but I may have been given bad advice if it did... if it's this one, I'll help sort it out. Warner Best > Michael > > > > matthias > > El d=C3=ADa lunes, septiembre 04, 2023 a las 06:55:52p. m. +0200, Michael > Gmelin escribi=C3=B3: > > > > > On Mon, 4 Sep 2023 18:43:11 +0200 > > Matthias Apitz wrote: > > > I have a 14.0-CURRENT compiled from sources of head from August 4, > > which boots fine from a produced USB key, but the keyboard does not > > work on an Acer C720 (amd64), on other laptops the keyboard is fine. > > > The keyboard works during the boot menu (for example to enable verbose > > boot messages) but not on the login: prompt of the booted system. > > > I've enabled SSH access into the C720 (if someone need more > > information) and I'm attaching /var/log/messages of the booted system. > > > Hi Matthias, > > > The C720 required special patches for the keyboard to work, which I > > originally added here: > > > https://cgit.freebsd.org/src/commit/?id=3D6c176113bbdd598231ec47d161d4c37= 14997169b > > > I assume that something in that area changed recently. > > > Without digging into it, this looks like a possible cause: > > > > https://cgit.freebsd.org/src/commit/sys/dev/atkbdc/atkbd.c?id=3Dce8811700= 88c4c98c036fe561f8ee8413c2e2585 > > > atkbd: Disable periodic polling by default. > > It is one of the few remaining Giant-locked callouts. It would be > > good to remove it, not mentioning that polling itself is not good. > > > If this cause keyboard/mouse freezes on some hardware, please set > > loader tunable hw.atkbd.hz=3D1 as workaround and report the issue. > > > So you could try to set hw.atkbd.hz=3D1 (or hw.atkbd.hz=3D10) in > > /boot/loader.conf, then reboot and see if it helps. > > > Best > > Michael > > > -- > > Michael Gmelin > > > > -- > > Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ > +49-176-38902045 > > Public GnuPG key: http://www.unixarea.de/key.pub > > > > > -- > Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ > +49-176-38902045 > Public GnuPG key: http://www.unixarea.de/key.pub > > --00000000000033cdb406048c6feb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Sep 4, 2023, 11:40 AM Michael Gmelin <grembo@freebsd.org> wrote:


On = 4. Sep 2023, at 19:34, Matthias Apitz <guru@unixarea.de> wrote:
=
=EF=BB=BF= El d=C3=ADa lunes, septiembre 04, 2023 a las 07:29:41p. m. +0200, Mic= hael Gmelin escribi=C3=B3:


<= br>
O= n 4. Sep 2023, at 19:23, Matthias Apitz <guru@unixarea.de> wrote:

=EF=BB=BF
Added Al= exander Motin <mav@FreeBSD.org> to To: as the origin of the CI;

Neither hw.atkbd.hz=3D1 nor hw.atkbd.hz= =3D10 makes the keyboard working on
my beloved Acer C720= . Should I file a new PR?


Filing a PR makes sense, could you please Cc me on it?<= /span>

Do you know which version of FreeBSD wa= s the last that worked for you?

I'm actually using (and typing this on it) r368166. Will file a PR
tomorrow. Thanks


This could also be related:

https://cgit.free= bsd.org/src/commit/?id=3D319d2bf407b3762da6f1c67ffe8dce2fee587aaf
=

You could try to undo that patch and build a new kernel= .

It shouldn't make a difference... but I may have been given b= ad advice if it did... if it's this one, I'll help sort it out.

Warner

Best
Michael

<= /div>


= =C2=A0 =C2=A0matthias

=
El d=C3=ADa lunes= , septiembre 04, 2023 a las 06:55:52p. m. +0200, Michael Gmelin escribi=C3= =B3:

<= /blockquote>

<= blockquote type=3D"cite">
On Mon, 4 Sep 2023 18:43:11 +0200
Matthias Apitz <guru@unixarea.de> = wrote:
= I have a 14.0-CURRENT compiled from sources of head from August 4,
which boots fine from a produced USB key, but the keyboard = does not
<= blockquote type=3D"cite">work on an Acer C720 (amd64), on other lapto= ps the keyboard is fine.
<= /blockquote>

The k= eyboard works during the boot menu (for example to enable verbose
boot messages) but not on the login: prompt of the booted syst= em.

I've enabled SSH acces= s into the C720 (if someone need more
<= /blockquote>
information) an= d I'm attaching /var/log/messages of the booted system.

Hi Matthias,

=
The C720 required special patches for the keyboard to= work, which I
or= iginally added here:
https://cgit.f= reebsd.org/src/commit/?id=3D6c176113bbdd598231ec47d161d4c3714997169b

I assume that something in that a= rea changed recently.
<= span>
Without dig= ging into it, this looks like a possible cause:
<= blockquote type=3D"cite">
https://cgit.freebsd.org/src/commit/sys/dev/atkbdc/atk= bd.c?id=3Dce881170088c4c98c036fe561f8ee8413c2e2585

=
atkbd: Disable periodic polling by default.
It is one of the few rem= aining Giant-locked callouts.=C2=A0 It would be
<= blockquote type=3D"cite"> good to remove it, not mentioning that poll= ing itself is not good.

If thi= s cause keyboard/mouse freezes on some hardware, please set
loader tunable hw.atkbd.hz=3D1 = as workaround and report the issue.

So you could try to set hw.atkbd.hz=3D1 (or hw.atkbd.hz=3D10) in<= br>
/boot/loader.conf, then = reboot and see if it helps.

Best<= /span>
=
Michael

--
Michael Gmelin


=
-- <= /span>
Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.u= nixarea.de/ +49-176-38902045
Public GnuPG key: = http://www.unixarea.de/key.pub



--
Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +4= 9-176-38902045
Public GnuPG key: http://www.unixarea.d= e/key.pub
<= /div> --00000000000033cdb406048c6feb--