[PATCH v1] drivers: ddr: altera: iossm_mailbox: widen MEM_TOTAL_CAPACITY mask
Chee, Tien Fong
tienfong.chee at altera.com
Tue Feb 10 08:36:38 CET 2026
On 9/2/2026 10:07 am, Chen Huei Lok wrote:
> From: Naresh Kumar Ravulapalli<nareshkumar.ravulapalli at altera.com>
>
> The previous mask for MEM_TOTAL_CAPACITY_INTF was limited to 8 bits,
> which could truncate DDR size values on larger-memory systems.
>
> Update INTF_CAPACITY_GBITS_MASK to 32 bits to correctly represent
> the full capacity field according to the hardware specification.
>
> Signed-off-by: Naresh Kumar Ravulapalli<nareshkumar.ravulapalli at altera.com>
> Signed-off-by: Chen Huei Lok<chen.huei.lok at altera.com>
> ---
> drivers/ddr/altera/iossm_mailbox.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/ddr/altera/iossm_mailbox.c b/drivers/ddr/altera/iossm_mailbox.c
> index 2a2f86a650e..3156cb9d4b6 100644
> --- a/drivers/ddr/altera/iossm_mailbox.c
> +++ b/drivers/ddr/altera/iossm_mailbox.c
> @@ -86,7 +86,7 @@
> #define INTF_DDR_TYPE_MASK GENMASK(2, 0)
>
> /* offset info of MEM_TOTAL_CAPACITY_INTF */
> -#define INTF_CAPACITY_GBITS_MASK GENMASK(7, 0)
> +#define INTF_CAPACITY_GBITS_MASK GENMASK(31, 0)
>
> /* offset info of ECC_ENABLE_INTF */
> #define INTF_ECC_ENABLE_TYPE_MASK GENMASK(1, 0)
Reviewed-by: Tien Fong Chee <tien.fong.chee at altera.com> Best regards,
Tien Fong
More information about the U-Boot
mailing list