From nobody Fri Mar 04 17:52:04 2022 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 8063B19F818A for ; Fri, 4 Mar 2022 17:52:12 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (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 4K9FmW5gt1z4ZrB for ; Fri, 4 Mar 2022 17:52:11 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qt1-x835.google.com with SMTP id v3so7989331qta.11 for ; Fri, 04 Mar 2022 09:52:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=5frDeRQrtaDTc9Rf8E2Qsxaai1IV3+BX/dDf+4R/Lg0=; b=UgLg8HTZdSd2Tx3KFCs+M5R1P1eLP1toc1jW6BoldKiHjf9Ap1XTf7C2Es+Ck/DzKe 0zNrwguuNSmsDulHyLScK353eRSzQxYyAYqPQTChJKFg/HFB9YAqmbymbVieCX6tBcqW sdYFO90sZ/Md49AtsGKADPk1p/mJc6rrcTNZQurIUSnZsULXSIQ2zRCvMtcdrXeHIPSw VgAffMttWRCjb5x4JBe9uqW8a/MZr+PIG41JcuIBe2OmCMi+C2nW6fQIruE2jsdJ1OCG YIjFXeKdfMSrfx6xsCb3CeJfbR7oFL6FNybCn64Iuj59JC1FBTp2v5lc3WkMRcuKyfLV joDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5frDeRQrtaDTc9Rf8E2Qsxaai1IV3+BX/dDf+4R/Lg0=; b=qmzZUKcPQCuTVuvcQlA4b1JT5pWr3200CBpPuqQHFukijaPVDdmaYm1TCVpLAhdgjF Z/MGk07/ztj4TMuuLrfHxBujJIqmLRiI2QpYiEgEd+K84UCxlzrRQj6EOUdz5A8aQDzP tQbt4BwGZ8emjz0YVk/TsiYKAhrmMk91AgWMVBi7Xn/FQlFcBsE5reXgbWEjWzjf7zt5 WrIvFdbqdt9u6sDvn9LnnYGjWzb3vqHMdN3gXz6x2XZc9n8rqjLPqWmdiwR6N9l4nfuU BcPP/dfQt0MSyn0XzW0pqaitwM2GRzxf35xaQin3yITh9wuxJFmleOsIdIxhZqmEaroI KUHA== X-Gm-Message-State: AOAM531m38jufFvvl+orIifNInQoPeEr3B4BhCvFqsbadQfJjQjQ6uO4 HRzsFT2r6xVLgQ9xIw52a2+zdQ== X-Google-Smtp-Source: ABdhPJwMbc4KWeRyc9SR9O8zhFpPYH2rqLLHiJzlhiUNPqNVtoJXGilRaYZNsvCDvp8kszVZjzlO5Q== X-Received: by 2002:a05:622a:2c6:b0:2dd:2d54:6781 with SMTP id a6-20020a05622a02c600b002dd2d546781mr33096241qtx.649.1646416325343; Fri, 04 Mar 2022 09:52:05 -0800 (PST) Received: from mutt-hbsd (pool-100-16-224-136.bltmmd.fios.verizon.net. [100.16.224.136]) by smtp.gmail.com with ESMTPSA id i6-20020ac85e46000000b002de07614b4dsm3965805qtx.39.2022.03.04.09.52.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 09:52:04 -0800 (PST) Date: Fri, 4 Mar 2022 12:52:04 -0500 From: Shawn Webb To: Mark Johnston Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 84369dd52369 - main - x86: Probe the TSC frequency earlier Message-ID: <20220304175204.jxcct5ozw343owj7@mutt-hbsd> X-Operating-System: FreeBSD mutt-hbsd 14.0-CURRENT-HBSD FreeBSD 14.0-CURRENT-HBSD X-PGP-Key: https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/blob/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc References: <202203011439.221EdtpY038505@gitrepo.freebsd.org> <20220304142447.bmo7r6syd6gsunnt@mutt-hbsd> 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="adexosk3owlosdod" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4K9FmW5gt1z4ZrB X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N --adexosk3owlosdod Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 04, 2022 at 09:45:28AM -0500, Mark Johnston wrote: > On Fri, Mar 04, 2022 at 09:24:47AM -0500, Shawn Webb wrote: > > On Tue, Mar 01, 2022 at 02:39:55PM +0000, Mark Johnston wrote: > > > The branch main has been updated by markj: > > >=20 > > > URL: https://cgit.FreeBSD.org/src/commit/?id=3D84369dd52369cbae28970d= ca20a53d3de1719907 > > >=20 > > > commit 84369dd52369cbae28970dca20a53d3de1719907 > > > Author: Mark Johnston > > > AuthorDate: 2022-03-01 14:39:35 +0000 > > > Commit: Mark Johnston > > > CommitDate: 2022-03-01 14:39:35 +0000 > > >=20 > > > x86: Probe the TSC frequency earlier > > > =20 > > > This lets us use the TSC to implement early DELAY, limiting the u= se of > > > the sometimes-unreliable 8254 PIT. > > > =20 > > > PR: 262155 > > > Reviewed by: emaste > > > Tested by: emaste, mike tancsa , Stefan Heg= nauer > > > MFC after: 1 month > > > Sponsored by: The FreeBSD Foundation > > > Differential Revision: https://reviews.freebsd.org/D34367 > > > --- > > > sys/amd64/amd64/machdep.c | 14 +++++- > > > sys/i386/i386/machdep.c | 11 ++++- > > > sys/x86/include/clock.h | 3 +- > > > sys/x86/isa/clock.c | 4 +- > > > sys/x86/x86/tsc.c | 123 +++++++++++++++++++++++++-----------= ---------- > > > 5 files changed, 94 insertions(+), 61 deletions(-) > >=20 > > Hey Mark, > >=20 > > Something about this commit breaks booting in Hyper-V. Reverting this > > particular commit makes Hyper-V happy again. >=20 > How far into bootup do we get? Is there a panic? Sorry for the delay. I've plopped a screenshot here: https://hardenedbsd.org/~shawn/2022-03-04_tsc-01.png Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --adexosk3owlosdod Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmIiUcEACgkQ/y5nonf4 4fr5Ww/+L9JwR5HovMtVn7Yyswq1qbmFF0OMe3masA4KPbFKtGzBFxQeiv9apYkQ 6X1jZeK/kgfafQR7mkqSrXmGD1F17HpSpTXhzC6Z7e3kyoLHSV8q19dMLr4x3xvc m62XPaY5j4vj67fSafP07zGNQ4+ewDwMjwbYedXGAEneTkUwKbon2boXTyFjqagw RXIPWFLXO6LYYAqqMPlsSXsX3cJEKdFJCm6jugw2uzAjgBLpu6fkJPs3LKAgf7tr AQGjU6CgpAnFXwNBfXy0TxuE2AP8mRxLM20T174i7vX9XteR5yNJV5y7tPYzySd+ wsc3b0m4pxINiUWGmaDSvnIPVaQ2QzMmDFSuqFJjpoUGd/hSlYkPWYd+eU4o1SZi SQ6scrBzhA7klNQmzaV4sS7sBM/4PM+6B0FgmnmJZkqXN0YyjDTVQIGlcaSUvx8v mUM33gN48eINqHpIdQQOFDMrw8665SE1Smil/dEhdiIAHrb0RZEGAMlFsRMa//iG /XiQIEOpqEYfg9KO6WhYiqXOaxyg5/6GNKYyIQ4dVSroNxbIBy6QZm1l3rNXy+JE 7LxgMCUlBKTiF19XCQT8iRU/aL3jH7j2TWVMhETcBgFBFLWRg4yXyj3s8wBOI+xh 45CqyacuypdZBOhIVz2ffiyok69yw3MaEV8rAPqnvT1WeYwWeSg= =rkgp -----END PGP SIGNATURE----- --adexosk3owlosdod--