Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp868578ybc; Tue, 12 Nov 2019 10:25:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzhZFJ9VTK1Y1bOMMpPrbb1AzXRjp5XMD+HG/eQxxGPxfSeVrUNSxfcarZ6ZRk6iqeAn/YN X-Received: by 2002:a50:ec89:: with SMTP id e9mr34838920edr.104.1573583129903; Tue, 12 Nov 2019 10:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573583129; cv=none; d=google.com; s=arc-20160816; b=I4p7h+XvXQ/lxu//XJrzSZijVa+ite8zb3IlcZIWV44BVAK2EXzcziuIWxMfBlhogU /4fGvkJpDXpmBGmCGUdTzIKbVUKpJ/I9pAKpNCf/6xK4Bdq+7zGgc8dygq+g2WQiitMJ 2LVZbdctenfWe7brkoHKncDv25Krq2LVwZehH16GyLM268WZCwW7ipLm+raJdn8l48xt TlQBoKoT8O9iz/kgTQqKRaDNACcMGXMzlnu/jqd+W6CiTjEn5QedNv+U4ilH9X1jq0Dc 81UsJ9jvryb6QU9j+bnJBE03bQUdhr79rWlx/Uh4ng0jNVk0Hgg15EYt70EW/RDhxmWH aRsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=r31nz+kZF/TKNHaB6gtaSbNm2gH5BovCO5Pp07i/Wqw=; b=Co2j/2/u9PuGcsdn7gY8dnfhXjMPiGq/PBIqhy3pSM2Zzp2NY7Mk/fItsKsGPk5JCV SZKIxRsNvbGd5NabARsHf2Ug2maVUgxQL8N7oKOdnvix5JqFdVLni39G8gUVgxwBLPqd 7FyXjNlkeJMJj/wNZIbDxAPAHFoQ8hyETuwF3nyUPvUVNhhKuJe0nmlE2kT8Mjbf15fe QG09XAMlYiQ7Cz53nv6E7WjNG7X+FRAn6x5uTkGnRSWteLCrtXO+Z7/lkAAlY3F304+u mLfPocZOV+GH2/WOjPX+EgGG5XA8KXBMIOWJ2wjlP+RPkxNgnDDvzQdIx0kLh5jrSAZN rXcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="RCD/1hgF"; 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 f2si537273ejd.369.2019.11.12.10.25.05; Tue, 12 Nov 2019 10:25:29 -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; dkim=pass header.i=@ffwll.ch header.s=google header.b="RCD/1hgF"; 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 S1727124AbfKLSY3 (ORCPT + 99 others); Tue, 12 Nov 2019 13:24:29 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:33478 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726906AbfKLSY3 (ORCPT ); Tue, 12 Nov 2019 13:24:29 -0500 Received: by mail-oi1-f196.google.com with SMTP id m193so15727110oig.0 for ; Tue, 12 Nov 2019 10:24:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=r31nz+kZF/TKNHaB6gtaSbNm2gH5BovCO5Pp07i/Wqw=; b=RCD/1hgFNPTp/mnDzk1v9MF0BK0jZDLGEg9Kt8xJfdSlls7xEQ3sMC+h4Mkjzxrn2L Zxa8Kg0E98+n58D1Y8J5CqxUDorwG4Oyg+rloM5a0Rj5C9RE8MOoG3VsN6vtWqGKdVdZ J7jdNLMg1zQwh+6oiBDWK9O5MK6PK848/jyaw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=r31nz+kZF/TKNHaB6gtaSbNm2gH5BovCO5Pp07i/Wqw=; b=fdFR5eKseaPSddDpOu8yV8PbtxAY2I/Ne3JzsFXDP6G5qqCkfuoxVtcXSdywGBhvYD Fu0bJsGeRCmrYAFBi9lsTdEuvRCIjEwfNrE9B/jaZWUoJ3x57P/9E8PMX/t+tyAOCr7D sOSqrcrADMN4gwHhjpQ0yDUsEzuW2HMIahlJrpLRSJGpXM7PFY7l8kaPTHRe8R/1PUQq cS7QFpao7ALUt0vZPbvvj3eAU+/ZkPntP1y0lz13moAlldZSM4wBMkC36xEl/u0hn0EZ f9UwAyl3SZz7gB7vC9PFHyUg1P6Yxtc0dOoXFa/OTjZjN++MfQ2vZZUjhCWmsB1ieaTP G0RA== X-Gm-Message-State: APjAAAU94rinwenwzglfQ43esvoqdbcGeqqIrbvl/w+gfQX+YOLtu0hl +UHflq8hqacBCTCJMu2lcD0Tx+2mcxV0UXZth9+k0g== X-Received: by 2002:aca:b805:: with SMTP id i5mr308729oif.110.1573583067752; Tue, 12 Nov 2019 10:24:27 -0800 (PST) MIME-Version: 1.0 References: <20191107114155.54307-1-mihail.atanassov@arm.com> <20191107114155.54307-6-mihail.atanassov@arm.com> <20191111155313.iiz37se2f7526ehp@e110455-lin.cambridge.arm.com> <39367348.R9gcQaf2xt@e123338-lin> In-Reply-To: <39367348.R9gcQaf2xt@e123338-lin> From: Daniel Vetter Date: Tue, 12 Nov 2019 19:24:16 +0100 Message-ID: Subject: Re: [PATCH v2 5/5] drm/komeda: add rate limiting disable to err_verbosity To: Mihail Atanassov Cc: Liviu Dudau , nd , "dri-devel@lists.freedesktop.org" , Maarten Lankhorst , Maxime Ripard , Sean Paul , Brian Starkey , David Airlie , "james qian wang (Arm Technology China)" , "Lowry Li (Arm Technology China)" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 12, 2019 at 2:00 PM Mihail Atanassov wrote: > > On Monday, 11 November 2019 15:53:14 GMT Liviu Dudau wrote: > > 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 a= n > > > 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 > > Thanks, applied to drm-misc-next. And now komeda doesn't even compile anymore. I'm ... impressed. I mean generally people break other people's driver, not their own. -Daniel > > > > 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/driver= s/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/driv= ers/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 *ev= ts, struct drm_device *dev) > > > /* reduce the same msg print, only print the first evt for one fr= ame */ > > > if (evts->global || is_new_frame(evts)) > > > en_print =3D 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 > > > > > > > -- > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > | I would like to | > > | fix the world, | > > | but they're not | > > | giving me the | > > \ source code! / > > --------------- > > =C2=AF\_(=E3=83=84)_/=C2=AF > > > > > -- > Mihail > > > --=20 Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch