From nobody Sat Nov 23 16:12:21 2024 X-Original-To: dev-commits-src-main@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 4XwcSR4bNwz5dTll for ; Sat, 23 Nov 2024 16:12:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-54.consmr.mail.gq1.yahoo.com (sonic315-54.consmr.mail.gq1.yahoo.com [98.137.65.30]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4XwcSQ2GP1z4NPS for ; Sat, 23 Nov 2024 16:12:38 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=DWikS7Nq; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.30 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1732378356; bh=INuICCz48VUTPSd7Ufc6qdsfYwPWDt/3WGEvfJ17iy4=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=DWikS7NqZ83ADCIPiIOiox6CNJm62Ewj2T+XD+sEhdG7PSdAm1/Uh0sfse575sQ6/ig+9PiLykezGqSX03b5tzHwXywqM1QLwNBsHq2n5qlaBIw2D0J2WuWFFE29POIsmsxUIoE39rLYMO8GNlw2y20XXANINSpB7f22NhLHYb+Qgh2LjGYjE/Id1TPNQg21fz5udXUGaVKxcNWC8lEx6oHNX2eFcBRDMuyG6WLiSUsGcffaJGQII7aWqFHZTa5X5evy6Js1+UhO0SOy7/YkQU+rcsCH1sziVieAXTMbl8oRxDfgdtsgnlLYNYB6fyTO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_aDbsIBn_tPHfvVLJAiiAQbJP9McX_JJLemXkVucf03rqWqQkV7DDykfhJElDk GVwh2_HGGnbpsQv4rDMWnH9MAnbq.6nw5UpLXbD_RDwRYhkl4CMZOsuHblyOXRGPFIxehqZnkY72 g4HJje3pac_QkcyufWOu3pmPQM2v3umkuVZ5YIBfuGow.C_SVdTO4euyn3t5b7EcDSgYiaYc5sJl 5ISYfNOOeZb6Cqvy.9xdJlVaNBtmfTQ9LwD7AfmEkTZ20GGd63MtfnSm0CqJp_Q1Z2hSh5ZEof2G 9k4BHZCKGNxq.KUHbievhItwX1p3WkfB5gPgor_WXSX9wNLZZazTe3LWyhvqxQgJQTI5MyzWdJGx rA7FeTRpriLsp.AvcunPoUggonZUD21_uNr42YkX_eSvtbrJL5h8qpT8y8lvBGA.CbMHM3jAWP_g Kpwp7DCZNBJycCHDcraRoDUe6XNsLnx3yS4dHR4wHFNKNPMlencocEcoYneh9KgYMwKNcC3CiPuM JVtvq2CK.1qnQma0owxt.YuNdXcywQ_g.13_Ifbo05acp9gOijSHzeEddSn2wP9wXAuW8fJb.GjF FJtZ1gkykExin7p8Y4wB.HzACIS459IzQc7If_19Ajt8Xp_YxYxcAfwemovDCj.iCvcRJxw8d.x7 kZoy7OM7Cq3rPpFzbfA28hhae9BIxCeoBG5D.4j_ft9Ms0M2_5NoDg9TxapLSu99EKgnD9rzd0QZ Egj26AwG5GyeaFlW2ykOAk_yboA-- X-Sonic-MF: X-Sonic-ID: b322e3f8-8263-4bad-9460-1ade6a86a057 Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Sat, 23 Nov 2024 16:12:36 +0000 Received: by hermes--production-gq1-5dd4b47f46-n48bg (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 63f2019ff7dc85032227cc86c8c82a67; Sat, 23 Nov 2024 16:12:31 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: RE: git: 7749de244014 - main - Add new kern.vt.slow_down tunable. Message-Id: <037444AA-53A8-4B28-8568-3E0046C1E251@yahoo.com> Date: Sat, 23 Nov 2024 08:12:21 -0800 To: "phk@freebsd.org" , dev-commits-src-main@freebsd.org X-Mailer: Apple Mail (2.3776.700.51) References: <037444AA-53A8-4B28-8568-3E0046C1E251.ref@yahoo.com> X-Spamd-Result: default: False [-3.95 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.95)[-0.955]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[yahoo.com:+]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[dev-commits-src-main@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.30:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.30:from] X-Rspamd-Queue-Id: 4XwcSQ2GP1z4NPS X-Spamd-Bar: --- Poul-Henning Kamp wrote on Date: Sat, 23 Nov 2024 15:03:55 UTC : > The branch main has been updated by phk: >=20 > URL: = https://cgit.FreeBSD.org/src/commit/?id=3D7749de244014a057b55552ea9d68fd8a= eb262ea0 >=20 > commit 7749de244014a057b55552ea9d68fd8aeb262ea0 > Author: Poul-Henning Kamp > AuthorDate: 2024-11-23 15:01:09 +0000 > Commit: Poul-Henning Kamp > CommitDate: 2024-11-23 15:01:09 +0000 >=20 > Add new kern.vt.slow_down tunable. > =20 > On a laptop with no other console devices than the screen, things > scroll of the screen faster than eye or camera can capture it. > =20 > This tunable slows the console down and makes it update = synchronously, > so console output continues when timers or interrupts do not. > =20 > Differential Revision: https://reviews.freebsd.org/D47710 > --- > share/man/man4/vt.4 | 11 +++++++++++ > sys/dev/vt/vt_core.c | 9 +++++++++ > 2 files changed, 20 insertions(+) >=20 > diff --git a/share/man/man4/vt.4 b/share/man/man4/vt.4 > index 4c115b68a80d..d3d3c4b38013 100644 > --- a/share/man/man4/vt.4 > +++ b/share/man/man4/vt.4 > @@ -50,6 +50,7 @@ In > .Cd kern.vt.color..rgb=3D"" > .Cd kern.vt.fb.default_mode=3D"x" > .Cd kern.vt.fb.modes.=3D"x" > +.Cd kern.vt.slow_down=3D" > .Cd screen.font=3D"x" > .Pp > In > @@ -266,6 +267,16 @@ It will contain a list of connectors and their = associated tunables. > This is currently only supported by the > .Cm vt_fb > backend when it is paired with a KMS video driver. > +.It Va kern.vt.slow_down > +When debugging the kernel on modern laptops, the screen is often > +the only available console, and relevant information will scroll > +out of view before it can be captured by eye or camera. > +.Pp > +Setting > +.Va kern.vt.slow_down > +to a non-zero number Seems to not be true in the code for: less than 0. I've no clue which is intended to be the intent: the wording above or the code below. > will make console output synchronous (ie: > +not dependent on timers and interrupts) and slow it down in = proportion > +to the number. > .It Va screen.font > Set this value to the base name of the desired font file located in > .Pa /boot/fonts . > diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c > index 87020b6e6f19..1be98466112e 100644 > --- a/sys/dev/vt/vt_core.c > +++ b/sys/dev/vt/vt_core.c > @@ -132,6 +132,9 @@ static VT_SYSCTL_INT(debug, 0, "vt(9) debug = level"); > static VT_SYSCTL_INT(deadtimer, 15, "Time to wait busy process in = VT_PROCESS mode"); > static VT_SYSCTL_INT(suspendswitch, 1, "Switch to VT0 before = suspend"); > =20 > +/* Slow down and dont rely on timers and interrupts */ > +static VT_SYSCTL_INT(slow_down, 0, "Non-zero make console slower and = synchronous."); I see in sys/dev/vt/vt.h : #define VT_SYSCTL_INT(_name, _default, _descr) = \ int vt_##_name =3D (_default); = \ SYSCTL_INT(_kern_vt, OID_AUTO, _name, CTLFLAG_RWTUN, &vt_##_name, 0, = _descr) so vt_slow_down has a signed value (int type, not unsigned int type). > + > /* Allow to disable some keyboard combinations. */ > static VT_SYSCTL_INT(kbd_halt, 1, "Enable halt keyboard combination. = " > "See kbdmap(5) to configure."); > @@ -1657,6 +1660,12 @@ vtterm_done(struct terminal *tm) > } > vd->vd_flags &=3D ~VDF_SPLASH; > vt_flush(vd); > + } else if (vt_slow_down > 0) { That test treats < 0 the same as =3D=3D 0, only > 0 is distinct. > + int i, j; > + for (i =3D 0; i < vt_slow_down; i++) { > + for (j =3D 0; j < 1000; j++) > + vt_flush(vd); > + } > } else if (!(vd->vd_flags & VDF_ASYNC)) { > vt_flush(vd); > } =3D=3D=3D Mark Millard marklmi at yahoo.com