All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mihail Atanassov <Mihail.Atanassov@arm.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: nd <nd@arm.com>, Liviu Dudau <Liviu.Dudau@arm.com>nd <nd@arm.com>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>, Sean Paul <sean@poorly.run>,
	Brian Starkey <Brian.Starkey@arm.com>,
	David Airlie <airlied@linux.ie>,
	"james qian wang (Arm Technology China)"
	<james.qian.wang@arm.com>,
	"Lowry Li (Arm Technology China)" <Lowry.Li@arm.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 5/5] drm/komeda: add rate limiting disable to err_verbosity
Date: Wed, 13 Nov 2019 13:43:53 +0000	[thread overview]
Message-ID: <2040706.mPXGPD4v5A@e123338-lin> (raw)
In-Reply-To: <CAKMK7uHB-mHmuBA-VkKuhUSRHQRu0wvHHJA+a=Q1fXSXaJgrpw@mail.gmail.com>

On Tuesday, 12 November 2019 18:24:16 GMT Daniel Vetter wrote:
> On Tue, Nov 12, 2019 at 2:00 PM Mihail Atanassov
> <Mihail.Atanassov@arm.com> 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 an
> > > > option to print them all.
> > > >
> > > > Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
> > > > Signed-off-by: Mihail Atanassov <mihail.atanassov@arm.com>
> > >
> > > For the whole series:
> > >
> > > Acked-by: Liviu Dudau <liviu.dudau@arm.com>
> >
> > Thanks, applied to drm-misc-next.
> 
> And now komeda doesn't even compile anymore. I'm ... impressed.
> 

Mea culpa! Sorry about the breakage, I did build-test but apparently
not the right checkout :/. I'll adjust my workflow to make sure this
doesn't happen again.

> 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/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!  /
> > >   ---------------
> > >     ¯\_(ツ)_/¯
> > >
> >
> >
> > --
> > Mihail
> >
> >
> >
> 
> 
> 


-- 
Mihail




WARNING: multiple messages have this Message-ID (diff)
From: Mihail Atanassov <Mihail.Atanassov@arm.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: "Lowry Li \(Arm Technology China\)" <Lowry.Li@arm.com>,
	David Airlie <airlied@linux.ie>,
	Liviu Dudau <Liviu.Dudau@arm.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"james qian wang \(Arm Technology China\)"
	<james.qian.wang@arm.com>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>, nd <nd@arm.com>,
	Sean Paul <sean@poorly.run>
Subject: Re: [PATCH v2 5/5] drm/komeda: add rate limiting disable to err_verbosity
Date: Wed, 13 Nov 2019 13:43:53 +0000	[thread overview]
Message-ID: <2040706.mPXGPD4v5A@e123338-lin> (raw)
Message-ID: <20191113134353.U5rcEHHqpOE1GulrhDSPPJM5dUrcEycL52Cy5rWPkV4@z> (raw)
In-Reply-To: <CAKMK7uHB-mHmuBA-VkKuhUSRHQRu0wvHHJA+a=Q1fXSXaJgrpw@mail.gmail.com>

On Tuesday, 12 November 2019 18:24:16 GMT Daniel Vetter wrote:
> On Tue, Nov 12, 2019 at 2:00 PM Mihail Atanassov
> <Mihail.Atanassov@arm.com> 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 an
> > > > option to print them all.
> > > >
> > > > Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
> > > > Signed-off-by: Mihail Atanassov <mihail.atanassov@arm.com>
> > >
> > > For the whole series:
> > >
> > > Acked-by: Liviu Dudau <liviu.dudau@arm.com>
> >
> > Thanks, applied to drm-misc-next.
> 
> And now komeda doesn't even compile anymore. I'm ... impressed.
> 

Mea culpa! Sorry about the breakage, I did build-test but apparently
not the right checkout :/. I'll adjust my workflow to make sure this
doesn't happen again.

> 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/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!  /
> > >   ---------------
> > >     ¯\_(ツ)_/¯
> > >
> >
> >
> > --
> > Mihail
> >
> >
> >
> 
> 
> 


-- 
Mihail



_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

WARNING: multiple messages have this Message-ID (diff)
From: Mihail Atanassov <Mihail.Atanassov@arm.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: nd <nd@arm.com>, Liviu Dudau <Liviu.Dudau@arm.com>,
	nd <nd@arm.com>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>, Sean Paul <sean@poorly.run>,
	Brian Starkey <Brian.Starkey@arm.com>,
	David Airlie <airlied@linux.ie>,
	"james qian wang (Arm Technology China)"
	<james.qian.wang@arm.com>,
	"Lowry Li (Arm Technology China)" <Lowry.Li@arm.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 5/5] drm/komeda: add rate limiting disable to err_verbosity
Date: Wed, 13 Nov 2019 13:43:53 +0000	[thread overview]
Message-ID: <2040706.mPXGPD4v5A@e123338-lin> (raw)
In-Reply-To: <CAKMK7uHB-mHmuBA-VkKuhUSRHQRu0wvHHJA+a=Q1fXSXaJgrpw@mail.gmail.com>

On Tuesday, 12 November 2019 18:24:16 GMT Daniel Vetter wrote:
> On Tue, Nov 12, 2019 at 2:00 PM Mihail Atanassov
> <Mihail.Atanassov@arm.com> 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 an
> > > > option to print them all.
> > > >
> > > > Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
> > > > Signed-off-by: Mihail Atanassov <mihail.atanassov@arm.com>
> > >
> > > For the whole series:
> > >
> > > Acked-by: Liviu Dudau <liviu.dudau@arm.com>
> >
> > Thanks, applied to drm-misc-next.
> 
> And now komeda doesn't even compile anymore. I'm ... impressed.
> 

Mea culpa! Sorry about the breakage, I did build-test but apparently
not the right checkout :/. I'll adjust my workflow to make sure this
doesn't happen again.

> 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/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!  /
> > >   ---------------
> > >     ¯\_(ツ)_/¯
> > >
> >
> >
> > --
> > Mihail
> >
> >
> >
> 
> 
> 


-- 
Mihail




  parent reply	other threads:[~2019-11-13 13:43 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-07 11:42 [PATCH v2 0/5] drm/komeda: Improve IRQ error event prints Mihail Atanassov
2019-11-07 11:42 ` Mihail Atanassov
2019-11-07 11:42 ` Mihail Atanassov
2019-11-07 11:42 ` [PATCH v2 1/5] drm/komeda: Add debugfs node to control error verbosity Mihail Atanassov
2019-11-07 11:42   ` Mihail Atanassov
2019-11-07 11:42   ` Mihail Atanassov
2019-11-11 15:52   ` Liviu Dudau
2019-11-11 15:52     ` Liviu Dudau
2019-11-07 11:42 ` [PATCH v2 2/5] drm/komeda: Remove CONFIG_KOMEDA_ERROR_PRINT Mihail Atanassov
2019-11-07 11:42   ` Mihail Atanassov
2019-11-07 11:42   ` Mihail Atanassov
2019-11-07 11:42 ` [PATCH v2 3/5] drm/komeda: Optionally dump DRM state on interrupts Mihail Atanassov
2019-11-07 11:42   ` Mihail Atanassov
2019-11-07 11:42   ` Mihail Atanassov
2019-11-07 11:42 ` [PATCH v2 4/5] drm/komeda: Add option to print WARN- and INFO-level IRQ events Mihail Atanassov
2019-11-07 11:42   ` Mihail Atanassov
2019-11-07 11:42   ` Mihail Atanassov
2019-11-07 11:42 ` [PATCH v2 5/5] drm/komeda: add rate limiting disable to err_verbosity Mihail Atanassov
2019-11-07 11:42   ` Mihail Atanassov
2019-11-07 11:42   ` Mihail Atanassov
2019-11-11 15:53   ` Liviu Dudau
2019-11-11 15:53     ` Liviu Dudau
2019-11-12 13:00     ` Mihail Atanassov
2019-11-12 13:00       ` Mihail Atanassov
2019-11-12 13:00       ` Mihail Atanassov
2019-11-12 18:24       ` Daniel Vetter
2019-11-12 18:24         ` Daniel Vetter
2019-11-12 18:24         ` Daniel Vetter
2019-11-13  1:42         ` james qian wang (Arm Technology China)
2019-11-13  1:42           ` james qian wang (Arm Technology China)
2019-11-13  1:42           ` james qian wang (Arm Technology China)
2019-11-13 13:43         ` Mihail Atanassov [this message]
2019-11-13 13:43           ` Mihail Atanassov
2019-11-13 13:43           ` Mihail Atanassov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2040706.mPXGPD4v5A@e123338-lin \
    --to=mihail.atanassov@arm.com \
    --cc=Liviu.Dudau@arm.com \
    --cc=daniel@ffwll.ch \
    --cc=nd@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.