[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bee82ccd-9cd6-295f-839d-b17228212bc4@amd.com>
Date: Wed, 24 Sep 2025 09:47:45 -0700
From: Lizhi Hou <lizhi.hou@....com>
To: Alexander Stein <alexander.stein@...tq-group.com>, Brian Xu
<brian.xu@....com>, Raj Kumar Rampelli <raj.kumar.rampelli@....com>, "Vinod
Koul" <vkoul@...nel.org>, Michal Simek <michal.simek@....com>, Sonal Santan
<sonal.santan@....com>, Max Zhen <max.zhen@....com>
CC: <dmaengine@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/1] dmaengine: xilinx: xdma: Fix regmap's max_register
There is a patch for this.
https://lore.kernel.org/dmaengine/20250903-xdma-max-reg-v4-1-894721175025@amarulasolutions.com/
Thanks,
Lizhi
On 9/24/25 05:59, Alexander Stein wrote:
> max_register specifies the last valid register address. As the BAR is only
> 64kiB in size, 65536 aka 0x10000 is too big. Restrict the XDMA register
> space to be actually 64kiB.
>
> Fixes: 17ce252266c7 ("dmaengine: xilinx: xdma: Add xilinx xdma driver")
> Signed-off-by: Alexander Stein <alexander.stein@...tq-group.com>
> ---
> drivers/dma/xilinx/xdma-regs.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/dma/xilinx/xdma-regs.h b/drivers/dma/xilinx/xdma-regs.h
> index 6ad08878e9386..c6ef198ef7627 100644
> --- a/drivers/dma/xilinx/xdma-regs.h
> +++ b/drivers/dma/xilinx/xdma-regs.h
> @@ -8,7 +8,7 @@
> #define __DMA_XDMA_REGS_H
>
> /* The length of register space exposed to host */
> -#define XDMA_REG_SPACE_LEN 65536
> +#define XDMA_REG_SPACE_LEN 0xffff
>
> /*
> * maximum number of DMA channels for each direction:
Powered by blists - more mailing lists