Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6355065ybx; Mon, 11 Nov 2019 07:54:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyhPqPC3BUhZotyUIW7AeAyGuz+EE2u+ANHywUw+9WFyw3GYK8viIUXXxf46BLDzvzHDSa8 X-Received: by 2002:a17:906:7094:: with SMTP id b20mr23452766ejk.134.1573487684307; Mon, 11 Nov 2019 07:54:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573487684; cv=none; d=google.com; s=arc-20160816; b=QHiDmqg8M8wUOoJPrCJBgkZTCydhLGfhVHrwrGnVGbL9SLnql+yWQgMo84cuCLnQo0 1RwAgantlmeVhnpjXUP4cwFos5ci0dS7f9WoYQKEVlKShuWk9+gyX19Mm1R7SU92k21A GH92xHg+KFk825qqq+wiY8LNCQt2d8vxVOWD4XnLjfC2S+wcjj88+0lHXCXgXMvJjj7Z 6DinKofpsYndScCoO5Xru3wR1gHnWqVrnJa3itNr3amFu/naWa6b4SLFXGPyPi+C3Yqb F38+bB/UP6bKgNXkjKycKmNyrIxmMDQVMJdlJBSaZdJNssrlyCmlhK/e+m4rGEbctEoT ir3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=vNH+RivJXn+B+kW2YBiHKd34UNUnfv1wRgWoq37THPg=; b=yRJICFJyGt8Qo/wfCACXZv5AU955hy6JAC0C7+Fh6+wlnLCh+HUFRjJm2Lo/9m1RRM 0Lbh3EiwSG7hM92tWEuRpGSAM6KIBjDsgMbj387uje2C9jj8iJDJOAqvGFTyMoZZ/bNi mZCFirfAtlOxUmftcZTNdCwvdps9pjC44vhg3s6baZzxq/xhtqwEu/8u3fvOK0i7luA4 Xh827irg3YSRo5CgX6gZo9U0k7KFJ4p2PdPti8uMPVj2Jtlf8AwkdSK5esiu923Ogahy NWiK52vUWvWl5A1HJ9993jttUWhtw0op9/y3EksR0ostDd8J0gSQinwxg/8hs5nmh2Ce nZEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o8si13171811edi.34.2019.11.11.07.54.20; Mon, 11 Nov 2019 07:54:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726994AbfKKPxP (ORCPT + 99 others); Mon, 11 Nov 2019 10:53:15 -0500 Received: from foss.arm.com ([217.140.110.172]:47370 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726857AbfKKPxP (ORCPT ); Mon, 11 Nov 2019 10:53:15 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C8C0631B; Mon, 11 Nov 2019 07:53:14 -0800 (PST) Received: from e110455-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A9A893F534; Mon, 11 Nov 2019 07:53:14 -0800 (PST) Received: by e110455-lin.cambridge.arm.com (Postfix, from userid 1000) id 6FFB2682AC2; Mon, 11 Nov 2019 15:53:13 +0000 (GMT) Date: Mon, 11 Nov 2019 15:53:13 +0000 From: Liviu Dudau To: Mihail Atanassov Cc: "dri-devel@lists.freedesktop.org" , nd , Maarten Lankhorst , Maxime Ripard , Sean Paul , Brian Starkey , David Airlie , Daniel Vetter , "james qian wang (Arm Technology China)" , "Lowry Li (Arm Technology China)" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 5/5] drm/komeda: add rate limiting disable to err_verbosity Message-ID: <20191111155313.iiz37se2f7526ehp@e110455-lin.cambridge.arm.com> References: <20191107114155.54307-1-mihail.atanassov@arm.com> <20191107114155.54307-6-mihail.atanassov@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191107114155.54307-6-mihail.atanassov@arm.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 07, 2019 at 11:42:44AM +0000, Mihail Atanassov wrote: > It's possible to get multiple events in a single frame/flip, so add an > option to print them all. > > Reviewed-by: James Qian Wang (Arm Technology China) > Signed-off-by: Mihail Atanassov For the whole series: Acked-by: Liviu Dudau Best regards, Liviu > --- > > v2: Clean up continuation line warning from checkpatch. > > drivers/gpu/drm/arm/display/komeda/komeda_dev.h | 2 ++ > drivers/gpu/drm/arm/display/komeda/komeda_event.c | 2 +- > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_dev.h b/drivers/gpu/drm/arm/display/komeda/komeda_dev.h > index d9fc9c48859a..15f52e304c08 100644 > --- a/drivers/gpu/drm/arm/display/komeda/komeda_dev.h > +++ b/drivers/gpu/drm/arm/display/komeda/komeda_dev.h > @@ -224,6 +224,8 @@ struct komeda_dev { > #define KOMEDA_DEV_PRINT_INFO_EVENTS BIT(2) > /* Dump DRM state on an error or warning event. */ > #define KOMEDA_DEV_PRINT_DUMP_STATE_ON_EVENT BIT(8) > + /* Disable rate limiting of event prints (normally one per commit) */ > +#define KOMEDA_DEV_PRINT_DISABLE_RATELIMIT BIT(12) > }; > > static inline bool > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_event.c b/drivers/gpu/drm/arm/display/komeda/komeda_event.c > index 7fd624761a2b..bf269683f811 100644 > --- a/drivers/gpu/drm/arm/display/komeda/komeda_event.c > +++ b/drivers/gpu/drm/arm/display/komeda/komeda_event.c > @@ -119,7 +119,7 @@ void komeda_print_events(struct komeda_events *evts, struct drm_device *dev) > /* reduce the same msg print, only print the first evt for one frame */ > if (evts->global || is_new_frame(evts)) > en_print = true; > - if (!en_print) > + if (!(err_verbosity & KOMEDA_DEV_PRINT_DISABLE_RATELIMIT) && !en_print) > return; > > if (err_verbosity & KOMEDA_DEV_PRINT_ERR_EVENTS) > -- > 2.23.0 > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯