All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH] dmaengine: dw-edma: Add HDMA NATIVE map check
@ 2025-04-29 11:30 Devendra K Verma
  2025-04-30  6:23 ` Manivannan Sadhasivam
  0 siblings, 1 reply; 2+ messages in thread
From: Devendra K Verma @ 2025-04-29 11:30 UTC (permalink / raw)
  To: devverma
  Cc: dmaengine, linux-kernel, manivannan.sadhasivam, michal.simek,
	vkoul

The HDMA IP supports the HDMA_NATIVE map format as part of Vendor-Specific
Extended Capability. Added the check for HDMA_NATIVE map format.
The check for map format enables the IP specific function invocation
during the DMA ops.

Signed-off-by: Devendra K Verma <devverma@amd.com>
---
 drivers/dma/dw-edma/dw-edma-pcie.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/dma/dw-edma/dw-edma-pcie.c b/drivers/dma/dw-edma/dw-edma-pcie.c
index 1c6043751dc9..42b2a554f7a5 100644
--- a/drivers/dma/dw-edma/dw-edma-pcie.c
+++ b/drivers/dma/dw-edma/dw-edma-pcie.c
@@ -136,7 +136,8 @@ static void dw_edma_pcie_get_vsec_dma_data(struct pci_dev *pdev,
 	map = FIELD_GET(DW_PCIE_VSEC_DMA_MAP, val);
 	if (map != EDMA_MF_EDMA_LEGACY &&
 	    map != EDMA_MF_EDMA_UNROLL &&
-	    map != EDMA_MF_HDMA_COMPAT)
+	    map != EDMA_MF_HDMA_COMPAT &&
+	    map != EDMA_MF_HDMA_NATIVE)
 		return;
 
 	pdata->mf = map;
-- 
2.43.0


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

* Re: [RESEND PATCH] dmaengine: dw-edma: Add HDMA NATIVE map check
  2025-04-29 11:30 [RESEND PATCH] dmaengine: dw-edma: Add HDMA NATIVE map check Devendra K Verma
@ 2025-04-30  6:23 ` Manivannan Sadhasivam
  0 siblings, 0 replies; 2+ messages in thread
From: Manivannan Sadhasivam @ 2025-04-30  6:23 UTC (permalink / raw)
  To: Devendra K Verma; +Cc: dmaengine, linux-kernel, michal.simek, vkoul

On Tue, Apr 29, 2025 at 05:00:48PM +0530, Devendra K Verma wrote:
> The HDMA IP supports the HDMA_NATIVE map format as part of Vendor-Specific
> Extended Capability. Added the check for HDMA_NATIVE map format.
> The check for map format enables the IP specific function invocation
> during the DMA ops.
> 

You also need to update the 'Debug info' part in dw_edma_pcie_probe().

- Mani

> Signed-off-by: Devendra K Verma <devverma@amd.com>
> ---
>  drivers/dma/dw-edma/dw-edma-pcie.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/dma/dw-edma/dw-edma-pcie.c b/drivers/dma/dw-edma/dw-edma-pcie.c
> index 1c6043751dc9..42b2a554f7a5 100644
> --- a/drivers/dma/dw-edma/dw-edma-pcie.c
> +++ b/drivers/dma/dw-edma/dw-edma-pcie.c
> @@ -136,7 +136,8 @@ static void dw_edma_pcie_get_vsec_dma_data(struct pci_dev *pdev,
>  	map = FIELD_GET(DW_PCIE_VSEC_DMA_MAP, val);
>  	if (map != EDMA_MF_EDMA_LEGACY &&
>  	    map != EDMA_MF_EDMA_UNROLL &&
> -	    map != EDMA_MF_HDMA_COMPAT)
> +	    map != EDMA_MF_HDMA_COMPAT &&
> +	    map != EDMA_MF_HDMA_NATIVE)
>  		return;
>  
>  	pdata->mf = map;
> -- 
> 2.43.0
> 

-- 
மணிவண்ணன் சதாசிவம்

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

end of thread, other threads:[~2025-04-30  6:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-29 11:30 [RESEND PATCH] dmaengine: dw-edma: Add HDMA NATIVE map check Devendra K Verma
2025-04-30  6:23 ` Manivannan Sadhasivam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.