* [PATCH] fpga: versal: Add support for 44-bit DMA operations
@ 2023-10-03 7:14 Nava kishore Manne
2023-10-06 2:54 ` Pandey, Radhey Shyam
2023-10-07 7:16 ` Xu Yilun
0 siblings, 2 replies; 5+ messages in thread
From: Nava kishore Manne @ 2023-10-03 7:14 UTC (permalink / raw)
To: mdf, hao.wu, yilun.xu, trix, linux-fpga, linux-kernel; +Cc: Radhey Shyam Pandey
The existing implementation support only 32-bit DMA operation.
So, it fails to load the bitstream for the high DDR designs(Beyond 4GB).
To fix this issue update the DMA mask handling logic to support 44-bit
DMA operations.
Signed-off-by: Nava kishore Manne <nava.kishore.manne@amd.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
---
drivers/fpga/versal-fpga.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/fpga/versal-fpga.c b/drivers/fpga/versal-fpga.c
index e1601b3a345b..3710e8f01be2 100644
--- a/drivers/fpga/versal-fpga.c
+++ b/drivers/fpga/versal-fpga.c
@@ -48,7 +48,7 @@ static int versal_fpga_probe(struct platform_device *pdev)
struct fpga_manager *mgr;
int ret;
- ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
+ ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(44));
if (ret < 0) {
dev_err(dev, "no usable DMA configuration\n");
return ret;
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* RE: [PATCH] fpga: versal: Add support for 44-bit DMA operations
2023-10-03 7:14 [PATCH] fpga: versal: Add support for 44-bit DMA operations Nava kishore Manne
@ 2023-10-06 2:54 ` Pandey, Radhey Shyam
2023-10-07 7:16 ` Xu Yilun
1 sibling, 0 replies; 5+ messages in thread
From: Pandey, Radhey Shyam @ 2023-10-06 2:54 UTC (permalink / raw)
To: Manne, Nava kishore, mdf@kernel.org, hao.wu@intel.com,
yilun.xu@intel.com, trix@redhat.com, linux-fpga@vger.kernel.org,
linux-kernel@vger.kernel.org, Simek, Michal
> -----Original Message-----
> From: Manne, Nava kishore <nava.kishore.manne@amd.com>
> Sent: Tuesday, October 3, 2023 12:44 PM
> To: mdf@kernel.org; hao.wu@intel.com; yilun.xu@intel.com;
> trix@redhat.com; linux-fpga@vger.kernel.org; linux-kernel@vger.kernel.org
> Cc: Pandey, Radhey Shyam <radhey.shyam.pandey@amd.com>
> Subject: [PATCH] fpga: versal: Add support for 44-bit DMA operations
>
> The existing implementation support only 32-bit DMA operation.
> So, it fails to load the bitstream for the high DDR designs(Beyond 4GB).
> To fix this issue update the DMA mask handling logic to support 44-bit DMA
> operations.
>
> Signed-off-by: Nava kishore Manne <nava.kishore.manne@amd.com>
> Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
As I reviewed it on internal list - adding my reviewed tag here as well.
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Thanks!
> ---
> drivers/fpga/versal-fpga.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/fpga/versal-fpga.c b/drivers/fpga/versal-fpga.c index
> e1601b3a345b..3710e8f01be2 100644
> --- a/drivers/fpga/versal-fpga.c
> +++ b/drivers/fpga/versal-fpga.c
> @@ -48,7 +48,7 @@ static int versal_fpga_probe(struct platform_device
> *pdev)
> struct fpga_manager *mgr;
> int ret;
>
> - ret = dma_set_mask_and_coherent(&pdev->dev,
> DMA_BIT_MASK(32));
> + ret = dma_set_mask_and_coherent(&pdev->dev,
> DMA_BIT_MASK(44));
> if (ret < 0) {
> dev_err(dev, "no usable DMA configuration\n");
> return ret;
> --
> 2.25.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] fpga: versal: Add support for 44-bit DMA operations
2023-10-03 7:14 [PATCH] fpga: versal: Add support for 44-bit DMA operations Nava kishore Manne
2023-10-06 2:54 ` Pandey, Radhey Shyam
@ 2023-10-07 7:16 ` Xu Yilun
2023-10-10 5:37 ` Manne, Nava kishore
1 sibling, 1 reply; 5+ messages in thread
From: Xu Yilun @ 2023-10-07 7:16 UTC (permalink / raw)
To: Nava kishore Manne
Cc: mdf, hao.wu, yilun.xu, trix, linux-fpga, linux-kernel,
Radhey Shyam Pandey
On Tue, Oct 03, 2023 at 12:44:09PM +0530, Nava kishore Manne wrote:
> The existing implementation support only 32-bit DMA operation.
> So, it fails to load the bitstream for the high DDR designs(Beyond 4GB).
> To fix this issue update the DMA mask handling logic to support 44-bit
This is the HW defined DMA addressing capability. Does the device
only support up to 44 bits DMA? Any Doc?
Thanks,
Yilun
> DMA operations.
>
> Signed-off-by: Nava kishore Manne <nava.kishore.manne@amd.com>
> Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
> ---
> drivers/fpga/versal-fpga.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/fpga/versal-fpga.c b/drivers/fpga/versal-fpga.c
> index e1601b3a345b..3710e8f01be2 100644
> --- a/drivers/fpga/versal-fpga.c
> +++ b/drivers/fpga/versal-fpga.c
> @@ -48,7 +48,7 @@ static int versal_fpga_probe(struct platform_device *pdev)
> struct fpga_manager *mgr;
> int ret;
>
> - ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
> + ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(44));
> if (ret < 0) {
> dev_err(dev, "no usable DMA configuration\n");
> return ret;
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] fpga: versal: Add support for 44-bit DMA operations
2023-10-07 7:16 ` Xu Yilun
@ 2023-10-10 5:37 ` Manne, Nava kishore
2023-10-12 5:09 ` Xu Yilun
0 siblings, 1 reply; 5+ messages in thread
From: Manne, Nava kishore @ 2023-10-10 5:37 UTC (permalink / raw)
To: Xu Yilun
Cc: mdf@kernel.org, hao.wu@intel.com, yilun.xu@intel.com,
trix@redhat.com, linux-fpga@vger.kernel.org,
linux-kernel@vger.kernel.org, Pandey, Radhey Shyam
Hi Yilun,
Thanks for providing the review comments.
Please find my response inline.
> -----Original Message-----
> From: Xu Yilun <yilun.xu@linux.intel.com>
> Sent: Saturday, October 7, 2023 12:47 PM
> To: Manne, Nava kishore <nava.kishore.manne@amd.com>
> Cc: mdf@kernel.org; hao.wu@intel.com; yilun.xu@intel.com;
> trix@redhat.com; linux-fpga@vger.kernel.org; linux-kernel@vger.kernel.org;
> Pandey, Radhey Shyam <radhey.shyam.pandey@amd.com>
> Subject: Re: [PATCH] fpga: versal: Add support for 44-bit DMA operations
>
> On Tue, Oct 03, 2023 at 12:44:09PM +0530, Nava kishore Manne wrote:
> > The existing implementation support only 32-bit DMA operation.
> > So, it fails to load the bitstream for the high DDR designs(Beyond 4GB).
> > To fix this issue update the DMA mask handling logic to support 44-bit
>
> This is the HW defined DMA addressing capability. Does the device only
> support up to 44 bits DMA? Any Doc?
>
The versal platform supports a maximum physical address size is 44-bit in AArch64.
For more details, please refer the Versal TRM (Memory space- section):
https://docs.xilinx.com/r/en-US/am011-versal-acap-trm/Memory-Space
Regards,
Navakishore.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] fpga: versal: Add support for 44-bit DMA operations
2023-10-10 5:37 ` Manne, Nava kishore
@ 2023-10-12 5:09 ` Xu Yilun
0 siblings, 0 replies; 5+ messages in thread
From: Xu Yilun @ 2023-10-12 5:09 UTC (permalink / raw)
To: Manne, Nava kishore
Cc: mdf@kernel.org, hao.wu@intel.com, yilun.xu@intel.com,
trix@redhat.com, linux-fpga@vger.kernel.org,
linux-kernel@vger.kernel.org, Pandey, Radhey Shyam
On Tue, Oct 10, 2023 at 05:37:43AM +0000, Manne, Nava kishore wrote:
> Hi Yilun,
>
> Thanks for providing the review comments.
> Please find my response inline.
>
> > -----Original Message-----
> > From: Xu Yilun <yilun.xu@linux.intel.com>
> > Sent: Saturday, October 7, 2023 12:47 PM
> > To: Manne, Nava kishore <nava.kishore.manne@amd.com>
> > Cc: mdf@kernel.org; hao.wu@intel.com; yilun.xu@intel.com;
> > trix@redhat.com; linux-fpga@vger.kernel.org; linux-kernel@vger.kernel.org;
> > Pandey, Radhey Shyam <radhey.shyam.pandey@amd.com>
> > Subject: Re: [PATCH] fpga: versal: Add support for 44-bit DMA operations
> >
> > On Tue, Oct 03, 2023 at 12:44:09PM +0530, Nava kishore Manne wrote:
> > > The existing implementation support only 32-bit DMA operation.
> > > So, it fails to load the bitstream for the high DDR designs(Beyond 4GB).
> > > To fix this issue update the DMA mask handling logic to support 44-bit
> >
> > This is the HW defined DMA addressing capability. Does the device only
> > support up to 44 bits DMA? Any Doc?
> >
> The versal platform supports a maximum physical address size is 44-bit in AArch64.
> For more details, please refer the Versal TRM (Memory space- section):
> https://docs.xilinx.com/r/en-US/am011-versal-acap-trm/Memory-Space
Acked-by: Xu Yilun <yilun.xu@intel.com>
Applied.
>
> Regards,
> Navakishore.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-10-12 5:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-03 7:14 [PATCH] fpga: versal: Add support for 44-bit DMA operations Nava kishore Manne
2023-10-06 2:54 ` Pandey, Radhey Shyam
2023-10-07 7:16 ` Xu Yilun
2023-10-10 5:37 ` Manne, Nava kishore
2023-10-12 5:09 ` Xu Yilun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).