From nobody Fri Jan 19 17:09:52 2024 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 4TGmM52gWLz56wYt; Fri, 19 Jan 2024 17:09:53 +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 4TGmM515t4z4K5h; Fri, 19 Jan 2024 17:09:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705684193; 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=/BAmOOs1JQmMjyCYWzKM37S7uB9xoy0H0JmyL2khE4g=; b=npDX25higpd/f1Zp8/iZ5OnpRoQ4QewrheKYSGwZf6Bd5r8wio9DXY6ROCEO7j0crhM3QX JHrONq7h1eDE4cnbpo7dTexj8K91KRM2teSEvrjOeiyn9IRELDeESQa70NmW1PN1uFkS/B h1iHC0U1f/oEEI1zt56fHGAytNfcOvaggefo0cOiD04PPYV5Bj7eh9QtMbVggS6pV1e2v+ oKmNqxAH/BcEi327EKqpL4CjVVUdzRy9QD2+Bgr0Sn6RjgStsnXKLxiD0e20dBKX65PxDt d06XCQZyomPcFHnvKmyjdHrCJWRHoOgIsAyC/zLyz0EU7Xr1eBMwSXDnPhtb+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705684193; 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=/BAmOOs1JQmMjyCYWzKM37S7uB9xoy0H0JmyL2khE4g=; b=qG6aFDAZ08izcbbXNYU5Sc86DfsvLSn0a+aQpXBp+qnyTv7Om4oVqBZXrnN0DAPZqYGVaV 2kRysUgFTac6NzyuMKx79jeIIP0TmD77JKi9VkZIWqnDfGpiIoK8J7L3lf3Iq0oPdDFLtf cmdo8zJ4tkv5RWuKG64IdmIqpzGIZxUwqltz/uqXCxSaqJAUog1hy/hFDEDkkp5NbrY+xz OO0XCA1G1z9HQMe6BqbIfHRLpZ9V+x0veVgjJBI4bodzgbIC/0XO3lph7l2JYtAMrXnlL4 2re+z75brKGTKE7CeWR6lOiTGaAbJFTmkXn6KdLAnxZuA5U/AlZtN4tIQag3Dg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705684193; a=rsa-sha256; cv=none; b=K4XI9UwjgYrMAy8etV3tdDZv/+okHWRdmTPG/LN95Vw4gdFWDc2+DGTiiXGuxplCgCuekC JZRqVFnJZIy+s+cLhmmB4nXHOdj8BFEXpTck2rxKM92DTEMwwUagvQVMSZo12IQX84Zva/ bXPg5cJERaylasMkxzOfwXAfvDQz664vsJzl6Z2aeVqOOj6dI0y8cW1oYJ2AsDASo86ath 86ICSQs8XG0FVbIW95BI690pfZX5xfrFsOu6PkvFvxWaaPl0UD/WrLUCH6PVxeYF4PBZEq PDGzq0E6/3ovLnOBGNEFtj/dw5Ftm9DfHYGnBMCBhlGiBM0e8ewBL7TsR3CVaA== 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 4TGmM50BmMz10NQ; Fri, 19 Jan 2024 17:09:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40JH9qGx079669; Fri, 19 Jan 2024 17:09:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40JH9qZB079666; Fri, 19 Jan 2024 17:09:52 GMT (envelope-from git) Date: Fri, 19 Jan 2024 17:09:52 GMT Message-Id: <202401191709.40JH9qZB079666@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: d6e6c02c29b1 - stable/13 - iichid(4): Restore/increase sampling rate 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/stable/13 X-Git-Reftype: branch X-Git-Commit: d6e6c02c29b1e29d9671938ac327453ed1ff2bf0 Auto-Submitted: auto-generated The branch stable/13 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=d6e6c02c29b1e29d9671938ac327453ed1ff2bf0 commit d6e6c02c29b1e29d9671938ac327453ed1ff2bf0 Author: Alexander Motin AuthorDate: 2023-12-24 00:10:49 +0000 Commit: Alexander Motin CommitDate: 2024-01-19 17:08:13 +0000 iichid(4): Restore/increase sampling rate My previous commit by reducing precision reduced the sampling rate from 60Hz to 40Hz on idle system. Return it back to 60-80Hz range, that should be good for mouse smoothness on 60Hz displays. MFC after: 1 months (cherry picked from commit 68e457df0268113646264883515412af4c8808cb) --- sys/dev/iicbus/iichid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/iicbus/iichid.c b/sys/dev/iicbus/iichid.c index d2359fdf5b20..99ec402c3590 100644 --- a/sys/dev/iicbus/iichid.c +++ b/sys/dev/iicbus/iichid.c @@ -106,9 +106,9 @@ enum { * sampling_rate_fast value too high as it may result in periodical lags of * cursor motion. */ -#define IICHID_SAMPLING_RATE_FAST 60 +#define IICHID_SAMPLING_RATE_FAST 80 #define IICHID_SAMPLING_RATE_SLOW 10 -#define IICHID_SAMPLING_HYSTERESIS 12 /* ~ 2x fast / slow */ +#define IICHID_SAMPLING_HYSTERESIS 16 /* ~ 2x fast / slow */ /* 5.1.1 - HID Descriptor Format */ struct i2c_hid_desc { @@ -567,7 +567,7 @@ rearm: else rate = sc->sampling_rate_fast; taskqueue_enqueue_timeout_sbt(sc->taskqueue, &sc->periodic_task, - SBT_1S / MAX(rate, 1), 0, C_PREL(1)); + SBT_1S / MAX(rate, 1), 0, C_PREL(2)); } out: if (bus_requested)