Re: [PATCH 1/2] swiotlb: Rate-limit printing when running out of SW-IOMMU space

From: Sergei Shtylyov
Date: Mon Oct 31 2016 - 12:03:34 EST


On 10/31/2016 06:45 PM, Geert Uytterhoeven wrote:

If the system runs out of SW-IOMMU space, changes are high successive

s/changes/chances/?

requests will fail, too, flooding the kernel log. This is true
especially for streaming DMA, which is typically used repeatedly outside
the driver's initialization routine. Add rate-limiting to fix this.

While at it, get rid of the open-coded dev_name() handling by using the
appropriate dev_err_*() variant.

Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
[...]

MBR, Sergei