Re: [Intel-gfx] [PATCH 17/17] drm/i915/uc: prefer struct drm_device based logging

2020-04-08 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Prefer struct drm_device based logging over struct device based logging. No functional changes. Cc: Wambui Karuga Signed-off-by: Jani Nikula Reviewed-by: Wambui Karuga --- drivers/gpu/drm/i915/gt/uc/intel_uc.c| 14 +++--- drivers/gpu

Re: [Intel-gfx] [PATCH 16/17] drm/i915/gt: prefer struct drm_device based logging

2020-04-08 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Prefer struct drm_device based logging over struct device based logging. No functional changes. Cc: Wambui Karuga Signed-off-by: Jani Nikula Reviewed-by: Wambui Karuga --- drivers/gpu/drm/i915/gt/intel_ggtt.c | 4 ++-- drivers/gpu/drm/i915/gt

Re: [Intel-gfx] [PATCH 15/17] drm/i915/stolen: prefer struct drm_device based logging

2020-04-08 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Prefer struct drm_device based logging over struct device based logging. No functional changes. Cc: Wambui Karuga Signed-off-by: Jani Nikula Reviewed-by: Wambui Karuga --- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 4 ++-- 1 file changed, 2

Re: [Intel-gfx] [PATCH 14/17] drm/i915/uncore: prefer struct drm_device based logging

2020-04-08 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Prefer struct drm_device based logging over struct device based logging. No functional changes. Cc: Wambui Karuga Signed-off-by: Jani Nikula Reviewed-by: Wambui Karuga --- drivers/gpu/drm/i915/intel_uncore.c | 2 +- 1 file changed, 1 insertion

Re: [Intel-gfx] [PATCH 13/17] drm/i915/dram: prefer struct drm_device based logging

2020-04-08 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Prefer struct drm_device based logging over struct device based logging. No functional changes. Cc: Wambui Karuga Signed-off-by: Jani Nikula Reviewed-by: Wambui Karuga --- drivers/gpu/drm/i915/intel_dram.c | 3 +-- 1 file changed, 1 insertion

Re: [Intel-gfx] [PATCH 12/17] drm/i915/pmu: prefer struct drm_device based logging

2020-04-08 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Prefer struct drm_device based logging over struct device based logging. No functional changes. Cc: Wambui Karuga Signed-off-by: Jani Nikula Reviewed-by: Wambui Karuga --- drivers/gpu/drm/i915/i915_pmu.c | 4 ++-- 1 file changed, 2 insertions

Re: [Intel-gfx] [PATCH 11/17] drm/i915/error: prefer struct drm_device based logging

2020-04-08 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Prefer struct drm_device based logging over struct device based logging. No functional changes. Cc: Wambui Karuga Signed-off-by: Jani Nikula Reviewed-by: Wambui Karuga --- drivers/gpu/drm/i915/i915_gpu_error.c | 2 +- 1 file changed, 1 insertion

Re: [Intel-gfx] [PATCH 10/17] drm/i915/uc: prefer struct drm_device based logging

2020-04-08 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Prefer struct drm_device based logging over struct device based logging. No functional changes. Cc: Wambui Karuga Signed-off-by: Jani Nikula Reviewed-by: Wambui Karuga --- drivers/gpu/drm/i915/gt/uc/intel_uc.c| 12 ++-- drivers/gpu

Re: [Intel-gfx] [PATCH 09/17] drm/i915/switcheroo: use struct drm_device based logging

2020-04-08 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Convert all the pr_* logging macros to the struct drm_device based macros to provide device specific logging. No functional changes. Cc: Wambui Karuga Signed-off-by: Jani Nikula Reviewed-by: Wambui Karuga --- drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 08/17] drm/i915/state: use struct drm_device based logging

2020-04-08 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Convert all the DRM_* logging macros to the struct drm_device based macros to provide device specific logging. No functional changes. Cc: Wambui Karuga Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_global_state.c | 5 +++-- 1 file

Re: [Intel-gfx] [PATCH 07/17] drm/i915/bw: use struct drm_device based logging

2020-04-07 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Convert all the DRM_* logging macros to the struct drm_device based macros to provide device specific logging. No functional changes. Cc: Wambui Karuga Signed-off-by: Jani Nikula Reviewed-by: Wambui Karuga --- drivers/gpu/drm/i915/display

Re: [Intel-gfx] [PATCH 06/17] drm/i915/debugfs: use struct drm_device based logging

2020-04-07 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Convert all the DRM_* logging macros to the struct drm_device based macros to provide device specific logging. No functional changes. Cc: Wambui Karuga Signed-off-by: Jani Nikula Reviewed-by: Wambui Karuga --- drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 05/17] drm/i915/crt: use struct drm_device based logging

2020-04-07 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Convert all the DRM_* logging macros to the struct drm_device based macros to provide device specific logging. No functional changes. Cc: Wambui Karuga Signed-off-by: Jani Nikula Reviewed-by: Wambui Karuga --- drivers/gpu/drm/i915/display

Re: [Intel-gfx] [PATCH 04/17] drm/i915/dp: use struct drm_device based logging

2020-04-07 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Convert all the DRM_* logging macros to the struct drm_device based macros to provide device specific logging. No functional changes. Generated using the following semantic patch, originally written by Wambui Karuga , with manual fixups on top

Re: [Intel-gfx] [PATCH 03/17] drm/i915/tc: use struct drm_device based logging

2020-04-07 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Convert all the DRM_* logging macros to the struct drm_device based macros to provide device specific logging. No functional changes. Generated using the following semantic patch, originally written by Wambui Karuga , with manual fixups on top

Re: [Intel-gfx] [PATCH 02/17] drm/i915/panel: use struct drm_device based logging

2020-04-07 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Convert all the DRM_* logging macros to the struct drm_device based macros to provide device specific logging. No functional changes. Generated using the following semantic patch, originally written by Wambui Karuga , with manual fixups on top

Re: [Intel-gfx] [PATCH 01/17] drm/i915/audio: use struct drm_device based logging

2020-04-07 Thread Wambui Karuga
On Thu, 2 Apr 2020, Jani Nikula wrote: Convert all the DRM_* logging macros to the struct drm_device based macros to provide device specific logging. No functional changes. Generated using the following semantic patch, originally written by Wambui Karuga , with manual fixups on top

Re: [Intel-gfx] [PATCH 06/10] drm/i915/hdcp: convert to struct drm_device based logging.

2020-03-18 Thread Wambui Karuga
On Tue, 10 Mar 2020, Jani Nikula wrote: From: Wambui Karuga Converts various instances of the printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_hdcp.c. This also involves extracting the drm_i915_private device from the intel_connector type

Re: [Intel-gfx] [PATCH 03/10] drm/i915/fbdev: convert to drm_device based logging.

2020-03-18 Thread Wambui Karuga
On Tue, 10 Mar 2020, Jani Nikula wrote: From: Wambui Karuga Convert various instances of printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_fbdev.c. This also involves extracting the drm_i915_private device from various intel types. v2 by

Re: [Intel-gfx] [PATCH 02/10] drm/i915/fbc: convert to drm_device based logging macros.

2020-03-18 Thread Wambui Karuga
On Tue, 10 Mar 2020, Jani Nikula wrote: From: Wambui Karuga This replaces the uses of the printk based drm logging macros with the struct drm_device based logging macros in i915/display/intel_fbc.c. This transformation was done using the following coccinelle semantic patch that matches

[Intel-gfx] [PATCH 7/7] drm/i915/workarounds: convert to drm_device based logging macros.

2020-03-14 Thread Wambui Karuga
Replace the use of printk based drm logging macros with the struct drm_device based logging macros. Note that this converts DRM_DEBUG_DRIVER() to drm_dbg(). References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm

[Intel-gfx] [PATCH 4/7] drm/i915/renderstate: use struct drm_device based logging macros.

2020-03-14 Thread Wambui Karuga
Replace the use of the printk based drm logging macros with the struct drm_device based logging macros. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/gt/intel_renderstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/intel_renderstate.c b

[Intel-gfx] [PATCH 2/7] drm/i915/lrc: convert to struct drm_device based logging macros.

2020-03-14 Thread Wambui Karuga
://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/gt/intel_lrc.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c index 112531b29f59

[Intel-gfx] [PATCH 6/7] drm/i915/rps: use struct drm_device based logging macros.

2020-03-14 Thread Wambui Karuga
converting DRM_DEBUG() instances due to the lack of an analogous drm_device based macro. References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/gt/intel_rps.c | 75 ++--- 1 file changed, 36

[Intel-gfx] [PATCH 5/7] drm/i915/ring_submission: use drm_device based logging macros.

2020-03-14 Thread Wambui Karuga
->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } New checkpatch warnings were fixed manually. Note that this converts DRM_DEBUG_DRIVER to drm_dbg(). References: https://lists.freedesktop.org/archives/dri-devel/2020-Ja

[Intel-gfx] [PATCH 0/7] drm/i915/gt: convert to struct drm_device based logging macros.

2020-03-14 Thread Wambui Karuga
This patchset continues the conversion of printk based macros to use the struct drm_device based drm logging macros focused on the i915/gt folder. These patches were achieved using both coccinelle and manually. Wambui Karuga (7): drm/i915/ggtt: convert to drm_device based logging macros. drm

[Intel-gfx] [PATCH 3/7] drm/i915/rc6: convert to struct drm_device based logging macros.

2020-03-14 Thread Wambui Karuga
://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/gt/intel_rc6.c | 35 - 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_rc6.c b/drivers/gpu/drm/i915/gt/intel_rc6.c index

[Intel-gfx] [PATCH 1/7] drm/i915/ggtt: convert to drm_device based logging macros.

2020-03-14 Thread Wambui Karuga
->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } New checkpatch warnings were fixed manually. Note that this converts DRM_DEBUG_DRIVER to drm_dbg() References: https://lists.freedesktop.org/archiv

Re: [Intel-gfx] [PATCH 00/10] drm/i915/display: conversion to drm_device based logging macros

2020-03-11 Thread Wambui Karuga
p: convert to struct drm_device based logging. Will do, thanks! wambui karuga Thanks, Jani. -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH v2 14/17] drm/i915: have *_debugfs_init() functions return void.

2020-03-10 Thread Wambui Karuga
intel_display_debugfs_register() stub to return void too. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 8 drivers/gpu/drm/i915/display/intel_display_debugfs.h | 4 ++-- drivers/gpu/drm/i915/i915_debugfs.c | 8 drivers/gpu/drm/i915/i915_debugfs.h

[Intel-gfx] [PATCH 16/21] drm/i915: make *_debugfs_register() functions return void.

2020-02-27 Thread Wambui Karuga
-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 8 drivers/gpu/drm/i915/display/intel_display_debugfs.h | 4 ++-- drivers/gpu/drm/i915/i915_debugfs.c | 8 drivers/gpu/drm/i915/i915_debugfs.h | 4 ++-- 4 files

[Intel-gfx] [PATCH 06/10] drm/i915/hdcp: convert to struct drm_device based logging.

2020-02-26 Thread Wambui Karuga
Converts various instances of the printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_hdcp.c. This also involves extracting the drm_i915_private device from the intel_connector type for use in the macros. Signed-off-by: Wambui Karuga --- drivers

[Intel-gfx] [PATCH 08/10] drm/i915/lpe_audio: convert to drm_device based logging macros.

2020-02-26 Thread Wambui Karuga
: Wambui Karuga --- .../gpu/drm/i915/display/intel_lpe_audio.c| 23 +++ 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_lpe_audio.c b/drivers/gpu/drm/i915/display/intel_lpe_audio.c index 516e7179a5a4..ad5cc13037ae 100644 --- a/drivers

[Intel-gfx] [PATCH 02/10] drm/i915/fbc: convert to drm_device based logging macros.

2020-02-26 Thread Wambui Karuga
...) | -DRM_WARN( +drm_warn(&T->drm, ...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } New checkpatch warnings were addressed manually.

[Intel-gfx] [PATCH 07/10] drm/i915/hotplug: convert to drm_device based logging.

2020-02-26 Thread Wambui Karuga
Converts various instances of the printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_hotplug.c. In some cases, this involves extracting the drm_i915_private pointer from the drm_device struct to be used in the logging macros. Signed-off-by: Wambui

[Intel-gfx] [PATCH 04/10] drm/i915/fifo_underrun: convert to drm_device based logging.

2020-02-26 Thread Wambui Karuga
..) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } New checkpatch warnings were addressed manually. Signed-off-by: Wambui Karuga --- .../drm/i915/display/intel_fifo_underrun.c

[Intel-gfx] [PATCH 03/10] drm/i915/fbdev: convert to drm_device based logging.

2020-02-26 Thread Wambui Karuga
Convert various instances of printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_fbdev.c. This also involves extracting the drm_i915_private device from various intel types. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 05/10] drm/i915/gmbus: convert to drm_device based logging,

2020-02-26 Thread Wambui Karuga
warn(&T->drm, ...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } New checkpatch warnings were addressed manually. Signed-off-

[Intel-gfx] [PATCH 01/10] drm/i915/dsb: convert to drm_device based logging macros.

2020-02-26 Thread Wambui Karuga
_dbg_kms(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were fixed manually. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/intel_dsb.c | 28 ++-- 1 file ch

[Intel-gfx] [PATCH 09/10] drm/i915/lvds: convert to drm_device based logging macros.

2020-02-26 Thread Wambui Karuga
warn(&T->drm, ...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } New checkpatch warnings were fixed manually. Signed-off-by:

[Intel-gfx] [PATCH 10/10] drm/i915/overlay: convert to drm_device based logging.

2020-02-26 Thread Wambui Karuga
..) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Note that this converts DRM_DEBUG to drm_dbg(). Checkpatch warnings were addressed manually. References: https://lists.

[Intel-gfx] [PATCH 00/10] drm/i915/display: conversion to drm_device based logging macros

2020-02-26 Thread Wambui Karuga
This series continues the conversion of various instances of the printk based drm logging macros to use the struct drm_device logging macros. This series focuses on various files in drm/i915/display and was done both manually and using coccinelle. Wambui Karuga (10): drm/i915/dsb: convert to

[Intel-gfx] [PATCH v2] drm/i915/perf: conversion to struct drm_device based logging macros.

2020-02-18 Thread Wambui Karuga
converted due to the lack of an analogous struct drm_device based logging macro. v2: remove instances of DRM_DEBUG that were converted. References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/i915_perf.c | 27

[Intel-gfx] [PATCH] drm/i915: make i915_debugfs_register return void.

2020-02-18 Thread Wambui Karuga
As drm_debugfs_create_files should return void, remove its use as the return value of i915_debugfs_register and have i915_debugfs_register return void. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/i915_debugfs.c | 8 drivers/gpu/drm/i915/i915_debugfs.h | 4 ++-- 2 files

Re: [Intel-gfx] [PATCH v2 11/12] drm/i915/hdmi: convert to struct drm_device based logging macros.

2020-02-11 Thread Wambui Karuga
On Tue, 11 Feb 2020, Jani Nikula wrote: On Thu, 06 Feb 2020, Wambui Karuga wrote: @@ -1364,11 +1372,15 @@ int intel_hdmi_hdcp_write_an_aksv(struct intel_digital_port *intel_dig_port, static int intel_hdmi_hdcp_read_bksv(struct intel_digital_port *intel_dig_port

Re: [Intel-gfx] [PATCH] drm/i915/hdmi: prefer to_i915() over drm->dev_private to get at i915

2020-02-11 Thread Wambui Karuga
On Tue, 11 Feb 2020, Jani Nikula wrote: drm->dev_private is to be avoided. Use to_i915() on the struct drm_device pointer instead. Rename the affected local dev_priv variables to i915 while at it. Applies cleanly, and compiles. Changes also look good to me. Reviewed by: Wambui Kar

[Intel-gfx] [PATCH v2 11/12] drm/i915/hdmi: convert to struct drm_device based logging macros.

2020-02-06 Thread Wambui Karuga
DRM_DEBUG_DRIVER() to drm_dbg(). References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/intel_hdmi.c | 193 ++ 1 file changed, 128 insertions(+), 65 deletions(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH v2 12/12] drm/i915/dpio_phy: convert to drm_device based logging macros.

2020-02-06 Thread Wambui Karuga
rnings were fixed manually. References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/intel_dpio_phy.c | 28 +++ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/dri

[Intel-gfx] [PATCH v2 10/12] drm/i915/dsi_vbt: convert to drm_device based logging macros.

2020-02-06 Thread Wambui Karuga
to drm_dbg(). References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/intel_dsi_vbt.c | 162 +++ 1 file changed, 99 insertions(+), 63 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH v2 07/12] drm/i915/dpll_mgr: convert to drm_device based logging macros.

2020-02-06 Thread Wambui Karuga
converts DRM_DEBUG_DRIVER to drm_dbg(). References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 254 ++ 1 file changed, 142 insertions(+), 112 deletions(-) diff --git a

[Intel-gfx] [PATCH v2 08/12] drm/i915/combo_phy: convert to struct drm_device logging macros.

2020-02-06 Thread Wambui Karuga
eckpatch warnings were addressed manually. References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- .../gpu/drm/i915/display/intel_combo_phy.c| 23 +++ 1 file changed, 14 insertions(+), 9 deletions(-) diff

[Intel-gfx] [PATCH v2 09/12] drm/i915/dp_mst: convert to drm_device based logging macros.

2020-02-06 Thread Wambui Karuga
Conversion of instances of the printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_dp_mst.c. This also involves extracting the drm_i915_private device pointer from various intel types to use in the macros. Signed-off-by: Wambui Karuga --- drivers

[Intel-gfx] [PATCH v2 01/12] drm/i915/dp: convert to struct drm_device based logging macros.

2020-02-06 Thread Wambui Karuga
Converts various instances of the printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_dp.c. This also involves extracting the struct drm_i915_private device pointer from various intel types to be used in the macros. Signed-off-by: Wambui Karuga

[Intel-gfx] [PATCH v2 06/12] drm/i915/dp_aux_backlight: convert to drm_device based logging macros.

2020-02-06 Thread Wambui Karuga
(). References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- .../drm/i915/display/intel_dp_aux_backlight.c | 72 --- 1 file changed, 45 insertions(+), 27 deletions(-) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v2 04/12] drm/i915/color: conversion to drm_device based logging macros.

2020-02-06 Thread Wambui Karuga
Initial conversion of the straightforward printk based logging macros to the struct drm_device based logging macros in i915/display/intel_color.c. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/intel_color.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

[Intel-gfx] [PATCH v2 00/12] drm/i915/display: convert to drm_device based logging macros.

2020-02-06 Thread Wambui Karuga
This patchset continues the conversion of the printk based drm logging macros in drm/i915 to use the struct drm_device based logging macros. This series was done both using coccinelle and manually. v2: rebase onto drm-tip to fix conflicts with new changes in drm/i915. Wambui Karuga (12): drm

[Intel-gfx] [PATCH v2 05/12] drm/i915/crt: automatic conversion to drm_device based logging macros.

2020-02-06 Thread Wambui Karuga
..) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were addressed manually. Signed-off-by: Wambui Karuga --- drivers/

[Intel-gfx] [PATCH v2 02/12] drm/i915/dp_link_training: convert to drm_device based logging macros.

2020-02-06 Thread Wambui Karuga
Converts various instances of the printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_dp_link_training.c. This also involves extracting the drm_i915_private device pointer from the intel_dp type to use in the various macros. Signed-off-by: Wambui

[Intel-gfx] [PATCH v2 03/12] drm/i915/atomic: conversion to drm_device based logging macros.

2020-02-06 Thread Wambui Karuga
rm, ...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were fixed manually. Signed-off-by: Wambui Karuga ---

[Intel-gfx] [PATCH 01/12] drm/i915/dp: convert to struct drm_device based logging macros.

2020-02-04 Thread Wambui Karuga
Converts various instances of the printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_dp.c. This also involves extracting the struct drm_i915_private device pointer from various intel types to be used in the macros. Signed-off-by: Wambui Karuga

[Intel-gfx] [PATCH 06/12] drm/i915/dp_aux_backlight: convert to drm_device based logging macros.

2020-02-04 Thread Wambui Karuga
(). References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- .../drm/i915/display/intel_dp_aux_backlight.c | 72 --- 1 file changed, 45 insertions(+), 27 deletions(-) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 10/12] drm/i915/dsi_vbt: convert to drm_device based logging macros.

2020-02-04 Thread Wambui Karuga
to drm_dbg(). References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/intel_dsi_vbt.c | 162 +++ 1 file changed, 99 insertions(+), 63 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 12/12] drm/i915/dpio_phy: convert to drm_device based logging macros.

2020-02-04 Thread Wambui Karuga
rnings were fixed manually. References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/intel_dpio_phy.c | 28 +++ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/dri

[Intel-gfx] [PATCH 07/12] drm/i915/dpll_mgr: convert to drm_device based logging macros.

2020-02-04 Thread Wambui Karuga
converts DRM_DEBUG_DRIVER to drm_dbg(). References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 254 ++ 1 file changed, 142 insertions(+), 112 deletions(-) diff --git a

[Intel-gfx] [PATCH 08/12] drm/i915/combo_phy: convert to struct drm_device logging macros.

2020-02-04 Thread Wambui Karuga
eckpatch warnings were addressed manually. References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- .../gpu/drm/i915/display/intel_combo_phy.c| 23 +++ 1 file changed, 14 insertions(+), 9 deletions(-) diff

[Intel-gfx] [PATCH 09/12] drm/i915/dp_mst: convert to drm_device based logging macros.

2020-02-04 Thread Wambui Karuga
Conversion of instances of the printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_dp_mst.c. This also involves extracting the drm_i915_private device pointer from various intel types to use in the macros. Signed-off-by: Wambui Karuga --- drivers

[Intel-gfx] [PATCH 02/12] drm/i915/dp_link_training: convert to drm_device based logging macros.

2020-02-04 Thread Wambui Karuga
Converts various instances of the printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_dp_link_training.c. This also involves extracting the drm_i915_private device pointer from the intel_dp type to use in the various macros. Signed-off-by: Wambui

[Intel-gfx] [PATCH 11/12] drm/i915/hdmi: convert to struct drm_device based logging macros.

2020-02-04 Thread Wambui Karuga
DRM_DEBUG_DRIVER() to drm_dbg(). References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/intel_hdmi.c | 193 ++ 1 file changed, 128 insertions(+), 65 deletions(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH 04/12] drm/i915/color: conversion to drm_device based logging macros.

2020-02-04 Thread Wambui Karuga
Initial conversion of the straightforward printk based logging macros to the struct drm_device based logging macros in i915/display/intel_color.c. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/intel_color.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

[Intel-gfx] [PATCH 03/12] drm/i915/atomic: conversion to drm_device based logging macros.

2020-02-04 Thread Wambui Karuga
rm, ...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were fixed manually. Signed-off-by: Wambui Karuga ---

[Intel-gfx] [PATCH 05/12] drm/i915/crt: automatic conversion to drm_device based logging macros.

2020-02-04 Thread Wambui Karuga
..) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were addressed manually. Signed-off-by: Wambui Karuga --- drivers/

[Intel-gfx] [PATCH 00/12] drm/i915: conversion to drm_device based logging macros.

2020-02-04 Thread Wambui Karuga
This patchset continues the conversion of printk based logging macros to the struct drm_device based logging macros in drm/i915, this time focusing on the i915/display folder. The patches were achieved manually and using coccinelle. Wambui Karuga (12): drm/i915/dp: convert to struct drm_device

[Intel-gfx] [PATCH 5/5] drm/i915/pci: conversion to drm_device based logging macros.

2020-01-31 Thread Wambui Karuga
Manual conversion of instances of printk based drm logging macros to the struct drm_device based logging macros in i915/i915_pci.c. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/i915_pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 4/5] drm/i915/perf: conversion to struct drm_device based logging macros.

2020-01-31 Thread Wambui Karuga
converted due to the lack of an analogous struct drm_device based logging macro. References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/i915_perf.c | 143 --- 1 file changed, 91

[Intel-gfx] [PATCH 0/5] drm/i915: conversion to new struct drm_device based logging macros.

2020-01-31 Thread Wambui Karuga
This patch series continues the conversion of the printk based logging macros to the struct drm_device based logging macros in drm/i915. This series focuses on the root drm/i915 driver folder with patches achieved manually and using coccinelle. Wambui Karuga (5): drm/i915: conversion to

[Intel-gfx] [PATCH 1/5] drm/i915: conversion to drm_device logging macros when drm_i915_private is present.

2020-01-31 Thread Wambui Karuga
rences: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/i915_debugfs.c | 23 ++-- drivers/gpu/drm/i915/i915_drv.c | 126 -- drivers/gpu/drm/i915/i915_gem_fence_reg.c | 2 +- dri

[Intel-gfx] [PATCH 3/5] drm/i915/cmd_parser: conversion to struct drm_device logging macros.

2020-01-31 Thread Wambui Karuga
a similar struct drm_device based logging macro. References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/i915_cmd_parser.c | 29 +++--- 1 file changed, 17 insertions(+), 12 deletions(-) diff

[Intel-gfx] [PATCH 2/5] drm/i915/debugfs: conversion to drm_device based logging macros.

2020-01-31 Thread Wambui Karuga
the lack of an analogous struct drm_device based logging macro. References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/i915_debugfs.c | 21 + 1 file changed, 13 insertions(+), 8 deletions

[Intel-gfx] [PATCH 10/12] drm/i915/psr: automatic conversion to drm_device based logging macros.

2020-01-30 Thread Wambui Karuga
...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were addressed manually. Signed-off-by: Wambui Karuga --- drivers/

[Intel-gfx] [PATCH 08/12] drm/i915/sdvo: automatic conversion to drm_device based logging macros.

2020-01-30 Thread Wambui Karuga
n(&T->drm, ...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were fixed manually. Signed-off-by:

[Intel-gfx] [PATCH 12/12] drm/i915/panel: automatic conversion to drm_device based logging macros.

2020-01-30 Thread Wambui Karuga
drm, ...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were addressed manually. Signed-off-by: Wambui Karu

[Intel-gfx] [PATCH 09/12] drm/i915/quirks: automatic conversion to drm_device based logging macros.

2020-01-30 Thread Wambui Karuga
...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were fixed manually. Signed-off-by: Wambui Karuga --- drivers/gpu/

[Intel-gfx] [PATCH 06/12] drm/i915/tc: automatic conversion to drm_device based logging macros.

2020-01-30 Thread Wambui Karuga
_dbg(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were addressed manually. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i

[Intel-gfx] [PATCH 11/12] drm/i915/pipe_crc: automatic conversion to drm_device based logging macros.

2020-01-30 Thread Wambui Karuga
drm, ...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were addressed manually. Signed-off-by: Wambui Karuga

[Intel-gfx] [PATCH 04/12] drm/i915/vdsc: convert to struct drm_device based logging macros.

2020-01-30 Thread Wambui Karuga
...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were fixed manually. Signed-off-by: Wambui Karuga ---

[Intel-gfx] [PATCH 07/12] drm/i915/sprite: automatic conversion to drm_device based logging macros

2020-01-30 Thread Wambui Karuga
n(&T->drm, ...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were fixed manually. Signed-off-by:

[Intel-gfx] [PATCH 03/12] drm/i915/vga: conversion to drm_device based logging macros.

2020-01-30 Thread Wambui Karuga
_dbg(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were addressed manually. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/displ

[Intel-gfx] [PATCH 05/12] drm/i915/tv: automatic conversion to drm_device based logging macros.

2020-01-30 Thread Wambui Karuga
_dbg(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were fixed manually. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/di

[Intel-gfx] [PATCH 02/12] drm/i915/vlv_dsi: conversion to drm_device based logging macros.

2020-01-30 Thread Wambui Karuga
...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were addressed manually. Signed-off-by: Wambui Karuga --- drivers/

[Intel-gfx] [PATCH 01/12] drm/i915/vlv_dsi_pll: conversion to struct drm_device logging macros.

2020-01-30 Thread Wambui Karuga
t;drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were fixed manually. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/display/vlv_dsi_

[Intel-gfx] [PATCH 00/12] drm/i915/display: conversion to drm_device based logging macros

2020-01-30 Thread Wambui Karuga
drm, ...) | -DRM_WARN( +drm_warn(&T->drm, ...) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Wambui Karuga (12): drm/

[Intel-gfx] [PATCH 2/8] drm/i915/ggtt: use new drm logging macros in gt/intel_ggtt.c

2020-01-27 Thread Wambui Karuga
Manual conversion of the printk based logging macros to the new struct drm_based logging macros in drm/i915/gt/intel_ggtt.c. Also includes extracting the struct drm_i915_private device from various intel types to use in the new macros. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/gt

[Intel-gfx] [PATCH 8/8] drm/i915/rps: move to new drm logging macros in gt/intel_rps.c

2020-01-27 Thread Wambui Karuga
Convert various instances of the printk based drm logging macros to the new struct drm_device based logging macros in i915/gt/intel_rps.c. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/gt/intel_rps.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a

[Intel-gfx] [PATCH 3/8] drm/i915/reset: conversion to new drm logging macros in gt/intel_reset.c

2020-01-27 Thread Wambui Karuga
This converts most instances of the printk based drm logging macros in i915/gt/intel_resect.c to the new struct drm_based logging macros. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/gt/intel_reset.c | 48 +++ 1 file changed, 26 insertions(+), 22 deletions

[Intel-gfx] [PATCH 6/8] drm/i915/gt: convert to new logging macros in gt/intel_gt.c

2020-01-27 Thread Wambui Karuga
Convert remaining instances of the printk based logging macros in i915/gt/intel_gt to the struct drm_device based logging macros. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/gt/intel_gt.c | 43 +++--- 1 file changed, 21 insertions(+), 22 deletions(-) diff

[Intel-gfx] [PATCH 7/8] drm/i915/ring: convert to new logging macros in gt/intel_ring_submission.c

2020-01-27 Thread Wambui Karuga
Manually convert the remaining instance of the printk based drm logging macros to the struct drm_device based logging macros in i915/gt/intel_ring_submission.c Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/gt/intel_ring_submission.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[Intel-gfx] [PATCH 4/8] drm/i915/engine_cs: use new drm logging macros in gt/intel_engine_cs.c

2020-01-27 Thread Wambui Karuga
Conversion of the remaining printk based drm logging macros to the new struct drm_device based logging macros in i915/gt/intel_engine_cs.c. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a

[Intel-gfx] [PATCH 5/8] drm/i915/lrc: conversion to new drm logging macros in gt/intel_lrc.c

2020-01-27 Thread Wambui Karuga
Converts most instances of the printk based drm logging macros in i915/gt/intel_lrc.c to the new struct drm_device based logging macros. In some instances, extracts the struct drm_i915_private device for use in the logging macros. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/i915/gt

[Intel-gfx] [PATCH 0/8] drm/i915/gt conversion to new drm logging macros.

2020-01-27 Thread Wambui Karuga
This series continues the conversion to the new drm logging macros focused on the drm/i915/gt folder. This was done both manually and using coccinelle. Wambui Karuga (8): drm/i915/gt: conversion to struct drm_device macros when struct drm_i915_private is available. drm/i915/ggtt: use new

[Intel-gfx] [PATCH 1/8] drm/i915/gt: conversion to struct drm_device macros when struct drm_i915_private is available.

2020-01-27 Thread Wambui Karuga
..) | -DRM_DEBUG( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_KMS( +drm_dbg_kms(&T->drm, ...) | -DRM_DEBUG_DRIVER( +drm_dbg(&T->drm, ...) | -DRM_DEBUG_ATOMIC( +drm_dbg_atomic(&T->drm, ...) ) ...+> } Checkpatch warnings were fixed manually. Signed-off-by: Wambui Karuga

  1   2   >