* [PATCH] crypto: qce: Provide dev_err_probe() status on DMA failure
@ 2025-10-24 21:35 Bjorn Andersson
2025-10-26 19:11 ` Abel Vesa
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Bjorn Andersson @ 2025-10-24 21:35 UTC (permalink / raw)
To: Thara Gopinath, Herbert Xu, David S. Miller
Cc: linux-crypto, linux-arm-msm, linux-kernel, Bjorn Andersson
On multiple occasions the qce device have shown up in devices_deferred,
without the explanation that this came from the failure to acquire the
DMA channels from the associated BAM.
Use dev_err_probe() to associate this context with the failure to faster
pinpoint the culprit when this happens in the future.
Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
---
drivers/crypto/qce/dma.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/qce/dma.c b/drivers/crypto/qce/dma.c
index 1dec7aea852d..68cafd4741ad 100644
--- a/drivers/crypto/qce/dma.c
+++ b/drivers/crypto/qce/dma.c
@@ -24,11 +24,13 @@ int devm_qce_dma_request(struct device *dev, struct qce_dma_data *dma)
dma->txchan = dma_request_chan(dev, "tx");
if (IS_ERR(dma->txchan))
- return PTR_ERR(dma->txchan);
+ return dev_err_probe(dev, PTR_ERR(dma->txchan),
+ "Failed to get TX DMA channel\n");
dma->rxchan = dma_request_chan(dev, "rx");
if (IS_ERR(dma->rxchan)) {
- ret = PTR_ERR(dma->rxchan);
+ ret = dev_err_probe(dev, PTR_ERR(dma->rxchan),
+ "Failed to get RX DMA channel\n");
goto error_rx;
}
---
base-commit: 72fb0170ef1f45addf726319c52a0562b6913707
change-id: 20251024-qce-dma-err-probe-a7609d65bac6
Best regards,
--
Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] crypto: qce: Provide dev_err_probe() status on DMA failure
2025-10-24 21:35 [PATCH] crypto: qce: Provide dev_err_probe() status on DMA failure Bjorn Andersson
@ 2025-10-26 19:11 ` Abel Vesa
2025-10-26 20:16 ` David Heidelberg
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Abel Vesa @ 2025-10-26 19:11 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Thara Gopinath, Herbert Xu, David S. Miller, linux-crypto,
linux-arm-msm, linux-kernel
On 25-10-24 14:35:07, Bjorn Andersson wrote:
> On multiple occasions the qce device have shown up in devices_deferred,
> without the explanation that this came from the failure to acquire the
> DMA channels from the associated BAM.
>
> Use dev_err_probe() to associate this context with the failure to faster
> pinpoint the culprit when this happens in the future.
>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] crypto: qce: Provide dev_err_probe() status on DMA failure
2025-10-24 21:35 [PATCH] crypto: qce: Provide dev_err_probe() status on DMA failure Bjorn Andersson
2025-10-26 19:11 ` Abel Vesa
@ 2025-10-26 20:16 ` David Heidelberg
2025-10-27 8:27 ` Konrad Dybcio
2025-10-31 9:51 ` Herbert Xu
3 siblings, 0 replies; 5+ messages in thread
From: David Heidelberg @ 2025-10-26 20:16 UTC (permalink / raw)
To: Bjorn Andersson, Thara Gopinath, Herbert Xu, David S. Miller
Cc: linux-crypto, linux-arm-msm, linux-kernel
On 24/10/2025 23:35, Bjorn Andersson wrote:
> On multiple occasions the qce device have shown up in devices_deferred,
> without the explanation that this came from the failure to acquire the
> DMA channels from the associated BAM.
>
> Use dev_err_probe() to associate this context with the failure to faster
> pinpoint the culprit when this happens in the future.
>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Reviewed-by: David Heidelberg <david@ixit.cz>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] crypto: qce: Provide dev_err_probe() status on DMA failure
2025-10-24 21:35 [PATCH] crypto: qce: Provide dev_err_probe() status on DMA failure Bjorn Andersson
2025-10-26 19:11 ` Abel Vesa
2025-10-26 20:16 ` David Heidelberg
@ 2025-10-27 8:27 ` Konrad Dybcio
2025-10-31 9:51 ` Herbert Xu
3 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2025-10-27 8:27 UTC (permalink / raw)
To: Bjorn Andersson, Thara Gopinath, Herbert Xu, David S. Miller
Cc: linux-crypto, linux-arm-msm, linux-kernel
On 10/24/25 11:35 PM, Bjorn Andersson wrote:
> On multiple occasions the qce device have shown up in devices_deferred,
> without the explanation that this came from the failure to acquire the
> DMA channels from the associated BAM.
>
> Use dev_err_probe() to associate this context with the failure to faster
> pinpoint the culprit when this happens in the future.
>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] crypto: qce: Provide dev_err_probe() status on DMA failure
2025-10-24 21:35 [PATCH] crypto: qce: Provide dev_err_probe() status on DMA failure Bjorn Andersson
` (2 preceding siblings ...)
2025-10-27 8:27 ` Konrad Dybcio
@ 2025-10-31 9:51 ` Herbert Xu
3 siblings, 0 replies; 5+ messages in thread
From: Herbert Xu @ 2025-10-31 9:51 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Thara Gopinath, David S. Miller, linux-crypto, linux-arm-msm,
linux-kernel
On Fri, Oct 24, 2025 at 02:35:07PM -0700, Bjorn Andersson wrote:
> On multiple occasions the qce device have shown up in devices_deferred,
> without the explanation that this came from the failure to acquire the
> DMA channels from the associated BAM.
>
> Use dev_err_probe() to associate this context with the failure to faster
> pinpoint the culprit when this happens in the future.
>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
> ---
> drivers/crypto/qce/dma.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-10-31 9:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-24 21:35 [PATCH] crypto: qce: Provide dev_err_probe() status on DMA failure Bjorn Andersson
2025-10-26 19:11 ` Abel Vesa
2025-10-26 20:16 ` David Heidelberg
2025-10-27 8:27 ` Konrad Dybcio
2025-10-31 9:51 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®