From nobody Fri Jan 19 16:37:47 2024 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 4TGlf43Ygjz56rlN; Fri, 19 Jan 2024 16:37:48 +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 4TGlf40hrmz46Qv; Fri, 19 Jan 2024 16:37:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705682268; 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=WIrxK2dO03o3oowpadowMO3pAZJmq+Jf7OBlnab7NN0=; b=CJHqLD8T3Ufo4rYI7fiLyuHYw8BQbEd47dW/mVdOySujI4Gx4yNt7mb/Ad101qmv4SfsQK TiVuwy7hEXBVJ77C7/WvzzSLviXj0XZECiZCAyxKQE2fIU0MmcxJlLVbciwyXzx6EknRtL kAftKiaR3HLjv0knr/BmVbBr4F9O0E/83Kog4IK5xW4RU8zRO/hECxmdqPQGNBr7JoNfCf OVftI9PMbYkXnBQIzfhQiYlrMXLSJJuaCU9noTj9RtldwUEQJG2OO+xoBwEj5Ej1iQBkr8 mDBE9/lA1U5L8tQ77OTWRqAtbdnpf1bperB8zqcZTDBOFuqL8kxvNHximuGBAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705682268; 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=WIrxK2dO03o3oowpadowMO3pAZJmq+Jf7OBlnab7NN0=; b=ad7Pzj6PGmlNuvin+BzMBy+ZZmEG28FsbeM4rNYZ+8kaT+51Nqk/Z5kNppZwGiPuQP9PhQ rnPzB6kojKjQtd+EMGafyg/psCti0Pti+Yw68zlhODn41DVwVdL5xs7e7mLZIvqy2Ptfl1 SlqIjXBmdB3xmUrY4rKCctwvzFInhbVhhWwPB5dJ5M1h2tZgiYkFjXMJpfyFYtx616aT2m yHhjD+hpgJSTwG2BvBRBzZnW7jawCRhL40OfZ+rPOMSznV52cH6i9irL0NcM8e/BgJxnIi YflRmd1hhNReAwStvem0RpRWxP58dMiM0ynRVrWP0CiAVZq1rrn5vgMJC66Otw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705682268; a=rsa-sha256; cv=none; b=Xkigj5Pc+YjxDk4MpclLvYgceYgAVLv0CRKZ9IhnEQT2yHze/J2KnfzhjhdT3wEI8G+Jfc FfKnUyglHSWqJ4GP7ZQUUD52hO1bY2m+weWyFozInVN9IkLyuVzg6Plw2M24VYueYKm5Qu 3CXx48vT0bCS79erHGQx3cLZyhDtqYVa67GWoyAAgqDDcC+dhu3qu/isScx6SPj6CSmwOF XMnnoz51qD5tC/ZmupM+6bXa0Ny64KgR8iqnFF84/c2NXwT/YUvM1SCAz/1uqFk4XFuGdV E5s60NyVvcDB4fjL6CgsAnkMGw5weF4Yr6I6jeS6AuB1rIxvymo+ciltFGbpCg== 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 4TGlf36w9Czyb0; Fri, 19 Jan 2024 16:37:47 +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 40JGblTM026980; Fri, 19 Jan 2024 16:37:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40JGblPs026977; Fri, 19 Jan 2024 16:37:47 GMT (envelope-from git) Date: Fri, 19 Jan 2024 16:37:47 GMT Message-Id: <202401191637.40JGblPs026977@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: 41af0b19e914 - stable/14 - iichid(4): Restore/increase sampling rate 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/14 X-Git-Reftype: branch X-Git-Commit: 41af0b19e9147baaace2c538aac057afb8b4473c Auto-Submitted: auto-generated The branch stable/14 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=41af0b19e9147baaace2c538aac057afb8b4473c commit 41af0b19e9147baaace2c538aac057afb8b4473c Author: Alexander Motin AuthorDate: 2023-12-24 00:10:49 +0000 Commit: Alexander Motin CommitDate: 2024-01-19 16:34:58 +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 1035088c11b5..84f624f9bb09 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)