drm/i915/display: conversion to drm_device based logging macros
Subsystems (3)
cover drm/i915/display: conversion to drm_device based logging macros
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 drm_device based logging macros. drm/i915/fbc: convert to drm_device based logging macros. drm/i915/fbdev: convert to drm_device based logging. drm/i915/fifo_underrun: convert to drm_device based logging. drm/i915/gmbus: convert to drm_device based logging, drm/i915/hdcp: convert to struct drm_device based logging. drm/i915/hotplug: convert to drm_device based logging. drm/i915/lpe_audio: convert to drm_device based logging macros. drm/i915/lvds: convert to drm_device based logging macros. drm/i915/overlay: convert to drm_device based logging.
drivers/gpu/drm/i915/display/intel_dsb.c | 28 +++-- drivers/gpu/drm/i915/display/intel_fbc.c | 28 +++-- drivers/gpu/drm/i915/display/intel_fbdev.c | 89 ++++++++------ .../drm/i915/display/intel_fifo_underrun.c | 29 +++-- drivers/gpu/drm/i915/display/intel_gmbus.c | 33 ++--- drivers/gpu/drm/i915/display/intel_hdcp.c | 114 ++++++++++-------- drivers/gpu/drm/i915/display/intel_hotplug.c | 40 +++--- .../gpu/drm/i915/display/intel_lpe_audio.c | 23 ++-- drivers/gpu/drm/i915/display/intel_lvds.c | 43 ++++--- drivers/gpu/drm/i915/display/intel_overlay.c | 11 +- 10 files changed, 255 insertions(+), 183 deletions(-)
Signature · 6 lines
2.25.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/10 drm/i915/dsb: convert to drm_device based logging macros.
This converts uses of the printk based drm logging macros to the struct drm_device logging macros in i915/display/intel_dsb.c. This was done using the following coccinelle script:
@@
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,
...)
)
...+>
}
@@
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,
...)
)
...+>
}
Checkpatch warnings were fixed manually.
--- drivers/gpu/drm/i915/display/intel_dsb.c | 28 ++++++++++++++---------- 1 file changed, 16 insertions(+), 12 deletions(-)
drivers/gpu/drm/i915/display/intel_dsb.c +16 -12
@@ -52,7 +52,7 @@ static inline bool intel_dsb_enable_engine(struct intel_dsb *dsb) dsb_ctrl =intel_de_read (dev_priv,DSB_CTRL (pipe, dsb->id));if (DSB_STATUS & dsb_ctrl) { -DRM_DEBUG_KMS ("DSB engine is busy.\n" ); +drm_dbg_kms (&dev_priv->drm,"DSB engine is busy.\n" );return false; }
@@ -72,7 +72,7 @@ static inline bool intel_dsb_disable_engine(struct intel_dsb *dsb) dsb_ctrl =intel_de_read (dev_priv,DSB_CTRL (pipe, dsb->id));if (DSB_STATUS & dsb_ctrl) { -DRM_DEBUG_KMS ("DSB engine is busy.\n" ); +drm_dbg_kms (&dev_priv->drm,"DSB engine is busy.\n" );return false; }
@@ -115,20 +115,20 @@ intel_dsb_get(struct intel_crtc *crtc) obj =i915_gem_object_create_internal (i915,DSB_BUF_SIZE );if (IS_ERR (obj)) { -DRM_ERROR ("Gem object creation failed\n" ); +drm_err (&i915->drm,"Gem object creation failed\n" ); goto out; } vma =i915_gem_object_ggtt_pin (obj,NULL ,0 ,0 ,0 );if (IS_ERR (vma)) { -DRM_ERROR ("Vma creation failed\n" ); +drm_err (&i915->drm,"Vma creation failed\n" );i915_gem_object_put (obj); goto out; } buf =i915_gem_object_pin_map (vma->obj,I915_MAP_WC );if (IS_ERR (buf)) { -DRM_ERROR ("Command buffer creation failed\n" ); +drm_err (&i915->drm,"Command buffer creation failed\n" ); goto out; }
@@ -203,7 +203,7 @@ void intel_dsb_indexed_reg_write(struct intel_dsb *dsb, i915_reg_t reg, }if (drm_WARN_ON (&dev_priv->drm, dsb->free_pos >=DSB_BUF_SIZE )) { -DRM_DEBUG_KMS ("DSB buffer overflow\n" ); +drm_dbg_kms (&dev_priv->drm,"DSB buffer overflow\n" );return ; }
@@ -277,7 +277,7 @@ void intel_dsb_reg_write(struct intel_dsb *dsb, i915_reg_t reg, u32 val) }if (drm_WARN_ON (&dev_priv->drm, dsb->free_pos >=DSB_BUF_SIZE )) { -DRM_DEBUG_KMS ("DSB buffer overflow\n" ); +drm_dbg_kms (&dev_priv->drm,"DSB buffer overflow\n" );return ; }
@@ -310,7 +310,8 @@ void intel_dsb_commit(struct intel_dsb *dsb) goto reset;if (is_dsb_busy (dsb)) { -DRM_ERROR ("HEAD_PTR write failed - dsb engine is busy.\n" ); +drm_err (&dev_priv->drm, +"HEAD_PTR write failed - dsb engine is busy.\n" ); goto reset; } intel_de_write(dev_priv, DSB_HEAD(pipe, dsb->id),
@@ -322,15 +323,18 @@ void intel_dsb_commit(struct intel_dsb *dsb) (tail - dsb->free_pos * 4));if (is_dsb_busy (dsb)) { -DRM_ERROR ("TAIL_PTR write failed - dsb engine is busy.\n" ); +drm_err (&dev_priv->drm, +"TAIL_PTR write failed - dsb engine is busy.\n" ); goto reset; } -DRM_DEBUG_KMS ("DSB execution started - head 0x%x, tail 0x%x\n" , -i915_ggtt_offset (dsb->vma), tail); +drm_dbg_kms (&dev_priv->drm, +"DSB execution started - head 0x%x, tail 0x%x\n" , +i915_ggtt_offset (dsb->vma), tail);intel_de_write (dev_priv,DSB_TAIL (pipe, dsb->id),i915_ggtt_offset (dsb->vma) + tail);if (wait_for (!is_dsb_busy (dsb),1 )) { -DRM_ERROR ("Timed out waiting for DSB workload completion.\n" ); +drm_err (&dev_priv->drm, +"Timed out waiting for DSB workload completion.\n" ); goto reset; }
Signature · 6 lines
2.25.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/10 drm/i915/fbc: convert to drm_device based logging macros.
In reply to Wambui KarugaThis 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 based on the existence of a drm_i915_private device pointer:
@@
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,
...)
)
...+>
}
@@
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,
...)
)
...+>
}
New checkpatch warnings were addressed manually.
--- drivers/gpu/drm/i915/display/intel_fbc.c | 28 ++++++++++++++---------- 1 file changed, 17 insertions(+), 11 deletions(-)
drivers/gpu/drm/i915/display/intel_fbc.c +17 -11
@@ -103,7 +103,7 @@ static void i8xx_fbc_deactivate(struct drm_i915_private *dev_priv)/* Wait for compressing bit to clear */ if (intel_de_wait_for_clear (dev_priv,FBC_STATUS ,FBC_STAT_COMPRESSING ,10 )) { -DRM_DEBUG_KMS ("FBC idle timed out\n" ); +drm_dbg_kms (&dev_priv->drm,"FBC idle timed out\n" );return ; } }
@@ -484,7 +484,8 @@ static int intel_fbc_alloc_cfb(struct drm_i915_private *dev_priv,if (!ret) goto err_llb;else if (ret >1 ) { -DRM_INFO ("Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to increase stolen memory size if available in BIOS.\n" ); +drm_info (&dev_priv->drm, +"Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to increase stolen memory size if available in BIOS.\n" ); }
@@ -520,8 +521,9 @@ static int intel_fbc_alloc_cfb(struct drm_i915_private *dev_priv, dev_priv->dsm.start + compressed_llb->start); } -DRM_DEBUG_KMS ("reserved %llu bytes of contiguous stolen space for FBC, threshold: %d\n" , - fbc->compressed_fb.size, fbc->threshold); +drm_dbg_kms (&dev_priv->drm, +"reserved %llu bytes of contiguous stolen space for FBC, threshold: %d\n" , + fbc->compressed_fb.size, fbc->threshold);return 0 ;
@@ -944,7 +946,8 @@ static void __intel_fbc_disable(struct drm_i915_private *dev_priv)drm_WARN_ON (&dev_priv->drm, !fbc->crtc);drm_WARN_ON (&dev_priv->drm, fbc->active); -DRM_DEBUG_KMS ("Disabling FBC on pipe %c\n" ,pipe_name (crtc->pipe)); +drm_dbg_kms (&dev_priv->drm,"Disabling FBC on pipe %c\n" , +pipe_name (crtc->pipe));__intel_fbc_cleanup_cfb (dev_priv);
@@ -1172,7 +1175,8 @@ void intel_fbc_enable(struct intel_atomic_state *state,else cache->gen9_wa_cfb_stride =0 ; -DRM_DEBUG_KMS ("Enabling FBC on pipe %c\n" ,pipe_name (crtc->pipe)); +drm_dbg_kms (&dev_priv->drm,"Enabling FBC on pipe %c\n" , +pipe_name (crtc->pipe)); fbc->no_fbc_reason ="FBC enabled but not active yet\n" ; fbc->crtc = crtc;
@@ -1234,7 +1238,7 @@ static void intel_fbc_underrun_work_fn(struct work_struct *work)if (fbc->underrun_detected || !fbc->crtc) goto out; -DRM_DEBUG_KMS ("Disabling FBC due to FIFO underrun.\n" ); +drm_dbg_kms (&dev_priv->drm,"Disabling FBC due to FIFO underrun.\n" ); fbc->underrun_detected = true;intel_fbc_deactivate (dev_priv,"FIFO underrun" );
@@ -1260,7 +1264,8 @@ int intel_fbc_reset_underrun(struct drm_i915_private *dev_priv)return ret;if (dev_priv->fbc.underrun_detected) { -DRM_DEBUG_KMS ("Re-allowing FBC after fifo underrun\n" ); +drm_dbg_kms (&dev_priv->drm, +"Re-allowing FBC after fifo underrun\n" ); dev_priv->fbc.no_fbc_reason ="FIFO underrun cleared" ; }
@@ -1331,7 +1336,8 @@ static bool need_fbc_vtd_wa(struct drm_i915_private *dev_priv)/* WaFbcTurnOffFbcWhenHyperVisorIsUsed:skl,bxt */ if (intel_vtd_active () && (IS_SKYLAKE (dev_priv) ||IS_BROXTON (dev_priv))) { -DRM_INFO ("Disabling framebuffer compression (FBC) to prevent screen flicker with VT-d enabled\n" ); +drm_info (&dev_priv->drm, +"Disabling framebuffer compression (FBC) to prevent screen flicker with VT-d enabled\n" );return true; }
@@ -1359,8 +1365,8 @@ void intel_fbc_init(struct drm_i915_private *dev_priv)mkwrite_device_info (dev_priv)->display.has_fbc = false; i915_modparams.enable_fbc =intel_sanitize_fbc_option (dev_priv); -DRM_DEBUG_KMS ("Sanitized enable_fbc value: %d\n" , - i915_modparams.enable_fbc); +drm_dbg_kms (&dev_priv->drm,"Sanitized enable_fbc value: %d\n" , + i915_modparams.enable_fbc);if (!HAS_FBC (dev_priv)) { fbc->no_fbc_reason ="unsupported by this chipset" ;
Signature · 6 lines
2.25.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/10 drm/i915/fbdev: convert to drm_device based logging.
In reply to Wambui KarugaConvert 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.
--- drivers/gpu/drm/i915/display/intel_fbdev.c | 89 +++++++++++++--------- 1 file changed, 51 insertions(+), 38 deletions(-)
drivers/gpu/drm/i915/display/intel_fbdev.c +51 -38
@@ -147,7 +147,7 @@ static int intelfb_alloc(struct drm_fb_helper *helper,if (IS_ERR (obj)) obj =i915_gem_object_create_shmem (dev_priv, size);if (IS_ERR (obj)) { -DRM_ERROR ("failed to allocate framebuffer\n" ); +drm_err (&dev_priv->drm,"failed to allocate framebuffer\n" );return PTR_ERR (obj); }
@@ -184,21 +184,23 @@ static int intelfb_create(struct drm_fb_helper *helper,if (intel_fb && (sizes->fb_width > intel_fb->base.width || sizes->fb_height > intel_fb->base.height)) { -DRM_DEBUG_KMS ("BIOS fb too small (%dx%d), we require (%dx%d)," -" releasing it\n" , - intel_fb->base.width, intel_fb->base.height, - sizes->fb_width, sizes->fb_height); +drm_dbg_kms (&dev_priv->drm, +"BIOS fb too small (%dx%d), we require (%dx%d)," +" releasing it\n" , + intel_fb->base.width, intel_fb->base.height, + sizes->fb_width, sizes->fb_height);drm_framebuffer_put (&intel_fb->base); intel_fb = ifbdev->fb =NULL ; }if (!intel_fb ||drm_WARN_ON (dev, !intel_fb_obj (&intel_fb->base))) { -DRM_DEBUG_KMS ("no BIOS fb, allocating a new one\n" ); +drm_dbg_kms (&dev_priv->drm, +"no BIOS fb, allocating a new one\n" ); ret =intelfb_alloc (helper, sizes);if (ret)return ret; intel_fb = ifbdev->fb; }else { -DRM_DEBUG_KMS ("re-using BIOS fb\n" ); +drm_dbg_kms (&dev_priv->drm,"re-using BIOS fb\n" ); prealloc = true; sizes->fb_width = intel_fb->base.width; sizes->fb_height = intel_fb->base.height;
@@ -221,7 +223,7 @@ static int intelfb_create(struct drm_fb_helper *helper, info =drm_fb_helper_alloc_fbi (helper);if (IS_ERR (info)) { -DRM_ERROR ("Failed to allocate fb_info\n" ); +drm_err (&dev_priv->drm,"Failed to allocate fb_info\n" ); ret =PTR_ERR (info); goto out_unpin; }
@@ -241,7 +243,8 @@ static int intelfb_create(struct drm_fb_helper *helper, vaddr =i915_vma_pin_iomap (vma);if (IS_ERR (vaddr)) { -DRM_ERROR ("Failed to remap framebuffer into virtual memory\n" ); +drm_err (&dev_priv->drm, +"Failed to remap framebuffer into virtual memory\n" ); ret =PTR_ERR (vaddr); goto out_unpin; }
@@ -259,9 +262,9 @@ static int intelfb_create(struct drm_fb_helper *helper,/* Use default scratch pixmap (info->pixmap.flags = FB_PIXMAP_SYSTEM) */ -DRM_DEBUG_KMS ("allocated %dx%d fb: 0x%08x\n" , - ifbdev->fb->base.width, ifbdev->fb->base.height, -i915_ggtt_offset (vma)); +drm_dbg_kms (&dev_priv->drm,"allocated %dx%d fb: 0x%08x\n" , + ifbdev->fb->base.width, ifbdev->fb->base.height, +i915_ggtt_offset (vma)); ifbdev->vma = vma; ifbdev->vma_flags = flags;
@@ -310,6 +313,7 @@ static void intel_fbdev_destroy(struct intel_fbdev *ifbdev)static bool intel_fbdev_init_bios (struct drm_device *dev,struct intel_fbdev *ifbdev) { +struct drm_i915_private *i915 =to_i915 (dev);struct intel_framebuffer *fb =NULL ;struct drm_crtc *crtc;struct intel_crtc *intel_crtc;
@@ -322,21 +326,24 @@ static bool intel_fbdev_init_bios(struct drm_device *dev, intel_crtc =to_intel_crtc (crtc);if (!crtc->state->active || !obj) { -DRM_DEBUG_KMS ("pipe %c not active or no fb, skipping\n" , -pipe_name (intel_crtc->pipe)); +drm_dbg_kms (&i915->drm, +"pipe %c not active or no fb, skipping\n" , +pipe_name (intel_crtc->pipe));continue ; }if (obj->base.size > max_size) { -DRM_DEBUG_KMS ("found possible fb from plane %c\n" , -pipe_name (intel_crtc->pipe)); +drm_dbg_kms (&i915->drm, +"found possible fb from plane %c\n" , +pipe_name (intel_crtc->pipe)); fb =to_intel_framebuffer (crtc->primary->state->fb); max_size = obj->base.size; } }if (!fb) { -DRM_DEBUG_KMS ("no active fbs found, not using BIOS config\n" ); +drm_dbg_kms (&i915->drm, +"no active fbs found, not using BIOS config\n" ); goto out; }
@@ -347,13 +354,14 @@ static bool intel_fbdev_init_bios(struct drm_device *dev, intel_crtc =to_intel_crtc (crtc);if (!crtc->state->active) { -DRM_DEBUG_KMS ("pipe %c not active, skipping\n" , -pipe_name (intel_crtc->pipe)); +drm_dbg_kms (&i915->drm, +"pipe %c not active, skipping\n" , +pipe_name (intel_crtc->pipe));continue ; } -DRM_DEBUG_KMS ("checking plane %c for BIOS fb\n" , -pipe_name (intel_crtc->pipe)); +drm_dbg_kms (&i915->drm,"checking plane %c for BIOS fb\n" , +pipe_name (intel_crtc->pipe));/* * See if the plane fb we found above will fit on this
@@ -363,9 +371,10 @@ static bool intel_fbdev_init_bios(struct drm_device *dev, cur_size = crtc->state->adjusted_mode.crtc_hdisplay; cur_size = cur_size * fb->base.format->cpp[0 ];if (fb->base.pitches[0 ] < cur_size) { -DRM_DEBUG_KMS ("fb not wide enough for plane %c (%d vs %d)\n" , -pipe_name (intel_crtc->pipe), - cur_size, fb->base.pitches[0 ]); +drm_dbg_kms (&i915->drm, +"fb not wide enough for plane %c (%d vs %d)\n" , +pipe_name (intel_crtc->pipe), + cur_size, fb->base.pitches[0 ]); fb =NULL ;break ; }
@@ -373,28 +382,32 @@ static bool intel_fbdev_init_bios(struct drm_device *dev, cur_size = crtc->state->adjusted_mode.crtc_vdisplay; cur_size =intel_fb_align_height (&fb->base,0 , cur_size); cur_size *= fb->base.pitches[0 ]; -DRM_DEBUG_KMS ("pipe %c area: %dx%d, bpp: %d, size: %d\n" , -pipe_name (intel_crtc->pipe), - crtc->state->adjusted_mode.crtc_hdisplay, - crtc->state->adjusted_mode.crtc_vdisplay, - fb->base.format->cpp[0 ] *8 , - cur_size); +drm_dbg_kms (&i915->drm, +"pipe %c area: %dx%d, bpp: %d, size: %d\n" , +pipe_name (intel_crtc->pipe), + crtc->state->adjusted_mode.crtc_hdisplay, + crtc->state->adjusted_mode.crtc_vdisplay, + fb->base.format->cpp[0 ] *8 , + cur_size);if (cur_size > max_size) { -DRM_DEBUG_KMS ("fb not big enough for plane %c (%d vs %d)\n" , -pipe_name (intel_crtc->pipe), - cur_size, max_size); +drm_dbg_kms (&i915->drm, +"fb not big enough for plane %c (%d vs %d)\n" , +pipe_name (intel_crtc->pipe), + cur_size, max_size); fb =NULL ;break ; } -DRM_DEBUG_KMS ("fb big enough for plane %c (%d >= %d)\n" , -pipe_name (intel_crtc->pipe), - max_size, cur_size); +drm_dbg_kms (&i915->drm, +"fb big enough for plane %c (%d >= %d)\n" , +pipe_name (intel_crtc->pipe), + max_size, cur_size); }if (!fb) { -DRM_DEBUG_KMS ("BIOS fb not suitable for all pipes, not using\n" ); +drm_dbg_kms (&i915->drm, +"BIOS fb not suitable for all pipes, not using\n" ); goto out; }
@@ -416,7 +429,7 @@ static bool intel_fbdev_init_bios(struct drm_device *dev, } -DRM_DEBUG_KMS ("using BIOS fb for initial console\n" ); +drm_dbg_kms (&i915->drm,"using BIOS fb for initial console\n" );return true; out:
Signature · 6 lines
2.25.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/10 drm/i915/fifo_underrun: convert to drm_device based logging.
In reply to Wambui KarugaConvert various instances of the printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_fifo_underrun.c.
This was done using the following coccinelle script:
@@
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,
...)
)
...+>
}
@@
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,
...)
)
...+>
}
New checkpatch warnings were addressed manually.
--- .../drm/i915/display/intel_fifo_underrun.c | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-)
drivers/gpu/drm/i915/display/intel_fifo_underrun.c +16 -13
@@ -103,7 +103,7 @@ static void i9xx_check_fifo_underruns(struct intel_crtc *crtc)intel_de_posting_read (dev_priv, reg);trace_intel_cpu_fifo_underrun (dev_priv, crtc->pipe); -DRM_ERROR ("pipe %c underrun\n" ,pipe_name (crtc->pipe)); +drm_err (&dev_priv->drm,"pipe %c underrun\n" ,pipe_name (crtc->pipe)); } static void i9xx_set_fifo_underrun_reporting(struct drm_device *dev,
@@ -123,7 +123,8 @@ static void i9xx_set_fifo_underrun_reporting(struct drm_device *dev,intel_de_posting_read (dev_priv, reg); }else {if (old &&intel_de_read (dev_priv, reg) &PIPE_FIFO_UNDERRUN_STATUS ) -DRM_ERROR ("pipe %c underrun\n" ,pipe_name (pipe)); +drm_err (&dev_priv->drm,"pipe %c underrun\n" , +pipe_name (pipe)); } }
@@ -155,7 +156,7 @@ static void ivb_check_fifo_underruns(struct intel_crtc *crtc)intel_de_posting_read (dev_priv,GEN7_ERR_INT );trace_intel_cpu_fifo_underrun (dev_priv, pipe); -DRM_ERROR ("fifo underrun on pipe %c\n" ,pipe_name (pipe)); +drm_err (&dev_priv->drm,"fifo underrun on pipe %c\n" ,pipe_name (pipe)); } static void ivb_set_fifo_underrun_reporting(struct drm_device *dev,
@@ -176,8 +177,9 @@ static void ivb_set_fifo_underrun_reporting(struct drm_device *dev,if (old &&intel_de_read (dev_priv,GEN7_ERR_INT ) &ERR_INT_FIFO_UNDERRUN (pipe)) { -DRM_ERROR ("uncleared fifo underrun on pipe %c\n" , -pipe_name (pipe)); +drm_err (&dev_priv->drm, +"uncleared fifo underrun on pipe %c\n" , +pipe_name (pipe)); } } }
@@ -223,8 +225,8 @@ static void cpt_check_pch_fifo_underruns(struct intel_crtc *crtc)intel_de_posting_read (dev_priv,SERR_INT );trace_intel_pch_fifo_underrun (dev_priv, pch_transcoder); -DRM_ERROR ("pch fifo underrun on pch transcoder %c\n" , -pipe_name (pch_transcoder)); +drm_err (&dev_priv->drm,"pch fifo underrun on pch transcoder %c\n" , +pipe_name (pch_transcoder)); } static void cpt_set_fifo_underrun_reporting(struct drm_device *dev,
@@ -246,8 +248,9 @@ static void cpt_set_fifo_underrun_reporting(struct drm_device *dev,if (old &&intel_de_read (dev_priv,SERR_INT ) &SERR_INT_TRANS_FIFO_UNDERRUN (pch_transcoder)) { -DRM_ERROR ("uncleared pch fifo underrun on pch transcoder %c\n" , -pipe_name (pch_transcoder)); +drm_err (&dev_priv->drm, +"uncleared pch fifo underrun on pch transcoder %c\n" , +pipe_name (pch_transcoder)); } } }
@@ -381,8 +384,8 @@ void intel_cpu_fifo_underrun_irq_handler(struct drm_i915_private *dev_priv,if (intel_set_cpu_fifo_underrun_reporting (dev_priv, pipe, false)) {trace_intel_cpu_fifo_underrun (dev_priv, pipe); -DRM_ERROR ("CPU pipe %c FIFO underrun\n" , -pipe_name (pipe)); +drm_err (&dev_priv->drm,"CPU pipe %c FIFO underrun\n" , +pipe_name (pipe)); }intel_fbc_handle_fifo_underrun_irq (dev_priv);
@@ -403,8 +406,8 @@ void intel_pch_fifo_underrun_irq_handler(struct drm_i915_private *dev_priv,if (intel_set_pch_fifo_underrun_reporting (dev_priv, pch_transcoder, false)) {trace_intel_pch_fifo_underrun (dev_priv, pch_transcoder); -DRM_ERROR ("PCH transcoder %c FIFO underrun\n" , -pipe_name (pch_transcoder)); +drm_err (&dev_priv->drm,"PCH transcoder %c FIFO underrun\n" , +pipe_name (pch_transcoder)); } }
Signature · 6 lines
2.25.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 5/10 drm/i915/gmbus: convert to drm_device based logging,
In reply to Wambui KarugaConversion instances of printk based drm logging macros to use the struct drm_device based logging macros in i915/display/intel_gmbus.c. This was done using the following coccinelle semantic patch that transforms based on the existence of an existing drm_i915_private device:
@@
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,
...)
)
...+>
}
@@
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,
...)
)
...+>
}
New checkpatch warnings were addressed manually.
--- drivers/gpu/drm/i915/display/intel_gmbus.c | 33 +++++++++++++--------- 1 file changed, 19 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/display/intel_gmbus.c +19 -14
@@ -632,8 +632,9 @@ do_gmbus_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num,* till then let it sleep. */ if (gmbus_wait_idle (dev_priv)) { -DRM_DEBUG_KMS ("GMBUS [%s] timed out waiting for idle\n" , - adapter->name); +drm_dbg_kms (&dev_priv->drm, +"GMBUS [%s] timed out waiting for idle\n" , + adapter->name); ret = -ETIMEDOUT ; }intel_de_write_fw (dev_priv,GMBUS0 ,0 );
@@ -656,8 +657,9 @@ do_gmbus_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num,*/ ret = -ENXIO ;if (gmbus_wait_idle (dev_priv)) { -DRM_DEBUG_KMS ("GMBUS [%s] timed out after NAK\n" , - adapter->name); +drm_dbg_kms (&dev_priv->drm, +"GMBUS [%s] timed out after NAK\n" , + adapter->name); ret = -ETIMEDOUT ; }
@@ -669,9 +671,9 @@ do_gmbus_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num,intel_de_write_fw (dev_priv,GMBUS1 ,0 );intel_de_write_fw (dev_priv,GMBUS0 ,0 ); -DRM_DEBUG_KMS ("GMBUS [%s] NAK for addr: %04x %c(%d)\n" , - adapter->name, msgs[i].addr, - (msgs[i].flags &I2C_M_RD ) ?'r' :'w' , msgs[i].len); +drm_dbg_kms (&dev_priv->drm,"GMBUS [%s] NAK for addr: %04x %c(%d)\n" , + adapter->name, msgs[i].addr, + (msgs[i].flags &I2C_M_RD ) ?'r' :'w' , msgs[i].len);/* * Passive adapters sometimes NAK the first probe. Retry the first
@@ -680,16 +682,18 @@ do_gmbus_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num,* drm_do_probe_ddc_edid, which bails out on the first -ENXIO. */ if (ret == -ENXIO && i ==0 && try++ ==0 ) { -DRM_DEBUG_KMS ("GMBUS [%s] NAK on first message, retry\n" , - adapter->name); +drm_dbg_kms (&dev_priv->drm, +"GMBUS [%s] NAK on first message, retry\n" , + adapter->name); goto retry; } goto out; timeout: -DRM_DEBUG_KMS ("GMBUS [%s] timed out, falling back to bit banging on pin %d\n" , - bus->adapter.name, bus->reg0 &0xff ); +drm_dbg_kms (&dev_priv->drm, +"GMBUS [%s] timed out, falling back to bit banging on pin %d\n" , + bus->adapter.name, bus->reg0 &0xff );intel_de_write_fw (dev_priv,GMBUS0 ,0 );/*
@@ -926,9 +930,10 @@ void intel_gmbus_force_bit(struct i2c_adapter *adapter, bool force_bit)mutex_lock (&dev_priv->gmbus_mutex); bus->force_bit += force_bit ?1 :-1 ; -DRM_DEBUG_KMS ("%sabling bit-banging on %s. force bit now %d\n" , - force_bit ?"en" :"dis" , adapter->name, - bus->force_bit); +drm_dbg_kms (&dev_priv->drm, +"%sabling bit-banging on %s. force bit now %d\n" , + force_bit ?"en" :"dis" , adapter->name, + bus->force_bit);mutex_unlock (&dev_priv->gmbus_mutex); }
Signature · 6 lines
2.25.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 6/10 drm/i915/hdcp: convert to struct drm_device based logging.
In reply to Wambui KarugaConverts 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.
--- drivers/gpu/drm/i915/display/intel_hdcp.c | 114 +++++++++++++--------- 1 file changed, 67 insertions(+), 47 deletions(-)
drivers/gpu/drm/i915/display/intel_hdcp.c +67 -47
@@ -485,8 +485,8 @@ int intel_hdcp_validate_v_prime(struct intel_connector *connector,return ret; sha_idx +=sizeof (sha_text); }else { -DRM_DEBUG_KMS ("Invalid number of leftovers %d\n" , - sha_leftovers); +drm_dbg_kms (&dev_priv->drm, +"Invalid number of leftovers %d\n" , sha_leftovers);return -EINVAL ; }
@@ -514,11 +514,12 @@ int intel_hdcp_validate_v_prime(struct intel_connector *connector, rep_ctl | HDCP_SHA1_COMPLETE_HASH);if (intel_de_wait_for_set (dev_priv,HDCP_REP_CTL ,HDCP_SHA1_COMPLETE ,1 )) { -DRM_ERROR ("Timed out waiting for SHA1 complete\n" ); +drm_err (&dev_priv->drm, +"Timed out waiting for SHA1 complete\n" );return -ETIMEDOUT ; }if (!(intel_de_read (dev_priv,HDCP_REP_CTL ) &HDCP_SHA1_V_MATCH )) { -DRM_DEBUG_KMS ("SHA-1 mismatch, HDCP failed\n" ); +drm_dbg_kms (&dev_priv->drm,"SHA-1 mismatch, HDCP failed\n" );return -ENXIO ; }
@@ -537,7 +538,8 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector) ret =intel_hdcp_poll_ksv_fifo (intel_dig_port, shim);if (ret) { -DRM_DEBUG_KMS ("KSV list failed to become ready (%d)\n" , ret); +drm_dbg_kms (&dev_priv->drm, +"KSV list failed to become ready (%d)\n" , ret);return ret; }
@@ -547,7 +549,7 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector)if (DRM_HDCP_MAX_DEVICE_EXCEEDED (bstatus[0 ]) ||DRM_HDCP_MAX_CASCADE_EXCEEDED (bstatus[1 ])) { -DRM_DEBUG_KMS ("Max Topology Limit Exceeded\n" ); +drm_dbg_kms (&dev_priv->drm,"Max Topology Limit Exceeded\n" );return -EPERM ; }
@@ -560,13 +562,14 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector)*/ num_downstream =DRM_HDCP_NUM_DOWNSTREAM (bstatus[0 ]);if (num_downstream ==0 ) { -DRM_DEBUG_KMS ("Repeater with zero downstream devices\n" ); +drm_dbg_kms (&dev_priv->drm, +"Repeater with zero downstream devices\n" );return -EINVAL ; } ksv_fifo =kcalloc (DRM_HDCP_KSV_LEN , num_downstream,GFP_KERNEL );if (!ksv_fifo) { -DRM_DEBUG_KMS ("Out of mem: ksv_fifo\n" ); +drm_dbg_kms (&dev_priv->drm,"Out of mem: ksv_fifo\n" );return -ENOMEM ; }
@@ -576,7 +579,7 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector)if (drm_hdcp_check_ksvs_revoked (&dev_priv->drm, ksv_fifo, num_downstream)) { -DRM_ERROR ("Revoked Ksv(s) in ksv_fifo\n" ); +drm_err (&dev_priv->drm,"Revoked Ksv(s) in ksv_fifo\n" ); ret = -EPERM ; goto err; }
@@ -594,12 +597,14 @@ int intel_hdcp_auth_downstream(struct intel_connector *connector) }if (i == tries) { -DRM_DEBUG_KMS ("V Prime validation failed.(%d)\n" , ret); +drm_dbg_kms (&dev_priv->drm, +"V Prime validation failed.(%d)\n" , ret); goto err; } -DRM_DEBUG_KMS ("HDCP is enabled (%d downstream devices)\n" , - num_downstream); +drm_dbg_kms (&dev_priv->drm, +"HDCP is enabled (%d downstream devices)\n" , + num_downstream); ret =0 ; err:kfree (ksv_fifo);
@@ -642,7 +647,8 @@ static int intel_hdcp_auth(struct intel_connector *connector)if (ret)return ret;if (!hdcp_capable) { -DRM_DEBUG_KMS ("Panel is not HDCP capable\n" ); +drm_dbg_kms (&dev_priv->drm, +"Panel is not HDCP capable\n" );return -EINVAL ; } }
@@ -659,7 +665,7 @@ static int intel_hdcp_auth(struct intel_connector *connector)if (intel_de_wait_for_set (dev_priv,HDCP_STATUS (dev_priv, cpu_transcoder, port),HDCP_STATUS_AN_READY ,1 )) { -DRM_ERROR ("Timed out waiting for An\n" ); +drm_err (&dev_priv->drm,"Timed out waiting for An\n" );return -ETIMEDOUT ; }
@@ -680,7 +686,7 @@ static int intel_hdcp_auth(struct intel_connector *connector)return ret;if (drm_hdcp_check_ksvs_revoked (&dev_priv->drm, bksv.shim,1 )) { -DRM_ERROR ("BKSV is revoked\n" ); +drm_err (&dev_priv->drm,"BKSV is revoked\n" );return -EPERM ; }
@@ -706,7 +712,7 @@ static int intel_hdcp_auth(struct intel_connector *connector)/* Wait for R0 ready */ if (wait_for (intel_de_read (dev_priv,HDCP_STATUS (dev_priv, cpu_transcoder, port)) & (HDCP_STATUS_R0_READY |HDCP_STATUS_ENC ),1 )) { -DRM_ERROR ("Timed out waiting for R0 ready\n" ); +drm_err (&dev_priv->drm,"Timed out waiting for R0 ready\n" );return -ETIMEDOUT ; }
@@ -743,8 +749,9 @@ static int intel_hdcp_auth(struct intel_connector *connector) }if (i == tries) { -DRM_DEBUG_KMS ("Timed out waiting for Ri prime match (%x)\n" , -intel_de_read (dev_priv,HDCP_STATUS (dev_priv, cpu_transcoder, port))); +drm_dbg_kms (&dev_priv->drm, +"Timed out waiting for Ri prime match (%x)\n" , +intel_de_read (dev_priv,HDCP_STATUS (dev_priv, cpu_transcoder, port)));return -ETIMEDOUT ; }
@@ -753,7 +760,7 @@ static int intel_hdcp_auth(struct intel_connector *connector) HDCP_STATUS(dev_priv, cpu_transcoder, port), HDCP_STATUS_ENC, ENCRYPT_STATUS_CHANGE_TIMEOUT_MS)) { -DRM_ERROR ("Timed out waiting for encryption\n" ); +drm_err (&dev_priv->drm,"Timed out waiting for encryption\n" );return -ETIMEDOUT ; }
@@ -765,7 +772,7 @@ static int intel_hdcp_auth(struct intel_connector *connector)if (repeater_present)return intel_hdcp_auth_downstream (connector); -DRM_DEBUG_KMS ("HDCP is enabled (no repeater present)\n" ); +drm_dbg_kms (&dev_priv->drm,"HDCP is enabled (no repeater present)\n" );return 0 ; }
@@ -1271,7 +1278,8 @@ static int hdcp2_authentication_key_exchange(struct intel_connector *connector)return ret;if (msgs.send_cert.rx_caps[0 ] !=HDCP_2_2_RX_CAPS_VERSION_VAL ) { -DRM_DEBUG_KMS ("cert.rx_caps dont claim HDCP2.2\n" ); +drm_dbg_kms (&dev_priv->drm, +"cert.rx_caps dont claim HDCP2.2\n" );return -EINVAL ; }
@@ -1280,7 +1288,7 @@ static int hdcp2_authentication_key_exchange(struct intel_connector *connector)if (drm_hdcp_check_ksvs_revoked (&dev_priv->drm, msgs.send_cert.cert_rx.receiver_id,1 )) { -DRM_ERROR ("Receiver ID is revoked\n" ); +drm_err (&dev_priv->drm,"Receiver ID is revoked\n" );return -EPERM ; }
@@ -1384,6 +1392,7 @@ staticint hdcp2_propagate_stream_management_info (struct intel_connector *connector) {struct intel_digital_port *intel_dig_port =intel_attached_dig_port (connector); +struct drm_i915_private *i915 =to_i915 (connector->base.dev);struct intel_hdcp *hdcp = &connector->hdcp;union {struct hdcp2_rep_stream_manage stream_manage;
@@ -1424,7 +1433,7 @@ int hdcp2_propagate_stream_management_info(struct intel_connector *connector) hdcp->seq_num_m++;if (hdcp->seq_num_m >HDCP_2_2_SEQ_NUM_MAX ) { -DRM_DEBUG_KMS ("seq_num_m roll over.\n" ); +drm_dbg_kms (&i915->drm,"seq_num_m roll over.\n" );return -1 ; }
@@ -1455,7 +1464,7 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector)if (HDCP_2_2_MAX_CASCADE_EXCEEDED (rx_info[1 ]) ||HDCP_2_2_MAX_DEVS_EXCEEDED (rx_info[1 ])) { -DRM_DEBUG_KMS ("Topology Max Size Exceeded\n" ); +drm_dbg_kms (&dev_priv->drm,"Topology Max Size Exceeded\n" );return -EINVAL ; }
@@ -1465,7 +1474,7 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector)if (seq_num_v < hdcp->seq_num_v) {/* Roll over of the seq_num_v from repeater. Reauthenticate. */ -DRM_DEBUG_KMS ("Seq_num_v roll over.\n" ); +drm_dbg_kms (&dev_priv->drm,"Seq_num_v roll over.\n" );return -EINVAL ; }
@@ -1474,7 +1483,7 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector)if (drm_hdcp_check_ksvs_revoked (&dev_priv->drm, msgs.recvid_list.receiver_ids, device_cnt)) { -DRM_ERROR ("Revoked receiver ID(s) is in list\n" ); +drm_err (&dev_priv->drm,"Revoked receiver ID(s) is in list\n" );return -EPERM ; }
@@ -1507,25 +1516,27 @@ static int hdcp2_authenticate_repeater(struct intel_connector *connector)static int hdcp2_authenticate_sink (struct intel_connector *connector) {struct intel_digital_port *intel_dig_port =intel_attached_dig_port (connector); +struct drm_i915_private *i915 =to_i915 (connector->base.dev);struct intel_hdcp *hdcp = &connector->hdcp;const struct intel_hdcp_shim *shim = hdcp->shim;int ret; ret =hdcp2_authentication_key_exchange (connector);if (ret <0 ) { -DRM_DEBUG_KMS ("AKE Failed. Err : %d\n" , ret); +drm_dbg_kms (&i915->drm,"AKE Failed. Err : %d\n" , ret);return ret; } ret =hdcp2_locality_check (connector);if (ret <0 ) { -DRM_DEBUG_KMS ("Locality Check failed. Err : %d\n" , ret); +drm_dbg_kms (&i915->drm,"Locality Check failed. Err : %d\n" , + ret);return ret; } ret =hdcp2_session_key_exchange (connector);if (ret <0 ) { -DRM_DEBUG_KMS ("SKE Failed. Err : %d\n" , ret); +drm_dbg_kms (&i915->drm,"SKE Failed. Err : %d\n" , ret);return ret; }
@@ -1540,7 +1551,8 @@ static int hdcp2_authenticate_sink(struct intel_connector *connector)if (hdcp->is_repeater) { ret =hdcp2_authenticate_repeater (connector);if (ret <0 ) { -DRM_DEBUG_KMS ("Repeater Auth Failed. Err: %d\n" , ret); +drm_dbg_kms (&i915->drm, +"Repeater Auth Failed. Err: %d\n" , ret);return ret; } }
@@ -1630,6 +1642,7 @@ static int hdcp2_disable_encryption(struct intel_connector *connector)static int hdcp2_authenticate_and_encrypt (struct intel_connector *connector) { +struct drm_i915_private *i915 =to_i915 (connector->base.dev);int ret, i, tries =3 ;for (i =0 ; i < tries; i++) {
@@ -1638,10 +1651,10 @@ static int hdcp2_authenticate_and_encrypt(struct intel_connector *connector)break ;/* Clearing the mei hdcp session */ -DRM_DEBUG_KMS ("HDCP2.2 Auth %d of %d Failed.(%d)\n" , - i +1 , tries, ret); +drm_dbg_kms (&i915->drm,"HDCP2.2 Auth %d of %d Failed.(%d)\n" , + i +1 , tries, ret);if (hdcp2_deauthenticate_port (connector) <0 ) -DRM_DEBUG_KMS ("Port deauth failed.\n" ); +drm_dbg_kms (&i915->drm,"Port deauth failed.\n" ); }if (i != tries) {
@@ -1652,9 +1665,11 @@ static int hdcp2_authenticate_and_encrypt(struct intel_connector *connector)msleep (HDCP_2_2_DELAY_BEFORE_ENCRYPTION_EN ); ret =hdcp2_enable_encryption (connector);if (ret <0 ) { -DRM_DEBUG_KMS ("Encryption Enable Failed.(%d)\n" , ret); +drm_dbg_kms (&i915->drm, +"Encryption Enable Failed.(%d)\n" , ret);if (hdcp2_deauthenticate_port (connector) <0 ) -DRM_DEBUG_KMS ("Port deauth failed.\n" ); +drm_dbg_kms (&i915->drm, +"Port deauth failed.\n" ); } }
@@ -1664,22 +1679,25 @@ static int hdcp2_authenticate_and_encrypt(struct intel_connector *connector)static int _intel_hdcp2_enable (struct intel_connector *connector) {struct intel_hdcp *hdcp = &connector->hdcp; +struct drm_i915_private *i915 =to_i915 (connector->base.dev);int ret; -DRM_DEBUG_KMS ("[%s:%d] HDCP2.2 is being enabled. Type: %d\n" , - connector->base.name, connector->base.base.id, - hdcp->content_type); +drm_dbg_kms (&i915->drm, +"[%s:%d] HDCP2.2 is being enabled. Type: %d\n" , + connector->base.name, connector->base.base.id, + hdcp->content_type); ret =hdcp2_authenticate_and_encrypt (connector);if (ret) { -DRM_DEBUG_KMS ("HDCP2 Type%d Enabling Failed. (%d)\n" , - hdcp->content_type, ret); +drm_dbg_kms (&i915->drm, +"HDCP2 Type%d Enabling Failed. (%d)\n" , + hdcp->content_type, ret);return ret; } -DRM_DEBUG_KMS ("[%s:%d] HDCP2.2 is enabled. Type %d\n" , - connector->base.name, connector->base.base.id, - hdcp->content_type); +drm_dbg_kms (&i915->drm,"[%s:%d] HDCP2.2 is enabled. Type %d\n" , + connector->base.name, connector->base.base.id, + hdcp->content_type); hdcp->hdcp2_encrypted = true;return 0 ;
@@ -1687,15 +1705,16 @@ static int _intel_hdcp2_enable(struct intel_connector *connector)static int _intel_hdcp2_disable (struct intel_connector *connector) { +struct drm_i915_private *i915 =to_i915 (connector->base.dev);int ret; -DRM_DEBUG_KMS ("[%s:%d] HDCP2.2 is being Disabled\n" , - connector->base.name, connector->base.base.id); +drm_dbg_kms (&i915->drm,"[%s:%d] HDCP2.2 is being Disabled\n" , + connector->base.name, connector->base.base.id); ret =hdcp2_disable_encryption (connector);if (hdcp2_deauthenticate_port (connector) <0 ) -DRM_DEBUG_KMS ("Port deauth failed.\n" ); +drm_dbg_kms (&i915->drm,"Port deauth failed.\n" ); connector->hdcp.hdcp2_encrypted = false;
@@ -1938,12 +1957,13 @@ void intel_hdcp_component_init(struct drm_i915_private *dev_priv)static void intel_hdcp2_init (struct intel_connector *connector,const struct intel_hdcp_shim *shim) { +struct drm_i915_private *i915 =to_i915 (connector->base.dev);struct intel_hdcp *hdcp = &connector->hdcp;int ret; ret =initialize_hdcp_port_data (connector, shim);if (ret) { -DRM_DEBUG_KMS ("Mei hdcp data init failed\n" ); +drm_dbg_kms (&i915->drm,"Mei hdcp data init failed\n" );return ; }
Signature · 6 lines
2.25.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 7/10 drm/i915/hotplug: convert to drm_device based logging.
In reply to Wambui KarugaConverts 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.
--- drivers/gpu/drm/i915/display/intel_hotplug.c | 40 ++++++++++++-------- 1 file changed, 24 insertions(+), 16 deletions(-)
drivers/gpu/drm/i915/display/intel_hotplug.c +24 -16
@@ -185,10 +185,13 @@ static bool intel_hpd_irq_storm_detect(struct drm_i915_private *dev_priv, hpd->stats[pin].count += increment;if (hpd->stats[pin].count > threshold) { hpd->stats[pin].state =HPD_MARK_DISABLED ; -DRM_DEBUG_KMS ("HPD interrupt storm detected on PIN %d\n" , pin); +drm_dbg_kms (&dev_priv->drm, +"HPD interrupt storm detected on PIN %d\n" , pin); storm = true; }else { -DRM_DEBUG_KMS ("Received HPD interrupt on PIN %d - cnt: %d\n" , pin, +drm_dbg_kms (&dev_priv->drm, +"Received HPD interrupt on PIN %d - cnt: %d\n" , + pin, hpd->stats[pin].count); }
@@ -217,7 +220,8 @@ intel_hpd_irq_storm_switch_to_polling(struct drm_i915_private *dev_priv) dev_priv->hotplug.stats[pin].state != HPD_MARK_DISABLED)continue ; -DRM_INFO ("HPD interrupt storm detected on connector %s: " +drm_info (&dev_priv->drm, +"HPD interrupt storm detected on connector %s: " "switching from hotplug detection to polling\n" , connector->base.name);
@@ -259,8 +263,9 @@ static void intel_hpd_irq_storm_reenable_work(struct work_struct *work)continue ;if (connector->base.polled != connector->polled) -DRM_DEBUG_DRIVER ("Reenabling HPD on connector %s\n" , - connector->base.name); +drm_dbg (&dev_priv->drm, +"Reenabling HPD on connector %s\n" , + connector->base.name); connector->base.polled = connector->polled; }drm_connector_list_iter_end (&conn_iter);
@@ -295,11 +300,12 @@ intel_encoder_hotplug(struct intel_encoder *encoder,if (old_status == connector->base.status)return INTEL_HOTPLUG_UNCHANGED ; -DRM_DEBUG_KMS ("[CONNECTOR:%d:%s] status updated from %s to %s\n" , - connector->base.base.id, - connector->base.name, -drm_get_connector_status_name (old_status), -drm_get_connector_status_name (connector->base.status)); +drm_dbg_kms (&to_i915 (dev)->drm, +"[CONNECTOR:%d:%s] status updated from %s to %s\n" , + connector->base.base.id, + connector->base.name, +drm_get_connector_status_name (old_status), +drm_get_connector_status_name (connector->base.status));return INTEL_HOTPLUG_CHANGED ; }
@@ -373,7 +379,7 @@ static void i915_hotplug_work_func(struct work_struct *work)u32 hpd_retry_bits;mutex_lock (&dev->mode_config.mutex); -DRM_DEBUG_KMS ("running encoder hotplug functions\n" ); +drm_dbg_kms (&dev_priv->drm,"running encoder hotplug functions\n" );spin_lock_irq (&dev_priv->irq_lock);
@@ -401,8 +407,9 @@ static void i915_hotplug_work_func(struct work_struct *work)struct intel_encoder *encoder =intel_attached_encoder (connector); -DRM_DEBUG_KMS ("Connector %s (pin %i) received hotplug event.\n" , - connector->base.name, pin); +drm_dbg_kms (&dev_priv->drm, +"Connector %s (pin %i) received hotplug event.\n" , + connector->base.name, pin);switch (encoder->hotplug (encoder, connector, hpd_event_bits & hpd_bit)) {
@@ -487,9 +494,10 @@ void intel_hpd_irq_handler(struct drm_i915_private *dev_priv, long_hpd = long_mask &BIT (pin); -DRM_DEBUG_DRIVER ("digital hpd on [ENCODER:%d:%s] - %s\n" , - encoder->base.base.id, encoder->base.name, - long_hpd ?"long" :"short" ); +drm_dbg (&dev_priv->drm, +"digital hpd on [ENCODER:%d:%s] - %s\n" , + encoder->base.base.id, encoder->base.name, + long_hpd ?"long" :"short" ); queue_dig = true;if (long_hpd) {
Signature · 6 lines
2.25.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 8/10 drm/i915/lpe_audio: convert to drm_device based logging macros.
In reply to Wambui KarugaConvert various uses of the printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_lpe_audio.c.
Note that this converts DRM_DEBUG to drm_dbg().
References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html
--- .../gpu/drm/i915/display/intel_lpe_audio.c | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-)
drivers/gpu/drm/i915/display/intel_lpe_audio.c +14 -9
@@ -127,7 +127,8 @@ lpe_audio_platdev_create(struct drm_i915_private *dev_priv)kfree (pdata);if (IS_ERR (platdev)) { -DRM_ERROR ("Failed to allocate LPE audio platform device\n" ); +drm_err (&dev_priv->drm, +"Failed to allocate LPE audio platform device\n" );return platdev; }
@@ -190,7 +191,8 @@ static bool lpe_audio_detect(struct drm_i915_private *dev_priv) };if (!pci_dev_present (atom_hdaudio_ids)) { -DRM_INFO ("HDaudio controller not detected, using LPE audio instead\n" ); +drm_info (&dev_priv->drm, +"HDaudio controller not detected, using LPE audio instead\n" ); lpe_present = true; } }
@@ -203,18 +205,19 @@ static int lpe_audio_setup(struct drm_i915_private *dev_priv) dev_priv->lpe_audio.irq =irq_alloc_desc (0 );if (dev_priv->lpe_audio.irq <0 ) { -DRM_ERROR ("Failed to allocate IRQ desc: %d\n" , +drm_err (&dev_priv->drm,"Failed to allocate IRQ desc: %d\n" , dev_priv->lpe_audio.irq); ret = dev_priv->lpe_audio.irq; goto err; } -DRM_DEBUG ("irq = %d\n" , dev_priv->lpe_audio.irq); +drm_dbg (&dev_priv->drm,"irq = %d\n" , dev_priv->lpe_audio.irq); ret =lpe_audio_irq_init (dev_priv);if (ret) { -DRM_ERROR ("Failed to initialize irqchip for lpe audio: %d\n" , +drm_err (&dev_priv->drm, +"Failed to initialize irqchip for lpe audio: %d\n" , ret); goto err_free_irq; }
@@ -223,7 +226,8 @@ static int lpe_audio_setup(struct drm_i915_private *dev_priv)if (IS_ERR (dev_priv->lpe_audio.platdev)) { ret =PTR_ERR (dev_priv->lpe_audio.platdev); -DRM_ERROR ("Failed to create lpe audio platform device: %d\n" , +drm_err (&dev_priv->drm, +"Failed to create lpe audio platform device: %d\n" , ret); goto err_free_irq; }
@@ -259,8 +263,8 @@ void intel_lpe_audio_irq_handler(struct drm_i915_private *dev_priv) ret =generic_handle_irq (dev_priv->lpe_audio.irq);if (ret) -DRM_ERROR_RATELIMITED ("error handling LPE audio irq: %d\n" , - ret); +drm_err_ratelimited (&dev_priv->drm, +"error handling LPE audio irq: %d\n" , ret); }/**
@@ -278,7 +282,8 @@ int intel_lpe_audio_init(struct drm_i915_private *dev_priv)if (lpe_audio_detect (dev_priv)) { ret =lpe_audio_setup (dev_priv);if (ret <0 ) -DRM_ERROR ("failed to setup LPE Audio bridge\n" ); +drm_err (&dev_priv->drm, +"failed to setup LPE Audio bridge\n" ); }return ret; }
Signature · 6 lines
2.25.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 9/10 drm/i915/lvds: convert to drm_device based logging macros.
In reply to Wambui KarugaConverts various instances of the printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_lvds.c. This transformation was done by the following coccinelle script that matches based on the existence of a drm_i915_private device:
@@
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,
...)
)
...+>
}
@@
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,
...)
)
...+>
}
New checkpatch warnings were fixed manually.
--- drivers/gpu/drm/i915/display/intel_lvds.c | 43 +++++++++++++---------- 1 file changed, 25 insertions(+), 18 deletions(-)
drivers/gpu/drm/i915/display/intel_lvds.c +25 -18
@@ -182,8 +182,9 @@ static void intel_lvds_pps_get_hw_state(struct drm_i915_private *dev_priv,if (INTEL_GEN (dev_priv) <=4 && pps->t1_t2 ==0 && pps->t5 ==0 && pps->t3 ==0 && pps->tx ==0 ) { -DRM_DEBUG_KMS ("Panel power timings uninitialized, " -"setting defaults\n" ); +drm_dbg_kms (&dev_priv->drm, +"Panel power timings uninitialized, " +"setting defaults\n" );/* Set T2 to 40ms and T5 to 200ms in 100 usec units */ pps->t1_t2 =40 *10 ; pps->t5 =200 *10 ;
@@ -192,10 +193,10 @@ static void intel_lvds_pps_get_hw_state(struct drm_i915_private *dev_priv, pps->tx =200 *10 ; } -DRM_DEBUG_DRIVER ("LVDS PPS:t1+t2 %d t3 %d t4 %d t5 %d tx %d " -"divider %d port %d powerdown_on_reset %d\n" , - pps->t1_t2, pps->t3, pps->t4, pps->t5, pps->tx, - pps->divider, pps->port, pps->powerdown_on_reset); +drm_dbg (&dev_priv->drm,"LVDS PPS:t1+t2 %d t3 %d t4 %d t5 %d tx %d " +"divider %d port %d powerdown_on_reset %d\n" , + pps->t1_t2, pps->t3, pps->t4, pps->t5, pps->tx, + pps->divider, pps->port, pps->powerdown_on_reset); } static void intel_lvds_pps_init_hw(struct drm_i915_private *dev_priv,
@@ -317,7 +318,8 @@ static void intel_enable_lvds(struct intel_encoder *encoder,intel_de_posting_read (dev_priv, lvds_encoder->reg);if (intel_de_wait_for_set (dev_priv,PP_STATUS (0 ),PP_ON ,5000 )) -DRM_ERROR ("timed out waiting for panel to power on\n" ); +drm_err (&dev_priv->drm, +"timed out waiting for panel to power on\n" );intel_panel_enable_backlight (pipe_config, conn_state); }
@@ -332,7 +334,8 @@ static void intel_disable_lvds(struct intel_encoder *encoder,intel_de_write (dev_priv,PP_CONTROL (0 ),intel_de_read (dev_priv,PP_CONTROL (0 )) & ~PANEL_POWER_ON );if (intel_de_wait_for_clear (dev_priv,PP_STATUS (0 ),PP_ON ,1000 )) -DRM_ERROR ("timed out waiting for panel to power off\n" ); +drm_err (&dev_priv->drm, +"timed out waiting for panel to power off\n" );intel_de_write (dev_priv, lvds_encoder->reg,intel_de_read (dev_priv, lvds_encoder->reg) & ~LVDS_PORT_EN );
@@ -398,7 +401,7 @@ static int intel_lvds_compute_config(struct intel_encoder *intel_encoder,/* Should never happen!! */ if (INTEL_GEN (dev_priv) <4 && intel_crtc->pipe ==0 ) { -DRM_ERROR ("Can't support LVDS on pipe A\n" ); +drm_err (&dev_priv->drm,"Can't support LVDS on pipe A\n" );return -EINVAL ; }
@@ -408,8 +411,9 @@ static int intel_lvds_compute_config(struct intel_encoder *intel_encoder, lvds_bpp =6 *3 ;if (lvds_bpp != pipe_config->pipe_bpp && !pipe_config->bw_constrained) { -DRM_DEBUG_KMS ("forcing display bpp (was %d) to LVDS (%d)\n" , - pipe_config->pipe_bpp, lvds_bpp); +drm_dbg_kms (&dev_priv->drm, +"forcing display bpp (was %d) to LVDS (%d)\n" , + pipe_config->pipe_bpp, lvds_bpp); pipe_config->pipe_bpp = lvds_bpp; }
@@ -833,7 +837,8 @@ void intel_lvds_init(struct drm_i915_private *dev_priv) }if (!dev_priv->vbt.int_lvds_support) { -DRM_DEBUG_KMS ("Internal LVDS support disabled by VBT\n" ); +drm_dbg_kms (&dev_priv->drm, +"Internal LVDS support disabled by VBT\n" );return ; }
@@ -852,10 +857,12 @@ void intel_lvds_init(struct drm_i915_private *dev_priv) pin =GMBUS_PIN_PANEL ;if (!intel_bios_is_lvds_present (dev_priv, &pin)) {if ((lvds &LVDS_PORT_EN ) ==0 ) { -DRM_DEBUG_KMS ("LVDS is not present in VBT\n" ); +drm_dbg_kms (&dev_priv->drm, +"LVDS is not present in VBT\n" );return ; } -DRM_DEBUG_KMS ("LVDS is not present in VBT, but enabled anyway\n" ); +drm_dbg_kms (&dev_priv->drm, +"LVDS is not present in VBT, but enabled anyway\n" ); } lvds_encoder =kzalloc (sizeof (*lvds_encoder),GFP_KERNEL );
@@ -969,7 +976,7 @@ void intel_lvds_init(struct drm_i915_private *dev_priv)*/ fixed_mode =intel_encoder_current_mode (intel_encoder);if (fixed_mode) { -DRM_DEBUG_KMS ("using current (BIOS) mode: " ); +drm_dbg_kms (&dev_priv->drm,"using current (BIOS) mode: " );drm_mode_debug_printmodeline (fixed_mode); fixed_mode->type |=DRM_MODE_TYPE_PREFERRED ; }
@@ -985,8 +992,8 @@ void intel_lvds_init(struct drm_i915_private *dev_priv)intel_panel_setup_backlight (connector,INVALID_PIPE ); lvds_encoder->is_dual_link =compute_is_dual_link_lvds (lvds_encoder); -DRM_DEBUG_KMS ("detected %s-link lvds configuration\n" , - lvds_encoder->is_dual_link ?"dual" :"single" ); +drm_dbg_kms (&dev_priv->drm,"detected %s-link lvds configuration\n" , + lvds_encoder->is_dual_link ?"dual" :"single" ); lvds_encoder->a3_power = lvds &LVDS_A3_POWER_MASK ;
@@ -995,7 +1002,7 @@ void intel_lvds_init(struct drm_i915_private *dev_priv) failed:mutex_unlock (&dev->mode_config.mutex); -DRM_DEBUG_KMS ("No LVDS modes found, disabling.\n" ); +drm_dbg_kms (&dev_priv->drm,"No LVDS modes found, disabling.\n" );drm_connector_cleanup (connector);drm_encoder_cleanup (encoder);kfree (lvds_encoder);
Signature · 6 lines
2.25.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 10/10 drm/i915/overlay: convert to drm_device based logging.
In reply to Wambui KarugaConvert various instances of the printk based drm logging macros to the struct drm_device based logging macros in i915/display/intel_overlay.c. This transformation was achieved using the following coccinelle script:
@@
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,
...)
)
...+>
}
@@
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,
...)
)
...+>
}
Note that this converts DRM_DEBUG to drm_dbg().
Checkpatch warnings were addressed manually.
References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html
--- drivers/gpu/drm/i915/display/intel_overlay.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/display/intel_overlay.c +6 -5
@@ -324,7 +324,7 @@ static int intel_overlay_continue(struct intel_overlay *overlay,/* check for underruns */ tmp =intel_de_read (dev_priv,DOVSTA );if (tmp & (1 <<17 )) -DRM_DEBUG ("overlay underrun, DOVSTA: %x\n" , tmp); +drm_dbg (&dev_priv->drm,"overlay underrun, DOVSTA: %x\n" , tmp); rq =alloc_request (overlay,NULL );if (IS_ERR (rq))
@@ -1069,7 +1069,7 @@ int intel_overlay_put_image_ioctl(struct drm_device *dev, void *data, overlay = dev_priv->overlay;if (!overlay) { -DRM_DEBUG ("userspace bug: no overlay\n" ); +drm_dbg (&dev_priv->drm,"userspace bug: no overlay\n" );return -ENODEV ; }
@@ -1093,7 +1093,8 @@ int intel_overlay_put_image_ioctl(struct drm_device *dev, void *data,drm_modeset_lock_all (dev);if (i915_gem_object_is_tiled (new_bo)) { -DRM_DEBUG_KMS ("buffer used for overlay image can not be tiled\n" ); +drm_dbg_kms (&dev_priv->drm, +"buffer used for overlay image can not be tiled\n" ); ret = -EINVAL ; goto out_unlock; }
@@ -1228,7 +1229,7 @@ int intel_overlay_attrs_ioctl(struct drm_device *dev, void *data, overlay = dev_priv->overlay;if (!overlay) { -DRM_DEBUG ("userspace bug: no overlay\n" ); +drm_dbg (&dev_priv->drm,"userspace bug: no overlay\n" );return -ENODEV ; }
@@ -1372,7 +1373,7 @@ void intel_overlay_setup(struct drm_i915_private *dev_priv)update_reg_attrs (overlay, overlay->regs); dev_priv->overlay = overlay; -DRM_INFO ("Initialized overlay support.\n" ); +drm_info (&dev_priv->drm,"Initialized overlay support.\n" );return ; out_free:
Signature · 6 lines
2.25.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/display: conversion to drm_device based logging macros (rev3)
In reply to Wambui Karuga== Series Details ==
== Series Details ==
Series: drm/i915/display: conversion to drm_device based logging macros (rev3)
URL : https://patchwork.freedesktop.org/series/72760/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 72e7872cdf57 drm/i915/dsb: convert to drm_device based logging macros. c68e5b9040f8 drm/i915/fbc: convert to drm_device based logging macros. 782a7fcbd91b drm/i915/fbdev: convert to drm_device based logging. fbd00b0faa00 drm/i915/fifo_underrun: convert to drm_device based logging. cb627a077a8e drm/i915/gmbus: convert to drm_device based logging, 412f8d7aa3dc drm/i915/hdcp: convert to struct drm_device based logging. 29a97de16bca drm/i915/hotplug: convert to drm_device based logging. b9c4c5d444c7 drm/i915/lpe_audio: convert to drm_device based logging macros. -:13: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #13: References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html
total: 0 errors, 1 warnings, 0 checks, 68 lines checked45d68227e680 drm/i915/lvds: convert to drm_device based logging macros.6ee18198a19d drm/i915/overlay: convert to drm_device based logging.
-:91: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #91:
References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html
total: 0 errors, 1 warnings, 0 checks, 41 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/display: conversion to drm_device based logging macros (rev3)
In reply to Wambui Karuga== Series Details ==
== Series Details ==
Series: drm/i915/display: conversion to drm_device based logging macros (rev3)
URL : https://patchwork.freedesktop.org/series/72760/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_8008 -> Patchwork_16715
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_16715 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_16715, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16715/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_16715:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live_gt_lrc:
- fi-skl-guc: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8008/fi-skl-guc/igt@i915_selftest@live_gt_lrc.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16715/fi-skl-guc/igt@i915_selftest@live_gt_lrc.html
* igt@i915_selftest@live_sanitycheck:
- fi-bwr-2160: [PASS][3] -> [DMESG-WARN][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8008/fi-bwr-2160/igt@i915_selftest@live_sanitycheck.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16715/fi-bwr-2160/igt@i915_selftest@live_sanitycheck.html
Known issues
------------
Here are the changes found in Patchwork_16715 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s4-devices:
- fi-tgl-y: [PASS][5] -> [FAIL][6] ([CI#94])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8008/fi-tgl-y/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16715/fi-tgl-y/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live_execlists:
- fi-icl-y: [DMESG-FAIL][7] ([fdo#108569]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8008/fi-icl-y/igt@i915_selftest@live_execlists.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16715/fi-icl-y/igt@i915_selftest@live_execlists.html
* igt@prime_self_import@basic-llseek-bad:
- fi-tgl-y: [DMESG-WARN][9] ([CI#94] / [i915#402]) -> [PASS][10] +1 similar issue
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8008/fi-tgl-y/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16715/fi-tgl-y/igt@[email protected]
[CI#94]: https://gitlab.freedesktop.org/gfx-ci/i915-infra/issues/94
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
Participating hosts (52 -> 45)
------------------------------
Additional (1): fi-byt-n2820
Missing (8): fi-ilk-m540 fi-hsw-4200u fi-skl-6770hq fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_8008 -> Patchwork_16715
CI-20190529: 20190529
CI_DRM_8008: 13b6e2575f2c05722679bc1c9d0b97c13bde49a1 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5469: 4f875016eb1ebc211b8aadb280ae16c7e6cdc8ba @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_16715: 6ee18198a19de0749a409d2e2588506437577737 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
6ee18198a19d drm/i915/overlay: convert to drm_device based logging. 45d68227e680 drm/i915/lvds: convert to drm_device based logging macros. b9c4c5d444c7 drm/i915/lpe_audio: convert to drm_device based logging macros. 29a97de16bca drm/i915/hotplug: convert to drm_device based logging. 412f8d7aa3dc drm/i915/hdcp: convert to struct drm_device based logging. cb627a077a8e drm/i915/gmbus: convert to drm_device based logging, fbd00b0faa00 drm/i915/fifo_underrun: convert to drm_device based logging. 782a7fcbd91b drm/i915/fbdev: convert to drm_device based logging. c68e5b9040f8 drm/i915/fbc: convert to drm_device based logging macros. 72e7872cdf57 drm/i915/dsb: convert to drm_device based logging macros.
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16715/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/display: conversion to drm_device based logging macros (rev4)
In reply to Wambui Karuga== Series Details ==
== Series Details ==
Series: drm/i915/display: conversion to drm_device based logging macros (rev4)
URL : https://patchwork.freedesktop.org/series/72760/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip c1ef2220a44e drm/i915/dsb: convert to drm_device based logging macros. 86a7f80aaa81 drm/i915/fbc: convert to drm_device based logging macros. e85eca106b1e drm/i915/fbdev: convert to drm_device based logging. 52091797541d drm/i915/fifo_underrun: convert to drm_device based logging. b67c2a76b9a9 drm/i915/gmbus: convert to drm_device based logging, d6b8e1e05480 drm/i915/hdcp: convert to struct drm_device based logging. 79f92fa059cb drm/i915/hotplug: convert to drm_device based logging. 23085b0407ab drm/i915/lpe_audio: convert to drm_device based logging macros. -:13: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #13: References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html
total: 0 errors, 1 warnings, 0 checks, 68 lines checked7dfa3b5fa559 drm/i915/lvds: convert to drm_device based logging macros.0b7851f0573c drm/i915/overlay: convert to drm_device based logging.
-:91: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #91:
References: https://lists.freedesktop.org/archives/dri-devel/2020-January/253381.html
total: 0 errors, 1 warnings, 0 checks, 41 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/display: conversion to drm_device based logging macros (rev4)
In reply to Wambui Karuga== Series Details ==
== Series Details ==
Series: drm/i915/display: conversion to drm_device based logging macros (rev4)
URL : https://patchwork.freedesktop.org/series/72760/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_8013 -> Patchwork_16730
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_16730 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_16730, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16730/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_16730:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live_gem_contexts:
- fi-cfl-8700k: [PASS][1] -> [TIMEOUT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8013/fi-cfl-8700k/igt@i915_selftest@live_gem_contexts.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16730/fi-cfl-8700k/igt@i915_selftest@live_gem_contexts.html
Known issues
------------
Here are the changes found in Patchwork_16730 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s0:
- fi-cfl-8109u: [PASS][3] -> [INCOMPLETE][4] ([i915#1242])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8013/fi-cfl-8109u/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16730/fi-cfl-8109u/igt@[email protected]
* igt@gem_exec_suspend@basic-s4-devices:
- fi-tgl-y: [PASS][5] -> [FAIL][6] ([CI#94])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8013/fi-tgl-y/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16730/fi-tgl-y/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [PASS][7] -> [FAIL][8] ([fdo#111407])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8013/fi-kbl-7500u/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16730/fi-kbl-7500u/igt@[email protected]
#### Possible fixes ####
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [DMESG-WARN][9] ([i915#44]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8013/fi-hsw-peppy/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16730/fi-hsw-peppy/igt@[email protected]
* igt@prime_self_import@basic-llseek-size:
- fi-tgl-y: [DMESG-WARN][11] ([CI#94] / [i915#402]) -> [PASS][12] +1 similar issue
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8013/fi-tgl-y/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16730/fi-tgl-y/igt@[email protected]
#### Warnings ####
* igt@i915_selftest@live_gt_lrc:
- fi-tgl-y: [INCOMPLETE][13] ([CI#94] / [i915#1233]) -> [DMESG-FAIL][14] ([CI#94] / [i915#1233])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8013/fi-tgl-y/igt@i915_selftest@live_gt_lrc.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16730/fi-tgl-y/igt@i915_selftest@live_gt_lrc.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[CI#94]: https://gitlab.freedesktop.org/gfx-ci/i915-infra/issues/94
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
[i915#1233]: https://gitlab.freedesktop.org/drm/intel/issues/1233
[i915#1242]: https://gitlab.freedesktop.org/drm/intel/issues/1242
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#44]: https://gitlab.freedesktop.org/drm/intel/issues/44
[i915#460]: https://gitlab.freedesktop.org/drm/intel/issues/460
Participating hosts (51 -> 41)
------------------------------
Missing (10): fi-hsw-4770r fi-bdw-5557u fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-elk-e7500 fi-byt-clapper fi-bsw-nick fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_8013 -> Patchwork_16730
CI-20190529: 20190529
CI_DRM_8013: ddbaa8ebcf171da63385dccb8a6b4d0209c2f6fb @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5471: 668afe52887a164ee6a12fd1c898bc1c9086cf3e @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_16730: 0b7851f0573c7eeb936a533f4be35d7fde434734 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
0b7851f0573c drm/i915/overlay: convert to drm_device based logging. 7dfa3b5fa559 drm/i915/lvds: convert to drm_device based logging macros. 23085b0407ab drm/i915/lpe_audio: convert to drm_device based logging macros. 79f92fa059cb drm/i915/hotplug: convert to drm_device based logging. d6b8e1e05480 drm/i915/hdcp: convert to struct drm_device based logging. b67c2a76b9a9 drm/i915/gmbus: convert to drm_device based logging, 52091797541d drm/i915/fifo_underrun: convert to drm_device based logging. e85eca106b1e drm/i915/fbdev: convert to drm_device based logging. 86a7f80aaa81 drm/i915/fbc: convert to drm_device based logging macros. c1ef2220a44e drm/i915/dsb: convert to drm_device based logging macros.
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16730/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915/display: conversion to drm_device based logging macros (rev5)
In reply to Wambui Karuga== Series Details ==
== Series Details ==
Series: drm/i915/display: conversion to drm_device based logging macros (rev5)
URL : https://patchwork.freedesktop.org/series/72760/
State : failure
== Summary ==
Applying: drm/i915/dsb: convert to drm_device based logging macros.
Applying: drm/i915/fbc: convert to drm_device based logging macros.
Applying: drm/i915/fbdev: convert to drm_device based logging.
Applying: drm/i915/fifo_underrun: convert to drm_device based logging.
Applying: drm/i915/gmbus: convert to drm_device based logging,
Applying: drm/i915/hdcp: convert to struct drm_device based logging. Using index info to reconstruct a base tree...
M drivers/gpu/drm/i915/display/intel_hdcp.c
Falling back to patching base and 3-way merge...
Auto-merging drivers/gpu/drm/i915/display/intel_hdcp.c
CONFLICT (content): Merge conflict in drivers/gpu/drm/i915/display/intel_hdcp.c
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch' to see the failed patch Patch failed at 0006 drm/i915/hdcp: convert to struct drm_device based logging. When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915/display: conversion to drm_device based logging macros (rev5)
Quoted 17 lines · Patchwork
== Series Details ==
Series: drm/i915/display: conversion to
drm_devicebased logging macros (rev5)
URL : https://patchwork.freedesktop.org/series/72760/
State : failure== Summary ==
Applying: drm/i915/dsb: convert to
drm_devicebased logging macros.
Applying: drm/i915/fbc: convert todrm_devicebased logging macros.
Applying: drm/i915/fbdev: convert todrm_devicebased logging.
Applying: drm/i915/fifo_underrun: convert todrm_devicebased logging.
Applying: drm/i915/gmbus: convert todrm_devicebased logging,
Applying: drm/i915/hdcp: convert to structdrm_devicebased logging. Using index info to reconstruct a base tree...
Mdrivers/gpu/drm/i915/display/intel_hdcp.c
Falling back to patching base and 3-way merge...
Quoted 8 lines
Auto-merging
drivers/gpu/drm/i915/display/intel_hdcp.c
CONFLICT (content): Merge conflict indrivers/gpu/drm/i915/display/intel_hdcp.c
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch' to see the failed patch Patch failed at 0006 drm/i915/hdcp: convert to structdrm_devicebased logging. When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Wambui, please rebase and resend the entire series. It's been a bit unlucky in CI, getting failures until it doesn't apply anymore. :(
BR,
Jani.
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx