From nobody Sat Jan 08 02:34:54 2022 X-Original-To: dev-commits-src-all@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 4E6941935054; Sat, 8 Jan 2022 02:34:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JW41V4TRGz4f4L; Sat, 8 Jan 2022 02:34:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7A2DB167FF; Sat, 8 Jan 2022 02:34:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2082Ys5I073992; Sat, 8 Jan 2022 02:34:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2082YsaQ073991; Sat, 8 Jan 2022 02:34:54 GMT (envelope-from git) Date: Sat, 8 Jan 2022 02:34:54 GMT Message-Id: <202201080234.2082YsaQ073991@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Motin Subject: git: 1849bc5f3ff0 - main - mps/mpr: Relax doorbell polling precision. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mav X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1849bc5f3ff04c128e85173aa84472a19b784e64 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641609294; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lDynz5sg8tkEJafDP3ikR5Io1eUmP1easeU/UxDUtIw=; b=XGdOd0klcXTT/UStyHoKpVjGr1hM1ZC1Np+hSXQQwohcrTlOgT71A3PAcavkNtbFro1ybc ZGLAbmoeo50TAV5UvreRia7YT0Y8jep4E+2iLCJP9/AnSSXSzaMfLYotIkuIqdchClp7/j +ZB0jeHt6XXv3WjBa8w6yWQc5+lPzaszdcks5stSsfTZ/pzXmaHDkl5Drovyk5ZB0GMrBt TElnaQ2k1LxPgVjbtmLC2dTl7VXOcPd/428+bSC8xHwstemJFTxvMQsN39R+N4QXTkpd2A ntAVuOWnEoMJmCTjiHM3X+sWsiD3DntUSGBCumNn6Z3DrrLWLUnaKOwSSE/B9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641609294; a=rsa-sha256; cv=none; b=q74vlIekbQ64cgQOY+XTi/09cOwUyGaHpmKCsIzgA9DPn20qp+KI5ZRmx6QYpvRXS24Mp1 rlZmOjZ230xGe4TllzrjjC+GF+IkgXblPARg6vKBjcPsPo113Jkf2kTo7byLORtn5TAAYA Jb08yw1aO8rE1XIsTCqaLVfXoi08fUWhPDWN/ZrsmdQPi0+NnYHQVbXHsVvEJEafFjxKGz BRMySAR0Lj2zlEw3hx9bnySho5K93CqzI2IfjLh4ZbikqDI/MFVWSXd2bTgKuIHTz6jIFX 5O7VilOVRHEEHmqvlS9Nx9CpD5M6LLKctygP11Wz19PujKx7nxcPOJYISDM6Fw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=1849bc5f3ff04c128e85173aa84472a19b784e64 commit 1849bc5f3ff04c128e85173aa84472a19b784e64 Author: Alexander Motin AuthorDate: 2022-01-08 02:30:12 +0000 Commit: Alexander Motin CommitDate: 2022-01-08 02:34:49 +0000 mps/mpr: Relax doorbell polling precision. It does not matter how often do we check firmware for crashes. MFC after: 2 weeks --- sys/dev/mpr/mpr.c | 3 ++- sys/dev/mps/mps.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/mpr/mpr.c b/sys/dev/mpr/mpr.c index 3de4b1050fa7..0f4c5c906216 100644 --- a/sys/dev/mpr/mpr.c +++ b/sys/dev/mpr/mpr.c @@ -2250,7 +2250,8 @@ mpr_periodic(void *arg) mpr_reinit(sc); } - callout_reset(&sc->periodic, MPR_PERIODIC_DELAY * hz, mpr_periodic, sc); + callout_reset_sbt(&sc->periodic, MPR_PERIODIC_DELAY * SBT_1S, 0, + mpr_periodic, sc, C_PREL(1)); } static void diff --git a/sys/dev/mps/mps.c b/sys/dev/mps/mps.c index b4e0142204ef..956a0301e70a 100644 --- a/sys/dev/mps/mps.c +++ b/sys/dev/mps/mps.c @@ -2092,7 +2092,8 @@ mps_periodic(void *arg) mps_reinit(sc); } - callout_reset(&sc->periodic, MPS_PERIODIC_DELAY * hz, mps_periodic, sc); + callout_reset_sbt(&sc->periodic, MPS_PERIODIC_DELAY * SBT_1S, 0, + mps_periodic, sc, C_PREL(1)); } static void