* [PATCH] drm/i915: Use user, not driver, DRM_DEBUG for 2 context ioctls
@ 2016-11-21 11:31 Chris Wilson
2016-11-21 11:35 ` Joonas Lahtinen
0 siblings, 1 reply; 2+ messages in thread
From: Chris Wilson @ 2016-11-21 11:31 UTC (permalink / raw)
To: intel-gfx
For the context ioctls, we record a debug, but we use the
DRM_DEBUG_DRIVER for what is clearly a user, not driver, action. Use
DRM_DEBUG instead.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
drivers/gpu/drm/i915/i915_gem_context.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c
index 1f74ab266f6b..f93fd94a04ec 100644
--- a/drivers/gpu/drm/i915/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/i915_gem_context.c
@@ -1027,7 +1027,7 @@ int i915_gem_context_create_ioctl(struct drm_device *dev, void *data,
return PTR_ERR(ctx);
args->ctx_id = ctx->user_handle;
- DRM_DEBUG_DRIVER("HW context %d created\n", args->ctx_id);
+ DRM_DEBUG("HW context %d created\n", args->ctx_id);
return 0;
}
@@ -1060,7 +1060,7 @@ int i915_gem_context_destroy_ioctl(struct drm_device *dev, void *data,
context_close(ctx);
mutex_unlock(&dev->struct_mutex);
- DRM_DEBUG_DRIVER("HW context %d destroyed\n", args->ctx_id);
+ DRM_DEBUG("HW context %d destroyed\n", args->ctx_id);
return 0;
}
--
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] 2+ messages in thread
* Re: [PATCH] drm/i915: Use user, not driver, DRM_DEBUG for 2 context ioctls
2016-11-21 11:31 [PATCH] drm/i915: Use user, not driver, DRM_DEBUG for 2 context ioctls Chris Wilson
@ 2016-11-21 11:35 ` Joonas Lahtinen
0 siblings, 0 replies; 2+ messages in thread
From: Joonas Lahtinen @ 2016-11-21 11:35 UTC (permalink / raw)
To: Chris Wilson, intel-gfx
On ma, 2016-11-21 at 11:31 +0000, Chris Wilson wrote:
> For the context ioctls, we record a debug, but we use the
> DRM_DEBUG_DRIVER for what is clearly a user, not driver, action. Use
> DRM_DEBUG instead.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
You could phrase the commit message to be more clear; "For user
actions, we should use DRM_DEBUG. So ..."
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Regards, Joonas
--
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-21 11:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-21 11:31 [PATCH] drm/i915: Use user, not driver, DRM_DEBUG for 2 context ioctls Chris Wilson
2016-11-21 11:35 ` Joonas Lahtinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).