[PATCH v3 0/2] Fix dma_addr_t for R5 SPL

Tom Rini trini at konsulko.com
Thu Sep 11 19:12:31 CEST 2025


On Wed, 03 Sep 2025 17:22:04 +0530, Anshul Dalal wrote:

> On various TI's K3 platforms boot failure was observed on SPI NOR since the
> commit 5609f200d062 ("arm: Kconfig: enable LTO for ARCH_K3"). This issue was
> root caused to stack corruption by the 'udma_transfer' function. Where the local
> variable 'paddr' of type 'dma_addr_t' was being written to as a 64-bit value
> which overwrote the stack frame of the caller (dma_memcpy) as only 32-bits had
> been reserved for paddr on the stack, specifically the r4 register in the frame
> of dma_memcpy was being overwritten with a 0.
> 
> [...]

Applied to u-boot/master, thanks!

[1/2] dma: ti: k3-udma: fix dma_addr_t typecasts
      commit: e9e55fefb1ec3e1d2525ef69655914c17e913c4c
[2/2] config: arch: k3: enable DMA_ADDR_T_64BIT
      commit: 7bcc604ef80244ac45d8112b823ceff21af61e39
-- 
Tom




More information about the U-Boot mailing list