* [PATCH] drm/i915: Fix view type in warning message
@ 2015-04-16 9:13 Tvrtko Ursulin
2015-04-17 14:02 ` Joonas Lahtinen
0 siblings, 1 reply; 3+ messages in thread
From: Tvrtko Ursulin @ 2015-04-16 9:13 UTC (permalink / raw)
To: Intel-gfx
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
One month passed between posting a patch and it getting merged, and
unfortunately even though it still applies, it needs fixing to account
for changes in function parameters since:
commit d385612e15b8b6eb3db328d83f1872ef8a381788
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date: Tue Mar 17 14:45:29 2015 +0000
drm/i915: Log view type when printing warnings
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
---
drivers/gpu/drm/i915/i915_gem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 1d3f7bd..f7b8766 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -5181,7 +5181,7 @@ i915_gem_obj_ggtt_offset_view(struct drm_i915_gem_object *o,
i915_ggtt_view_equal(&vma->ggtt_view, view))
return vma->node.start;
- WARN(1, "global vma for this object not found. (view=%u)\n", view);
+ WARN(1, "global vma for this object not found. (view=%u)\n", view->type);
return -1;
}
--
2.3.5
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/i915: Fix view type in warning message
2015-04-16 9:13 [PATCH] drm/i915: Fix view type in warning message Tvrtko Ursulin
@ 2015-04-17 14:02 ` Joonas Lahtinen
2015-04-20 15:52 ` Daniel Vetter
0 siblings, 1 reply; 3+ messages in thread
From: Joonas Lahtinen @ 2015-04-17 14:02 UTC (permalink / raw)
To: intel-gfx
On to, 2015-04-16 at 10:13 +0100, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>
> One month passed between posting a patch and it getting merged, and
> unfortunately even though it still applies, it needs fixing to account
> for changes in function parameters since:
>
> commit d385612e15b8b6eb3db328d83f1872ef8a381788
> Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> Date: Tue Mar 17 14:45:29 2015 +0000
>
> drm/i915: Log view type when printing warnings
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
This patch makes the debug message useful. (Should be applied on top of
the previous patch).
Regards, Joonas
> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> ---
> drivers/gpu/drm/i915/i915_gem.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
> index 1d3f7bd..f7b8766 100644
> --- a/drivers/gpu/drm/i915/i915_gem.c
> +++ b/drivers/gpu/drm/i915/i915_gem.c
> @@ -5181,7 +5181,7 @@ i915_gem_obj_ggtt_offset_view(struct drm_i915_gem_object *o,
> i915_ggtt_view_equal(&vma->ggtt_view, view))
> return vma->node.start;
>
> - WARN(1, "global vma for this object not found. (view=%u)\n", view);
> + WARN(1, "global vma for this object not found. (view=%u)\n", view->type);
> return -1;
> }
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/i915: Fix view type in warning message
2015-04-17 14:02 ` Joonas Lahtinen
@ 2015-04-20 15:52 ` Daniel Vetter
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2015-04-20 15:52 UTC (permalink / raw)
To: Joonas Lahtinen; +Cc: intel-gfx
On Fri, Apr 17, 2015 at 05:02:39PM +0300, Joonas Lahtinen wrote:
> On to, 2015-04-16 at 10:13 +0100, Tvrtko Ursulin wrote:
> > From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> >
> > One month passed between posting a patch and it getting merged, and
> > unfortunately even though it still applies, it needs fixing to account
> > for changes in function parameters since:
> >
> > commit d385612e15b8b6eb3db328d83f1872ef8a381788
> > Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> > Date: Tue Mar 17 14:45:29 2015 +0000
> >
> > drm/i915: Log view type when printing warnings
> >
> > Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>
> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Queued for -next, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-20 15:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-16 9:13 [PATCH] drm/i915: Fix view type in warning message Tvrtko Ursulin
2015-04-17 14:02 ` Joonas Lahtinen
2015-04-20 15:52 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox