From: Jani Nikula <jani.nikula@intel.com>
To: "Koenig, Christian" <Christian.Koenig@amd.com>,
Chris Wilson <chris@chris-wilson.co.uk>,
Intel Graphics Development <intel-gfx@lists.freedesktop.org>,
Sam Ravnborg <sam@ravnborg.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>
Cc: Boris Brezillon <bbrezillon@kernel.org>,
David Airlie <airlied@linux.ie>,
Daniel Vetter <daniel.vetter@ffwll.ch>,
Liviu Dudau <Liviu.Dudau@arm.com>,
Maxime Ripard <maxime.ripard@bootlin.com>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Matthias Brugger <matthias.bgg@gmail.com>,
Sean Paul <seanpaul@chromium.org>,
Thierry Reding <treding@nvidia.com>, Sean Paul <sean@poorly.run>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v1 02/11] drm: drop uapi dependency from drm_print.h
Date: Mon, 29 Jul 2019 15:45:35 +0300 [thread overview]
Message-ID: <87tvb5nh5c.fsf@intel.com> (raw)
In-Reply-To: <460bf1e1-a38b-5f79-26e5-93764067f4e1@amd.com>
On Fri, 19 Jul 2019, "Koenig, Christian" <Christian.Koenig@amd.com> wrote:
> Am 18.07.19 um 18:46 schrieb Chris Wilson:
>> Quoting Sam Ravnborg (2019-07-18 17:14:58)
>>> drm_print.h used DRM_NAME - thus adding a dependency from
>>> include/drm/drm_print.h => uapi/drm/drm.h
>>>
>>> Hardcode the name "drm" to break this dependency.
>>> The idea is that there shall be a minimal dependency
>>> between include/drm/* and uapi/*
>>>
>>> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
>>> Suggested-by: Daniel Vetter <daniel@ffwll.ch>
>>> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
>>> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
>>> Cc: Maxime Ripard <maxime.ripard@bootlin.com>
>>> Cc: Sean Paul <sean@poorly.run>
>>> Cc: David Airlie <airlied@linux.ie>
>>> Cc: Rob Clark <robdclark@gmail.com>
>>> Cc: Sean Paul <seanpaul@chromium.org>
>>> Cc: Chris Wilson <chris@chris-wilson.co.uk>
>>> Cc: Daniel Vetter <daniel@ffwll.ch>
>>> ---
>>> include/drm/drm_print.h | 4 +---
>>> 1 file changed, 1 insertion(+), 3 deletions(-)
>>>
>>> diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
>>> index a5d6f2f3e430..760d1bd0eaf1 100644
>>> --- a/include/drm/drm_print.h
>>> +++ b/include/drm/drm_print.h
>>> @@ -32,8 +32,6 @@
>>> #include <linux/device.h>
>>> #include <linux/debugfs.h>
>>>
>>> -#include <drm/drm.h>
>>> -
>>> /**
>>> * DOC: print
>>> *
>>> @@ -287,7 +285,7 @@ void drm_err(const char *format, ...);
>>> /* Macros to make printk easier */
>>>
>>> #define _DRM_PRINTK(once, level, fmt, ...) \
>>> - printk##once(KERN_##level "[" DRM_NAME "] " fmt, ##__VA_ARGS__)
>>> + printk##once(KERN_##level "[drm] " fmt, ##__VA_ARGS__)
>> I guess I'm th only one who
>>
>> #undef DRM_NAME
>> #define DRM_NAME i915
>>
>> just so that I didn't have inane logs?
>>
>> One might suggest that instead of hardcoding it, follow the pr_fmt()
>> pattern and only add "[drm]" for the drm core.
>>
>> Even then it so useless (which drm driver is this message for???) that I
>> want to remove them all :(
>
> Yeah, agree. I mean it is nice if the core drm functions use a prefix
> for debug output.
>
> But I actually don't see the point for individual drivers.
We should all migrate to the versions with device...
BR,
Jani.
>
> Christian.
>
>> -Chris
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Jani Nikula, Intel Open Source Graphics Center
WARNING: multiple messages have this Message-ID (diff)
From: Jani Nikula <jani.nikula@intel.com>
To: "Koenig\, Christian" <Christian.Koenig@amd.com>,
Chris Wilson <chris@chris-wilson.co.uk>,
Intel Graphics Development <intel-gfx@lists.freedesktop.org>,
Sam Ravnborg <sam@ravnborg.org>,
"dri-devel\@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>
Cc: Boris Brezillon <bbrezillon@kernel.org>,
David Airlie <airlied@linux.ie>,
Daniel Vetter <daniel.vetter@ffwll.ch>,
Liviu Dudau <Liviu.Dudau@arm.com>,
Maxime Ripard <maxime.ripard@bootlin.com>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Matthias Brugger <matthias.bgg@gmail.com>,
Sean Paul <seanpaul@chromium.org>,
Thierry Reding <treding@nvidia.com>, Sean Paul <sean@poorly.run>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v1 02/11] drm: drop uapi dependency from drm_print.h
Date: Mon, 29 Jul 2019 15:45:35 +0300 [thread overview]
Message-ID: <87tvb5nh5c.fsf@intel.com> (raw)
In-Reply-To: <460bf1e1-a38b-5f79-26e5-93764067f4e1@amd.com>
On Fri, 19 Jul 2019, "Koenig, Christian" <Christian.Koenig@amd.com> wrote:
> Am 18.07.19 um 18:46 schrieb Chris Wilson:
>> Quoting Sam Ravnborg (2019-07-18 17:14:58)
>>> drm_print.h used DRM_NAME - thus adding a dependency from
>>> include/drm/drm_print.h => uapi/drm/drm.h
>>>
>>> Hardcode the name "drm" to break this dependency.
>>> The idea is that there shall be a minimal dependency
>>> between include/drm/* and uapi/*
>>>
>>> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
>>> Suggested-by: Daniel Vetter <daniel@ffwll.ch>
>>> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
>>> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
>>> Cc: Maxime Ripard <maxime.ripard@bootlin.com>
>>> Cc: Sean Paul <sean@poorly.run>
>>> Cc: David Airlie <airlied@linux.ie>
>>> Cc: Rob Clark <robdclark@gmail.com>
>>> Cc: Sean Paul <seanpaul@chromium.org>
>>> Cc: Chris Wilson <chris@chris-wilson.co.uk>
>>> Cc: Daniel Vetter <daniel@ffwll.ch>
>>> ---
>>> include/drm/drm_print.h | 4 +---
>>> 1 file changed, 1 insertion(+), 3 deletions(-)
>>>
>>> diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
>>> index a5d6f2f3e430..760d1bd0eaf1 100644
>>> --- a/include/drm/drm_print.h
>>> +++ b/include/drm/drm_print.h
>>> @@ -32,8 +32,6 @@
>>> #include <linux/device.h>
>>> #include <linux/debugfs.h>
>>>
>>> -#include <drm/drm.h>
>>> -
>>> /**
>>> * DOC: print
>>> *
>>> @@ -287,7 +285,7 @@ void drm_err(const char *format, ...);
>>> /* Macros to make printk easier */
>>>
>>> #define _DRM_PRINTK(once, level, fmt, ...) \
>>> - printk##once(KERN_##level "[" DRM_NAME "] " fmt, ##__VA_ARGS__)
>>> + printk##once(KERN_##level "[drm] " fmt, ##__VA_ARGS__)
>> I guess I'm th only one who
>>
>> #undef DRM_NAME
>> #define DRM_NAME i915
>>
>> just so that I didn't have inane logs?
>>
>> One might suggest that instead of hardcoding it, follow the pr_fmt()
>> pattern and only add "[drm]" for the drm core.
>>
>> Even then it so useless (which drm driver is this message for???) that I
>> want to remove them all :(
>
> Yeah, agree. I mean it is nice if the core drm functions use a prefix
> for debug output.
>
> But I actually don't see the point for individual drivers.
We should all migrate to the versions with device...
BR,
Jani.
>
> Christian.
>
>> -Chris
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-07-29 12:45 UTC|newest]
Thread overview: 79+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-18 16:14 [PATCH v1 0/11] drm: header maintenance Sam Ravnborg
2019-07-18 16:14 ` Sam Ravnborg
2019-07-18 16:14 ` [PATCH v1 01/11] drm/panel: make drm_panel.h self-contained Sam Ravnborg
2019-07-18 16:14 ` Sam Ravnborg
2019-07-18 17:36 ` Sean Paul
2019-07-18 17:36 ` Sean Paul
2019-07-18 16:14 ` [PATCH v1 02/11] drm: drop uapi dependency from drm_print.h Sam Ravnborg
2019-07-18 16:14 ` Sam Ravnborg
2019-07-18 16:46 ` Chris Wilson
2019-07-18 16:46 ` Chris Wilson
2019-07-19 6:54 ` Koenig, Christian
2019-07-19 6:54 ` Koenig, Christian
2019-07-29 12:45 ` Jani Nikula [this message]
2019-07-29 12:45 ` Jani Nikula
2019-07-29 14:35 ` Sam Ravnborg
2019-07-29 14:35 ` Sam Ravnborg
2019-07-29 15:28 ` Koenig, Christian
2019-07-29 15:28 ` Koenig, Christian
2019-07-29 17:50 ` Sam Ravnborg
2019-07-29 17:50 ` Sam Ravnborg
2019-08-02 13:48 ` Jani Nikula
2019-08-02 13:48 ` [Intel-gfx] " Jani Nikula
2019-08-02 15:28 ` Sam Ravnborg
2019-08-02 15:28 ` [Intel-gfx] " Sam Ravnborg
2019-07-18 17:40 ` Sean Paul
2019-07-18 17:40 ` Sean Paul
2019-07-18 16:14 ` [PATCH v1 03/11] drm: drop uapi dependency from drm_vblank.h Sam Ravnborg
2019-07-18 16:14 ` Sam Ravnborg
2019-07-18 17:41 ` Sean Paul
2019-07-18 17:41 ` Sean Paul
2019-07-18 16:15 ` [PATCH v1 04/11] drm/ati_pcigart: drop dependency on drm_os_linux.h Sam Ravnborg
2019-07-18 16:15 ` Sam Ravnborg
2019-07-18 17:49 ` Sean Paul
2019-07-18 17:49 ` Sean Paul
2019-07-18 18:11 ` Sam Ravnborg
2019-07-18 18:11 ` Sam Ravnborg
2019-07-18 18:30 ` Sean Paul
2019-07-18 18:30 ` Sean Paul
2019-07-18 16:15 ` [PATCH v1 05/11] drm/vblank: drop use of DRM_WAIT_ON() Sam Ravnborg
2019-07-18 16:15 ` Sam Ravnborg
2019-07-18 17:50 ` Sean Paul
2019-07-18 17:50 ` Sean Paul
2019-07-18 16:15 ` [PATCH v1 06/11] drm: direct include of drm.h in drm_gem.c Sam Ravnborg
2019-07-18 16:15 ` Sam Ravnborg
2019-07-18 17:51 ` Sean Paul
2019-07-18 17:51 ` Sean Paul
2019-07-18 16:15 ` [PATCH v1 07/11] drm: direct include of drm.h in drm_gem_shmem_helper.c Sam Ravnborg
2019-07-18 16:15 ` Sam Ravnborg
2019-07-18 17:51 ` Sean Paul
2019-07-18 17:51 ` Sean Paul
2019-07-18 16:15 ` [PATCH v1 08/11] drm: direct include of drm.h in drm_prime.c Sam Ravnborg
2019-07-18 16:15 ` Sam Ravnborg
2019-07-18 17:51 ` Sean Paul
2019-07-18 17:51 ` Sean Paul
2019-07-18 16:15 ` [PATCH v1 09/11] drm: direct include of drm.h in drm_syncobj.c Sam Ravnborg
2019-07-18 16:15 ` Sam Ravnborg
2019-07-18 17:51 ` Sean Paul
2019-07-18 17:51 ` Sean Paul
2019-07-18 16:15 ` [PATCH v1 10/11] drm/mediatek: direct include of drm.h in mtk_drm_gem.c Sam Ravnborg
2019-07-18 16:15 ` Sam Ravnborg
2019-07-18 17:52 ` Sean Paul
2019-07-18 17:52 ` Sean Paul
2019-07-19 1:30 ` CK Hu
2019-07-19 1:30 ` CK Hu
2019-07-19 1:34 ` CK Hu
2019-07-19 1:34 ` CK Hu
2019-07-18 16:15 ` [PATCH v1 11/11] drm: drop uapi dependency from drm_file.h Sam Ravnborg
2019-07-18 16:15 ` Sam Ravnborg
2019-07-18 18:40 ` Sean Paul
2019-07-18 18:40 ` Sean Paul
2019-07-19 6:56 ` Koenig, Christian
2019-07-19 6:56 ` Koenig, Christian
2019-07-19 11:08 ` Sam Ravnborg
2019-07-19 11:08 ` Sam Ravnborg
2019-07-18 16:37 ` ✗ Fi.CI.CHECKPATCH: warning for drm: header maintenance Patchwork
2019-07-18 16:57 ` ✓ Fi.CI.BAT: success " Patchwork
2019-07-18 19:11 ` ✗ Fi.CI.IGT: failure " Patchwork
2019-07-19 21:26 ` [PATCH v1 0/11] " Sam Ravnborg
2019-07-19 21:26 ` Sam Ravnborg
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=87tvb5nh5c.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=Christian.Koenig@amd.com \
--cc=Liviu.Dudau@arm.com \
--cc=airlied@linux.ie \
--cc=bbrezillon@kernel.org \
--cc=chris@chris-wilson.co.uk \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=maxime.ripard@bootlin.com \
--cc=sam@ravnborg.org \
--cc=sean@poorly.run \
--cc=seanpaul@chromium.org \
--cc=treding@nvidia.com \
--cc=tzimmermann@suse.de \
/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: link
Be 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.