[PATCH v11 8/8] drm: Remove usage of deprecated DRM_DEBUG_KMS in DRM core

2023-08-20 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_KMS is deprecated in favor of drm_dbg_kms(). Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 112 +++ drivers/gpu/drm/drm_color_mgmt.c | 4 +- drivers/gpu/drm/drm_connector.c

[PATCH v11 6/8] drm: Remove usage of deprecated DRM_DEBUG in DRM core

2023-08-20 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG is deprecated in favor of drm_dbg_core(). Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_agpsupport.c | 4 +- drivers/gpu/drm/drm_bufs.c| 114 +++--- drivers/gpu/drm/drm_context.c | 14

[PATCH v11 5/8] drm: Remove usage of deprecated DRM_ERROR in DRM core

2023-08-20 Thread Siddh Raman Pant
drm_print.h says DRM_ERROR is deprecated in favor of drm_err(). Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_bridge.c | 8 drivers/gpu/drm/drm_bufs.c | 8 drivers/gpu/drm/drm_client_modeset.c | 4 ++-- drivers/gpu

[PATCH v11 3/8] drm: Remove usage of deprecated DRM_INFO in DRM core

2023-08-20 Thread Siddh Raman Pant
drm_print.h says DRM_INFO is deprecated in favor of drm_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 7 --- drivers/gpu/drm/drm_drv.c| 2 +- drivers/gpu/drm/drm_pci.c| 2 +- 4 files

[PATCH v11 4/8] drm: Remove usage of deprecated DRM_NOTE in DRM core

2023-08-20 Thread Siddh Raman Pant
drm_print.h says DRM_NOTE is deprecated in favor of drm_notice(). Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_displayid.c | 2 +- drivers/gpu/drm/drm_kms_helper_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v11 7/8] drm: Remove usage of deprecated DRM_DEBUG_DRIVER in DRM core

2023-08-20 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_DRIVER is deprecated. Thus, use newer drm_dbg_driver(). Also fix the deprecation comment in drm_print.h which mentions drm_dbg() instead of drm_dbg_driver(). Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dbi.c | 10

[PATCH v11 0/8] drm: Remove usage of deprecated DRM_* macros in DRM core

2023-08-20 Thread Siddh Raman Pant
int statements. v9 -> v10 (7 Jun 2023) - Picked up rb's from Laurent Pinchart. - Clarified commit message to point out the changes are in DRM core. - Remove superfluous print messages after the changes. - Link: https://lore.kernel.org/all/cover.1686075579.git.c...@siddh.me/ --- Siddh Raman P

[PATCH v11 2/8] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-08-20 Thread Siddh Raman Pant
pr_()* can now be changed to the drm equivalents. Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- include/drm/drm_print.h | 79 +++-- 1 file changed, 52 insertions(+), 27 deletions(-) diff --git a/include/drm/drm_print.h b/include/drm/drm_prin

[PATCH v11 1/8] Revert "drm: mipi-dsi: Convert logging to drm_* functions."

2023-08-20 Thread Siddh Raman Pant
Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dsi.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c index 14201f73aab1..b268f7d53310 100644 --- a/drivers

Re: [PATCH v10 0/9] drm: Remove usage of deprecated DRM_* macros in DRM core

2023-07-09 Thread Siddh Raman Pant
On Wed, 07 Jun 2023 00:00:01 +0530, Siddh Raman Pant wrote: > This patchset aims to remove usages of deprecated DRM_* macros from the > DRM core (i.e. drivers/gpu/drm/*.c). > > [...] > > Siddh Raman Pant (9): > Revert "drm: mipi-dsi: Convert logging to drm_* func

Re: [PATCH v10 9/9] drm: Remove superfluous print statements in DRM core

2023-06-09 Thread Siddh Raman Pant
On Wed, 07 Jun 2023 00:00:10 +0530, Siddh Raman Pant wrote: > There are a couple of superfluous print statements using the drm_* > macros, which do stuff like printing newlines, print OOM messages > (OOM while allocating memory is already supposed to be noisy), and > printing

Re: [PATCH v9 2/8] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 19:35:12 +0530, Laurent Pinchart wrote: > Hi Siddh, > > Thank you for the patch. Anytime :) > On Tue, Jun 06, 2023 at 04:15:16PM +0530, Siddh Raman Pant wrote: > > Comments say macros DRM_DEBUG_* are deprecated in favor of > > drm_dbg_*(NULL, ..

[PATCH v10 1/9] Revert "drm: mipi-dsi: Convert logging to drm_* functions."

2023-06-07 Thread Siddh Raman Pant
Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dsi.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c index 3fd6c733ff4e..a37af4edf394 100644 --- a/drivers

[PATCH v10 0/9] drm: Remove usage of deprecated DRM_* macros in DRM core

2023-06-07 Thread Siddh Raman Pant
DRM_NOTE, and DRM_ERROR changes. - Due to above, DRM_NOTE usage cannot be removed and the patch is dropped. - DRY: NULL support is now achieved by way of a separate function. Siddh Raman Pant (9): Revert "drm: mipi-dsi: Convert logging to drm_* functions." drm/print: Fix and add sup

[PATCH v9 6/8] drm: Remove usage of deprecated DRM_DEBUG

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG is deprecated in favor of drm_dbg_core(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_agpsupport.c | 4 +- drivers/gpu/drm/drm_bufs.c| 114 +++--- drivers/gpu/drm/drm_context.c | 14 ++-- drivers/gpu/drm/drm_dma.c

[PATCH v9 4/8] drm: Remove usage of deprecated DRM_NOTE

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_NOTE is deprecated in favor of drm_notice(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_displayid.c | 2 +- drivers/gpu/drm/drm_kms_helper_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_displayid.c b

[PATCH v10 3/9] drm: Remove usage of deprecated DRM_INFO in DRM core

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_INFO is deprecated in favor of drm_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 7 --- drivers/gpu/drm/drm_drv.c| 2 +- drivers/gpu/drm/drm_pci.c| 2 +- 4 files

[PATCH v9 2/8] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-06-07 Thread Siddh Raman Pant
pr_()* can now be changed to the drm equivalents. Signed-off-by: Siddh Raman Pant --- include/drm/drm_print.h | 79 +++-- 1 file changed, 52 insertions(+), 27 deletions(-) diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h index a93a387f8a1a..4b8532cf2

[PATCH v10 4/9] drm: Remove usage of deprecated DRM_NOTE in DRM core

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_NOTE is deprecated in favor of drm_notice(). Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_displayid.c | 2 +- drivers/gpu/drm/drm_kms_helper_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v10 2/9] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-06-07 Thread Siddh Raman Pant
pr_()* can now be changed to the drm equivalents. Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- include/drm/drm_print.h | 79 +++-- 1 file changed, 52 insertions(+), 27 deletions(-) diff --git a/include/drm/drm_print.h b/include/drm/drm_prin

Re: [PATCH v9 1/8] Revert "drm: mipi-dsi: Convert logging to drm_* functions."

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 18:25:37 +0530, Laurent Pinchart wrote: > Hi Siddh, > > Thank you for the patch. Anytime :) > Any chance we could prevent this from happening by turning the macros > into inline functions ? The next patch in the series almost does that, with a function introduced as Jani

Re: [PATCH v9 3/8] drm: Remove usage of deprecated DRM_INFO

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 20:16:25 +0530, Laurent Pinchart wrote: > I would write > > drm: Remove usage of deprecated DRM_INFO in DRM core > > The "drm: " prefix doesn't imply you're touching the core only, you > could do a tree-wide change that also touches all drivers. Okay, will send a v10 with

[PATCH v10 9/9] drm: Remove superfluous print statements in DRM core

2023-06-07 Thread Siddh Raman Pant
e a couple of these superfluous strings. Suggested-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 3 --- drivers/gpu/drm/drm_context.c| 1 - drivers/gpu/drm/drm_crtc_helper.c| 2 -- drivers/gpu/drm/drm_drv.c| 7 --- drive

[PATCH v9 0/8] drm: Remove usage of deprecated DRM_* macros

2023-06-07 Thread Siddh Raman Pant
anges. - Due to above, DRM_NOTE usage cannot be removed and the patch is dropped. - DRY: NULL support is now achieved by way of a separate function. Siddh Raman Pant (8): Revert "drm: mipi-dsi: Convert logging to drm_* functions." drm/print: Fix and add support for NULL as first argument

Re: [PATCH v9 5/8] drm: Remove usage of deprecated DRM_ERROR

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 20:14:52 +0530, Laurent Pinchart wrote: > Hi Siddh, > > Thank you for the patch. Anytime :) > > if (!crtcs || !modes || !enabled || !offsets) { > > - DRM_ERROR("Memory allocation failed\n"); > > + drm_err(client->dev, "Memory allocation

[PATCH v10 6/9] drm: Remove usage of deprecated DRM_DEBUG in DRM core

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG is deprecated in favor of drm_dbg_core(). Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_agpsupport.c | 4 +- drivers/gpu/drm/drm_bufs.c| 114 +++--- drivers/gpu/drm/drm_context.c | 14

[PATCH v9 7/8] drm: Remove usage of deprecated DRM_DEBUG_DRIVER

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_DRIVER is deprecated. Thus, use newer drm_dbg_driver(). Also fix the deprecation comment in drm_print.h which mentions drm_dbg() instead of drm_dbg_driver(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dbi.c | 10 +- include/drm/drm_print.h

[PATCH v9 8/8] drm: Remove usage of deprecated DRM_DEBUG_KMS

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_KMS is deprecated in favor of drm_dbg_kms(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 112 +++ drivers/gpu/drm/drm_color_mgmt.c | 4 +- drivers/gpu/drm/drm_connector.c | 21 ++--- drivers/gpu/drm

Re: [PATCH v9 3/8] drm: Remove usage of deprecated DRM_INFO

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 19:53:22 +0530, Laurent Pinchart wrote: > Hi Siddh, > > Thank you for the patch. Anytime :) > Any plan to remove it from drivers as well ? If not you should mention > in the commit message (probably in the subject line itself) that you're > only addressing the DRM core. > >

Re: [PATCH v9 0/8] drm: Remove usage of deprecated DRM_* macros

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 20:35:45 +0530, Laurent Pinchart wrote: > This is a nice series, thank you for working on that. > > Now that the deprecated macros are used in drivers only, would it make > sense to move them to a drm_print_deprecated.h header, to make sure no > new driver uses them ? Sure,

[PATCH v10 8/9] drm: Remove usage of deprecated DRM_DEBUG_KMS in DRM core

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_KMS is deprecated in favor of drm_dbg_kms(). Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 112 +++ drivers/gpu/drm/drm_color_mgmt.c | 4 +- drivers/gpu/drm/drm_connector.c

[PATCH v9 3/8] drm: Remove usage of deprecated DRM_INFO

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_INFO is deprecated in favor of drm_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 7 --- drivers/gpu/drm/drm_drv.c| 2 +- drivers/gpu/drm/drm_pci.c| 2 +- 4 files

Re: [PATCH v9 6/8] drm: Remove usage of deprecated DRM_DEBUG

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 20:27:06 +0530, Laurent Pinchart wrote: > Hi Siddh, > > Thank you for the patch. Anytime :) > > if (!ctx_entry) { > > - DRM_DEBUG("out of memory\n"); > > + drm_dbg_core(dev, "out of memory\n"); > > This message could also be dropped. Okay. >

[PATCH v9 5/8] drm: Remove usage of deprecated DRM_ERROR

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_ERROR is deprecated in favor of drm_err(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_bridge.c | 8 drivers/gpu/drm/drm_bufs.c | 8 drivers/gpu/drm/drm_client_modeset.c | 4 ++-- drivers/gpu/drm/drm_context.c| 4

[PATCH v10 5/9] drm: Remove usage of deprecated DRM_ERROR in DRM core

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_ERROR is deprecated in favor of drm_err(). Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_bridge.c | 8 drivers/gpu/drm/drm_bufs.c | 8 drivers/gpu/drm/drm_client_modeset.c | 4 ++-- drivers/gpu

Re: [PATCH v9 0/8] drm: Remove usage of deprecated DRM_* macros

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 23:19:28 +0530, Laurent Pinchart wrote: > The idea would be to include the drm_print_deprecated.h header in > drivers that still use the deprecated macros. Yeah, what I meant was in a "first pass" kind of sense. > > Not every file can be seen at a case-by-case basis or by

[PATCH v10 7/9] drm: Remove usage of deprecated DRM_DEBUG_DRIVER in DRM core

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_DRIVER is deprecated. Thus, use newer drm_dbg_driver(). Also fix the deprecation comment in drm_print.h which mentions drm_dbg() instead of drm_dbg_driver(). Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dbi.c | 10

Re: [PATCH v9 8/8] drm: Remove usage of deprecated DRM_DEBUG_KMS

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 20:34:19 +0530, Laurent Pinchart wrote: > Hi Siddh, > > Thank you for the patch. Anytime :) > > - DRM_DEBUG_KMS("\n"); > > + drm_dbg_kms(dev, "\n"); > > This message is pretty useless, it could be dropped on top of this > series. Okay. > > - DRM_DEBUG_KMS("\n"); >

[PATCH v9 1/8] Revert "drm: mipi-dsi: Convert logging to drm_* functions."

2023-06-07 Thread Siddh Raman Pant
Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dsi.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c index 3fd6c733ff4e..a37af4edf394 100644 --- a/drivers/gpu/drm/drm_mipi_dsi.c +++ b

Re: [PATCH v8 0/8] drm: Remove usage of deprecated DRM_* macros

2023-04-08 Thread Siddh Raman Pant
On Tue, 28 Feb 2023 14:55:04 +0530, Siddh Raman Pant wrote: > This patchset aims to remove usages of deprecated DRM_* macros from the > files residing in drivers/gpu/drm root. > > In process, I found out that NULL as first argument of drm_dbg_* wasn't > working, bu

[PATCH v8 3/8] drm: Remove usage of deprecated DRM_INFO

2023-02-28 Thread Siddh Raman Pant
drm_print.h says DRM_INFO is deprecated in favor of drm_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 7 --- drivers/gpu/drm/drm_drv.c| 2 +- drivers/gpu/drm/drm_pci.c| 2 +- 4 files

[PATCH v8 6/8] drm: Remove usage of deprecated DRM_DEBUG

2023-02-28 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG is deprecated in favor of drm_dbg_core(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_agpsupport.c | 4 +- drivers/gpu/drm/drm_bufs.c| 114 +++--- drivers/gpu/drm/drm_context.c | 14 ++-- drivers/gpu/drm/drm_dma.c

[PATCH v8 8/8] drm: Remove usage of deprecated DRM_DEBUG_KMS

2023-02-28 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_KMS is deprecated in favor of drm_dbg_kms(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 112 ++--- drivers/gpu/drm/drm_color_mgmt.c | 4 +- drivers/gpu/drm/drm_connector.c| 21 ++--- drivers/gpu

[PATCH v8 5/8] drm: Remove usage of deprecated DRM_ERROR

2023-02-28 Thread Siddh Raman Pant
drm_print.h says DRM_ERROR is deprecated in favor of drm_err(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_bridge.c | 8 drivers/gpu/drm/drm_bufs.c | 8 drivers/gpu/drm/drm_client_modeset.c | 4 ++-- drivers/gpu/drm/drm_context.c| 4

[PATCH v8 4/8] drm: Remove usage of deprecated DRM_NOTE

2023-02-28 Thread Siddh Raman Pant
drm_print.h says DRM_NOTE is deprecated in favor of drm_notice(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_displayid.c | 2 +- drivers/gpu/drm/drm_kms_helper_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_displayid.c b

[PATCH v8 7/8] drm: Remove usage of deprecated DRM_DEBUG_DRIVER

2023-02-28 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_DRIVER is deprecated. Thus, use newer drm_dbg_driver(). Also fix the deprecation comment in drm_print.h which mentions drm_dbg() instead of drm_dbg_driver(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dbi.c | 10 +- include/drm/drm_print.h

[PATCH v8 0/8] drm: Remove usage of deprecated DRM_* macros

2023-02-28 Thread Siddh Raman Pant
the patch is dropped. - DRY: NULL support is now achieved by way of a separate function. Siddh Raman Pant (8): Revert "drm: mipi-dsi: Convert logging to drm_* functions." drm/print: Fix and add support for NULL as first argument in drm_* macros drm: Remove usage of deprecated

[PATCH v8 1/8] Revert "drm: mipi-dsi: Convert logging to drm_* functions."

2023-02-28 Thread Siddh Raman Pant
This reverts commit 1040e424353f5f4d39f6f3aa8723eb3bd6ea6446. It used an incorrect way to use drm_* functions. Only drm_device ptrs should be passed, but the mentioned commit passed mipi_dsi_host ptr. It worked by accident due to macro magic. Reported-by: Jani Nikula Signed-off-by: Siddh Raman

[PATCH v8 2/8] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-02-28 Thread Siddh Raman Pant
pr_()* can now be changed to the drm equivalents. Signed-off-by: Siddh Raman Pant --- include/drm/drm_print.h | 79 +++-- 1 file changed, 52 insertions(+), 27 deletions(-) diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h index a93a387f8a1a..4b8532cf2

Re: [PATCH v7 1/7] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-02-27 Thread Siddh Raman Pant
On Mon, 27 Feb 2023 15:13:21 +0530, Jani Nikula wrote: > First of all, that's two distinct changes in one patch. The subject says > one thing, but it's really two. Sorry, my bad. > But the main question is, do we *really* want to let callers pass either > struct drm_device * or struct device *?

[PATCH v7 7/7] drm: Remove usage of deprecated DRM_DEBUG_KMS

2023-02-25 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_KMS is deprecated in favor of drm_dbg_kms(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 112 ++--- drivers/gpu/drm/drm_color_mgmt.c | 4 +- drivers/gpu/drm/drm_connector.c| 21 ++--- drivers/gpu

[PATCH v7 3/7] drm: Remove usage of deprecated DRM_NOTE

2023-02-25 Thread Siddh Raman Pant
drm_print.h says DRM_NOTE is deprecated in favor of drm_notice(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_displayid.c | 2 +- drivers/gpu/drm/drm_kms_helper_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_displayid.c b

[PATCH v7 0/7] drm: Remove usage of deprecated DRM_* macros

2023-02-25 Thread Siddh Raman Pant
2022) -> v2 (22 Dec 2022): - Removed conversions to pr_*() in DRM_INFO, DRM_NOTE, and DRM_ERROR changes. - Due to above, DRM_NOTE usage cannot be removed and the patch is dropped. - DRY: NULL support is now achieved by way of a separate function. Siddh Raman Pant (7): drm/print: Fix and a

[PATCH v7 6/7] drm: Remove usage of deprecated DRM_DEBUG_DRIVER

2023-02-25 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_DRIVER is deprecated. Thus, use newer drm_dbg_driver(). Also fix the deprecation comment in drm_print.h which mentions drm_dbg() instead of drm_dbg_driver(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dbi.c | 10 +- include/drm/drm_print.h

[PATCH v7 5/7] drm: Remove usage of deprecated DRM_DEBUG

2023-02-25 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG is deprecated in favor of drm_dbg_core(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_agpsupport.c | 4 +- drivers/gpu/drm/drm_bufs.c| 114 +++--- drivers/gpu/drm/drm_context.c | 14 ++-- drivers/gpu/drm/drm_dma.c

[PATCH v7 1/7] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-02-25 Thread Siddh Raman Pant
ing, the resultant would be "host->dev", but now due to NULL check that cannot happen. Signed-off-by: Siddh Raman Pant --- include/drm/drm_print.h | 114 ++-- 1 file changed, 87 insertions(+), 27 deletions(-) diff --git a/include/drm/drm_print

[PATCH v7 2/7] drm: Remove usage of deprecated DRM_INFO

2023-02-25 Thread Siddh Raman Pant
drm_print.h says DRM_INFO is deprecated in favor of drm_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 7 --- drivers/gpu/drm/drm_drv.c| 2 +- drivers/gpu/drm/drm_pci.c| 2 +- 4 files

[PATCH v7 4/7] drm: Remove usage of deprecated DRM_ERROR

2023-02-25 Thread Siddh Raman Pant
drm_print.h says DRM_ERROR is deprecated in favor of drm_err(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_bridge.c | 8 drivers/gpu/drm/drm_bufs.c | 8 drivers/gpu/drm/drm_client_modeset.c | 4 ++-- drivers/gpu/drm/drm_context.c| 4

Re: [PATCH v6 00/10] drm: Remove usage of deprecated DRM_* macros

2023-01-31 Thread Siddh Raman Pant
On Mon, 9 Jan 2023 at 18:30:25 +0530, Siddh Raman Pant wrote: > This patchset aims to remove usages of deprecated DRM_* macros from the > files residing in drivers/gpu/drm root. > > In process, I found out that NULL as first argument of drm_dbg_* wasn't > working, bu

Re: [RFC] Proposal for X.Org EVoC

2023-01-23 Thread Siddh Raman Pant
On Sun, 22 Jan 2023 at 01:56:07 +0530, Siddh Raman Pant wrote: > Hello, > > I want to participate in X.Org EVoC as I am looking to learn and > contribute more to the Linux kernel. > > I have made a draft proposal at > https://gitlab.freedesktop.org/-/snippets/7366. Seem

[RFC] Proposal for X.Org EVoC

2023-01-23 Thread Siddh Raman Pant
Hello, I want to participate in X.Org EVoC as I am looking to learn and contribute more to the Linux kernel. I have made a draft proposal at https://gitlab.freedesktop.org/-/snippets/7366. Please take a look at it and let me know your thoughts. I am also looking for a mentor. I had tried

Re: [PATCH v6 00/10] drm: Remove usage of deprecated DRM_* macros

2023-01-10 Thread Siddh Raman Pant
On Tue, 10 Jan 2023 20:45:54 +0530, Simon Ser wrote: > I pushed the last 3 patches to drm-misc-next. Thank you!

[PATCH v6 10/10] drm/drm_lease: Remove usage of deprecated DRM_DEBUG_LEASE

2023-01-09 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_LEASE is deprecated in favor of drm_dbg_lease(). Signed-off-by: Siddh Raman Pant Reviewed-by: Simon Ser --- drivers/gpu/drm/drm_lease.c | 64 - 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm

[PATCH v6 05/10] drm: Remove usage of deprecated DRM_DEBUG

2023-01-09 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG is deprecated in favor of drm_dbg_core(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_agpsupport.c | 4 +- drivers/gpu/drm/drm_bufs.c| 114 +++--- drivers/gpu/drm/drm_context.c | 14 ++-- drivers/gpu/drm/drm_dma.c

[PATCH v6 01/10] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-01-09 Thread Siddh Raman Pant
ing, the resultant would be "host->dev", but now due to NULL check that cannot happen. Signed-off-by: Siddh Raman Pant --- include/drm/drm_print.h | 114 ++-- 1 file changed, 87 insertions(+), 27 deletions(-) diff --git a/include/drm/drm_print

[PATCH v6 03/10] drm: Remove usage of deprecated DRM_NOTE

2023-01-09 Thread Siddh Raman Pant
drm_print.h says DRM_NOTE is deprecated in favor of drm_notice(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_displayid.c | 2 +- drivers/gpu/drm/drm_kms_helper_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_displayid.c b

[PATCH v6 06/10] drm: Remove usage of deprecated DRM_DEBUG_DRIVER

2023-01-09 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_DRIVER is deprecated. Thus, use newer drm_dbg_driver(). Also fix the deprecation comment in drm_print.h which mentions drm_dbg() instead of drm_dbg_driver(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dbi.c | 10 +- include/drm/drm_print.h

[PATCH v6 09/10] drm/drm_blend: Remove usage of deprecated DRM_DEBUG_ATOMIC

2023-01-09 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_ATOMIC is deprecated in favor of drm_dbg_atomic(). Signed-off-by: Siddh Raman Pant Reviewed-by: Simon Ser --- drivers/gpu/drm/drm_blend.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_blend.c b/drivers/gpu/drm

[PATCH v6 08/10] drm: Remove usage of deprecated DRM_DEBUG_PRIME

2023-01-09 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_PRIME is deprecated in favor of drm_dbg_prime(). Signed-off-by: Siddh Raman Pant Reviewed-by: Simon Ser --- drivers/gpu/drm/drm_gem_dma_helper.c | 4 ++-- drivers/gpu/drm/drm_gem_shmem_helper.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v6 04/10] drm: Remove usage of deprecated DRM_ERROR

2023-01-09 Thread Siddh Raman Pant
drm_print.h says DRM_ERROR is deprecated in favor of drm_err(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_bridge.c | 8 drivers/gpu/drm/drm_bufs.c | 8 drivers/gpu/drm/drm_client_modeset.c | 4 ++-- drivers/gpu/drm/drm_context.c| 4

[PATCH v6 07/10] drm: Remove usage of deprecated DRM_DEBUG_KMS

2023-01-09 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_KMS is deprecated in favor of drm_dbg_kms(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 112 ++--- drivers/gpu/drm/drm_color_mgmt.c | 4 +- drivers/gpu/drm/drm_connector.c| 21 ++--- drivers/gpu

[PATCH v6 00/10] drm: Remove usage of deprecated DRM_* macros

2023-01-09 Thread Siddh Raman Pant
s. v1 -> v2: - Removed conversions to pr_*() in DRM_INFO, DRM_NOTE, and DRM_ERROR changes. - Due to above, DRM_NOTE usage cannot be removed and the patch is dropped. - DRY: NULL support is now achieved by way of a separate function. Siddh Raman Pant (10): drm/print: Fix and add support fo

[PATCH v6 02/10] drm: Remove usage of deprecated DRM_INFO

2023-01-09 Thread Siddh Raman Pant
drm_print.h says DRM_INFO is deprecated in favor of drm_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 7 --- drivers/gpu/drm/drm_drv.c| 2 +- drivers/gpu/drm/drm_pci.c| 2 +- 4 files

[PATCH v5 06/10] drm: Remove usage of deprecated DRM_DEBUG_DRIVER

2023-01-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_DRIVER is deprecated. Thus, use newer drm_dbg_driver(). Also fix the deprecation comment in drm_print.h which mentions drm_dbg() instead of drm_dbg_driver(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dbi.c | 10 +- include/drm/drm_print.h

[PATCH v5 08/10] drm: Remove usage of deprecated DRM_DEBUG_PRIME

2023-01-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_PRIME is deprecated in favor of drm_dbg_prime(). Signed-off-by: Siddh Raman Pant Reviewed-by: Simon Ser --- drivers/gpu/drm/drm_gem_dma_helper.c | 4 ++-- drivers/gpu/drm/drm_gem_shmem_helper.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v5 04/10] drm: Remove usage of deprecated DRM_ERROR

2023-01-07 Thread Siddh Raman Pant
drm_print.h says DRM_ERROR is deprecated in favor of drm_err(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_bridge.c | 8 drivers/gpu/drm/drm_bufs.c | 8 drivers/gpu/drm/drm_client_modeset.c | 4 ++-- drivers/gpu/drm/drm_context.c| 4

[PATCH v5 01/10] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-01-07 Thread Siddh Raman Pant
ing, the resultant would be "host->dev", but now due to NULL check that cannot happen. Signed-off-by: Siddh Raman Pant --- include/drm/drm_print.h | 109 +--- 1 file changed, 81 insertions(+), 28 deletions(-) diff --git a/include/drm/drm_print

[PATCH v5 02/10] drm: Remove usage of deprecated DRM_INFO

2023-01-07 Thread Siddh Raman Pant
drm_print.h says DRM_INFO is deprecated in favor of drm_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 7 --- drivers/gpu/drm/drm_drv.c| 2 +- drivers/gpu/drm/drm_pci.c| 2 +- 4 files

[PATCH v5 07/10] drm: Remove usage of deprecated DRM_DEBUG_KMS

2023-01-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_KMS is deprecated in favor of drm_dbg_kms(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 112 ++--- drivers/gpu/drm/drm_color_mgmt.c | 4 +- drivers/gpu/drm/drm_connector.c| 21 ++--- drivers/gpu

[PATCH v5 09/10] drm/drm_blend: Remove usage of deprecated DRM_DEBUG_ATOMIC

2023-01-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_ATOMIC is deprecated in favor of drm_dbg_atomic(). Signed-off-by: Siddh Raman Pant Reviewed-by: Simon Ser --- drivers/gpu/drm/drm_blend.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_blend.c b/drivers/gpu/drm

[PATCH v5 05/10] drm: Remove usage of deprecated DRM_DEBUG

2023-01-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG is deprecated in favor of drm_dbg_core(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_agpsupport.c | 4 +- drivers/gpu/drm/drm_bufs.c| 114 +++--- drivers/gpu/drm/drm_context.c | 14 ++-- drivers/gpu/drm/drm_dma.c

[PATCH v5 10/10] drm/drm_lease: Remove usage of deprecated DRM_DEBUG_LEASE

2023-01-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_LEASE is deprecated in favor of drm_dbg_lease(). Signed-off-by: Siddh Raman Pant Reviewed-by: Simon Ser --- drivers/gpu/drm/drm_lease.c | 64 - 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm

[PATCH v5 00/10] drm: Remove usage of deprecated DRM_* macros

2023-01-07 Thread Siddh Raman Pant
: NULL support is now achieved by way of a separate function. Siddh Raman Pant (10): drm/print: Fix and add support for NULL as first argument in drm_* macros drm: Remove usage of deprecated DRM_INFO drm: Remove usage of deprecated DRM_NOTE drm: Remove usage of deprecated DRM_ERROR drm

[PATCH v5 03/10] drm: Remove usage of deprecated DRM_NOTE

2023-01-07 Thread Siddh Raman Pant
drm_print.h says DRM_NOTE is deprecated in favor of drm_notice(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_displayid.c | 2 +- drivers/gpu/drm/drm_kms_helper_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_displayid.c b

Re: [PATCH v4 01/10] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-01-05 Thread Siddh Raman Pant
On Fri, 06 Jan 2023 06:43:35 +0530, kernel test robot wrote > Hi Siddh, > > Thank you for the patch! Perhaps something to improve: Yes, I sent the rectification as a reply to this patch. [1] Reviewers may please take note. Thanks, Siddh [1]

Re: [PATCH 01/10] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-01-05 Thread Siddh Raman Pant
ing, the resultant would be "host->dev", but now due to NULL check that cannot happen. Signed-off-by: Siddh Raman Pant --- I accidentally removed one underscore in Generic before sending the patch. Please use this corrected patch, otherwise build will fail. Sending entire patchset for

[PATCH v4 09/10] drm/drm_blend: Remove usage of deprecated DRM_DEBUG_ATOMIC

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_ATOMIC is deprecated in favor of drm_dbg_atomic(). Signed-off-by: Siddh Raman Pant Reviewed-by: Simon Ser --- drivers/gpu/drm/drm_blend.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_blend.c b/drivers/gpu/drm

[PATCH v4 01/10] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-01-05 Thread Siddh Raman Pant
ing, the resultant would be "host->dev", but now due to NULL check that cannot happen. Signed-off-by: Siddh Raman Pant --- include/drm/drm_print.h | 101 +--- 1 file changed, 73 insertions(+), 28 deletions(-) diff --git a/include/drm/drm_print

[PATCH v4 07/10] drm: Remove usage of deprecated DRM_DEBUG_KMS

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_KMS is deprecated in favor of drm_dbg_kms(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 112 ++--- drivers/gpu/drm/drm_color_mgmt.c | 4 +- drivers/gpu/drm/drm_connector.c| 21 ++--- drivers/gpu

[PATCH v4 02/10] drm: Remove usage of deprecated DRM_INFO

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_INFO is deprecated in favor of drm_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 7 --- drivers/gpu/drm/drm_drv.c| 2 +- drivers/gpu/drm/drm_pci.c| 2 +- 4 files

[PATCH v4 10/10] drm/drm_lease: Remove usage of deprecated DRM_DEBUG_LEASE

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_LEASE is deprecated in favor of drm_dbg_lease(). Signed-off-by: Siddh Raman Pant Reviewed-by: Simon Ser --- drivers/gpu/drm/drm_lease.c | 64 - 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm

[PATCH v4 04/10] drm: Remove usage of deprecated DRM_ERROR

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_ERROR is deprecated in favor of drm_err(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_bridge.c | 8 drivers/gpu/drm/drm_bufs.c | 8 drivers/gpu/drm/drm_client_modeset.c | 4 ++-- drivers/gpu/drm/drm_context.c| 4

[PATCH v4 03/10] drm: Remove usage of deprecated DRM_NOTE

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_NOTE is deprecated in favor of drm_notice(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_displayid.c | 2 +- drivers/gpu/drm/drm_kms_helper_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_displayid.c b

[PATCH v4 00/10] drm: Remove usage of deprecated DRM_* macros

2023-01-05 Thread Siddh Raman Pant
conversions to pr_*() in DRM_INFO, DRM_NOTE, and DRM_ERROR changes. - Due to above, DRM_NOTE usage cannot be removed and the patch is dropped. - DRY: NULL support is now achieved by way of a separate function. Siddh Raman Pant (10): drm/print: Fix and add support for NULL as first argument in drm_

[PATCH v4 06/10] drm: Remove usage of deprecated DRM_DEBUG_DRIVER

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_DRIVER is deprecated. Thus, use newer drm_dbg_driver(). Also fix the deprecation comment in drm_print.h which mentions drm_dbg() instead of drm_dbg_driver(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dbi.c | 10 +- include/drm/drm_print.h

[PATCH v4 05/10] drm: Remove usage of deprecated DRM_DEBUG

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG is deprecated in favor of drm_dbg_core(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_agpsupport.c | 4 +- drivers/gpu/drm/drm_bufs.c| 114 +++--- drivers/gpu/drm/drm_context.c | 14 ++-- drivers/gpu/drm/drm_dma.c

[PATCH v4 08/10] drm: Remove usage of deprecated DRM_DEBUG_PRIME

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_PRIME is deprecated in favor of drm_dbg_prime(). Signed-off-by: Siddh Raman Pant Reviewed-by: Simon Ser --- drivers/gpu/drm/drm_gem_dma_helper.c | 4 ++-- drivers/gpu/drm/drm_gem_shmem_helper.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v3 07/10] drm: Remove usage of deprecated DRM_DEBUG_KMS

2022-12-28 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_KMS is deprecated in favor of drm_dbg_kms(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 112 ++--- drivers/gpu/drm/drm_color_mgmt.c | 4 +- drivers/gpu/drm/drm_connector.c| 21 ++--- drivers/gpu

[PATCH v3 05/10] drm: Remove usage of deprecated DRM_DEBUG

2022-12-28 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG is deprecated in favor of drm_dbg_core(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_agpsupport.c | 4 +- drivers/gpu/drm/drm_bufs.c| 114 +++--- drivers/gpu/drm/drm_context.c | 14 ++-- drivers/gpu/drm/drm_dma.c

[PATCH v3 03/10] drm: Remove usage of deprecated DRM_NOTE

2022-12-28 Thread Siddh Raman Pant
drm_print.h says DRM_INFO is deprecated in favor of drm_notice(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_displayid.c | 2 +- drivers/gpu/drm/drm_kms_helper_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_displayid.c b

  1   2   >