summaryrefslogtreecommitdiffstats
path: root/defaultenv/bin/update
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-04-23 08:04:35 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2024-04-23 08:26:00 +0200
commitb986aad24ab85b386b3884ccb047f011ebb9847f (patch)
tree7e0dcd0528abf4c7da2c9ad154098c505f5acf16 /defaultenv/bin/update
parented8dad10eac8c158469d6012ac0316ca4aaed0d1 (diff)
downloadbarebox-master.tar.gz
barebox-master.tar.xz
mci: core: allocate memory used for DMA with dma_allocHEADmaster
Memory allocated by normal malloc may not fulfill the alignment requirements for DMA. This fixes memory corruption observed on the i.MX8MP when the DMA-enabled eSDHC driver attempts to probe an eMMC. This issues always existed, but only after commit 65ef5d885263 ("ARM64: let 'end' point after the range in cache functions"), the whole 512 bytes were getting invalidated, which corrupted the TLSF malloc header of the block after it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240423060435.1514644-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv/bin/update')
0 files changed, 0 insertions, 0 deletions