Issue with ATH10K driver on sunxi platform using sdio

Felix Kaechele felix at kaechele.ca
Fri Apr 12 06:41:07 PDT 2024


Hi Lukas,

On 2024-04-11 16:17, Lukas Schmid wrote:

> The modules are loaded correctly, the module is detected and scanning 
> for networks works. However when trying to connect to a network, I get 
> the following message about an unaligned scatterlist.
> 
> ----------------------------------------------------------------------------------
> 
[...]
> [   56.217995] sunxi-mmc 1c10000.mmc: unaligned scatterlist: os 4c0 
> length 11
> [   56.218020] sunxi-mmc 1c10000.mmc: map DMA failed
[...]
> 
> ----------------------------------------------------------------------------------
> 
> Has anyone maybe got an idea as to how this could be fixed?

sunxi-mmc could implement a bounce buffer to gracefully handle these 
unaligned DMA operations. This is what other architectures do.

Here's an example from STM32: 
https://patches.linaro.org/project/linux-mmc/patch/20220328145114.334577-1-yann.gautier@foss.st.com/

Regards,
Felix



More information about the ath10k mailing list