public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Remove stolen object spam
@ 2016-11-16 12:26 Chris Wilson
  2016-11-16 12:36 ` Tvrtko Ursulin
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Wilson @ 2016-11-16 12:26 UTC (permalink / raw)
  To: intel-gfx

We don't spam the debug when we create a normal object, nor when we
allocate their pages. Yet we do for stolen objects, and since these are
quite frequently used (at least once per context), the resulting spam
floods the dmesg in CI.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/i915_gem_stolen.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c
index 981796d7618c..55491234beda 100644
--- a/drivers/gpu/drm/i915/i915_gem_stolen.c
+++ b/drivers/gpu/drm/i915/i915_gem_stolen.c
@@ -523,7 +523,6 @@ i915_pages_create_for_stolen(struct drm_device *dev,
 	struct sg_table *st;
 	struct scatterlist *sg;
 
-	DRM_DEBUG_DRIVER("offset=0x%x, size=%d\n", offset, size);
 	GEM_BUG_ON(offset > dev_priv->ggtt.stolen_size - size);
 
 	/* We hide that we have no struct page backing our stolen object
@@ -625,7 +624,6 @@ i915_gem_object_create_stolen(struct drm_device *dev, u32 size)
 	if (!drm_mm_initialized(&dev_priv->mm.stolen))
 		return NULL;
 
-	DRM_DEBUG_KMS("creating stolen object: size=%x\n", size);
 	if (size == 0)
 		return NULL;
 
-- 
2.10.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/i915: Remove stolen object spam
  2016-11-16 12:26 [PATCH] drm/i915: Remove stolen object spam Chris Wilson
@ 2016-11-16 12:36 ` Tvrtko Ursulin
  2016-11-17 14:29   ` Chris Wilson
  0 siblings, 1 reply; 3+ messages in thread
From: Tvrtko Ursulin @ 2016-11-16 12:36 UTC (permalink / raw)
  To: Chris Wilson, intel-gfx


On 16/11/2016 12:26, Chris Wilson wrote:
> We don't spam the debug when we create a normal object, nor when we
> allocate their pages. Yet we do for stolen objects, and since these are
> quite frequently used (at least once per context), the resulting spam
> floods the dmesg in CI.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
>  drivers/gpu/drm/i915/i915_gem_stolen.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c
> index 981796d7618c..55491234beda 100644
> --- a/drivers/gpu/drm/i915/i915_gem_stolen.c
> +++ b/drivers/gpu/drm/i915/i915_gem_stolen.c
> @@ -523,7 +523,6 @@ i915_pages_create_for_stolen(struct drm_device *dev,
>  	struct sg_table *st;
>  	struct scatterlist *sg;
>
> -	DRM_DEBUG_DRIVER("offset=0x%x, size=%d\n", offset, size);
>  	GEM_BUG_ON(offset > dev_priv->ggtt.stolen_size - size);
>
>  	/* We hide that we have no struct page backing our stolen object
> @@ -625,7 +624,6 @@ i915_gem_object_create_stolen(struct drm_device *dev, u32 size)
>  	if (!drm_mm_initialized(&dev_priv->mm.stolen))
>  		return NULL;
>
> -	DRM_DEBUG_KMS("creating stolen object: size=%x\n", size);
>  	if (size == 0)
>  		return NULL;
>
>

Yay!

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Regards,

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/i915: Remove stolen object spam
  2016-11-16 12:36 ` Tvrtko Ursulin
@ 2016-11-17 14:29   ` Chris Wilson
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Wilson @ 2016-11-17 14:29 UTC (permalink / raw)
  To: Tvrtko Ursulin; +Cc: intel-gfx

On Wed, Nov 16, 2016 at 12:36:12PM +0000, Tvrtko Ursulin wrote:
> On 16/11/2016 12:26, Chris Wilson wrote:
> >We don't spam the debug when we create a normal object, nor when we
> >allocate their pages. Yet we do for stolen objects, and since these are
> >quite frequently used (at least once per context), the resulting spam
> >floods the dmesg in CI.
> >
> >Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> >---
> > drivers/gpu/drm/i915/i915_gem_stolen.c | 2 --
> > 1 file changed, 2 deletions(-)
> >
> >diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c
> >index 981796d7618c..55491234beda 100644
> >--- a/drivers/gpu/drm/i915/i915_gem_stolen.c
> >+++ b/drivers/gpu/drm/i915/i915_gem_stolen.c
> >@@ -523,7 +523,6 @@ i915_pages_create_for_stolen(struct drm_device *dev,
> > 	struct sg_table *st;
> > 	struct scatterlist *sg;
> >
> >-	DRM_DEBUG_DRIVER("offset=0x%x, size=%d\n", offset, size);
> > 	GEM_BUG_ON(offset > dev_priv->ggtt.stolen_size - size);

> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Minor hiccup in this patch as my base had slightly drifted, oops.

Pushed the line removals anyway! :)
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-17 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-16 12:26 [PATCH] drm/i915: Remove stolen object spam Chris Wilson
2016-11-16 12:36 ` Tvrtko Ursulin
2016-11-17 14:29   ` Chris Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox