All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] dwc3: gadget: properly fix cache operations
@ 2024-07-19 13:56 Neil Armstrong
  2024-07-19 13:56 ` [PATCH 1/3] usb: dwc3: allocate setup_buf with dma_alloc_coherent() Neil Armstrong
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Neil Armstrong @ 2024-07-19 13:56 UTC (permalink / raw)
  To: Marek Vasut, Tom Rini, Lukasz Majewski, Mattijs Korpershoek
  Cc: Caleb Connolly, u-boot-qcom, u-boot, Neil Armstrong

We experience huge problems with cache handling on Qualcomm
systems, and it appears the dcache handling in the DWC3 gadget
code is quite wrong and causes operational issues.

This serie fixes the dcache operations on unaligned data,
and properly invalidate buffers when reading back data from
hardware.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
Neil Armstrong (3):
      usb: dwc3: allocate setup_buf with dma_alloc_coherent()
      usb: dwc3: fix dcache flush range calculation
      usb: dwc3: invalidate dcache on buffer used in interrupt handling

 drivers/usb/dwc3/core.h   |  2 ++
 drivers/usb/dwc3/ep0.c    |  6 ++++--
 drivers/usb/dwc3/gadget.c | 10 ++++++----
 drivers/usb/dwc3/io.h     | 13 ++++++++++++-
 4 files changed, 24 insertions(+), 7 deletions(-)
---
base-commit: 3f772959501c99fbe5aa0b22a36efe3478d1ae1c
change-id: 20240719-u-boot-dwc3-gadget-dcache-fixup-ea1e92758663

Best regards,
-- 
Neil Armstrong <neil.armstrong@linaro.org>


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

end of thread, other threads:[~2024-07-24 15:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-19 13:56 [PATCH 0/3] dwc3: gadget: properly fix cache operations Neil Armstrong
2024-07-19 13:56 ` [PATCH 1/3] usb: dwc3: allocate setup_buf with dma_alloc_coherent() Neil Armstrong
2024-07-24 15:03   ` Mattijs Korpershoek
2024-07-24 15:40     ` Neil Armstrong
2024-07-19 13:56 ` [PATCH 2/3] usb: dwc3: fix dcache flush range calculation Neil Armstrong
2024-07-24 15:19   ` Mattijs Korpershoek
2024-07-19 13:56 ` [PATCH 3/3] usb: dwc3: invalidate dcache on buffer used in interrupt handling Neil Armstrong
2024-07-24 15:20   ` Mattijs Korpershoek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.