From: Ville Syrj?l? <ville.syrjala at linux.intel.com> --- drivers/gpu/drm/i915/intel_pm.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index d2cbc94..782c644 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -1770,6 +1770,13 @@ static uint32_t ilk_compute_pri_wm(struct hsw_pipe_wm_parameters *params, { uint32_t method1, method2; + DRM_DEBUG_KMS("active = %s, pipe_htotal = %u, pixel_rate = %u, " + "enabled = %s, horiz_pixels = %u, bytes_per_pixel = %u, " + "latency = %u\n", + yesno(params->active), params->pipe_htotal, params->pixel_rate, + yesno(params->pri.enabled), params->pri.horiz_pixels, params->pri.bytes_per_pixel, + mem_value); + if (!params->active || !params->pri.enabled) return 0; @@ -1795,6 +1802,13 @@ static uint32_t ilk_compute_spr_wm(struct hsw_pipe_wm_parameters *params, { uint32_t method1, method2; + DRM_DEBUG_KMS("active = %s, pipe_htotal = %u, pixel_rate = %u, " + "enabled = %s, horiz_pixels = %u, bytes_per_pixel = %u, " + "latency = %u\n", + yesno(params->active), params->pipe_htotal, params->pixel_rate, + yesno(params->spr.enabled), params->spr.horiz_pixels, params->spr.bytes_per_pixel, + mem_value); + if (!params->active || !params->spr.enabled) return 0; @@ -1813,6 +1827,13 @@ static uint32_t ilk_compute_spr_wm(struct hsw_pipe_wm_parameters *params, static uint32_t ilk_compute_cur_wm(struct hsw_pipe_wm_parameters *params, uint32_t mem_value) { + DRM_DEBUG_KMS("active = %s, pipe_htotal = %u, pixel_rate = %u, " + "enabled = %s, horiz_pixels = %u, bytes_per_pixel = %u, " + "latency = %u\n", + yesno(params->active), params->pipe_htotal, params->pixel_rate, + yesno(params->cur.enabled), params->cur.horiz_pixels, params->cur.bytes_per_pixel, + mem_value); + if (!params->active || !params->cur.enabled) return 0; @@ -1827,6 +1848,13 @@ static uint32_t ilk_compute_cur_wm(struct hsw_pipe_wm_parameters *params, static uint32_t ilk_compute_fbc_wm(struct hsw_pipe_wm_parameters *params, uint32_t pri_val) { + DRM_DEBUG_KMS("active = %s, pipe_htotal = %u, pixel_rate = %u, " + "enabled = %s, horiz_pixels = %u, bytes_per_pixel = %u, " + "pri_val = %u\n", + yesno(params->active), params->pipe_htotal, params->pixel_rate, + yesno(params->pri.enabled), params->pri.horiz_pixels, params->pri.bytes_per_pixel, + pri_val); + if (!params->active || !params->pri.enabled) return 0; -- 1.8.1.5