Skip to content

drm/i915/display: conversion to drm_device based logging macros

Wambui Karuga dri-devel intel-gfx lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12drm/i915/vlv_dsi_pll: conversion to struct drm_device logging macros.drivers/gpu/drm/i915/display/vlv_dsi_pll.c+26 -210 replies
2/12drm/i915/vlv_dsi: conversion to drm_device based logging macros.drivers/gpu/drm/i915/display/vlv_dsi.c+46 -340 replies
3/12drm/i915/vga: conversion to drm_device based logging macros.drivers/gpu/drm/i915/display/intel_vga.c+4 -30 replies
4/12drm/i915/vdsc: convert to struct drm_device based logging macros.drivers/gpu/drm/i915/display/intel_vdsc.c+14 -140 replies
5/12drm/i915/tv: automatic conversion to drm_device based logging macros.drivers/gpu/drm/i915/display/intel_tv.c+15 -110 replies
6/12drm/i915/tc: automatic conversion to drm_device based logging macros.drivers/gpu/drm/i915/display/intel_tc.c+19 -140 replies
7/12drm/i915/sprite: automatic conversion to drm_device based logging macrosdrivers/gpu/drm/i915/display/intel_sprite.c+36 -240 replies
8/12drm/i915/sdvo: automatic conversion to drm_device based logging macros.drivers/gpu/drm/i915/display/intel_sdvo.c+17 -120 replies
9/12drm/i915/quirks: automatic conversion to drm_device based logging macros.drivers/gpu/drm/i915/display/intel_quirks.c+5 -50 replies
10/12drm/i915/psr: automatic conversion to drm_device based logging macros.drivers/gpu/drm/i915/display/intel_psr.c+77 -510 replies
11/12drm/i915/pipe_crc: automatic conversion to drm_device based logging macros.drivers/gpu/drm/i915/display/intel_pipe_crc.c+4 -30 replies
12/12drm/i915/panel: automatic conversion to drm_device based logging macros.drivers/gpu/drm/i915/display/intel_panel.c+59 -410 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/12] drm/i915/display: conversion to drm_device based logging macros

This series continues the conversion of the printk based logging macros to the new struct drm_device based logging macros in the drm/i915/display folder.
This series was achieved using the following coccinelle script that transforms based on the existence of a struct drm_i915_private instance in the function:
@@
identifier fn, T;
@@

fn(...) {
...
struct drm_i915_private *T = ...;
<+...
(
-DRM_INFO(
+drm_info(&T->drm,
...)
|
-DRM_ERROR(
+drm_err(&T->drm,
...)
|
-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,
...)
)
...+>
}

@@
identifier fn, T;
@@

fn(...,struct drm_i915_private *T,...) {
<+...
(
-DRM_INFO(
+drm_info(&T->drm,
...)
|
-DRM_ERROR(
+drm_err(&T->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/i915/vlv_dsi_pll: conversion to struct drm_device logging macros. drm/i915/vlv_dsi: conversion to drm_device based logging macros. drm/i915/vga: conversion to drm_device based logging macros. drm/i915/vdsc: convert to struct drm_device based logging macros. drm/i915/tv: automatic conversion to drm_device based logging macros. drm/i915/tc: automatic conversion to drm_device based logging macros. drm/i915/sprite: automatic conversion to drm_device based logging
macros
drm/i915/sdvo: automatic conversion to drm_device based logging
macros.
drm/i915/quirks: automatic conversion to drm_device based logging
macros.
drm/i915/psr: automatic conversion to drm_device based logging macros. drm/i915/pipe_crc: automatic conversion to drm_device based logging
macros.
drm/i915/panel: automatic conversion to drm_device based logging
macros.

 drivers/gpu/drm/i915/display/intel_panel.c    | 100 ++++++++------
 drivers/gpu/drm/i915/display/intel_pipe_crc.c |   7 +-
 drivers/gpu/drm/i915/display/intel_psr.c      | 128 +++++++++++-------
 drivers/gpu/drm/i915/display/intel_quirks.c   |  10 +-
 drivers/gpu/drm/i915/display/intel_sdvo.c     |  29 ++--
 drivers/gpu/drm/i915/display/intel_sprite.c   |  60 ++++----
 drivers/gpu/drm/i915/display/intel_tc.c       |  33 +++--
 drivers/gpu/drm/i915/display/intel_tv.c       |  26 ++--
 drivers/gpu/drm/i915/display/intel_vdsc.c     |  28 ++--
 drivers/gpu/drm/i915/display/intel_vga.c      |   7 +-
 drivers/gpu/drm/i915/display/vlv_dsi.c        |  80 ++++++-----
 drivers/gpu/drm/i915/display/vlv_dsi_pll.c    |  47 ++++---
 12 files changed, 322 insertions(+), 233 deletions(-)
Signature · 1 line
2.25.0