[PATCH v2 0/2] dmaengine: qcom: bam_dma: Fixes for unbind
From: Mostafa Saleh
Date: Fri Oct 23 2026 - 06:16:47 EST
On Lenovo Mini-x Gen 10 (X1P42100 based) I am using VFIO-platform
to assign the QCE/BAM to VMs.
During unbind:
echo 1dc4000.dma-controller > /sys/bus/platform/drivers/bam-dma-engine/unbind
echo 1dfa000.crypto > /sys/bus/platform/drivers/qcrypto/unbind
I see a system reset quite often, looking more into this,
that seems to be related to runtime PM, with those fixes I don't
see that anymore.
This patches apply on linux-next.
Changes in v2:
v1: https://lore.kernel.org/all/20261020180804.140766-1-smostafa@xxxxxxxxxx/
- Collect Frank Rb
- Drop call to pm_runtime_dont_use_autosuspend()
Mostafa Saleh (2):
dmaengine: qcom: bam_dma: Take a PM ref at remove()
dmaengine: qcom: bam_dma: Do not touch remote BAM in remove()
drivers/dma/qcom/bam_dma.c | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
base-commit: bd1ecbb61afefc6a8b876ccbc31e9228b44e9eab
--
2.56.0.307.g5fe7bd680c-goog