Re: crypto: marvell/cesa - dma_alloc_coherent broken but kmalloc + dma_map_single works

Herbert Xu
2025-05-22T11:13:09Z

On Thu, May 22, 2025 at 11:01:36AM +0800, Herbert Xu wrote:
>
> I think we've made progress. All the simple hashes have passed
> and now we're only failing on hmac. So it looks it was the
> coherent memory being incoherent.

I've analysed the hmac errors and the good news is that they
all appear to be caused by a genuine bug in the driver. When
the final update is zero-length which the hardware can't handle,
the driver fallback code is broken for hmac.

I'm working on a fix.

Cheers,