The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v3 0/5] HID: intel-thc-hid: intel-thc: DMA lifetime fixes
@ 2026-11-27 14:59 Emfox Zhou
  2026-11-27 14:59 ` [PATCH v3 1/5] HID: intel-thc-hid: intel-thc: keep TxDMA write errors Emfox Zhou
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Emfox Zhou @ 2026-11-27 14:59 UTC (permalink / raw)
  To: Even Xu, Xinpeng Sun, Jiri Kosina, Benjamin Tissoires
  Cc: linux-input, linux-kernel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-27 15:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 14:59 [PATCH v3 0/5] HID: intel-thc-hid: intel-thc: DMA lifetime fixes Emfox Zhou
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox