Linux Input/HID development
 help / color / mirror / Atom feed
* [PATCH v7 0/2] HID: intel-thc-hid: PRD tables under a drain
@ 2026-11-17 10:54 Emfox Zhou
  2026-11-17 10:54 ` [PATCH v7 1/2] HID: intel-thc-hid: intel-thc: restore PRD table capacity Emfox Zhou
  2026-11-17 10:54 ` [PATCH v7 2/2] HID: intel-thc-hid: quickspi, quicki2c: skip an empty read Emfox Zhou
  0 siblings, 2 replies; 3+ messages in thread
From: Emfox Zhou @ 2026-11-17 10:54 UTC (permalink / raw)
  To: Even Xu, Xinpeng Sun, Jiri Kosina, Benjamin Tissoires
  Cc: linux-input, linux-kernel

The PRD tables lose capacity when a frame is left unread, and a drain can
reach a ring that a reset already rewound. Rebuild the tables before the
engine that reads them starts, hold every path that stops an engine or
moves its pointers under the lock the drain takes, and stop the drain from
treating an empty read as a frame.

Patch 1 does the ring side in the core. Patch 2 fixes the two callers that
go by the buffer instead of the length they were given.

Changes in v7:

  - The two Fixes: trailers the second patch was missing, pointed out in
    review.

Link to v6: https://lore.kernel.org/r/20261117102711.270303-1-emfox@debian.org

Emfox Zhou (2):
  HID: intel-thc-hid: intel-thc: restore PRD table capacity
  HID: intel-thc-hid: quickspi, quicki2c: skip an empty read

 .../intel-quicki2c/pci-quicki2c.c             |  3 +
 .../intel-quickspi/pci-quickspi.c             |  3 +
 .../intel-thc-hid/intel-thc/intel-thc-dma.c   | 89 ++++++++++++++++++-
 .../intel-thc-hid/intel-thc/intel-thc-dma.h   |  8 ++
 4 files changed, 99 insertions(+), 4 deletions(-)


base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3

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

end of thread, other threads:[~2026-11-17 10:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-17 10:54 [PATCH v7 0/2] HID: intel-thc-hid: PRD tables under a drain Emfox Zhou
2026-11-17 10:54 ` [PATCH v7 1/2] HID: intel-thc-hid: intel-thc: restore PRD table capacity Emfox Zhou
2026-11-17 10:54 ` [PATCH v7 2/2] HID: intel-thc-hid: quickspi, quicki2c: skip an empty read Emfox Zhou

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