Re: [PATCH] i2c: at91: use dma safe buffers

From: Michael Walle
Date: Mon Mar 28 2022 - 03:35:42 EST


Hi all,

Am 2022-03-03 17:17, schrieb Michael Walle:
The supplied buffer might be on the stack and we get the following error
message:
[ 3.312058] at91_i2c e0070600.i2c: rejecting DMA map of vmalloc memory

Use i2c_{get,put}_dma_safe_msg_buf() to get a DMA-able memory region if
necessary.

Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Michael Walle <michael@xxxxxxxx>

Any news here?

---

I'm not sure if or which Fixes: tag I should add to this patch. The issue
seems to be since a very long time, but nobody seem to have triggered it.
FWIW, I'm using the sff,sfp driver, which triggers this.

-michael