arch: arm: socfpga: Fix data cache flush issue
Subsystems (3)
PATCH 1/1 arch: arm: socfpga: Fix data cache flush issue
From: Naresh Kumar Ravulapalli <[email protected]>
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.
--- arch/arm/mach-socfpga/smc_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-socfpga/smc_api.c +2 -2
@@ -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 ; }
Signature · 1 line
2.43.7
Quoted 41 lines
From: Ng, Boon Khai <[email protected]>
Sent: Wednesday, February 25, 2026 4:55 PM
To: U-boot Openlist <[email protected]>
Cc: Alif Zakuan Yuslaimi <[email protected]>; Ng, Boon Khai <[email protected]>; Rao, Mahesh <[email protected]>; Marek Vasut <[email protected]>; Naresh Kumar Ravulapalli <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>; Tom Rini <[email protected]>; Maniyam, Dinesh <[email protected]>; Yuslaimi, Alif Zakuan <[email protected]>; Lok, Chen Huei <[email protected]>; Hea, Kok Kiang <[email protected]>
Subject: [PATCH v1] arch: arm: socfpga: Fix data cache flush issue
From: Naresh Kumar Ravulapalli <[email protected]> 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 <[email protected]>Signed-off-by Boon Khai Ng <[email protected]>---
arch/arm/mach-socfpga/smc_api.c | 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/mach-socfpga/smc_api.c +2
-2@@ -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;
Quoted 3 lines
}
--
2.43.7
Best regards,
Tien Fong