lkml.org 
[lkml]   [2017]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/5] drm: Add new LEASE debug level
On Thu, Oct 12, 2017 at 06:56:28PM -0700, Keith Packard wrote:
> Separate out lease debugging from the core.
>
> Signed-off-by: Keith Packard <keithp@keithp.com>

Reviewed-by: Sean Paul <seanpaul@chromium.org>

> ---
> drivers/gpu/drm/drm_drv.c | 3 ++-
> include/drm/drmP.h | 4 ++++
> 2 files changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
> index c0292e5d7281..a934fd5e7e55 100644
> --- a/drivers/gpu/drm/drm_drv.c
> +++ b/drivers/gpu/drm/drm_drv.c
> @@ -57,7 +57,8 @@ MODULE_PARM_DESC(debug, "Enable debug output, where each bit enables a debug cat
> "\t\tBit 2 (0x04) will enable KMS messages (modesetting code)\n"
> "\t\tBit 3 (0x08) will enable PRIME messages (prime code)\n"
> "\t\tBit 4 (0x10) will enable ATOMIC messages (atomic code)\n"
> -"\t\tBit 5 (0x20) will enable VBL messages (vblank code)");
> +"\t\tBit 5 (0x20) will enable VBL messages (vblank code)\n"
> +"\t\tBit 7 (0x80) will enable LEASE messages (leasing code)");
> module_param_named(debug, drm_debug, int, 0600);
>
> static DEFINE_SPINLOCK(drm_minor_lock);
> diff --git a/include/drm/drmP.h b/include/drm/drmP.h
> index 7277783a4ff0..59be1232d005 100644
> --- a/include/drm/drmP.h
> +++ b/include/drm/drmP.h
> @@ -136,6 +136,7 @@ struct pci_controller;
> #define DRM_UT_ATOMIC 0x10
> #define DRM_UT_VBL 0x20
> #define DRM_UT_STATE 0x40
> +#define DRM_UT_LEASE 0x80
>
> /***********************************************************************/
> /** \name DRM template customization defaults */
> @@ -250,6 +251,9 @@ struct pci_controller;
> #define DRM_DEBUG_VBL(fmt, ...) \
> drm_printk(KERN_DEBUG, DRM_UT_VBL, fmt, ##__VA_ARGS__)
>
> +#define DRM_DEBUG_LEASE(fmt, ...) \
> + drm_printk(KERN_DEBUG, DRM_UT_LEASE, fmt, ##__VA_ARGS__)
> +
> #define _DRM_DEV_DEFINE_DEBUG_RATELIMITED(dev, level, fmt, args...) \
> ({ \
> static DEFINE_RATELIMIT_STATE(_rs, \
> --
> 2.15.0.rc0
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

--
Sean Paul, Software Engineer, Google / Chromium OS

\
 
 \ /
  Last update: 2017-10-16 21:24    [W:2.185 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site