drm/i915/display: Add debug print for scaler filter
authorSwati Sharma <swati2.sharma@intel.com>
Wed, 6 Jul 2022 10:22:40 +0000 (15:52 +0530)
committerUma Shankar <uma.shankar@intel.com>
Tue, 19 Jul 2022 07:40:55 +0000 (13:10 +0530)
Add debug print statement to print scaler filter property
value. Since property can be set as either default or integer
scaler; its good if we can get debug print for the same in dmesg
log.

Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220706102240.21414-1-swati2.sharma@intel.com
drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
drivers/gpu/drm/i915/display/intel_display_debugfs.c

index 4ca6e9493ff2f427cbb5d106cb168ad153431e94..e9212f69c360b521180d58a873652c0c8d47ec6d 100644 (file)
@@ -134,8 +134,8 @@ static void intel_dump_plane_state(const struct intel_plane_state *plane_state)
                    plane->base.base.id, plane->base.name,
                    fb->base.id, fb->width, fb->height, &fb->format->format,
                    fb->modifier, str_yes_no(plane_state->uapi.visible));
-       drm_dbg_kms(&i915->drm, "\trotation: 0x%x, scaler: %d\n",
-                   plane_state->hw.rotation, plane_state->scaler_id);
+       drm_dbg_kms(&i915->drm, "\trotation: 0x%x, scaler: %d, scaling_filter: %d\n",
+                   plane_state->hw.rotation, plane_state->scaler_id, plane_state->hw.scaling_filter);
        if (plane_state->uapi.visible)
                drm_dbg_kms(&i915->drm,
                            "\tsrc: " DRM_RECT_FP_FMT " dst: " DRM_RECT_FMT "\n",
@@ -262,10 +262,11 @@ void intel_crtc_state_dump(const struct intel_crtc_state *pipe_config,
 
        if (DISPLAY_VER(i915) >= 9)
                drm_dbg_kms(&i915->drm,
-                           "num_scalers: %d, scaler_users: 0x%x, scaler_id: %d\n",
+                           "num_scalers: %d, scaler_users: 0x%x, scaler_id: %d, scaling_filter: %d\n",
                            crtc->num_scalers,
                            pipe_config->scaler_state.scaler_users,
-                           pipe_config->scaler_state.scaler_id);
+                           pipe_config->scaler_state.scaler_id,
+                           pipe_config->hw.scaling_filter);
 
        if (HAS_GMCH(i915))
                drm_dbg_kms(&i915->drm,
index 452d773fd4e34121b990a75b527f1797a0b608c2..a770c1bb2665ea7989b246bc45214e4663bbb2cf 100644 (file)
@@ -720,10 +720,11 @@ static void intel_scaler_info(struct seq_file *m, struct intel_crtc *crtc)
 
        /* Not all platformas have a scaler */
        if (num_scalers) {
-               seq_printf(m, "\tnum_scalers=%d, scaler_users=%x scaler_id=%d",
+               seq_printf(m, "\tnum_scalers=%d, scaler_users=%x scaler_id=%d scaling_filter=%d",
                           num_scalers,
                           crtc_state->scaler_state.scaler_users,
-                          crtc_state->scaler_state.scaler_id);
+                          crtc_state->scaler_state.scaler_id,
+                          crtc_state->hw.scaling_filter);
 
                for (i = 0; i < num_scalers; i++) {
                        const struct intel_scaler *sc =