drm/i915: Allow a way to disable watermark for debuging purposes.
Subsystems (2)
Rodrigo Vivi
maintainerPATCH 1/1 drm/i915: Allow a way to disable watermark for debuging purposes.
Without watermark the power consumption will blow up, but when enabling platforms and dealing with different kinds of crashes, screen corruptions, pipe underuns, etc we need to be able to easily disable watermark to see if we are on the right investigation track.
Another possibility was to skip at the beginning and avoid all calculations, but I'm not sure about it. Maybe it might be still useful to know the calculated values when debuging.
--- drivers/gpu/drm/i915/i915_params.c | 4 ++++ drivers/gpu/drm/i915/i915_params.h | 1 + drivers/gpu/drm/i915/intel_pm.c | 14 +++++++++----- 3 files changed, 14 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/i915_params.c +4 -0
@@ -42,6 +42,7 @@ struct i915_params i915 __read_mostly = { .preliminary_hw_support = IS_ENABLED(CONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT), .disable_power_well = -1, .enable_ips = 1, + .enable_watermark = 1, .fastboot = 0, .prefault_disable = 0, .load_detect_test = 0,
@@ -141,6 +142,9 @@ MODULE_PARM_DESC(disable_power_well,module_param_named_unsafe (enable_ips, i915.enable_ips, int,0600 );MODULE_PARM_DESC (enable_ips,"Enable IPS (default: true)" ); +module_param_named_unsafe (enable_watermark, i915.enable_watermark, int,0600 ); +MODULE_PARM_DESC (enable_watermark,"Enable Watermark (default: true)" ); +module_param_named (fastboot, i915.fastboot, bool,0600 );MODULE_PARM_DESC (fastboot,"Try to skip unnecessary mode sets at boot time (default: false)" );
drivers/gpu/drm/i915/i915_params.h +1 -0
@@ -43,6 +43,7 @@ struct i915_params {unsigned int preliminary_hw_support;int disable_power_well;int enable_ips; +int enable_watermark;int invert_brightness;int enable_cmd_parser;int guc_log_level;
drivers/gpu/drm/i915/intel_pm.c +9 -5
@@ -2484,7 +2484,7 @@ static void ilk_compute_wm_results(struct drm_device *dev, (r->pri_val <<WM1_LP_SR_SHIFT ) | r->cur_val; -if (r->enable) +if (r->enable && i915.enable_watermark) results->wm_lp[wm_lp -1 ] |=WM1_LP_SR_EN ;if (INTEL_INFO (dev)->gen >=8 )
@@ -3258,7 +3258,8 @@ static void skl_compute_wm_results(struct drm_device *dev, temp |= p_wm->wm[level].plane_res_l[i] <<PLANE_WM_LINES_SHIFT ; temp |= p_wm->wm[level].plane_res_b[i]; -if (p_wm->wm[level].plane_en[i]) +if (p_wm->wm[level].plane_en[i] + && i915.enable_watermark) temp |=PLANE_WM_EN ; r->plane[pipe][i][level] = temp;
@@ -3269,7 +3270,8 @@ static void skl_compute_wm_results(struct drm_device *dev, temp |= p_wm->wm[level].plane_res_l[PLANE_CURSOR ] <<PLANE_WM_LINES_SHIFT ; temp |= p_wm->wm[level].plane_res_b[PLANE_CURSOR ]; -if (p_wm->wm[level].plane_en[PLANE_CURSOR ]) +if (p_wm->wm[level].plane_en[PLANE_CURSOR ] + && i915.enable_watermark) temp |=PLANE_WM_EN ; r->plane[pipe][PLANE_CURSOR ][level] = temp;
@@ -3281,7 +3283,8 @@ static void skl_compute_wm_results(struct drm_device *dev, temp =0 ; temp |= p_wm->trans_wm.plane_res_l[i] <<PLANE_WM_LINES_SHIFT ; temp |= p_wm->trans_wm.plane_res_b[i]; -if (p_wm->trans_wm.plane_en[i]) +if (p_wm->trans_wm.plane_en[i] + && i915.enable_watermark) temp |=PLANE_WM_EN ; r->plane_trans[pipe][i] = temp;
@@ -3290,7 +3293,8 @@ static void skl_compute_wm_results(struct drm_device *dev, temp =0 ; temp |= p_wm->trans_wm.plane_res_l[PLANE_CURSOR ] <<PLANE_WM_LINES_SHIFT ; temp |= p_wm->trans_wm.plane_res_b[PLANE_CURSOR ]; -if (p_wm->trans_wm.plane_en[PLANE_CURSOR ]) +if (p_wm->trans_wm.plane_en[PLANE_CURSOR ] + && i915.enable_watermark) temp |=PLANE_WM_EN ; r->plane_trans[pipe][PLANE_CURSOR ] = temp;
Signature · 6 lines
2.4.3 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ warning: Fi.CI.BAT
== Summary ==
== Summary ==
Built on 0417da5e6f56078d87d366d5f959f8290ae9d16d drm-intel-nightly: 2016y-01m-04d-14h-05m-39s UTC integration manifest
Test gem_storedw_loop:
Subgroup basic-render:
dmesg-warn -> PASS (skl-i5k-2)
pass -> DMESG-WARN (skl-i7k-2)
Test kms_flip:
Subgroup basic-flip-vs-dpms:
dmesg-warn -> PASS (ilk-hp8440p)
Subgroup basic-flip-vs-modeset:
pass -> DMESG-WARN (hsw-xps12)
pass -> DMESG-WARN (skl-i7k-2)
Subgroup basic-plain-flip:
dmesg-warn -> PASS (skl-i5k-2)
dmesg-warn -> PASS (bdw-ultra)
Test kms_pipe_crc_basic:
Subgroup read-crc-pipe-a:
pass -> DMESG-WARN (snb-x220t)
Subgroup read-crc-pipe-b:
dmesg-warn -> PASS (snb-dellxps)
Subgroup read-crc-pipe-b-frame-sequence:
pass -> DMESG-WARN (bdw-ultra)
Subgroup read-crc-pipe-c:
pass -> DMESG-WARN (skl-i5k-2)
Subgroup suspend-read-crc-pipe-b:
dmesg-warn -> PASS (snb-x220t)
Test kms_setmode:
Subgroup basic-clone-single-crtc:
pass -> DMESG-WARN (snb-dellxps)bdw-nuci7 total:132 pass:122 dwarn:1 dfail:0 fail:0 skip:9 bdw-ultra total:132 pass:124 dwarn:2 dfail:0 fail:0 skip:6 bsw-nuc-2 total:135 pass:114 dwarn:1 dfail:0 fail:0 skip:20 hsw-brixbox total:135 pass:126 dwarn:2 dfail:0 fail:0 skip:7 hsw-gt2 total:135 pass:130 dwarn:1 dfail:0 fail:0 skip:4 hsw-xps12 total:132 pass:125 dwarn:3 dfail:0 fail:0 skip:4 ilk-hp8440p total:135 pass:100 dwarn:0 dfail:0 fail:0 skip:35 ivb-t430s total:135 pass:127 dwarn:2 dfail:0 fail:0 skip:6 skl-i5k-2 total:135 pass:124 dwarn:3 dfail:0 fail:0 skip:8 skl-i7k-2 total:135 pass:123 dwarn:4 dfail:0 fail:0 skip:8 snb-dellxps total:135 pass:121 dwarn:2 dfail:0 fail:0 skip:12 snb-x220t total:135 pass:121 dwarn:2 dfail:0 fail:1 skip:11
Results at /archive/results/CI_IGT_test/Patchwork_1076/
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx