
Dear Marek,
In message 201510121529.45730.marex@denx.de you wrote:
That is bad bad bad, that's even nastier. We really need to fix the drivers, not paper over it in the cache ops.
Full ACK here.
To solve problem like this, the only solution is to enforce the rule to allocate DMA buffer. It is wrong to skip the flush.
I absolutelly agree we need aligned allocations for DMA memory areas. But, we also shouldn't hide bugs. And I believe aligning the incorrect arguments to cache functions is not the way to go. We should check the arguments and if someone tries an unaligned cache op, we should scream. What do you think?
Again, full ACK.
We should make sure we get clear, unmistakable error messages for such bugs, and not silent non-deterministic behaviour.
Best regards,
Wolfgang Denk