]> git.ipfire.org Git - thirdparty/u-boot.git/commit
config: arch: k3: enable DMA_ADDR_T_64BIT
authorAnshul Dalal <anshuld@ti.com>
Wed, 3 Sep 2025 11:52:06 +0000 (17:22 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 11 Sep 2025 16:03:02 +0000 (10:03 -0600)
commit7bcc604ef80244ac45d8112b823ceff21af61e39
tree937449289e2d7b79595349e2035050fa0f513ff4
parente9e55fefb1ec3e1d2525ef69655914c17e913c4c
config: arch: k3: enable DMA_ADDR_T_64BIT

ARCH_K3 encompasses both 32 and 64-bit cores on the same SoC, though the
DMA addresses are always 64-bit in size.

With the current implementation, the R5 SPL uses a u32 for dma_addr_t
which leads to data overflow when functions such as k3_nav_*_pop_mem try
to write a 64-bit address to dma_addr_t variable.

In certain cases it leads to stack corruption which manifest as boot
failures on certain compilers, such as SPI boot on GCC 14.2 or 13.3.

Therefore this patch selects CONFIG_DMA_ADDR_T_64BIT for all ARCH_K3.

Fixes: ffcc66e8fec5 ("dma: ti: add driver to K3 UDMA")
Signed-off-by: Anshul Dalal <anshuld@ti.com>
Reviewed-by: Prasanth Babu Mantena <p-mantena@ti.com>
arch/arm/Kconfig