[PATCH v1] arch: arm: socfpga: Fix data cache flush issue
Chee, Tien Fong
tien.fong.chee at altera.com
Tue Apr 14 09:17:22 CEST 2026
> From: Ng, Boon Khai <boon.khai.ng at altera.com>
> Sent: Wednesday, February 25, 2026 4:55 PM
> To: U-boot Openlist <u-boot at lists.denx.de>
> Cc: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi at intel.com>; Ng, Boon Khai
> <boon.khai.ng at altera.com>; Rao, Mahesh <mahesh.rao at altera.com>; Marek Vasut
> <marex at denx.de>; Naresh Kumar Ravulapalli
> <nareshkumar.ravulapalli at altera.com>; Simon Goldschmidt
> <simon.k.r.goldschmidt at gmail.com>; Chee, Tien Fong
> <tien.fong.chee at altera.com>; Tom Rini <trini at konsulko.com>; Maniyam, Dinesh
> <dinesh.maniyam at altera.com>; Yuslaimi, Alif Zakuan
> <alif.zakuan.yuslaimi at altera.com>; Lok, Chen Huei <chen.huei.lok at altera.com>;
> Hea, Kok Kiang <kok.kiang.hea at altera.com>
> Subject: [PATCH v1] arch: arm: socfpga: Fix data cache flush issue
> From: Naresh Kumar Ravulapalli <nareshkumar.ravulapalli at altera.com>
> During flushing of data cache operation, the stop address
> was modified incorrectly. This led to Linux certificate
> authentication failure during VAB flow. So, addressing
> this cache issue with this patch.
> Signed-off-by: Naresh Kumar Ravulapalli <nareshkumar.ravulapalli at altera.com>
> Signed-off-by: Boon Khai Ng <boon.khai.ng at altera.com>
> ---
> arch/arm/mach-socfpga/smc_api.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
> diff --git a/arch/arm/mach-socfpga/smc_api.c b/arch/arm/mach-socfpga/smc_api.c
> index a531030f5be..87834e59206 100644
> --- a/arch/arm/mach-socfpga/smc_api.c
> +++ b/arch/arm/mach-socfpga/smc_api.c
> @@ -44,11 +44,11 @@ int smc_send_mailbox(u32 cmd, u32 len, u32 *arg, u8
> urgent, u32 *resp_buf_len,
> args[4] = (u64)resp_buf;
> if (arg && len > 0)
> - flush_dcache_range((uintptr_t)arg, (uintptr_t)arg + len);
> + flush_dcache_range((uintptr_t)arg, (uintptr_t)(arg + len));
> if (resp_buf && resp_buf_len && *resp_buf_len > 0) {
> args[5] = *resp_buf_len;
> - flush_dcache_range((uintptr_t)resp_buf, (uintptr_t)resp_buf +
> *resp_buf_len);
> + flush_dcache_range((uintptr_t)resp_buf, (uintptr_t)(resp_buf +
> *resp_buf_len));
> } else {
> args[5] = 0;
> }
> --
> 2.43.7
Reviewed-by: Tien Fong Chee <tien.fong.chee at altera.com>
Best regards,
Tien Fong
More information about the U-Boot
mailing list