Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755975AbcJaQCp (ORCPT ); Mon, 31 Oct 2016 12:02:45 -0400 Received: from mail-lf0-f51.google.com ([209.85.215.51]:34471 "EHLO mail-lf0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754752AbcJaQCn (ORCPT ); Mon, 31 Oct 2016 12:02:43 -0400 Subject: Re: [PATCH 1/2] swiotlb: Rate-limit printing when running out of SW-IOMMU space To: Geert Uytterhoeven , Konrad Rzeszutek Wilk , Jonathan Corbet References: <1477928704-10611-1-git-send-email-geert+renesas@glider.be> <1477928704-10611-2-git-send-email-geert+renesas@glider.be> Cc: Magnus Damm , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, iommu@lists.linux-foundation.org, linux-renesas-soc@vger.kernel.org From: Sergei Shtylyov Organization: Cogent Embedded Message-ID: <6651130c-9c13-5ba5-879a-1a8189472b7c@cogentembedded.com> Date: Mon, 31 Oct 2016 19:02:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1477928704-10611-2-git-send-email-geert+renesas@glider.be> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 555 Lines: 17 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 [...] MBR, Sergei