mbox series

[0/6] add improvements to mhi driver

Message ID 20240718061344.575653-1-quic_gokulsri@quicinc.com
Headers show
Series add improvements to mhi driver | expand

Message

Gokul Sriram Palanisamy July 18, 2024, 6:13 a.m. UTC
The below patches address
- memory fragmentation issues: when several iterations of mhi controller
  register/unregister happens. In our case, we have a PCIe WiFi device for
  which fw is loaded everytime when 'wifi load' happens. For this, we need
  to allocate 9MiB of coherent memory with 512K segment size. After several
  iterations, when the memory gets fragmented and 512K segment becomes
  unavailable causing alloc failure.
  
- debug requirements by printing critical mhi debug registers
- bug fixes to mhi_irq_handler
- RDDM timeout issue
- memory carveout for RDDM segments.

Gokul Sriram Palanisamy (2):
  drivers: bus: mhi: Added shared-dma-pool support for mhi_dev
  bus: mhi: dump debug registers in critical sections

Karthick Shanmugham (1):
  bus: mhi: change IRQ_HANDLED to IRQ_NONE in mhi_irq_handler

Praveenkumar I (1):
  bus: mhi: increase RDDM timeout

Rajkumar Ayyasamy (1):
  bus: mhi: check for RDDM cookie set by device to indicate readiness

Ram Kumar D (1):
  bus: mhi: add support to allocate rddm memory during crash time

 drivers/bus/mhi/host/boot.c     | 209 ++++++++++++++++++++++++--------
 drivers/bus/mhi/host/init.c     |  70 ++++++++++-
 drivers/bus/mhi/host/internal.h |  37 +++++-
 drivers/bus/mhi/host/main.c     | 115 +++++++++++++++++-
 drivers/bus/mhi/host/pm.c       |   6 +-
 include/linux/mhi.h             |  20 +++
 6 files changed, 397 insertions(+), 60 deletions(-)