mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] dmaengine: qcom: gpi: set DMA_PRIVATE capability
@ 2026-06-02  7:03 Icenowy Zheng
  2026-06-08  7:20 ` Dmitry Baryshkov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Icenowy Zheng @ 2026-06-02  7:03 UTC (permalink / raw)
  To: Vinod Koul, Frank Li, Kees Cook, Krzysztof Kozlowski,
	Jyothi Kumar Seerapu, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, dmaengine, linux-kernel, Icenowy Zheng

The GPI DMA controller is only responsible for QUP peripherals, and
cannot work as a general-purpose DMA accelerator.

Set DMA_PRIVATE capability for it.

This fixes error messages about GPI being shown when an async-tx
consumer is loaded.

Fixes: 5d0c3533a19f ("dmaengine: qcom: Add GPI dma driver")
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
---
 drivers/dma/qcom/gpi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/dma/qcom/gpi.c b/drivers/dma/qcom/gpi.c
index c9a6f610ffd9f..a5055a6273af6 100644
--- a/drivers/dma/qcom/gpi.c
+++ b/drivers/dma/qcom/gpi.c
@@ -2260,6 +2260,7 @@ static int gpi_probe(struct platform_device *pdev)
 	/* clear and Set capabilities */
 	dma_cap_zero(gpi_dev->dma_device.cap_mask);
 	dma_cap_set(DMA_SLAVE, gpi_dev->dma_device.cap_mask);
+	dma_cap_set(DMA_PRIVATE, gpi_dev->dma_device.cap_mask);
 
 	/* configure dmaengine apis */
 	gpi_dev->dma_device.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
-- 
2.52.0


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

* Re: [PATCH] dmaengine: qcom: gpi: set DMA_PRIVATE capability
  2026-06-02  7:03 [PATCH] dmaengine: qcom: gpi: set DMA_PRIVATE capability Icenowy Zheng
@ 2026-06-08  7:20 ` Dmitry Baryshkov
  2026-06-08  9:25 ` Konrad Dybcio
  2026-06-08 12:13 ` Vinod Koul
  2 siblings, 0 replies; 4+ messages in thread
From: Dmitry Baryshkov @ 2026-06-08  7:20 UTC (permalink / raw)
  To: Icenowy Zheng
  Cc: Vinod Koul, Frank Li, Kees Cook, Krzysztof Kozlowski,
	Jyothi Kumar Seerapu, Bjorn Andersson, Konrad Dybcio,
	linux-arm-msm, dmaengine, linux-kernel

On Tue, Jun 02, 2026 at 03:03:44PM +0800, Icenowy Zheng wrote:
> The GPI DMA controller is only responsible for QUP peripherals, and
> cannot work as a general-purpose DMA accelerator.
> 
> Set DMA_PRIVATE capability for it.
> 
> This fixes error messages about GPI being shown when an async-tx
> consumer is loaded.
> 
> Fixes: 5d0c3533a19f ("dmaengine: qcom: Add GPI dma driver")
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> ---
>  drivers/dma/qcom/gpi.c | 1 +
>  1 file changed, 1 insertion(+)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>


-- 
With best wishes
Dmitry

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

* Re: [PATCH] dmaengine: qcom: gpi: set DMA_PRIVATE capability
  2026-06-02  7:03 [PATCH] dmaengine: qcom: gpi: set DMA_PRIVATE capability Icenowy Zheng
  2026-06-08  7:20 ` Dmitry Baryshkov
@ 2026-06-08  9:25 ` Konrad Dybcio
  2026-06-08 12:13 ` Vinod Koul
  2 siblings, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2026-06-08  9:25 UTC (permalink / raw)
  To: Icenowy Zheng, Vinod Koul, Frank Li, Kees Cook,
	Krzysztof Kozlowski, Jyothi Kumar Seerapu, Bjorn Andersson,
	Konrad Dybcio
  Cc: linux-arm-msm, dmaengine, linux-kernel

On 6/2/26 9:03 AM, Icenowy Zheng wrote:
> The GPI DMA controller is only responsible for QUP peripherals, and
> cannot work as a general-purpose DMA accelerator.
> 
> Set DMA_PRIVATE capability for it.
> 
> This fixes error messages about GPI being shown when an async-tx
> consumer is loaded.
> 
> Fixes: 5d0c3533a19f ("dmaengine: qcom: Add GPI dma driver")
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> ---

Acked-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

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

* Re: [PATCH] dmaengine: qcom: gpi: set DMA_PRIVATE capability
  2026-06-02  7:03 [PATCH] dmaengine: qcom: gpi: set DMA_PRIVATE capability Icenowy Zheng
  2026-06-08  7:20 ` Dmitry Baryshkov
  2026-06-08  9:25 ` Konrad Dybcio
@ 2026-06-08 12:13 ` Vinod Koul
  2 siblings, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2026-06-08 12:13 UTC (permalink / raw)
  To: Frank Li, Kees Cook, Krzysztof Kozlowski, Jyothi Kumar Seerapu,
	Bjorn Andersson, Konrad Dybcio, Icenowy Zheng
  Cc: linux-arm-msm, dmaengine, linux-kernel


On Tue, 02 Jun 2026 15:03:44 +0800, Icenowy Zheng wrote:
> The GPI DMA controller is only responsible for QUP peripherals, and
> cannot work as a general-purpose DMA accelerator.
> 
> Set DMA_PRIVATE capability for it.
> 
> This fixes error messages about GPI being shown when an async-tx
> consumer is loaded.
> 
> [...]

Applied, thanks!

[1/1] dmaengine: qcom: gpi: set DMA_PRIVATE capability
      commit: 4e351f408743354d54ee1af5193fc78234f2044e

Best regards,
-- 
~Vinod



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

end of thread, other threads:[~2026-06-08 12:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-02  7:03 [PATCH] dmaengine: qcom: gpi: set DMA_PRIVATE capability Icenowy Zheng
2026-06-08  7:20 ` Dmitry Baryshkov
2026-06-08  9:25 ` Konrad Dybcio
2026-06-08 12:13 ` Vinod Koul

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®