We experience huge problems with cache handling on Qualcomm systems, and it appears the dcache handling in the UFS core is quite wrong and causes all those issues.
This serie fixes the dcache operations, and fixes a big data write corruption due to a wrong data end address calculation. Signed-off-by: Neil Armstrong <neil.armstr...@linaro.org> --- Neil Armstrong (4): ufs: allocate descriptors with size aligned with DMA_MINALIGN ufs: fix dcache flush and invalidate range calculation ufs: split flush and invalidate to only invalidate when required ufs: use dcache helpers for scsi_cmd data and only invalidate if necessary drivers/ufs/ufs.c | 74 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 44 insertions(+), 30 deletions(-) --- base-commit: 3f772959501c99fbe5aa0b22a36efe3478d1ae1c change-id: 20240719-u-boot-ufs-dcache-fixup-d9a980a97835 Best regards, -- Neil Armstrong <neil.armstr...@linaro.org>