From nobody Sun Jan 23 19:59:49 2022 X-Original-To: dev-commits-src-branches@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 EF3CD1983B88; Sun, 23 Jan 2022 19:59:49 +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 4JhkVF5PRlz4Z4g; Sun, 23 Jan 2022 19:59:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642967989; 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=ch4Exw9XYmbAXvnuK3y68yQ+jHEfjev+Oyg/oIMbbwM=; b=qxvzxOay66V+EHQH/ysCjN+Gth0Z+QF6JwVzNhlnXDQJJzeIfiU4tO7yOA1bdM2XnuTzX7 XHv4qyLuX++a3sopNy3YjMN1PurpdfnYQSB/0UVR0NHE/lvS21UVFydYsw8GVYePqfZLf+ DpbXd9HXFJj9iXLXZ84SsSjtAPXoqba39lfLEsN2Lg8TrivIkCsGWYXAjtTL5DuQd6esxd hl+0hMRLHftVKKlOX/gMEaWyypu9MTEsjxjJidZi7LZ1sVqZCHKUJAvbhZLEvcm+t+Umzu a8K38H2BMIAJhYSyBVueDO/epTb+7r1CkDpxcjYJ1n8aj3EqCbhD9At0KpyIiA== 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 8EB043F3; Sun, 23 Jan 2022 19:59:49 +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 20NJxnlE064133; Sun, 23 Jan 2022 19:59:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20NJxnud064132; Sun, 23 Jan 2022 19:59:49 GMT (envelope-from git) Date: Sun, 23 Jan 2022 19:59:49 GMT Message-Id: <202201231959.20NJxnud064132@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Motin Subject: git: 0dc8e3fe6fd1 - stable/13 - mps/mpr: Relax doorbell polling precision. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 0dc8e3fe6fd1e6a79a840dd3b518e088076f7cda Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642967989; 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=ch4Exw9XYmbAXvnuK3y68yQ+jHEfjev+Oyg/oIMbbwM=; b=FlAx5U01Tonx+BEw00OIIBenD0x6hzfP2soucHsByaoEqu+6UHLQ0i37qG5FKVdYadZGRB lCZ/pcMPPN6Sruwhj1CMa23GYRgdLXpFEgpGBze88YGBjRU6ozXQc7k5pEXBHIKRGWcCOq kZ5mKQZZ4cezwGm2LbXcy5/E9/d4auI7nOhoboWWaMY0qli8A9nEkFGfobC1+m9ddDsxh7 T8rQbBTB6L3jZiGh/GVt6Vid7CvScmB/HpEP9KvZ4wBXrOUq7IHhhBPLXSZqjvSBND2XF0 ERrCaHjjhIx64cvZCQwzyKNk/TsGfE9Ia3YQyfGkZA0TmKRsr9klq+6fwfNcQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642967989; a=rsa-sha256; cv=none; b=kzb67IE/Zdyz7Il9bD2Vn3XAZP9yUUp20zNhgmFMvofTDoLfiumXP9ujUQ2l0xrZU+xkRe 35KnvkGhLNAz8C2N2FNiy7pz/hiXq2KvOPd28xV7CdxnVy+kfFnaHpxD0Ws902x5WC4gDM VVYqOZVFt56MkNJ7pqyUmtqd8u/uvMYN4C5v0CHg4Oj6/W97cqOgOwdi9tUaTgrE3tmPRJ cSdpsbV72NckhMEoylfRKSr61b5plB59ky8ERdEoWIN+KQyYvW30BBMPoDom1pp8d3MPFp pdacBCBUs01keLIJTjBO1qhN7GTMAGaLNP/cp26QLaRxANaO3WzJGKNl0OYYkg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=0dc8e3fe6fd1e6a79a840dd3b518e088076f7cda commit 0dc8e3fe6fd1e6a79a840dd3b518e088076f7cda Author: Alexander Motin AuthorDate: 2022-01-08 02:30:12 +0000 Commit: Alexander Motin CommitDate: 2022-01-23 19:57:35 +0000 mps/mpr: Relax doorbell polling precision. It does not matter how often do we check firmware for crashes. MFC after: 2 weeks (cherry picked from commit 1849bc5f3ff04c128e85173aa84472a19b784e64) --- 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