Skip to content

HID: intel-thc-hid: PRD tables under a drain

Emfox Zhou linux-input lkml 7 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 0 repliesNew
  2. v62 patches 0 repliesSuperseded
  3. v51 patch 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v4 posting 2/21 patch0 repliesSuperseded
v4 posting 1/21 patch0 repliesSuperseded
v31 patch0 repliesSuperseded
v21 patch0 repliesSuperseded

Changes in v7 from the cover letter

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

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2HID: intel-thc-hid: intel-thc: restore PRD table capacitydrivers/hid/intel-thc-hid/intel-thc/intel-thc-dma.c drivers/hid/intel-thc-hid/intel-thc/intel-thc-dma.h+93 -40 replies
2/2HID: intel-thc-hid: quickspi, quicki2c: skip an empty readdrivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH v7 0/2] HID: intel-thc-hid: PRD tables under a drain

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/[email protected]

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