All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Ezequiel Garcia <ezequiel@collabora.com>
Cc: David Airlie <airlied@linux.ie>,
	dri-devel@lists.freedesktop.org, kernel@collabora.com,
	Sean Paul <sean@poorly.run>
Subject: Re: [PATCH] drm: shrinker: Add a prefix on purging logs
Date: Wed, 29 Jan 2020 09:11:24 +0100	[thread overview]
Message-ID: <20200129081124.GK43062@phenom.ffwll.local> (raw)
In-Reply-To: <f15ac21ab733e094fff4ed5f129a519113b75cc8.camel@collabora.com>

On Tue, Jan 28, 2020 at 04:58:07PM -0300, Ezequiel Garcia wrote:
> On Wed, 2020-01-22 at 09:04 +0100, Daniel Vetter wrote:
> > On Sat, Dec 14, 2019 at 01:20:49PM -0300, Ezequiel Garcia wrote:
> > > It's not entirely obvious why these messages have
> > > "info" severity. In any case, add a proper driver prefix
> > > to give the user a bit of context of where they are coming from.
> > 
> > So the i915 one makes some sense, it's for oom. Which shouldn't happen
> > often. Then panfrost/msm ones are imo dubious and should be changed to one
> > of the drm debug ones. Looks like copypasta fail, we might want to change
> > all of them to drm debugging ones (well maybe keep the i915 one as a drm
> > info output).
> 
> Sounds good. I can submit follow up patches for that.
> Meanwhile, this patch seems good to go, right?

First adding the prefix to then remove it (at least for panfrost/msm)
seems like unecessary detour to me. But up to respective maintainers.
-Daniel

> 
> Thanks,
> Ezequiel
> 
> > -Daniel
> > 
> > > Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
> > > ---
> > >  drivers/gpu/drm/i915/gem/i915_gem_shrinker.c     | 2 ++
> > >  drivers/gpu/drm/msm/msm_gem_shrinker.c           | 2 ++
> > >  drivers/gpu/drm/panfrost/panfrost_gem_shrinker.c | 2 ++
> > >  3 files changed, 6 insertions(+)
> > > 
> > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c b/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c
> > > index 3a926a8755c6..cd0372a1d936 100644
> > > --- a/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c
> > > +++ b/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c
> > > @@ -4,6 +4,8 @@
> > >   * Copyright © 2008-2015 Intel Corporation
> > >   */
> > >  
> > > +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> > > +
> > >  #include <linux/oom.h>
> > >  #include <linux/sched/mm.h>
> > >  #include <linux/shmem_fs.h>
> > > diff --git a/drivers/gpu/drm/msm/msm_gem_shrinker.c b/drivers/gpu/drm/msm/msm_gem_shrinker.c
> > > index 722d61668a97..0620d441a2cc 100644
> > > --- a/drivers/gpu/drm/msm/msm_gem_shrinker.c
> > > +++ b/drivers/gpu/drm/msm/msm_gem_shrinker.c
> > > @@ -4,6 +4,8 @@
> > >   * Author: Rob Clark <robdclark@gmail.com>
> > >   */
> > >  
> > > +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> > > +
> > >  #include "msm_drv.h"
> > >  #include "msm_gem.h"
> > >  
> > > diff --git a/drivers/gpu/drm/panfrost/panfrost_gem_shrinker.c b/drivers/gpu/drm/panfrost/panfrost_gem_shrinker.c
> > > index 458f0fa68111..b9d0e821c3f6 100644
> > > --- a/drivers/gpu/drm/panfrost/panfrost_gem_shrinker.c
> > > +++ b/drivers/gpu/drm/panfrost/panfrost_gem_shrinker.c
> > > @@ -6,6 +6,8 @@
> > >   * Author: Rob Clark <robdclark@gmail.com>
> > >   */
> > >  
> > > +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> > > +
> > >  #include <linux/list.h>
> > >  
> > >  #include <drm/drm_device.h>
> > > -- 
> > > 2.22.0
> > > 
> 
> 

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

      reply	other threads:[~2020-01-29  8:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-14 16:20 [PATCH] drm: shrinker: Add a prefix on purging logs Ezequiel Garcia
2020-01-20 17:56 ` Ezequiel Garcia
2020-01-22  8:04 ` Daniel Vetter
2020-01-28 19:58   ` Ezequiel Garcia
2020-01-29  8:11     ` Daniel Vetter [this message]

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=20200129081124.GK43062@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=airlied@linux.ie \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=ezequiel@collabora.com \
    --cc=kernel@collabora.com \
    --cc=sean@poorly.run \
    /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.