From: Keith Packard <keithp@keithp.com> To: linux-kernel@vger.kernel.org, Dave Airlie <airlied@redhat.com>, Daniel Vetter <daniel@ffwll.ch> Cc: Keith Packard <keithp@keithp.com>, dri-devel@lists.freedesktop.org Subject: [PATCH 3/6] drm: Add new LEASE debug level Date: Tue, 10 Oct 2017 17:48:28 -0700 [thread overview] Message-ID: <20171011004831.9624-4-keithp@keithp.com> (raw) In-Reply-To: <20171011004831.9624-1-keithp@keithp.com> Separate out lease debugging from the core. Signed-off-by: Keith Packard <keithp@keithp.com> --- 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.13.3
WARNING: multiple messages have this Message-ID (diff)
From: Keith Packard <keithp@keithp.com> To: linux-kernel@vger.kernel.org, Dave Airlie <airlied@redhat.com>, Daniel Vetter <daniel@ffwll.ch> Cc: Keith Packard <keithp@keithp.com>, dri-devel@lists.freedesktop.org Subject: [PATCH 3/6] drm: Add new LEASE debug level Date: Tue, 10 Oct 2017 17:48:28 -0700 [thread overview] Message-ID: <20171011004831.9624-4-keithp@keithp.com> (raw) In-Reply-To: <20171011004831.9624-1-keithp@keithp.com> Separate out lease debugging from the core. Signed-off-by: Keith Packard <keithp@keithp.com> --- 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.13.3 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2017-10-11 0:48 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-10-11 0:48 [PATCH 0/6] drm: Add drm mode object leases Keith Packard 2017-10-11 0:48 ` Keith Packard 2017-10-11 0:48 ` [PATCH 1/6] drm: Pass struct drm_file * to __drm_mode_object_find [v2] Keith Packard 2017-10-11 0:48 ` Keith Packard 2017-10-11 0:48 ` [PATCH 2/6] drm: Allow render nodes to query display objects Keith Packard 2017-10-12 18:41 ` Daniel Vetter 2017-10-12 19:45 ` Daniel Vetter 2017-10-12 19:45 ` Daniel Vetter 2017-10-12 21:04 ` Keith Packard 2017-10-12 21:02 ` Keith Packard 2017-10-12 21:02 ` Keith Packard 2017-10-11 0:48 ` Keith Packard [this message] 2017-10-11 0:48 ` [PATCH 3/6] drm: Add new LEASE debug level Keith Packard 2017-10-11 0:48 ` [PATCH 4/6] drm: Add drm_object lease infrastructure [v4] Keith Packard 2017-10-11 0:48 ` Keith Packard 2017-10-11 0:48 ` [PATCH 5/6] drm: Check mode object lease status in all master ioctl paths [v2] Keith Packard 2017-10-11 0:48 ` Keith Packard 2017-10-11 0:48 ` [PATCH 6/6] drm: Add four ioctls for managing drm mode object leases [v5] Keith Packard 2017-10-11 0:48 ` Keith Packard -- strict thread matches above, loose matches on Subject: below -- 2017-10-05 6:13 [PATCH 0/6] drm: Add leases [v4] Keith Packard 2017-10-05 6:13 ` [PATCH 3/6] drm: Add new LEASE debug level Keith Packard 2017-10-05 6:13 ` Keith Packard 2017-07-05 22:24 [PATCH 0/6] drm: Add mode object leases [v3] Keith Packard 2017-07-05 22:24 ` [PATCH 3/6] drm: Add new LEASE debug level Keith Packard 2017-07-05 22:24 ` Keith Packard
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=20171011004831.9624-4-keithp@keithp.com \ --to=keithp@keithp.com \ --cc=airlied@redhat.com \ --cc=daniel@ffwll.ch \ --cc=dri-devel@lists.freedesktop.org \ --cc=linux-kernel@vger.kernel.org \ /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: linkBe 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.