Linux Input/HID development
 help / color / mirror / Atom feed
From: Emfox Zhou <emfox@debian.org>
To: Even Xu <even.xu@intel.com>, Xinpeng Sun <xinpeng.sun@intel.com>,
	Jiri Kosina <jikos@kernel.org>,
	Benjamin Tissoires <bentiss@kernel.org>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v3 0/5] HID: intel-thc-hid: intel-thc: DMA lifetime fixes
Date: Fri, 27 Nov 2026 22:59:16 +0800	[thread overview]
Message-ID: <cover.1795791500.git.emfox@debian.org> (raw)

The THC DMA engines have no defined lifetime: a failed write reports
success, the channel that failed to allocate keeps the tables and
scatter-gather lists it did manage to allocate, the engines are not all
stopped before their tables go away, the SPI gear table has no entry for
the slow clocks some controllers ask for, and the drain that follows a
stop is a fixed 10 ms even when a receive engine is draining a whole
frame.

This series gives them one. It is a prerequisite for the IPTS backend
series that follows: the recovery path there relies on the engines being
stopped in order and on the drain being long enough.

 1/5 keep TxDMA write errors
 2/5 free the failed channel
 3/5 stop all engines first
 4/5 add the slow SPI gears
 5/5 budget the receive drain

Changes in v3:
 - Rebased onto for-7.5/intel-thc (4f048c56c), which carries Even Xu's
   safe DMA read series; no functional change.

Emfox Zhou (5):
  HID: intel-thc-hid: intel-thc: keep TxDMA write errors
  HID: intel-thc-hid: intel-thc: free the failed channel
  HID: intel-thc-hid: intel-thc: stop all engines first
  HID: intel-thc-hid: intel-thc: add the slow SPI gears
  HID: intel-thc-hid: intel-thc: budget the receive drain

 .../intel-thc-hid/intel-thc/intel-thc-dev.c   | 45 ++++++++---
 .../intel-thc-hid/intel-thc/intel-thc-dma.c   | 77 +++++++++++--------
 .../intel-thc-hid/intel-thc/intel-thc-dma.h   |  5 ++
 3 files changed, 86 insertions(+), 41 deletions(-)


base-commit: 4f048c56c2697000105a75c28b918ae76f11fcef

             reply	other threads:[~2026-11-27 14:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 14:59 Emfox Zhou [this message]
2026-11-27 14:59 ` [PATCH v3 1/5] HID: intel-thc-hid: intel-thc: keep TxDMA write errors Emfox Zhou
2026-11-27 14:59 ` [PATCH v3 2/5] HID: intel-thc-hid: intel-thc: free the failed channel Emfox Zhou
2026-11-27 14:59 ` [PATCH v3 3/5] HID: intel-thc-hid: intel-thc: stop all engines first Emfox Zhou
2026-11-27 14:59 ` [PATCH v3 4/5] HID: intel-thc-hid: intel-thc: add the slow SPI gears Emfox Zhou
2026-11-27 14:59 ` [PATCH v3 5/5] HID: intel-thc-hid: intel-thc: budget the receive drain Emfox Zhou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1795791500.git.emfox@debian.org \
    --to=emfox@debian.org \
    --cc=bentiss@kernel.org \
    --cc=even.xu@intel.com \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xinpeng.sun@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox