Fix error handling and cleanup issues in the Arm Ethos-U driver.

Sashiko reported the original probe, SRAM, and fence cleanup issues while
reviewing the Ethos-U MMIO mapping fix. A follow-up review of v1 found two
more lifecycle issues in scheduler initialization and IRQ teardown, along
with an unchecked DMA mask setup error.

The first two patches handle DMA mask setup and order scheduler and IRQ
lifetimes. The remaining patches unwind probe state, propagate SRAM setup
errors, and fix completion fence ownership.

The reports are available at:

https://sashiko.dev/#/patchset/[email protected]?part=1
https://sashiko.dev/#/patchset/[email protected]?part=1

---
Changes in v2:
- Add DMA mask error handling.
- Initialize the scheduler before requesting the IRQ and release the IRQ
  before scheduler teardown.
- Disable clocks directly on probe failure when runtime PM is unavailable.
- Move the former v1 patches 1/3, 2/3, and 3/3 to patches 3/5, 4/5, and
  5/5, respectively.
- Rebase on the current drm-misc-fixes branch.

v1: https://lore.kernel.org/all/[email protected]/

GuoHan Zhao (5):
  accel/ethosu: check DMA mask setup
  accel/ethosu: fix scheduler and IRQ lifetime
  accel/ethosu: clean up resources on probe failure
  accel/ethosu: propagate SRAM initialization errors
  accel/ethosu: fix job completion fence cleanup

 drivers/accel/ethosu/ethosu_drv.c | 52 ++++++++++++++++++++++++++-----
 drivers/accel/ethosu/ethosu_job.c | 25 +++++++++------
 2 files changed, 60 insertions(+), 17 deletions(-)

-- 
2.43.0

Reply via email to