drm/i915/display: Communicate display power demands to pcode more accurately
Subsystems (3)
PATCH 1/1 drm/i915/display: Communicate display power demands to pcode more accurately
Display to communicate display pipe count/CDCLK/voltage configuration to Pcode for more accurate power accounting for gen >= 12. Existing sequence is only sending the voltage value to the Pcode. Adding new sequence with current cdclk associate with voltage value masking. Adding pcode request when any pipe power well will disable or enable.
v2: - Make intel_cdclk_need_serialize static to make CI compiler happy.
--- drivers/gpu/drm/i915/display/intel_cdclk.c | 174 +++++++++++++++++++-- drivers/gpu/drm/i915/display/intel_cdclk.h | 2 + drivers/gpu/drm/i915/i915_reg.h | 14 ++ 3 files changed, 176 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/display/intel_cdclk.c +160 -14
@@ -1932,10 +1932,10 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,* NOOP - No Pcode communication needed for * Display versions 14 and beyond */ ; - else if (DISPLAY_VER(dev_priv) >= 11) + else if (DISPLAY_VER(dev_priv) >= 11 && !IS_DG2(dev_priv)) ret =snb_pcode_write (&dev_priv->uncore,SKL_PCODE_CDCLK_CONTROL , cdclk_config->voltage_level); - else +if (DISPLAY_VER (dev_priv) <11 ) {/* * The timeout isn't specified, the 2ms used here is based on * experiment.
@@ -1946,7 +1946,7 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,HSW_PCODE_DE_WRITE_FREQ_REQ , cdclk_config->voltage_level, 150, 2); - + }if (ret) { drm_err(&dev_priv->drm, "PCode CDCLK freq set failed, (err %d, freq %d)\n",
@@ -2242,6 +2242,40 @@ void intel_cdclk_dump_config(struct drm_i915_private *i915, cdclk_config->voltage_level); } +static void intel_pcode_notify (struct drm_i915_private *i915, +u8 voltage_level, +u8 active_pipe_count, +u8 cdclk, +bool cdclk_update_valid, +bool pipe_count_update_valid) +{ +int ret; +u32 update_mask =0 ; + +if (DISPLAY_VER (i915) <12 ) +return ; + + update_mask =DISPLAY_TO_PCODE_UPDATE_MASK (cdclk, active_pipe_count, voltage_level); + +if (cdclk_update_valid) + update_mask |=DISPLAY_TO_PCODE_CDCLK_VALID ; + +if (pipe_count_update_valid) + update_mask |=DISPLAY_TO_PCODE_PIPE_COUNT_VALID ; + + ret =skl_pcode_request (&i915->uncore,SKL_PCODE_CDCLK_CONTROL , +SKL_CDCLK_PREPARE_FOR_CHANGE | + update_mask, +SKL_CDCLK_READY_FOR_CHANGE , +SKL_CDCLK_READY_FOR_CHANGE ,3 ); +if (ret) { +drm_err (&i915->drm, +"Failed to inform PCU about display config (err %d)\n" , + ret); +return ; + } +} +/** * intel_set_cdclk - Push the CDCLK configuration to the hardware * @dev_priv: i915 device
@@ -2311,6 +2345,98 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv, } } +/** +* intel_cdclk_power_usage_to_pcode_pre_notification: display to pcode notification +* before the enabling power wells. +* send notification with cdclk, number of pipes, voltage_level. +* @state: intel atomic state +*/ +void intel_cdclk_power_usage_to_pcode_pre_notification (struct intel_atomic_state *state) +{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +const struct intel_cdclk_state *old_cdclk_state = +intel_atomic_get_old_cdclk_state (state); +const struct intel_cdclk_state *new_cdclk_state = +intel_atomic_get_new_cdclk_state (state); +unsigned int cdclk =0 ;u8 voltage_level, num_active_pipes =0 ; +bool change_cdclk, update_pipe_count; + +if (!intel_cdclk_changed (&old_cdclk_state->actual, + &new_cdclk_state->actual) && + (new_cdclk_state->active_pipes == + old_cdclk_state->active_pipes)) +return ; + +/* According to "Sequence Before Frequency Change", voltage level set to 0x3 */ + voltage_level =DISPLAY_TO_PCODE_VOLTAGE_MAX ; + + change_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; + update_pipe_count =hweight8 (new_cdclk_state->active_pipes) > +hweight8 (old_cdclk_state->active_pipes); + +/* +* According to "Sequence Before Frequency Change", +* if CDCLK is increasing, set bits 25:16 to upcoming CDCLK, +* if CDCLK is decreasing or not changing, set bits 25:16 to current CDCLK, +* which basically means we choose the maximum of old and new CDCLK, if we know both +*/ +if (change_cdclk) + cdclk =max (new_cdclk_state->actual.cdclk, old_cdclk_state->actual.cdclk); + +/* +* According to "Sequence For Pipe Count Change", +* if pipe count is increasing, set bits 25:16 to upcoming pipe count +* (power well is enabled) +* no action if it is decreasing, before the change +*/ +if (update_pipe_count) + num_active_pipes =hweight8 (new_cdclk_state->active_pipes); + +intel_pcode_notify (dev_priv, voltage_level, num_active_pipes, cdclk, + change_cdclk, update_pipe_count); +} + +/* intel_cdclk_power_usage_to_pcode_post_notification: after frequency change sending +* voltage_level, active pipes, current CDCLK frequency. +* @state: intel atomic state +*/ +void intel_cdclk_power_usage_to_pcode_post_notification (struct intel_atomic_state *state) +{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +const struct intel_cdclk_state *new_cdclk_state = +intel_atomic_get_new_cdclk_state (state); +const struct intel_cdclk_state *old_cdclk_state = +intel_atomic_get_old_cdclk_state (state); +unsigned int cdclk =0 ;u8 voltage_level, num_active_pipes =0 ; +bool update_cdclk, update_pipe_count; + +/* According to "Sequence After Frequency Change", set voltage to used level */ + voltage_level = new_cdclk_state->actual.voltage_level; + + update_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; + update_pipe_count =hweight8 (new_cdclk_state->active_pipes) < +hweight8 (old_cdclk_state->active_pipes); + +/* +* According to "Sequence After Frequency Change", +* set bits 25:16 to current CDCLK +*/ +if (update_cdclk) + cdclk = new_cdclk_state->actual.cdclk; + +/* +* According to "Sequence For Pipe Count Change", +* if pipe count is decreasing, set bits 25:16 to current pipe count, +* after the change(power well is disabled) +* no action if it is increasing, after the change +*/ +if (update_pipe_count) + num_active_pipes =hweight8 (new_cdclk_state->active_pipes); + +intel_pcode_notify (dev_priv, voltage_level, num_active_pipes, cdclk, + update_cdclk, update_pipe_count); +} +/** * intel_set_cdclk_pre_plane_update - Push the CDCLK state to the hardware * @state: intel atomic state
@@ -2321,7 +2447,7 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv,void intel_set_cdclk_pre_plane_update (struct intel_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_cdclk_state *old_cdclk_state =intel_atomic_get_old_cdclk_state (state); const struct intel_cdclk_state *new_cdclk_state =
@@ -2332,11 +2458,14 @@ intel_set_cdclk_pre_plane_update(struct intel_atomic_state *state) &new_cdclk_state->actual))return ; +if (DISPLAY_VER (i915) >=12 ) +intel_cdclk_power_usage_to_pcode_pre_notification (state); +if (pipe ==INVALID_PIPE || old_cdclk_state->actual.cdclk <= new_cdclk_state->actual.cdclk) { -drm_WARN_ON (&dev_priv->drm, !new_cdclk_state->base.changed); +drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed); -intel_set_cdclk (dev_priv, &new_cdclk_state->actual, pipe); +intel_set_cdclk (i915, &new_cdclk_state->actual, pipe); } }
@@ -2350,7 +2479,7 @@ intel_set_cdclk_pre_plane_update(struct intel_atomic_state *state)void intel_set_cdclk_post_plane_update (struct intel_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_cdclk_state *old_cdclk_state =intel_atomic_get_old_cdclk_state (state); const struct intel_cdclk_state *new_cdclk_state =
@@ -2361,11 +2490,14 @@ intel_set_cdclk_post_plane_update(struct intel_atomic_state *state) &new_cdclk_state->actual))return ; +if (DISPLAY_VER (i915) >=12 ) +intel_cdclk_power_usage_to_pcode_post_notification (state); +if (pipe !=INVALID_PIPE && old_cdclk_state->actual.cdclk > new_cdclk_state->actual.cdclk) { -drm_WARN_ON (&dev_priv->drm, !new_cdclk_state->base.changed); +drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed); -intel_set_cdclk (dev_priv, &new_cdclk_state->actual, pipe); +intel_set_cdclk (i915, &new_cdclk_state->actual, pipe); } }
@@ -2871,6 +3003,21 @@ int intel_cdclk_init(struct drm_i915_private *dev_priv)return 0 ; } +static bool intel_cdclk_need_serialize (struct drm_i915_private *i915, +const struct intel_cdclk_state *old_cdclk_state, +const struct intel_cdclk_state *new_cdclk_state) +{ +/* +* We need to poke hw for gen >= 12, because we notify PCode if +* pipe power well count changes. +*/ +return intel_cdclk_changed (&old_cdclk_state->actual, + &new_cdclk_state->actual) || + ((DISPLAY_VER (i915) >=12 && +hweight8 (old_cdclk_state->active_pipes) != +hweight8 (new_cdclk_state->active_pipes))); +} +int intel_modeset_calc_cdclk (struct intel_atomic_state *state) {struct drm_i915_private *dev_priv =to_i915 (state->base.dev);
@@ -2892,8 +3039,7 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state)if (ret)return ret; -if (intel_cdclk_changed (&old_cdclk_state->actual, - &new_cdclk_state->actual)) { +if (intel_cdclk_need_serialize (dev_priv, old_cdclk_state, new_cdclk_state)) {/* * Also serialize commits across all crtcs * if the actual hw needs to be poked.
@@ -2905,9 +3051,9 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state) old_cdclk_state->force_min_cdclk != new_cdclk_state->force_min_cdclk || intel_cdclk_changed(&old_cdclk_state->logical, &new_cdclk_state->logical)) { - ret = intel_atomic_lock_global_state(&new_cdclk_state->base); - if (ret) - return ret; + ret = intel_atomic_lock_global_state(&new_cdclk_state->base); + if (ret) + return ret; } else {return 0 ; }
drivers/gpu/drm/i915/display/intel_cdclk.h +2 -0
@@ -64,6 +64,8 @@ bool intel_cdclk_needs_modeset(const struct intel_cdclk_config *a, const struct intel_cdclk_config *b);void intel_set_cdclk_pre_plane_update (struct intel_atomic_state *state);void intel_set_cdclk_post_plane_update (struct intel_atomic_state *state); +void intel_cdclk_power_usage_to_pcode_pre_notification (struct intel_atomic_state *state); +void intel_cdclk_power_usage_to_pcode_post_notification (struct intel_atomic_state *state);void intel_cdclk_dump_config (struct drm_i915_private *i915,const struct intel_cdclk_config *cdclk_config,const char *context);
drivers/gpu/drm/i915/i915_reg.h +14 -0
@@ -6526,6 +6526,20 @@#define ICL_PCODE_MEM_SS_READ_GLOBAL_INFO (0x0 << 8)#define ICL_PCODE_MEM_SS_READ_QGV_POINT_INFO (point) (((point) << 16) | (0x1 << 8))#define ADL_PCODE_MEM_SS_READ_PSF_GV_INFO ((0) | (0x2 << 8)) +#define DISPLAY_TO_PCODE_CDCLK_MAX 0x28D +#define DISPLAY_TO_PCODE_VOLTAGE_MASK REG_GENMASK(1, 0) +#define DISPLAY_TO_PCODE_VOLTAGE_MAX DISPLAY_TO_PCODE_VOLTAGE_MASK +#define DISPLAY_TO_PCODE_CDCLK_VALID REG_BIT(27) +#define DISPLAY_TO_PCODE_PIPE_COUNT_VALID REG_BIT(31) +#define DISPLAY_TO_PCODE_CDCLK_MASK REG_GENMASK(25, 16) +#define DISPLAY_TO_PCODE_PIPE_COUNT_MASK REG_GENMASK(30, 28) +#define DISPLAY_TO_PCODE_CDCLK (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_CDCLK_MASK, (x)) +#define DISPLAY_TO_PCODE_PIPE_COUNT (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_PIPE_COUNT_MASK, (x)) +#define DISPLAY_TO_PCODE_VOLTAGE (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_VOLTAGE_MASK, (x)) +#define DISPLAY_TO_PCODE_UPDATE_MASK (cdclk, num_pipes, voltage_level) \ + (DISPLAY_TO_PCODE_CDCLK(cdclk)) | \ + (DISPLAY_TO_PCODE_PIPE_COUNT(num_pipes)) | \ + (DISPLAY_TO_PCODE_VOLTAGE(voltage_level))#define ICL_PCODE_SAGV_DE_MEM_SS_CONFIG 0xe#define ICL_PCODE_REP_QGV_MASK REG_GENMASK(1, 0)#define ICL_PCODE_REP_QGV_SAFE REG_FIELD_PREP(ICL_PCODE_REP_QGV_MASK, 0)
Signature · 1 line
2.37.3
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/display: Communicate display power demands to pcode more accurately (rev2)
== Series Details ==
== Series Details ==
Series: drm/i915/display: Communicate display power demands to pcode more accurately (rev2)
URL : https://patchwork.freedesktop.org/series/114401/
State : warning
== Summary ==
Error: dim checkpatch failed5390f300e150 drm/i915/display: Communicate display power demands to pcode more accurately -:10: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #10:
Adding new sequence with current cdclk associate with voltage value masking.
-:75: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #75: FILE: drivers/gpu/drm/i915/display/intel_cdclk.c:2273:
+ drm_err(&i915->drm,
+ "Failed to inform PCU about display config (err %d)\n",
-:104: CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'new_cdclk_state->active_pipes ==
old_cdclk_state->active_pipes'
#104: FILE: drivers/gpu/drm/i915/display/intel_cdclk.c:2364:
+ if (!intel_cdclk_changed(&old_cdclk_state->actual,
+ &new_cdclk_state->actual) &&
+ (new_cdclk_state->active_pipes ==
+ old_cdclk_state->active_pipes))
-:309: WARNING:LONG_LINE: line length of 101 exceeds 100 columns #309: FILE: drivers/gpu/drm/i915/i915_reg.h:6537:
+#define DISPLAY_TO_PCODE_PIPE_COUNT(x) REG_FIELD_PREP(DISPLAY_TO_PCODE_PIPE_COUNT_MASK, (x))
-:311: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #311: FILE: drivers/gpu/drm/i915/i915_reg.h:6539:
+#define DISPLAY_TO_PCODE_UPDATE_MASK(cdclk, num_pipes, voltage_level) \
+ (DISPLAY_TO_PCODE_CDCLK(cdclk)) | \
+ (DISPLAY_TO_PCODE_PIPE_COUNT(num_pipes)) | \
+ (DISPLAY_TO_PCODE_VOLTAGE(voltage_level))
total: 1 errors, 2 warnings, 2 checks, 276 lines checked
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/display: Communicate display power demands to pcode more accurately (rev2)
In reply to Stanislav Lisovskiy== Series Details ==
== Series Details ==
Series: drm/i915/display: Communicate display power demands to pcode more accurately (rev2)
URL : https://patchwork.freedesktop.org/series/114401/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12779 -> Patchwork_114401v2
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/index.html
Participating hosts (38 -> 39)
------------------------------
Additional (2): bat-adls-5 bat-dg1-6
Missing (1): fi-snb-2520m
Known issues
------------
Here are the changes found in Patchwork_114401v2 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@debugfs_test@basic-hwmon:
- bat-adls-5: NOTRUN -> [SKIP][1] ([i915#7456])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adls-5/igt@[email protected]
* igt@gem_lmem_swapping@random-engines:
- bat-adlp-6: NOTRUN -> [SKIP][2] ([i915#4613]) +3 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adlp-6/igt@[email protected]
- bat-adls-5: NOTRUN -> [SKIP][3] ([i915#4613]) +3 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adls-5/igt@[email protected]
* igt@gem_mmap@basic:
- bat-dg1-6: NOTRUN -> [SKIP][4] ([i915#4083])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
* igt@gem_render_tiled_blits@basic:
- bat-dg1-6: NOTRUN -> [SKIP][5] ([i915#4079]) +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
* igt@gem_tiled_fence_blits@basic:
- bat-dg1-6: NOTRUN -> [SKIP][6] ([i915#4077]) +2 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
* igt@gem_tiled_pread_basic:
- bat-adls-5: NOTRUN -> [SKIP][7] ([i915#3282])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adls-5/igt@gem_tiled_pread_basic.html
* igt@i915_pm_backlight@basic-brightness:
- bat-dg1-6: NOTRUN -> [SKIP][8] ([i915#7561])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
* igt@i915_pm_rps@basic-api:
- bat-dg1-6: NOTRUN -> [SKIP][9] ([i915#6621])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
- bat-adlp-6: NOTRUN -> [SKIP][10] ([i915#6621])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adlp-6/igt@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- fi-kbl-soraka: [PASS][11] -> [DMESG-FAIL][12] ([i915#5334] / [i915#7872])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html
- fi-apl-guc: [PASS][13] -> [DMESG-FAIL][14] ([i915#5334])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_selftest@live@hangcheck:
- fi-kbl-soraka: [PASS][15] -> [INCOMPLETE][16] ([i915#7913])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/fi-kbl-soraka/igt@i915_selftest@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/fi-kbl-soraka/igt@i915_selftest@[email protected]
- bat-adls-5: NOTRUN -> [DMESG-WARN][17] ([i915#5591])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adls-5/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@requests:
- bat-rpls-1: [PASS][18] -> [ABORT][19] ([i915#7694] / [i915#7911])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/bat-rpls-1/igt@i915_selftest@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-rpls-1/igt@i915_selftest@[email protected]
* igt@kms_addfb_basic@basic-y-tiled-legacy:
- bat-dg1-6: NOTRUN -> [SKIP][20] ([i915#4215])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
* igt@kms_addfb_basic@tile-pitch-mismatch:
- bat-dg1-6: NOTRUN -> [SKIP][21] ([i915#4212]) +7 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
* igt@kms_chamelium_hpd@common-hpd-after-suspend:
- bat-dg1-6: NOTRUN -> [SKIP][22] ([i915#7828]) +8 similar issues
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
- bat-adlp-6: NOTRUN -> [SKIP][23] ([i915#7828])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adlp-6/igt@[email protected]
* igt@kms_chamelium_hpd@vga-hpd-fast:
- bat-adls-5: NOTRUN -> [SKIP][24] ([i915#7828]) +8 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adls-5/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- bat-dg1-6: NOTRUN -> [SKIP][25] ([i915#4103] / [i915#4213]) +1 similar issue
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-adls-5: NOTRUN -> [SKIP][26] ([i915#4103]) +1 similar issue
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adls-5/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- bat-adls-5: NOTRUN -> [SKIP][27] ([fdo#109285])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adls-5/igt@[email protected]
- bat-dg1-6: NOTRUN -> [SKIP][28] ([fdo#109285])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
* igt@kms_psr@sprite_plane_onoff:
- bat-dg1-6: NOTRUN -> [SKIP][29] ([i915#1072] / [i915#4078]) +3 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@kms_psr@sprite_plane_onoff.html
* igt@kms_setmode@basic-clone-single-crtc:
- bat-dg1-6: NOTRUN -> [SKIP][30] ([i915#3555])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
- bat-adls-5: NOTRUN -> [SKIP][31] ([i915#3555])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adls-5/igt@[email protected]
* igt@prime_vgem@basic-fence-read:
- bat-adlp-6: NOTRUN -> [SKIP][32] ([fdo#109295] / [i915#3291] / [i915#3708]) +2 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adlp-6/igt@[email protected]
* igt@prime_vgem@basic-gtt:
- bat-dg1-6: NOTRUN -> [SKIP][33] ([i915#3708] / [i915#4077]) +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
* igt@prime_vgem@basic-read:
- bat-dg1-6: NOTRUN -> [SKIP][34] ([i915#3708]) +3 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
- bat-adls-5: NOTRUN -> [SKIP][35] ([fdo#109295] / [i915#3291]) +2 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adls-5/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- bat-adlp-6: NOTRUN -> [SKIP][36] ([fdo#109295] / [i915#3301] / [i915#3708])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adlp-6/igt@[email protected]
- bat-dg1-6: NOTRUN -> [SKIP][37] ([i915#3708] / [i915#4873])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-dg1-6/igt@[email protected]
- bat-adls-5: NOTRUN -> [SKIP][38] ([fdo#109295] / [i915#3301])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adls-5/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_gttfill@basic:
- fi-pnv-d510: [FAIL][39] ([i915#7229]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/fi-pnv-d510/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/fi-pnv-d510/igt@[email protected]
* igt@i915_pm_rpm@basic-rte:
- bat-adlp-6: [ABORT][41] ([i915#7977]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/bat-adlp-6/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/bat-adlp-6/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-bsw-n3050: [DMESG-WARN][43] ([i915#1982]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/fi-bsw-n3050/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/fi-bsw-n3050/igt@[email protected]
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#5591]: https://gitlab.freedesktop.org/drm/intel/issues/5591
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#7229]: https://gitlab.freedesktop.org/drm/intel/issues/7229
[i915#7456]: https://gitlab.freedesktop.org/drm/intel/issues/7456
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7694]: https://gitlab.freedesktop.org/drm/intel/issues/7694
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7872]: https://gitlab.freedesktop.org/drm/intel/issues/7872
[i915#7911]: https://gitlab.freedesktop.org/drm/intel/issues/7911
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7977]: https://gitlab.freedesktop.org/drm/intel/issues/7977
Build changes
-------------
* Linux: CI_DRM_12779 -> Patchwork_114401v2
CI-20190529: 20190529
CI_DRM_12779: c9e864cbde25141a868d6bbbb5aa6f44186bbc7f @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7173: deab4e0bdf5a9366b67d0a44f478f3da3c9a943b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_114401v2: c9e864cbde25141a868d6bbbb5aa6f44186bbc7f @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
2578bfb3eaf2 drm/i915/display: Communicate display power demands to pcode more accurately
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/index.html
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/display: Communicate display power demands to pcode more accurately (rev2)
In reply to Stanislav Lisovskiy== Series Details ==
== Series Details ==
Series: drm/i915/display: Communicate display power demands to pcode more accurately (rev2)
URL : https://patchwork.freedesktop.org/series/114401/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12779_full -> Patchwork_114401v2_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (10 -> 9)
------------------------------
Missing (1): shard-rkl0
Known issues
------------
Here are the changes found in Patchwork_114401v2_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@drm_buddy@all-tests:
- shard-tglu-10: NOTRUN -> [SKIP][1] ([i915#6433])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@gem_ccs@block-copy-compressed:
- shard-tglu-10: NOTRUN -> [SKIP][2] ([i915#3555] / [i915#5325])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@gem_ccs@ctrl-surf-copy-new-ctx:
- shard-tglu-10: NOTRUN -> [SKIP][3] ([i915#5325])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@gem_eio@hibernate:
- shard-tglu-10: NOTRUN -> [ABORT][4] ([i915#7975])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@gem_exec_fair@basic-pace@bcs0:
- shard-tglu-10: NOTRUN -> [FAIL][5] ([i915#2842]) +4 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@gem_exec_fair@[email protected]
* igt@gem_lmem_swapping@heavy-verify-multi:
- shard-tglu-10: NOTRUN -> [SKIP][6] ([i915#4613]) +5 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@gem_pxp@create-regular-buffer:
- shard-tglu-10: NOTRUN -> [SKIP][7] ([i915#4270]) +2 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-sync:
- shard-tglu-10: NOTRUN -> [SKIP][8] ([i915#3323])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@gem_userptr_blits@invalid-mmap-offset-unsync:
- shard-tglu-10: NOTRUN -> [SKIP][9] ([i915#3297]) +1 similar issue
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@gen3_render_tiledy_blits:
- shard-tglu-10: NOTRUN -> [SKIP][10] ([fdo#109289]) +3 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@gen3_render_tiledy_blits.html
* igt@gen9_exec_parse@bb-secure:
- shard-tglu-10: NOTRUN -> [SKIP][11] ([i915#2527] / [i915#2856]) +4 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@i915_pm_rpm@modeset-non-lpsp:
- shard-tglu-10: NOTRUN -> [SKIP][12] ([fdo#111644] / [i915#1397]) +2 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@i915_pm_rpm@pc8-residency:
- shard-tglu-10: NOTRUN -> [SKIP][13] ([fdo#109506])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_big_fb@4-tiled-32bpp-rotate-90:
- shard-apl: NOTRUN -> [SKIP][14] ([fdo#109271]) +31 similar issues
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-apl6/igt@[email protected]
* igt@kms_big_fb@4-tiled-8bpp-rotate-270:
- shard-tglu-10: NOTRUN -> [SKIP][15] ([i915#5286]) +5 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_big_fb@y-tiled-8bpp-rotate-270:
- shard-tglu-10: NOTRUN -> [SKIP][16] ([fdo#111614]) +1 similar issue
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_big_fb@yf-tiled-8bpp-rotate-0:
- shard-tglu-10: NOTRUN -> [SKIP][17] ([fdo#111615]) +4 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][18] ([i915#3689] / [i915#3886]) +5 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-b-random-ccs-data-4_tiled_dg2_rc_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][19] ([i915#3689] / [i915#6095]) +2 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@kms_ccs@pipe-b-random-ccs-data-4_tiled_dg2_rc_ccs.html
* igt@kms_ccs@pipe-c-bad-pixel-format-4_tiled_dg2_rc_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][20] ([i915#6095]) +3 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@kms_ccs@pipe-c-bad-pixel-format-4_tiled_dg2_rc_ccs.html
* igt@kms_ccs@pipe-c-crc-primary-basic-y_tiled_gen12_rc_ccs_cc:
- shard-apl: NOTRUN -> [SKIP][21] ([fdo#109271] / [i915#3886])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-apl6/igt@kms_ccs@pipe-c-crc-primary-basic-y_tiled_gen12_rc_ccs_cc.html
- shard-glk: NOTRUN -> [SKIP][22] ([fdo#109271] / [i915#3886])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-glk4/igt@kms_ccs@pipe-c-crc-primary-basic-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-d-bad-aux-stride-yf_tiled_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][23] ([fdo#111615] / [i915#3689]) +4 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@kms_ccs@pipe-d-bad-aux-stride-yf_tiled_ccs.html
* igt@kms_ccs@pipe-d-crc-primary-basic-4_tiled_dg2_mc_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][24] ([i915#3689]) +4 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@kms_ccs@pipe-d-crc-primary-basic-4_tiled_dg2_mc_ccs.html
* igt@kms_chamelium_hpd@vga-hpd:
- shard-tglu-10: NOTRUN -> [SKIP][25] ([i915#7828]) +9 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_color@ctm-0-25@pipe-b-hdmi-a-1:
- shard-tglu-10: NOTRUN -> [FAIL][26] ([i915#315] / [i915#6946]) +3 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@kms_color@[email protected]
* igt@kms_content_protection@atomic:
- shard-tglu-10: NOTRUN -> [SKIP][27] ([i915#6944] / [i915#7116] / [i915#7118]) +1 similar issue
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_content_protection@dp-mst-type-0:
- shard-tglu-10: NOTRUN -> [SKIP][28] ([i915#3116] / [i915#3299]) +1 similar issue
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_cursor_crc@cursor-offscreen-512x170:
- shard-tglu-10: NOTRUN -> [SKIP][29] ([fdo#109279] / [i915#3359])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_cursor_crc@cursor-rapid-movement-512x170:
- shard-tglu-10: NOTRUN -> [SKIP][30] ([i915#3359]) +2 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_cursor_legacy@2x-nonblocking-modeset-vs-cursor-atomic:
- shard-tglu-10: NOTRUN -> [SKIP][31] ([fdo#109274]) +4 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_flip@2x-absolute-wf_vblank-interruptible:
- shard-tglu-10: NOTRUN -> [SKIP][32] ([fdo#109274] / [i915#3637]) +5 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@kms_flip@2x-absolute-wf_vblank-interruptible.html
* igt@kms_flip@2x-flip-vs-expired-vblank-interruptible@ac-hdmi-a1-hdmi-a2:
- shard-glk: [PASS][33] -> [FAIL][34] ([i915#79])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-glk7/igt@kms_flip@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-glk9/igt@kms_flip@[email protected]
* igt@kms_flip@2x-plain-flip-ts-check-interruptible@ab-hdmi-a1-hdmi-a2:
- shard-glk: [PASS][35] -> [FAIL][36] ([i915#2122])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-glk5/igt@kms_flip@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-glk1/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling@pipe-a-valid-mode:
- shard-tglu-10: NOTRUN -> [SKIP][37] ([i915#2587] / [i915#2672]) +2 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling@pipe-a-valid-mode.html
* igt@kms_frontbuffer_tracking@fbc-tiling-4:
- shard-tglu-10: NOTRUN -> [SKIP][38] ([i915#5439])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-mmap-wc:
- shard-tglu-10: NOTRUN -> [SKIP][39] ([fdo#109280]) +30 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-mmap-wc.html
- shard-glk: NOTRUN -> [SKIP][40] ([fdo#109271]) +24 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-glk4/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcpsr-rgb565-draw-pwrite:
- shard-tglu-10: NOTRUN -> [SKIP][41] ([fdo#110189]) +26 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_hdr@static-toggle-dpms:
- shard-tglu-10: NOTRUN -> [SKIP][42] ([i915#3555]) +4 similar issues
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_multipipe_modeset@basic-max-pipe-crc-check:
- shard-tglu-10: NOTRUN -> [SKIP][43] ([i915#1839])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_plane_lowres@tiling-4:
- shard-tglu-10: NOTRUN -> [SKIP][44] ([fdo#112054] / [i915#5288])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_plane_scaling@plane-downscale-with-rotation-factor-0-25@pipe-c-hdmi-a-1:
- shard-tglu-10: NOTRUN -> [SKIP][45] ([i915#5176]) +3 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@kms_plane_scaling@[email protected]
* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-a-vga-1:
- shard-snb: NOTRUN -> [SKIP][46] ([fdo#109271]) +19 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-snb7/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-a-vga-1.html
* igt@kms_prime@basic-crc-hybrid:
- shard-tglu-10: NOTRUN -> [SKIP][47] ([i915#6524])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area:
- shard-tglu-10: NOTRUN -> [SKIP][48] ([fdo#111068] / [i915#658])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-big-fb:
- shard-tglu-10: NOTRUN -> [SKIP][49] ([i915#658]) +1 similar issue
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@kms_psr2_su@page_flip-xrgb8888:
- shard-tglu-10: NOTRUN -> [SKIP][50] ([fdo#109642] / [fdo#111068] / [i915#658])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@kms_psr2_su@page_flip-xrgb8888.html
* igt@kms_setmode@basic@pipe-a-vga-1:
- shard-snb: NOTRUN -> [FAIL][51] ([i915#5465]) +1 similar issue
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-snb5/igt@kms_setmode@[email protected]
* igt@prime_vgem@coherency-gtt:
- shard-tglu-10: NOTRUN -> [SKIP][52] ([fdo#109295] / [fdo#111656])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@[email protected]
* igt@v3d/v3d_perfmon@get-values-invalid-pad:
- shard-tglu-10: NOTRUN -> [SKIP][53] ([fdo#109315] / [i915#2575]) +2 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@v3d/[email protected]
* igt@vc4/vc4_wait_bo@used-bo:
- shard-tglu-10: NOTRUN -> [SKIP][54] ([i915#2575]) +6 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-10/igt@vc4/[email protected]
#### Possible fixes ####
* igt@api_intel_bb@object-reloc-keep-cache:
- {shard-rkl}: [SKIP][55] ([i915#3281]) -> [PASS][56] +9 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-rkl-2/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-rkl-5/igt@[email protected]
* igt@drm_fdinfo@idle@rcs0:
- {shard-rkl}: [FAIL][57] ([i915#7742]) -> [PASS][58] +1 similar issue
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-rkl-1/igt@drm_fdinfo@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-rkl-5/igt@drm_fdinfo@[email protected]
* igt@fbdev@write:
- {shard-rkl}: [SKIP][59] ([i915#2582]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-rkl-5/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-rkl-6/igt@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [FAIL][61] ([i915#2842]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-glk9/igt@gem_exec_fair@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-glk2/igt@gem_exec_fair@[email protected]
- {shard-rkl}: [FAIL][63] ([i915#2842]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-rkl-2/igt@gem_exec_fair@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-rkl-5/igt@gem_exec_fair@[email protected]
* igt@gem_readwrite@read-write:
- {shard-rkl}: [SKIP][65] ([i915#3282]) -> [PASS][66] +2 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-rkl-2/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-rkl-5/igt@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-apl: [ABORT][67] ([i915#5566]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-apl1/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-apl6/igt@[email protected]
- shard-glk: [ABORT][69] ([i915#5566]) -> [PASS][70]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-glk5/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-glk4/igt@[email protected]
* igt@gen9_exec_parse@bb-start-out:
- {shard-rkl}: [SKIP][71] ([i915#2527]) -> [PASS][72] +2 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-rkl-2/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-rkl-5/igt@[email protected]
* igt@i915_pm_rpm@cursor-dpms:
- {shard-rkl}: [SKIP][73] ([i915#1849]) -> [PASS][74] +2 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-rkl-3/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-rkl-6/igt@[email protected]
* igt@i915_pm_rpm@dpms-lpsp:
- {shard-tglu}: [SKIP][75] ([i915#1397]) -> [PASS][76]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-tglu-6/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-3/igt@[email protected]
* igt@i915_pm_rpm@i2c:
- {shard-tglu}: [SKIP][77] ([i915#3547]) -> [PASS][78]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-tglu-6/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-3/igt@[email protected]
* igt@i915_pm_rpm@modeset-lpsp-stress-no-wait:
- {shard-dg1}: [SKIP][79] ([i915#1397]) -> [PASS][80]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-dg1-15/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-dg1-14/igt@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- shard-apl: [DMESG-FAIL][81] ([i915#5334]) -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-apl2/igt@i915_selftest@live@gt_heartbeat.html
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-apl2/igt@i915_selftest@live@gt_heartbeat.html
* igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_rc_ccs:
- {shard-rkl}: [SKIP][83] ([i915#1845] / [i915#4098]) -> [PASS][84] +25 similar issues
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-rkl-3/igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_rc_ccs.html
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-rkl-6/igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_rc_ccs.html
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-glk: [FAIL][85] ([i915#2346]) -> [PASS][86]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-glk2/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-glk6/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@flip-vs-cursor-toggle:
- {shard-tglu}: [SKIP][87] ([i915#1845]) -> [PASS][88]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-tglu-6/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-3/igt@[email protected]
* igt@kms_fence_pin_leak:
- {shard-tglu}: [SKIP][89] ([fdo#109274] / [i915#1845]) -> [PASS][90]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-tglu-6/igt@kms_fence_pin_leak.html
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-7/igt@kms_fence_pin_leak.html
* igt@kms_flip@2x-flip-vs-expired-vblank-interruptible@ab-hdmi-a1-hdmi-a2:
- shard-glk: [FAIL][91] ([i915#79]) -> [PASS][92]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-glk7/igt@kms_flip@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-glk9/igt@kms_flip@[email protected]
* igt@kms_flip@2x-plain-flip-fb-recreate-interruptible@ac-hdmi-a1-hdmi-a2:
- shard-glk: [FAIL][93] ([i915#2122]) -> [PASS][94] +1 similar issue
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-glk7/igt@kms_flip@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-glk5/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-render:
- {shard-tglu}: [SKIP][95] ([i915#1849]) -> [PASS][96] +7 similar issues
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-tglu-6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-render.html
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-7/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-gtt:
- {shard-rkl}: [SKIP][97] ([i915#1849] / [i915#4098]) -> [PASS][98] +16 similar issues
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-rkl-3/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-gtt.html
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-rkl-6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-gtt.html
* igt@kms_plane@plane-panning-bottom-right-suspend@pipe-a-planes:
- {shard-tglu}: [SKIP][99] ([i915#1849] / [i915#3558]) -> [PASS][100] +3 similar issues
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-tglu-6/igt@kms_plane@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-7/igt@kms_plane@[email protected]
* igt@kms_psr@suspend:
- {shard-rkl}: [SKIP][101] ([i915#1072]) -> [PASS][102] +2 similar issues
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-rkl-4/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-rkl-6/igt@[email protected]
* igt@kms_universal_plane@universal-plane-pageflip-windowed-pipe-b:
- {shard-rkl}: [SKIP][103] ([i915#4098]) -> [PASS][104] +3 similar issues
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-rkl-5/igt@kms_universal_plane@universal-plane-pageflip-windowed-pipe-b.html
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-rkl-6/igt@kms_universal_plane@universal-plane-pageflip-windowed-pipe-b.html
* igt@kms_universal_plane@universal-plane-pipe-a-functional:
- {shard-tglu}: [SKIP][105] ([fdo#109274]) -> [PASS][106] +1 similar issue
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-tglu-6/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-3/igt@[email protected]
* igt@kms_vblank@pipe-c-wait-forked:
- {shard-tglu}: [SKIP][107] ([i915#1845] / [i915#7651]) -> [PASS][108] +16 similar issues
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-tglu-6/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-tglu-7/igt@[email protected]
* igt@perf_pmu@idle@rcs0:
- {shard-rkl}: [FAIL][109] ([i915#4349]) -> [PASS][110]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-rkl-4/igt@perf_pmu@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-rkl-3/igt@perf_pmu@[email protected]
* igt@prime_vgem@basic-fence-read:
- {shard-rkl}: [SKIP][111] ([fdo#109295] / [i915#3291] / [i915#3708]) -> [PASS][112]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12779/shard-rkl-1/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/shard-rkl-5/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109283]: https://bugs.freedesktop.org/show_bug.cgi?id=109283
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109308]: https://bugs.freedesktop.org/show_bug.cgi?id=109308
[fdo#109309]: https://bugs.freedesktop.org/show_bug.cgi?id=109309
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#109314]: https://bugs.freedesktop.org/show_bug.cgi?id=109314
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[fdo#111656]: https://bugs.freedesktop.org/show_bug.cgi?id=111656
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112054]: https://bugs.freedesktop.org/show_bug.cgi?id=112054
[fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1755]: https://gitlab.freedesktop.org/drm/intel/issues/1755
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2433]: https://gitlab.freedesktop.org/drm/intel/issues/2433
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#3116]: https://gitlab.freedesktop.org/drm/intel/issues/3116
[i915#315]: https://gitlab.freedesktop.org/drm/intel/issues/315
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299
[i915#3318]: https://gitlab.freedesktop.org/drm/intel/issues/3318
[i915#3323]: https://gitlab.freedesktop.org/drm/intel/issues/3323
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469
[i915#3528]: https://gitlab.freedesktop.org/drm/intel/issues/3528
[i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3547]: https://gitlab.freedesktop.org/drm/intel/issues/3547
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3558]: https://gitlab.freedesktop.org/drm/intel/issues/3558
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
[i915#3825]: https://gitlab.freedesktop.org/drm/intel/issues/3825
[i915#3826]: https://gitlab.freedesktop.org/drm/intel/issues/3826
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349
[i915#4387]: https://gitlab.freedesktop.org/drm/intel/issues/4387
[i915#4525]: https://gitlab.freedesktop.org/drm/intel/issues/4525
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#4565]: https://gitlab.freedesktop.org/drm/intel/issues/4565
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
[i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812
[i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833
[i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
[i915#4859]: https://gitlab.freedesktop.org/drm/intel/issues/4859
[i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4880]: https://gitlab.freedesktop.org/drm/intel/issues/4880
[i915#4958]: https://gitlab.freedesktop.org/drm/intel/issues/4958
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5115]: https://gitlab.freedesktop.org/drm/intel/issues/5115
[i915#5122]: https://gitlab.freedesktop.org/drm/intel/issues/5122
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5288]: https://gitlab.freedesktop.org/drm/intel/issues/5288
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#5431]: https://gitlab.freedesktop.org/drm/intel/issues/5431
[i915#5439]: https://gitlab.freedesktop.org/drm/intel/issues/5439
[i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
[i915#5465]: https://gitlab.freedesktop.org/drm/intel/issues/5465
[i915#5563]: https://gitlab.freedesktop.org/drm/intel/issues/5563
[i915#5566]: https://gitlab.freedesktop.org/drm/intel/issues/5566
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6248]: https://gitlab.freedesktop.org/drm/intel/issues/6248
[i915#6252]: https://gitlab.freedesktop.org/drm/intel/issues/6252
[i915#6258]: https://gitlab.freedesktop.org/drm/intel/issues/6258
[i915#6335]: https://gitlab.freedesktop.org/drm/intel/issues/6335
[i915#6403]: https://gitlab.freedesktop.org/drm/intel/issues/6403
[i915#6433]: https://gitlab.freedesktop.org/drm/intel/issues/6433
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6590]: https://gitlab.freedesktop.org/drm/intel/issues/6590
[i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768
[i915#6944]: https://gitlab.freedesktop.org/drm/intel/issues/6944
[i915#6946]: https://gitlab.freedesktop.org/drm/intel/issues/6946
[i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953
[i915#7052]: https://gitlab.freedesktop.org/drm/intel/issues/7052
[i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
[i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118
[i915#7276]: https://gitlab.freedesktop.org/drm/intel/issues/7276
[i915#7456]: https://gitlab.freedesktop.org/drm/intel/issues/7456
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7582]: https://gitlab.freedesktop.org/drm/intel/issues/7582
[i915#7651]: https://gitlab.freedesktop.org/drm/intel/issues/7651
[i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697
[i915#7701]: https://gitlab.freedesktop.org/drm/intel/issues/7701
[i915#7707]: https://gitlab.freedesktop.org/drm/intel/issues/7707
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
[i915#7742]: https://gitlab.freedesktop.org/drm/intel/issues/7742
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#7949]: https://gitlab.freedesktop.org/drm/intel/issues/7949
[i915#7957]: https://gitlab.freedesktop.org/drm/intel/issues/7957
[i915#7975]: https://gitlab.freedesktop.org/drm/intel/issues/7975
[i915#7981]: https://gitlab.freedesktop.org/drm/intel/issues/7981
[i915#8009]: https://gitlab.freedesktop.org/drm/intel/issues/8009
[i915#8010]: https://gitlab.freedesktop.org/drm/intel/issues/8010
[i915#8152]: https://gitlab.freedesktop.org/drm/intel/issues/8152
[i915#8155]: https://gitlab.freedesktop.org/drm/intel/issues/8155
[i915#8228]: https://gitlab.freedesktop.org/drm/intel/issues/8228
Build changes
-------------
* Linux: CI_DRM_12779 -> Patchwork_114401v2
CI-20190529: 20190529
CI_DRM_12779: c9e864cbde25141a868d6bbbb5aa6f44186bbc7f @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7173: deab4e0bdf5a9366b67d0a44f478f3da3c9a943b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_114401v2: c9e864cbde25141a868d6bbbb5aa6f44186bbc7f @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_114401v2/index.html
Jani Nikula
maintainerQuoted 66 lines · Stanislav Lisovskiy
Display to communicate display pipe count/CDCLK/voltage configuration to Pcode for more accurate power accounting for gen >= 12. Existing sequence is only sending the voltage value to the Pcode. Adding new sequence with current cdclk associate with voltage value masking. Adding pcode request when any pipe power well will disable or enable.
v2: - Make
intel_cdclk_need_serializestatic to make CI compiler happy.Signed-off-by Stanislav Lisovskiy <[email protected]>--- drivers/gpu/drm/i915/display/intel_cdclk.c | 174 +++++++++++++++++++-- drivers/gpu/drm/i915/display/intel_cdclk.h | 2 + drivers/gpu/drm/i915/i915_reg.h | 14 ++ 3 files changed, 176 insertions(+), 14 deletions(-)drivers/gpu/drm/i915/display/intel_cdclk.c +24
-3@@ -1932,10 +1932,10 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,* NOOP - No Pcode communication needed for * Display versions 14 and beyond */ ; - else if (DISPLAY_VER(dev_priv) >= 11) + else if (DISPLAY_VER(dev_priv) >= 11 && !IS_DG2(dev_priv)) ret =snb_pcode_write (&dev_priv->uncore,SKL_PCODE_CDCLK_CONTROL , cdclk_config->voltage_level); - else +if (DISPLAY_VER (dev_priv) <11 ) {/* * The timeout isn't specified, the 2ms used here is based on * experiment. @@ -1946,7 +1946,7 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,HSW_PCODE_DE_WRITE_FREQ_REQ , cdclk_config->voltage_level, 150, 2); - + }if (ret) { drm_err(&dev_priv->drm, "PCode CDCLK freq set failed, (err %d, freq %d)\n",@@ -2242,6 +2242,40 @@ void intel_cdclk_dump_config(struct drm_i915_private *i915, cdclk_config->voltage_level); } +static void intel_pcode_notify (struct drm_i915_private *i915, +u8 voltage_level, +u8 active_pipe_count, +u8 cdclk, +bool cdclk_update_valid, +bool pipe_count_update_valid) +{ +int ret; +u32 update_mask =0 ; + +if (DISPLAY_VER (i915) <12 ) +return ; + + update_mask =DISPLAY_TO_PCODE_UPDATE_MASK (cdclk, active_pipe_count, voltage_level); + +if (cdclk_update_valid) + update_mask |=DISPLAY_TO_PCODE_CDCLK_VALID ; + +if (pipe_count_update_valid) + update_mask |=DISPLAY_TO_PCODE_PIPE_COUNT_VALID ; +
drivers/gpu/drm/i915/display/intel_cdclk.c void intel_cdclk_dump_config(struct drm_i915_private *i915, · line 2275
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+ ret =skl_pcode_request (&i915->uncore,SKL_PCODE_CDCLK_CONTROL , +SKL_CDCLK_PREPARE_FOR_CHANGE | + update_mask, +SKL_CDCLK_READY_FOR_CHANGE , +SKL_CDCLK_READY_FOR_CHANGE ,3 ); +if (ret) { +drm_err (&i915->drm, +"Failed to inform PCU about display config (err %d)\n" , + ret); +return ;
Superfluous return.
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +3
-0+ } +} +/** * intel_set_cdclk - Push the CDCLK configuration to the hardware * @dev_priv: i915 device
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2354
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +7
-0@@ -2311,6 +2345,98 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv, } } +/** +* intel_cdclk_power_usage_to_pcode_pre_notification: display to pcode notification +* before the enabling power wells. +* send notification with cdclk, number of pipes, voltage_level. +* @state: intel atomic state +*/ +void intel_cdclk_power_usage_to_pcode_pre_notification (struct intel_atomic_state *state)
This could be static?
Not happy with the name, really, but at least it could use a verb. Notify instead of notification.
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2356
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev);
No new dev_priv please.
Quoted 37 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +37
-0+const struct intel_cdclk_state *old_cdclk_state = +intel_atomic_get_old_cdclk_state (state); +const struct intel_cdclk_state *new_cdclk_state = +intel_atomic_get_new_cdclk_state (state); +unsigned int cdclk =0 ;u8 voltage_level, num_active_pipes =0 ; +bool change_cdclk, update_pipe_count; + +if (!intel_cdclk_changed (&old_cdclk_state->actual, + &new_cdclk_state->actual) && + (new_cdclk_state->active_pipes == + old_cdclk_state->active_pipes)) +return ; + +/* According to "Sequence Before Frequency Change", voltage level set to 0x3 */ + voltage_level =DISPLAY_TO_PCODE_VOLTAGE_MAX ; + + change_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; + update_pipe_count =hweight8 (new_cdclk_state->active_pipes) > +hweight8 (old_cdclk_state->active_pipes); + +/* +* According to "Sequence Before Frequency Change", +* if CDCLK is increasing, set bits 25:16 to upcoming CDCLK, +* if CDCLK is decreasing or not changing, set bits 25:16 to current CDCLK, +* which basically means we choose the maximum of old and new CDCLK, if we know both +*/ +if (change_cdclk) + cdclk =max (new_cdclk_state->actual.cdclk, old_cdclk_state->actual.cdclk); + +/* +* According to "Sequence For Pipe Count Change", +* if pipe count is increasing, set bits 25:16 to upcoming pipe count +* (power well is enabled) +* no action if it is decreasing, before the change +*/ +if (update_pipe_count) + num_active_pipes =hweight8 (new_cdclk_state->active_pipes);
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2403
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+ +intel_pcode_notify (dev_priv, voltage_level, num_active_pipes, cdclk, + change_cdclk, update_pipe_count); +} + +/* intel_cdclk_power_usage_to_pcode_post_notification: after frequency change sending +* voltage_level, active pipes, current CDCLK frequency. +* @state: intel atomic state +*/ +void intel_cdclk_power_usage_to_pcode_post_notification (struct intel_atomic_state *state)
Ditto about static & naming.
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2405
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev);
No new dev_priv please.
Quoted 96 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +49
-6+const struct intel_cdclk_state *new_cdclk_state = +intel_atomic_get_new_cdclk_state (state); +const struct intel_cdclk_state *old_cdclk_state = +intel_atomic_get_old_cdclk_state (state); +unsigned int cdclk =0 ;u8 voltage_level, num_active_pipes =0 ; +bool update_cdclk, update_pipe_count; + +/* According to "Sequence After Frequency Change", set voltage to used level */ + voltage_level = new_cdclk_state->actual.voltage_level; + + update_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; + update_pipe_count =hweight8 (new_cdclk_state->active_pipes) < +hweight8 (old_cdclk_state->active_pipes); + +/* +* According to "Sequence After Frequency Change", +* set bits 25:16 to current CDCLK +*/ +if (update_cdclk) + cdclk = new_cdclk_state->actual.cdclk; + +/* +* According to "Sequence For Pipe Count Change", +* if pipe count is decreasing, set bits 25:16 to current pipe count, +* after the change(power well is disabled) +* no action if it is increasing, after the change +*/ +if (update_pipe_count) + num_active_pipes =hweight8 (new_cdclk_state->active_pipes); + +intel_pcode_notify (dev_priv, voltage_level, num_active_pipes, cdclk, + update_cdclk, update_pipe_count); +} +/** * intel_set_cdclk_pre_plane_update - Push the CDCLK state to the hardware * @state: intel atomic state @@ -2321,7 +2447,7 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv,void intel_set_cdclk_pre_plane_update (struct intel_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_cdclk_state *old_cdclk_state =intel_atomic_get_old_cdclk_state (state); const struct intel_cdclk_state *new_cdclk_state =@@ -2332,11 +2458,14 @@ intel_set_cdclk_pre_plane_update(struct intel_atomic_state *state) &new_cdclk_state->actual))return ; +if (DISPLAY_VER (i915) >=12 ) +intel_cdclk_power_usage_to_pcode_pre_notification (state); +if (pipe ==INVALID_PIPE || old_cdclk_state->actual.cdclk <= new_cdclk_state->actual.cdclk) { -drm_WARN_ON (&dev_priv->drm, !new_cdclk_state->base.changed); +drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed); -intel_set_cdclk (dev_priv, &new_cdclk_state->actual, pipe); +intel_set_cdclk (i915, &new_cdclk_state->actual, pipe); } }@@ -2350,7 +2479,7 @@ intel_set_cdclk_pre_plane_update(struct intel_atomic_state *state)void intel_set_cdclk_post_plane_update (struct intel_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_cdclk_state *old_cdclk_state =intel_atomic_get_old_cdclk_state (state); const struct intel_cdclk_state *new_cdclk_state =@@ -2361,11 +2490,14 @@ intel_set_cdclk_post_plane_update(struct intel_atomic_state *state) &new_cdclk_state->actual))return ; +if (DISPLAY_VER (i915) >=12 ) +intel_cdclk_power_usage_to_pcode_post_notification (state); +if (pipe !=INVALID_PIPE && old_cdclk_state->actual.cdclk > new_cdclk_state->actual.cdclk) { -drm_WARN_ON (&dev_priv->drm, !new_cdclk_state->base.changed); +drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed); -intel_set_cdclk (dev_priv, &new_cdclk_state->actual, pipe); +intel_set_cdclk (i915, &new_cdclk_state->actual, pipe); } }@@ -2871,6 +3003,21 @@ int intel_cdclk_init(struct drm_i915_private *dev_priv)return 0 ; } +static bool intel_cdclk_need_serialize (struct drm_i915_private *i915, +const struct intel_cdclk_state *old_cdclk_state, +const struct intel_cdclk_state *new_cdclk_state)
drivers/gpu/drm/i915/display/intel_cdclk.c int intel_cdclk_init(struct drm_i915_private *dev_priv) · line 3018
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+{ +/* +* We need to poke hw for gen >= 12, because we notify PCode if +* pipe power well count changes. +*/ +return intel_cdclk_changed (&old_cdclk_state->actual, + &new_cdclk_state->actual) || + ((DISPLAY_VER (i915) >=12 && +hweight8 (old_cdclk_state->active_pipes) != +hweight8 (new_cdclk_state->active_pipes)));
That's getting a bit unweildy for one expression.
Quoted 66 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +6
-5+} +int intel_modeset_calc_cdclk (struct intel_atomic_state *state) {struct drm_i915_private *dev_priv =to_i915 (state->base.dev);@@ -2892,8 +3039,7 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state)if (ret)return ret; -if (intel_cdclk_changed (&old_cdclk_state->actual, - &new_cdclk_state->actual)) { +if (intel_cdclk_need_serialize (dev_priv, old_cdclk_state, new_cdclk_state)) {/* * Also serialize commits across all crtcs * if the actual hw needs to be poked. @@ -2905,9 +3051,9 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state) old_cdclk_state->force_min_cdclk != new_cdclk_state->force_min_cdclk || intel_cdclk_changed(&old_cdclk_state->logical, &new_cdclk_state->logical)) { - ret = intel_atomic_lock_global_state(&new_cdclk_state->base); - if (ret) - return ret; + ret = intel_atomic_lock_global_state(&new_cdclk_state->base); + if (ret) + return ret; } else {return 0 ; }drivers/gpu/drm/i915/display/intel_cdclk.h +2
-0@@ -64,6 +64,8 @@ bool intel_cdclk_needs_modeset(const struct intel_cdclk_config *a, const struct intel_cdclk_config *b);void intel_set_cdclk_pre_plane_update (struct intel_atomic_state *state);void intel_set_cdclk_post_plane_update (struct intel_atomic_state *state); +void intel_cdclk_power_usage_to_pcode_pre_notification (struct intel_atomic_state *state); +void intel_cdclk_power_usage_to_pcode_post_notification (struct intel_atomic_state *state);void intel_cdclk_dump_config (struct drm_i915_private *i915,const struct intel_cdclk_config *cdclk_config,const char *context);drivers/gpu/drm/i915/i915_reg.h +14
-0@@ -6526,6 +6526,20 @@#define ICL_PCODE_MEM_SS_READ_GLOBAL_INFO (0x0 << 8)#define ICL_PCODE_MEM_SS_READ_QGV_POINT_INFO (point) (((point) << 16) | (0x1 << 8))#define ADL_PCODE_MEM_SS_READ_PSF_GV_INFO ((0) | (0x2 << 8)) +#define DISPLAY_TO_PCODE_CDCLK_MAX 0x28D +#define DISPLAY_TO_PCODE_VOLTAGE_MASK REG_GENMASK(1, 0) +#define DISPLAY_TO_PCODE_VOLTAGE_MAX DISPLAY_TO_PCODE_VOLTAGE_MASK +#define DISPLAY_TO_PCODE_CDCLK_VALID REG_BIT(27) +#define DISPLAY_TO_PCODE_PIPE_COUNT_VALID REG_BIT(31) +#define DISPLAY_TO_PCODE_CDCLK_MASK REG_GENMASK(25, 16) +#define DISPLAY_TO_PCODE_PIPE_COUNT_MASK REG_GENMASK(30, 28) +#define DISPLAY_TO_PCODE_CDCLK (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_CDCLK_MASK, (x)) +#define DISPLAY_TO_PCODE_PIPE_COUNT (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_PIPE_COUNT_MASK, (x)) +#define DISPLAY_TO_PCODE_VOLTAGE (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_VOLTAGE_MASK, (x)) +#define DISPLAY_TO_PCODE_UPDATE_MASK (cdclk, num_pipes, voltage_level) \ + (DISPLAY_TO_PCODE_CDCLK(cdclk)) | \ + (DISPLAY_TO_PCODE_PIPE_COUNT(num_pipes)) | \ + (DISPLAY_TO_PCODE_VOLTAGE(voltage_level))#define ICL_PCODE_SAGV_DE_MEM_SS_CONFIG 0xe#define ICL_PCODE_REP_QGV_MASK REG_GENMASK(1, 0)#define ICL_PCODE_REP_QGV_SAFE REG_FIELD_PREP(ICL_PCODE_REP_QGV_MASK, 0)
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Quoted 100 lines · Jani Nikula
Quoted 66 lines · Stanislav Lisovskiy
Display to communicate display pipe count/CDCLK/voltage configuration to Pcode for more accurate power accounting for gen >= 12. Existing sequence is only sending the voltage value to the Pcode. Adding new sequence with current cdclk associate with voltage value masking. Adding pcode request when any pipe power well will disable or enable.
v2: - Make
intel_cdclk_need_serializestatic to make CI compiler happy.Signed-off-by Stanislav Lisovskiy <[email protected]>--- drivers/gpu/drm/i915/display/intel_cdclk.c | 174 +++++++++++++++++++-- drivers/gpu/drm/i915/display/intel_cdclk.h | 2 + drivers/gpu/drm/i915/i915_reg.h | 14 ++ 3 files changed, 176 insertions(+), 14 deletions(-)drivers/gpu/drm/i915/display/intel_cdclk.c +24
-3@@ -1932,10 +1932,10 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,* NOOP - No Pcode communication needed for * Display versions 14 and beyond */ ; - else if (DISPLAY_VER(dev_priv) >= 11) + else if (DISPLAY_VER(dev_priv) >= 11 && !IS_DG2(dev_priv)) ret =snb_pcode_write (&dev_priv->uncore,SKL_PCODE_CDCLK_CONTROL , cdclk_config->voltage_level); - else +if (DISPLAY_VER (dev_priv) <11 ) {/* * The timeout isn't specified, the 2ms used here is based on * experiment. @@ -1946,7 +1946,7 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,HSW_PCODE_DE_WRITE_FREQ_REQ , cdclk_config->voltage_level, 150, 2); - + }if (ret) { drm_err(&dev_priv->drm, "PCode CDCLK freq set failed, (err %d, freq %d)\n",@@ -2242,6 +2242,40 @@ void intel_cdclk_dump_config(struct drm_i915_private *i915, cdclk_config->voltage_level); } +static void intel_pcode_notify (struct drm_i915_private *i915, +u8 voltage_level, +u8 active_pipe_count, +u8 cdclk, +bool cdclk_update_valid, +bool pipe_count_update_valid) +{ +int ret; +u32 update_mask =0 ; + +if (DISPLAY_VER (i915) <12 ) +return ; + + update_mask =DISPLAY_TO_PCODE_UPDATE_MASK (cdclk, active_pipe_count, voltage_level); + +if (cdclk_update_valid) + update_mask |=DISPLAY_TO_PCODE_CDCLK_VALID ; + +if (pipe_count_update_valid) + update_mask |=DISPLAY_TO_PCODE_PIPE_COUNT_VALID ; +drivers/gpu/drm/i915/display/intel_cdclk.c void intel_cdclk_dump_config(struct drm_i915_private *i915, · line 2275
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+ ret =skl_pcode_request (&i915->uncore,SKL_PCODE_CDCLK_CONTROL , +SKL_CDCLK_PREPARE_FOR_CHANGE | + update_mask, +SKL_CDCLK_READY_FOR_CHANGE , +SKL_CDCLK_READY_FOR_CHANGE ,3 ); +if (ret) { +drm_err (&i915->drm, +"Failed to inform PCU about display config (err %d)\n" , + ret); +return ;Superfluous return.
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +3
-0+ } +} +/** * intel_set_cdclk - Push the CDCLK configuration to the hardware * @dev_priv: i915 device drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2354
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +7
-0@@ -2311,6 +2345,98 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv, } } +/** +* intel_cdclk_power_usage_to_pcode_pre_notification: display to pcode notification +* before the enabling power wells. +* send notification with cdclk, number of pipes, voltage_level. +* @state: intel atomic state +*/ +void intel_cdclk_power_usage_to_pcode_pre_notification (struct intel_atomic_state *state)This could be static?
Quoted 2 lines
Not happy with the name, really, but at least it could use a verb. Notify instead of notification.
Any hint for better naming?
Quoted 239 lines
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2356
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev);No new
dev_privplease.Quoted 37 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +37
-0+const struct intel_cdclk_state *old_cdclk_state = +intel_atomic_get_old_cdclk_state (state); +const struct intel_cdclk_state *new_cdclk_state = +intel_atomic_get_new_cdclk_state (state); +unsigned int cdclk =0 ;u8 voltage_level, num_active_pipes =0 ; +bool change_cdclk, update_pipe_count; + +if (!intel_cdclk_changed (&old_cdclk_state->actual, + &new_cdclk_state->actual) && + (new_cdclk_state->active_pipes == + old_cdclk_state->active_pipes)) +return ; + +/* According to "Sequence Before Frequency Change", voltage level set to 0x3 */ + voltage_level =DISPLAY_TO_PCODE_VOLTAGE_MAX ; + + change_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; + update_pipe_count =hweight8 (new_cdclk_state->active_pipes) > +hweight8 (old_cdclk_state->active_pipes); + +/* +* According to "Sequence Before Frequency Change", +* if CDCLK is increasing, set bits 25:16 to upcoming CDCLK, +* if CDCLK is decreasing or not changing, set bits 25:16 to current CDCLK, +* which basically means we choose the maximum of old and new CDCLK, if we know both +*/ +if (change_cdclk) + cdclk =max (new_cdclk_state->actual.cdclk, old_cdclk_state->actual.cdclk); + +/* +* According to "Sequence For Pipe Count Change", +* if pipe count is increasing, set bits 25:16 to upcoming pipe count +* (power well is enabled) +* no action if it is decreasing, before the change +*/ +if (update_pipe_count) + num_active_pipes =hweight8 (new_cdclk_state->active_pipes);drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2403
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+ +intel_pcode_notify (dev_priv, voltage_level, num_active_pipes, cdclk, + change_cdclk, update_pipe_count); +} + +/* intel_cdclk_power_usage_to_pcode_post_notification: after frequency change sending +* voltage_level, active pipes, current CDCLK frequency. +* @state: intel atomic state +*/ +void intel_cdclk_power_usage_to_pcode_post_notification (struct intel_atomic_state *state)Ditto about static & naming.
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2405
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev);No new
dev_privplease.Quoted 96 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +49
-6+const struct intel_cdclk_state *new_cdclk_state = +intel_atomic_get_new_cdclk_state (state); +const struct intel_cdclk_state *old_cdclk_state = +intel_atomic_get_old_cdclk_state (state); +unsigned int cdclk =0 ;u8 voltage_level, num_active_pipes =0 ; +bool update_cdclk, update_pipe_count; + +/* According to "Sequence After Frequency Change", set voltage to used level */ + voltage_level = new_cdclk_state->actual.voltage_level; + + update_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; + update_pipe_count =hweight8 (new_cdclk_state->active_pipes) < +hweight8 (old_cdclk_state->active_pipes); + +/* +* According to "Sequence After Frequency Change", +* set bits 25:16 to current CDCLK +*/ +if (update_cdclk) + cdclk = new_cdclk_state->actual.cdclk; + +/* +* According to "Sequence For Pipe Count Change", +* if pipe count is decreasing, set bits 25:16 to current pipe count, +* after the change(power well is disabled) +* no action if it is increasing, after the change +*/ +if (update_pipe_count) + num_active_pipes =hweight8 (new_cdclk_state->active_pipes); + +intel_pcode_notify (dev_priv, voltage_level, num_active_pipes, cdclk, + update_cdclk, update_pipe_count); +} +/** * intel_set_cdclk_pre_plane_update - Push the CDCLK state to the hardware * @state: intel atomic state @@ -2321,7 +2447,7 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv,void intel_set_cdclk_pre_plane_update (struct intel_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_cdclk_state *old_cdclk_state =intel_atomic_get_old_cdclk_state (state); const struct intel_cdclk_state *new_cdclk_state =@@ -2332,11 +2458,14 @@ intel_set_cdclk_pre_plane_update(struct intel_atomic_state *state) &new_cdclk_state->actual))return ; +if (DISPLAY_VER (i915) >=12 ) +intel_cdclk_power_usage_to_pcode_pre_notification (state); +if (pipe ==INVALID_PIPE || old_cdclk_state->actual.cdclk <= new_cdclk_state->actual.cdclk) { -drm_WARN_ON (&dev_priv->drm, !new_cdclk_state->base.changed); +drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed); -intel_set_cdclk (dev_priv, &new_cdclk_state->actual, pipe); +intel_set_cdclk (i915, &new_cdclk_state->actual, pipe); } }@@ -2350,7 +2479,7 @@ intel_set_cdclk_pre_plane_update(struct intel_atomic_state *state)void intel_set_cdclk_post_plane_update (struct intel_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_cdclk_state *old_cdclk_state =intel_atomic_get_old_cdclk_state (state); const struct intel_cdclk_state *new_cdclk_state =@@ -2361,11 +2490,14 @@ intel_set_cdclk_post_plane_update(struct intel_atomic_state *state) &new_cdclk_state->actual))return ; +if (DISPLAY_VER (i915) >=12 ) +intel_cdclk_power_usage_to_pcode_post_notification (state); +if (pipe !=INVALID_PIPE && old_cdclk_state->actual.cdclk > new_cdclk_state->actual.cdclk) { -drm_WARN_ON (&dev_priv->drm, !new_cdclk_state->base.changed); +drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed); -intel_set_cdclk (dev_priv, &new_cdclk_state->actual, pipe); +intel_set_cdclk (i915, &new_cdclk_state->actual, pipe); } }@@ -2871,6 +3003,21 @@ int intel_cdclk_init(struct drm_i915_private *dev_priv)return 0 ; } +static bool intel_cdclk_need_serialize (struct drm_i915_private *i915, +const struct intel_cdclk_state *old_cdclk_state, +const struct intel_cdclk_state *new_cdclk_state)drivers/gpu/drm/i915/display/intel_cdclk.c int intel_cdclk_init(struct drm_i915_private *dev_priv) · line 3018
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+{ +/* +* We need to poke hw for gen >= 12, because we notify PCode if +* pipe power well count changes. +*/ +return intel_cdclk_changed (&old_cdclk_state->actual, + &new_cdclk_state->actual) || + ((DISPLAY_VER (i915) >=12 && +hweight8 (old_cdclk_state->active_pipes) != +hweight8 (new_cdclk_state->active_pipes)));That's getting a bit unweildy for one expression.
Quoted 66 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +6
-5+} +int intel_modeset_calc_cdclk (struct intel_atomic_state *state) {struct drm_i915_private *dev_priv =to_i915 (state->base.dev);@@ -2892,8 +3039,7 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state)if (ret)return ret; -if (intel_cdclk_changed (&old_cdclk_state->actual, - &new_cdclk_state->actual)) { +if (intel_cdclk_need_serialize (dev_priv, old_cdclk_state, new_cdclk_state)) {/* * Also serialize commits across all crtcs * if the actual hw needs to be poked. @@ -2905,9 +3051,9 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state) old_cdclk_state->force_min_cdclk != new_cdclk_state->force_min_cdclk || intel_cdclk_changed(&old_cdclk_state->logical, &new_cdclk_state->logical)) { - ret = intel_atomic_lock_global_state(&new_cdclk_state->base); - if (ret) - return ret; + ret = intel_atomic_lock_global_state(&new_cdclk_state->base); + if (ret) + return ret; } else {return 0 ; }drivers/gpu/drm/i915/display/intel_cdclk.h +2
-0@@ -64,6 +64,8 @@ bool intel_cdclk_needs_modeset(const struct intel_cdclk_config *a, const struct intel_cdclk_config *b);void intel_set_cdclk_pre_plane_update (struct intel_atomic_state *state);void intel_set_cdclk_post_plane_update (struct intel_atomic_state *state); +void intel_cdclk_power_usage_to_pcode_pre_notification (struct intel_atomic_state *state); +void intel_cdclk_power_usage_to_pcode_post_notification (struct intel_atomic_state *state);void intel_cdclk_dump_config (struct drm_i915_private *i915,const struct intel_cdclk_config *cdclk_config,const char *context);drivers/gpu/drm/i915/i915_reg.h +14
-0@@ -6526,6 +6526,20 @@#define ICL_PCODE_MEM_SS_READ_GLOBAL_INFO (0x0 << 8)#define ICL_PCODE_MEM_SS_READ_QGV_POINT_INFO (point) (((point) << 16) | (0x1 << 8))#define ADL_PCODE_MEM_SS_READ_PSF_GV_INFO ((0) | (0x2 << 8)) +#define DISPLAY_TO_PCODE_CDCLK_MAX 0x28D +#define DISPLAY_TO_PCODE_VOLTAGE_MASK REG_GENMASK(1, 0) +#define DISPLAY_TO_PCODE_VOLTAGE_MAX DISPLAY_TO_PCODE_VOLTAGE_MASK +#define DISPLAY_TO_PCODE_CDCLK_VALID REG_BIT(27) +#define DISPLAY_TO_PCODE_PIPE_COUNT_VALID REG_BIT(31) +#define DISPLAY_TO_PCODE_CDCLK_MASK REG_GENMASK(25, 16) +#define DISPLAY_TO_PCODE_PIPE_COUNT_MASK REG_GENMASK(30, 28) +#define DISPLAY_TO_PCODE_CDCLK (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_CDCLK_MASK, (x)) +#define DISPLAY_TO_PCODE_PIPE_COUNT (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_PIPE_COUNT_MASK, (x)) +#define DISPLAY_TO_PCODE_VOLTAGE (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_VOLTAGE_MASK, (x)) +#define DISPLAY_TO_PCODE_UPDATE_MASK (cdclk, num_pipes, voltage_level) \ + (DISPLAY_TO_PCODE_CDCLK(cdclk)) | \ + (DISPLAY_TO_PCODE_PIPE_COUNT(num_pipes)) | \ + (DISPLAY_TO_PCODE_VOLTAGE(voltage_level))#define ICL_PCODE_SAGV_DE_MEM_SS_CONFIG 0xe#define ICL_PCODE_REP_QGV_MASK REG_GENMASK(1, 0)#define ICL_PCODE_REP_QGV_SAFE REG_FIELD_PREP(ICL_PCODE_REP_QGV_MASK, 0)Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Jani Nikula
maintainerQuoted 47 lines · Stanislav
Quoted 46 lines · Jani Nikula
Quoted 45 lines · Stanislav Lisovskiy
Display to communicate display pipe count/CDCLK/voltage configuration to Pcode for more accurate power accounting for gen >= 12. Existing sequence is only sending the voltage value to the Pcode. Adding new sequence with current cdclk associate with voltage value masking. Adding pcode request when any pipe power well will disable or enable.
v2: - Make
intel_cdclk_need_serializestatic to make CI compiler happy.Signed-off-by Stanislav Lisovskiy <[email protected]>--- drivers/gpu/drm/i915/display/intel_cdclk.c | 174 +++++++++++++++++++-- drivers/gpu/drm/i915/display/intel_cdclk.h | 2 + drivers/gpu/drm/i915/i915_reg.h | 14 ++ 3 files changed, 176 insertions(+), 14 deletions(-)drivers/gpu/drm/i915/display/intel_cdclk.c +3
-3@@ -1932,10 +1932,10 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,* NOOP - No Pcode communication needed for * Display versions 14 and beyond */ ; - else if (DISPLAY_VER(dev_priv) >= 11) + else if (DISPLAY_VER(dev_priv) >= 11 && !IS_DG2(dev_priv)) ret =snb_pcode_write (&dev_priv->uncore,SKL_PCODE_CDCLK_CONTROL , cdclk_config->voltage_level); - else +if (DISPLAY_VER (dev_priv) <11 ) {/* * The timeout isn't specified, the 2ms used here is based on * experiment. @@ -1946,7 +1946,7 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,HSW_PCODE_DE_WRITE_FREQ_REQ , cdclk_config->voltage_level, 150, 2); - + }if (ret) { drm_err(&dev_priv->drm, "PCode CDCLK freq set failed, (err %d, freq %d)\n",@@ -2242,6 +2242,40 @@ void intel_cdclk_dump_config(struct drm_i915_private *i915, cdclk_config->voltage_level); }
Quoted 4 lines
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_cdclk.c void intel_cdclk_dump_config(struct drm_i915_private *i915, · line 2248
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +4
-0+static void intel_pcode_notify(struct drm_i915_private *i915, + u8 voltage_level, + u8 active_pipe_count, + u8 cdclk,
How can that be u8?
Quoted 2 lines
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c void intel_cdclk_dump_config(struct drm_i915_private *i915, · line 2250
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+bool cdclk_update_valid, + bool pipe_count_update_valid)
Also not super happy about the flags arguments... could have cdclk == 0 means not valid and int active_pipe_count == -1 means not valid. Maybe.
Quoted 38 lines
Quoted 38 lines
Quoted 15 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +15
-0+{ +int ret; +u32 update_mask =0 ; + +if (DISPLAY_VER (i915) <12 ) +return ; + + update_mask =DISPLAY_TO_PCODE_UPDATE_MASK (cdclk, active_pipe_count, voltage_level); + +if (cdclk_update_valid) + update_mask |=DISPLAY_TO_PCODE_CDCLK_VALID ; + +if (pipe_count_update_valid) + update_mask |=DISPLAY_TO_PCODE_PIPE_COUNT_VALID ; +drivers/gpu/drm/i915/display/intel_cdclk.c void intel_cdclk_dump_config(struct drm_i915_private *i915, · line 2275
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+ ret =skl_pcode_request (&i915->uncore,SKL_PCODE_CDCLK_CONTROL , +SKL_CDCLK_PREPARE_FOR_CHANGE | + update_mask, +SKL_CDCLK_READY_FOR_CHANGE , +SKL_CDCLK_READY_FOR_CHANGE ,3 ); +if (ret) { +drm_err (&i915->drm, +"Failed to inform PCU about display config (err %d)\n" , + ret); +return ;Superfluous return.
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +3
-0+ } +} +/** * intel_set_cdclk - Push the CDCLK configuration to the hardware * @dev_priv: i915 device @@ -2311,6 +2345,98 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv, } }
Quoted 2 lines
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2349
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+/** +* intel_cdclk_power_usage_to_pcode_pre_notification: display to pcode notification
This doesn't need to be a kernel-doc comment (and it's a malformed one at that). Ditto for the others.
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +5
-0+* before the enabling power wells. +* send notification with cdclk, number of pipes, voltage_level. +* @state: intel atomic state +*/ +void intel_cdclk_power_usage_to_pcode_pre_notification (struct intel_atomic_state *state)
Quoted 6 lines
Quoted 4 lines
This could be static?
Not happy with the name, really, but at least it could use a verb. Notify instead of notification.
Any hint for better naming?
Maybe just intel_cdclk_pcode_pre_notify(), intel_cdclk_pcode_post_notify(), and then intel_cdclk_pcode_notify() as the shared thing?
Quoted 180 lines
Quoted 180 lines
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2356
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev);No new
dev_privplease.Quoted 37 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +37
-0+const struct intel_cdclk_state *old_cdclk_state = +intel_atomic_get_old_cdclk_state (state); +const struct intel_cdclk_state *new_cdclk_state = +intel_atomic_get_new_cdclk_state (state); +unsigned int cdclk =0 ;u8 voltage_level, num_active_pipes =0 ; +bool change_cdclk, update_pipe_count; + +if (!intel_cdclk_changed (&old_cdclk_state->actual, + &new_cdclk_state->actual) && + (new_cdclk_state->active_pipes == + old_cdclk_state->active_pipes)) +return ; + +/* According to "Sequence Before Frequency Change", voltage level set to 0x3 */ + voltage_level =DISPLAY_TO_PCODE_VOLTAGE_MAX ; + + change_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; + update_pipe_count =hweight8 (new_cdclk_state->active_pipes) > +hweight8 (old_cdclk_state->active_pipes); + +/* +* According to "Sequence Before Frequency Change", +* if CDCLK is increasing, set bits 25:16 to upcoming CDCLK, +* if CDCLK is decreasing or not changing, set bits 25:16 to current CDCLK, +* which basically means we choose the maximum of old and new CDCLK, if we know both +*/ +if (change_cdclk) + cdclk =max (new_cdclk_state->actual.cdclk, old_cdclk_state->actual.cdclk); + +/* +* According to "Sequence For Pipe Count Change", +* if pipe count is increasing, set bits 25:16 to upcoming pipe count +* (power well is enabled) +* no action if it is decreasing, before the change +*/ +if (update_pipe_count) + num_active_pipes =hweight8 (new_cdclk_state->active_pipes);drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2403
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+ +intel_pcode_notify (dev_priv, voltage_level, num_active_pipes, cdclk, + change_cdclk, update_pipe_count); +} + +/* intel_cdclk_power_usage_to_pcode_post_notification: after frequency change sending +* voltage_level, active pipes, current CDCLK frequency. +* @state: intel atomic state +*/ +void intel_cdclk_power_usage_to_pcode_post_notification (struct intel_atomic_state *state)Ditto about static & naming.
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2405
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev);No new
dev_privplease.Quoted 96 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +49
-6+const struct intel_cdclk_state *new_cdclk_state = +intel_atomic_get_new_cdclk_state (state); +const struct intel_cdclk_state *old_cdclk_state = +intel_atomic_get_old_cdclk_state (state); +unsigned int cdclk =0 ;u8 voltage_level, num_active_pipes =0 ; +bool update_cdclk, update_pipe_count; + +/* According to "Sequence After Frequency Change", set voltage to used level */ + voltage_level = new_cdclk_state->actual.voltage_level; + + update_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; + update_pipe_count =hweight8 (new_cdclk_state->active_pipes) < +hweight8 (old_cdclk_state->active_pipes); + +/* +* According to "Sequence After Frequency Change", +* set bits 25:16 to current CDCLK +*/ +if (update_cdclk) + cdclk = new_cdclk_state->actual.cdclk; + +/* +* According to "Sequence For Pipe Count Change", +* if pipe count is decreasing, set bits 25:16 to current pipe count, +* after the change(power well is disabled) +* no action if it is increasing, after the change +*/ +if (update_pipe_count) + num_active_pipes =hweight8 (new_cdclk_state->active_pipes); + +intel_pcode_notify (dev_priv, voltage_level, num_active_pipes, cdclk, + update_cdclk, update_pipe_count); +} +/** * intel_set_cdclk_pre_plane_update - Push the CDCLK state to the hardware * @state: intel atomic state @@ -2321,7 +2447,7 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv,void intel_set_cdclk_pre_plane_update (struct intel_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_cdclk_state *old_cdclk_state =intel_atomic_get_old_cdclk_state (state); const struct intel_cdclk_state *new_cdclk_state =@@ -2332,11 +2458,14 @@ intel_set_cdclk_pre_plane_update(struct intel_atomic_state *state) &new_cdclk_state->actual))return ; +if (DISPLAY_VER (i915) >=12 ) +intel_cdclk_power_usage_to_pcode_pre_notification (state); +if (pipe ==INVALID_PIPE || old_cdclk_state->actual.cdclk <= new_cdclk_state->actual.cdclk) { -drm_WARN_ON (&dev_priv->drm, !new_cdclk_state->base.changed); +drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed); -intel_set_cdclk (dev_priv, &new_cdclk_state->actual, pipe); +intel_set_cdclk (i915, &new_cdclk_state->actual, pipe); } }@@ -2350,7 +2479,7 @@ intel_set_cdclk_pre_plane_update(struct intel_atomic_state *state)void intel_set_cdclk_post_plane_update (struct intel_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_cdclk_state *old_cdclk_state =intel_atomic_get_old_cdclk_state (state); const struct intel_cdclk_state *new_cdclk_state =@@ -2361,11 +2490,14 @@ intel_set_cdclk_post_plane_update(struct intel_atomic_state *state) &new_cdclk_state->actual))return ; +if (DISPLAY_VER (i915) >=12 ) +intel_cdclk_power_usage_to_pcode_post_notification (state); +if (pipe !=INVALID_PIPE && old_cdclk_state->actual.cdclk > new_cdclk_state->actual.cdclk) { -drm_WARN_ON (&dev_priv->drm, !new_cdclk_state->base.changed); +drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed); -intel_set_cdclk (dev_priv, &new_cdclk_state->actual, pipe); +intel_set_cdclk (i915, &new_cdclk_state->actual, pipe); } }@@ -2871,6 +3003,21 @@ int intel_cdclk_init(struct drm_i915_private *dev_priv)return 0 ; } +static bool intel_cdclk_need_serialize (struct drm_i915_private *i915, +const struct intel_cdclk_state *old_cdclk_state, +const struct intel_cdclk_state *new_cdclk_state)drivers/gpu/drm/i915/display/intel_cdclk.c int intel_cdclk_init(struct drm_i915_private *dev_priv) · line 3018
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+{ +/* +* We need to poke hw for gen >= 12, because we notify PCode if +* pipe power well count changes. +*/ +return intel_cdclk_changed (&old_cdclk_state->actual, + &new_cdclk_state->actual) || + ((DISPLAY_VER (i915) >=12 && +hweight8 (old_cdclk_state->active_pipes) != +hweight8 (new_cdclk_state->active_pipes)));That's getting a bit unweildy for one expression.
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+} +int intel_modeset_calc_cdclk (struct intel_atomic_state *state) {struct drm_i915_private *dev_priv =to_i915 (state->base.dev);@@ -2892,8 +3039,7 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state)if (ret)return ret;
Quoted 16 lines
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +1
-2-if (intel_cdclk_changed (&old_cdclk_state->actual, - &new_cdclk_state->actual)) { +if (intel_cdclk_need_serialize (dev_priv, old_cdclk_state, new_cdclk_state)) {/* * Also serialize commits across all crtcs * if the actual hw needs to be poked. @@ -2905,9 +3051,9 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state) old_cdclk_state->force_min_cdclk != new_cdclk_state->force_min_cdclk ||Quoted 8 lines
drivers/gpu/drm/i915/display/intel_cdclk.c int intel_modeset_calc_cdclk(struct intel_atomic_state *state) · line 3056
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +3
-3intel_cdclk_changed(&old_cdclk_state->logical, &new_cdclk_state->logical)) { - ret =intel_atomic_lock_global_state (&new_cdclk_state->base); -if (ret) -return ret; + ret =intel_atomic_lock_global_state (&new_cdclk_state->base); +if (ret) +return ret;
Accidental indentation change?
Quoted 44 lines
Quoted 44 lines
Quoted 41 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +0
-0}else {return 0 ; }drivers/gpu/drm/i915/display/intel_cdclk.h +2
-0@@ -64,6 +64,8 @@ bool intel_cdclk_needs_modeset(const struct intel_cdclk_config *a, const struct intel_cdclk_config *b);void intel_set_cdclk_pre_plane_update (struct intel_atomic_state *state);void intel_set_cdclk_post_plane_update (struct intel_atomic_state *state); +void intel_cdclk_power_usage_to_pcode_pre_notification (struct intel_atomic_state *state); +void intel_cdclk_power_usage_to_pcode_post_notification (struct intel_atomic_state *state);void intel_cdclk_dump_config (struct drm_i915_private *i915,const struct intel_cdclk_config *cdclk_config,const char *context);drivers/gpu/drm/i915/i915_reg.h +14
-0@@ -6526,6 +6526,20 @@#define ICL_PCODE_MEM_SS_READ_GLOBAL_INFO (0x0 << 8)#define ICL_PCODE_MEM_SS_READ_QGV_POINT_INFO (point) (((point) << 16) | (0x1 << 8))#define ADL_PCODE_MEM_SS_READ_PSF_GV_INFO ((0) | (0x2 << 8)) +#define DISPLAY_TO_PCODE_CDCLK_MAX 0x28D +#define DISPLAY_TO_PCODE_VOLTAGE_MASK REG_GENMASK(1, 0) +#define DISPLAY_TO_PCODE_VOLTAGE_MAX DISPLAY_TO_PCODE_VOLTAGE_MASK +#define DISPLAY_TO_PCODE_CDCLK_VALID REG_BIT(27) +#define DISPLAY_TO_PCODE_PIPE_COUNT_VALID REG_BIT(31) +#define DISPLAY_TO_PCODE_CDCLK_MASK REG_GENMASK(25, 16) +#define DISPLAY_TO_PCODE_PIPE_COUNT_MASK REG_GENMASK(30, 28) +#define DISPLAY_TO_PCODE_CDCLK (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_CDCLK_MASK, (x)) +#define DISPLAY_TO_PCODE_PIPE_COUNT (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_PIPE_COUNT_MASK, (x)) +#define DISPLAY_TO_PCODE_VOLTAGE (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_VOLTAGE_MASK, (x)) +#define DISPLAY_TO_PCODE_UPDATE_MASK (cdclk, num_pipes, voltage_level) \ + (DISPLAY_TO_PCODE_CDCLK(cdclk)) | \ + (DISPLAY_TO_PCODE_PIPE_COUNT(num_pipes)) | \ + (DISPLAY_TO_PCODE_VOLTAGE(voltage_level))#define ICL_PCODE_SAGV_DE_MEM_SS_CONFIG 0xe#define ICL_PCODE_REP_QGV_MASK REG_GENMASK(1, 0)#define ICL_PCODE_REP_QGV_SAFE REG_FIELD_PREP(ICL_PCODE_REP_QGV_MASK, 0)Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Quoted 48 lines · Jani Nikula
Quoted 47 lines · Stanislav
Quoted 46 lines · Jani Nikula
Quoted 45 lines · Stanislav Lisovskiy
Display to communicate display pipe count/CDCLK/voltage configuration to Pcode for more accurate power accounting for gen >= 12. Existing sequence is only sending the voltage value to the Pcode. Adding new sequence with current cdclk associate with voltage value masking. Adding pcode request when any pipe power well will disable or enable.
v2: - Make
intel_cdclk_need_serializestatic to make CI compiler happy.Signed-off-by Stanislav Lisovskiy <[email protected]>--- drivers/gpu/drm/i915/display/intel_cdclk.c | 174 +++++++++++++++++++-- drivers/gpu/drm/i915/display/intel_cdclk.h | 2 + drivers/gpu/drm/i915/i915_reg.h | 14 ++ 3 files changed, 176 insertions(+), 14 deletions(-)drivers/gpu/drm/i915/display/intel_cdclk.c +3
-3@@ -1932,10 +1932,10 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,* NOOP - No Pcode communication needed for * Display versions 14 and beyond */ ; - else if (DISPLAY_VER(dev_priv) >= 11) + else if (DISPLAY_VER(dev_priv) >= 11 && !IS_DG2(dev_priv)) ret =snb_pcode_write (&dev_priv->uncore,SKL_PCODE_CDCLK_CONTROL , cdclk_config->voltage_level); - else +if (DISPLAY_VER (dev_priv) <11 ) {/* * The timeout isn't specified, the 2ms used here is based on * experiment. @@ -1946,7 +1946,7 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,HSW_PCODE_DE_WRITE_FREQ_REQ , cdclk_config->voltage_level, 150, 2); - + }if (ret) { drm_err(&dev_priv->drm, "PCode CDCLK freq set failed, (err %d, freq %d)\n",@@ -2242,6 +2242,40 @@ void intel_cdclk_dump_config(struct drm_i915_private *i915, cdclk_config->voltage_level); }
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_cdclk.c void intel_cdclk_dump_config(struct drm_i915_private *i915, · line 2248
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +4
-0+static void intel_pcode_notify(struct drm_i915_private *i915, + u8 voltage_level, + u8 active_pipe_count, + u8 cdclk,How can that be u8?
Agree, cdclk uses 10 bits according to BSpec, for the rest u8 is enough. Thanks for noticing.
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_cdclk.c void intel_cdclk_dump_config(struct drm_i915_private *i915, · line 2250
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+bool cdclk_update_valid, + bool pipe_count_update_valid)Also not super happy about the flags arguments... could have cdclk == 0 means not valid and int
active_pipe_count== -1 means not valid. Maybe.
Those are actually called that way, because BSpec calls those bits so. In fact it is more like "should we update this" flag.
As I understand if it is not set PCode will simply ignore those bits in notification.
The calling site should determine whether this bit need to be set or not.
We set the to true only if correspodent state got changed.
I think those are validated already, so we shouldn't expect any bogus values there(otherwise we are screwed in quite many other places), however cdclk == 0 actually would be valid and this bit would be then set.
Active pipe count is always amount of "1"'s in cdclk_state->active_pipes mask, so it shouldn't ever become -1. Or if it becomes, once again, this function would be the least of our problems.
Quoted 53 lines
Quoted 39 lines
Quoted 39 lines
Quoted 16 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +15
-0+{ +int ret; +u32 update_mask =0 ; + +if (DISPLAY_VER (i915) <12 ) +return ; + + update_mask =DISPLAY_TO_PCODE_UPDATE_MASK (cdclk, active_pipe_count, voltage_level); + +if (cdclk_update_valid) + update_mask |=DISPLAY_TO_PCODE_CDCLK_VALID ; + +if (pipe_count_update_valid) + update_mask |=DISPLAY_TO_PCODE_PIPE_COUNT_VALID ; +drivers/gpu/drm/i915/display/intel_cdclk.c void intel_cdclk_dump_config(struct drm_i915_private *i915, · line 2275
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+ ret =skl_pcode_request (&i915->uncore,SKL_PCODE_CDCLK_CONTROL , +SKL_CDCLK_PREPARE_FOR_CHANGE | + update_mask, +SKL_CDCLK_READY_FOR_CHANGE , +SKL_CDCLK_READY_FOR_CHANGE ,3 ); +if (ret) { +drm_err (&i915->drm, +"Failed to inform PCU about display config (err %d)\n" , + ret); +return ;Superfluous return.
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +3
-0+ } +} +/** * intel_set_cdclk - Push the CDCLK configuration to the hardware * @dev_priv: i915 device @@ -2311,6 +2345,98 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv, } }Quoted 2 lines
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2349
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+/** +* intel_cdclk_power_usage_to_pcode_pre_notification: display to pcode notification This doesn't need to be a kernel-doc comment (and it's a malformed one at that). Ditto for the others.
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2354
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +5
-0+* before the enabling power wells. +* send notification with cdclk, number of pipes, voltage_level. +* @state: intel atomic state +*/ +void intel_cdclk_power_usage_to_pcode_pre_notification (struct intel_atomic_state *state)This could be static?
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Not happy with the name, really, but at least it could use a verb. Notify instead of notification.
Any hint for better naming?
Maybe just
intel_cdclk_pcode_pre_notify(),intel_cdclk_pcode_post_notify(), and thenintel_cdclk_pcode_notify()as the shared thing?
Sorry Jani, but I think we would be going in circles then, because initially you were stating that:
"The function name should indicate what is being notified. Pre-notification of what? Post-notification of what?
Functions in this file should be prefixed intel_cdclk_*."
At this point it was called "intel_display_to_pcode_pre_notification", the prefix comment of course is now changed.
So if I change it back to "pcode_pre_notify" thing, that would lose information about what its doing once again.
I can for sure do that, but then what is the guarantee it won't get a comment about "lack of informativeness" once again? :)
Stan
Quoted 247 lines
Quoted 181 lines
Quoted 181 lines
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2356
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev);No new
dev_privplease.Quoted 37 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +37
-0+const struct intel_cdclk_state *old_cdclk_state = +intel_atomic_get_old_cdclk_state (state); +const struct intel_cdclk_state *new_cdclk_state = +intel_atomic_get_new_cdclk_state (state); +unsigned int cdclk =0 ;u8 voltage_level, num_active_pipes =0 ; +bool change_cdclk, update_pipe_count; + +if (!intel_cdclk_changed (&old_cdclk_state->actual, + &new_cdclk_state->actual) && + (new_cdclk_state->active_pipes == + old_cdclk_state->active_pipes)) +return ; + +/* According to "Sequence Before Frequency Change", voltage level set to 0x3 */ + voltage_level =DISPLAY_TO_PCODE_VOLTAGE_MAX ; + + change_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; + update_pipe_count =hweight8 (new_cdclk_state->active_pipes) > +hweight8 (old_cdclk_state->active_pipes); + +/* +* According to "Sequence Before Frequency Change", +* if CDCLK is increasing, set bits 25:16 to upcoming CDCLK, +* if CDCLK is decreasing or not changing, set bits 25:16 to current CDCLK, +* which basically means we choose the maximum of old and new CDCLK, if we know both +*/ +if (change_cdclk) + cdclk =max (new_cdclk_state->actual.cdclk, old_cdclk_state->actual.cdclk); + +/* +* According to "Sequence For Pipe Count Change", +* if pipe count is increasing, set bits 25:16 to upcoming pipe count +* (power well is enabled) +* no action if it is decreasing, before the change +*/ +if (update_pipe_count) + num_active_pipes =hweight8 (new_cdclk_state->active_pipes);drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2403
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+ +intel_pcode_notify (dev_priv, voltage_level, num_active_pipes, cdclk, + change_cdclk, update_pipe_count); +} + +/* intel_cdclk_power_usage_to_pcode_post_notification: after frequency change sending +* voltage_level, active pipes, current CDCLK frequency. +* @state: intel atomic state +*/ +void intel_cdclk_power_usage_to_pcode_post_notification (struct intel_atomic_state *state)Ditto about static & naming.
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2405
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev);No new
dev_privplease.Quoted 96 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +49
-6+const struct intel_cdclk_state *new_cdclk_state = +intel_atomic_get_new_cdclk_state (state); +const struct intel_cdclk_state *old_cdclk_state = +intel_atomic_get_old_cdclk_state (state); +unsigned int cdclk =0 ;u8 voltage_level, num_active_pipes =0 ; +bool update_cdclk, update_pipe_count; + +/* According to "Sequence After Frequency Change", set voltage to used level */ + voltage_level = new_cdclk_state->actual.voltage_level; + + update_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; + update_pipe_count =hweight8 (new_cdclk_state->active_pipes) < +hweight8 (old_cdclk_state->active_pipes); + +/* +* According to "Sequence After Frequency Change", +* set bits 25:16 to current CDCLK +*/ +if (update_cdclk) + cdclk = new_cdclk_state->actual.cdclk; + +/* +* According to "Sequence For Pipe Count Change", +* if pipe count is decreasing, set bits 25:16 to current pipe count, +* after the change(power well is disabled) +* no action if it is increasing, after the change +*/ +if (update_pipe_count) + num_active_pipes =hweight8 (new_cdclk_state->active_pipes); + +intel_pcode_notify (dev_priv, voltage_level, num_active_pipes, cdclk, + update_cdclk, update_pipe_count); +} +/** * intel_set_cdclk_pre_plane_update - Push the CDCLK state to the hardware * @state: intel atomic state @@ -2321,7 +2447,7 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv,void intel_set_cdclk_pre_plane_update (struct intel_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_cdclk_state *old_cdclk_state =intel_atomic_get_old_cdclk_state (state); const struct intel_cdclk_state *new_cdclk_state =@@ -2332,11 +2458,14 @@ intel_set_cdclk_pre_plane_update(struct intel_atomic_state *state) &new_cdclk_state->actual))return ; +if (DISPLAY_VER (i915) >=12 ) +intel_cdclk_power_usage_to_pcode_pre_notification (state); +if (pipe ==INVALID_PIPE || old_cdclk_state->actual.cdclk <= new_cdclk_state->actual.cdclk) { -drm_WARN_ON (&dev_priv->drm, !new_cdclk_state->base.changed); +drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed); -intel_set_cdclk (dev_priv, &new_cdclk_state->actual, pipe); +intel_set_cdclk (i915, &new_cdclk_state->actual, pipe); } }@@ -2350,7 +2479,7 @@ intel_set_cdclk_pre_plane_update(struct intel_atomic_state *state)void intel_set_cdclk_post_plane_update (struct intel_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_cdclk_state *old_cdclk_state =intel_atomic_get_old_cdclk_state (state); const struct intel_cdclk_state *new_cdclk_state =@@ -2361,11 +2490,14 @@ intel_set_cdclk_post_plane_update(struct intel_atomic_state *state) &new_cdclk_state->actual))return ; +if (DISPLAY_VER (i915) >=12 ) +intel_cdclk_power_usage_to_pcode_post_notification (state); +if (pipe !=INVALID_PIPE && old_cdclk_state->actual.cdclk > new_cdclk_state->actual.cdclk) { -drm_WARN_ON (&dev_priv->drm, !new_cdclk_state->base.changed); +drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed); -intel_set_cdclk (dev_priv, &new_cdclk_state->actual, pipe); +intel_set_cdclk (i915, &new_cdclk_state->actual, pipe); } }@@ -2871,6 +3003,21 @@ int intel_cdclk_init(struct drm_i915_private *dev_priv)return 0 ; } +static bool intel_cdclk_need_serialize (struct drm_i915_private *i915, +const struct intel_cdclk_state *old_cdclk_state, +const struct intel_cdclk_state *new_cdclk_state)drivers/gpu/drm/i915/display/intel_cdclk.c int intel_cdclk_init(struct drm_i915_private *dev_priv) · line 3018
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+{ +/* +* We need to poke hw for gen >= 12, because we notify PCode if +* pipe power well count changes. +*/ +return intel_cdclk_changed (&old_cdclk_state->actual, + &new_cdclk_state->actual) || + ((DISPLAY_VER (i915) >=12 && +hweight8 (old_cdclk_state->active_pipes) != +hweight8 (new_cdclk_state->active_pipes)));That's getting a bit unweildy for one expression.
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+} +int intel_modeset_calc_cdclk (struct intel_atomic_state *state) {struct drm_i915_private *dev_priv =to_i915 (state->base.dev);@@ -2892,8 +3039,7 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state)if (ret)return ret;Quoted 16 lines
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +1
-2-if (intel_cdclk_changed (&old_cdclk_state->actual, - &new_cdclk_state->actual)) { +if (intel_cdclk_need_serialize (dev_priv, old_cdclk_state, new_cdclk_state)) {/* * Also serialize commits across all crtcs * if the actual hw needs to be poked. @@ -2905,9 +3051,9 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state) old_cdclk_state->force_min_cdclk != new_cdclk_state->force_min_cdclk ||Quoted 8 lines
drivers/gpu/drm/i915/display/intel_cdclk.c int intel_modeset_calc_cdclk(struct intel_atomic_state *state) · line 3056
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +3
-3intel_cdclk_changed(&old_cdclk_state->logical, &new_cdclk_state->logical)) { - ret =intel_atomic_lock_global_state (&new_cdclk_state->base); -if (ret) -return ret; + ret =intel_atomic_lock_global_state (&new_cdclk_state->base); +if (ret) +return ret;Accidental indentation change?
Quoted 44 lines
Quoted 44 lines
Quoted 41 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +0
-0}else {return 0 ; }drivers/gpu/drm/i915/display/intel_cdclk.h +2
-0@@ -64,6 +64,8 @@ bool intel_cdclk_needs_modeset(const struct intel_cdclk_config *a, const struct intel_cdclk_config *b);void intel_set_cdclk_pre_plane_update (struct intel_atomic_state *state);void intel_set_cdclk_post_plane_update (struct intel_atomic_state *state); +void intel_cdclk_power_usage_to_pcode_pre_notification (struct intel_atomic_state *state); +void intel_cdclk_power_usage_to_pcode_post_notification (struct intel_atomic_state *state);void intel_cdclk_dump_config (struct drm_i915_private *i915,const struct intel_cdclk_config *cdclk_config,const char *context);drivers/gpu/drm/i915/i915_reg.h +14
-0@@ -6526,6 +6526,20 @@#define ICL_PCODE_MEM_SS_READ_GLOBAL_INFO (0x0 << 8)#define ICL_PCODE_MEM_SS_READ_QGV_POINT_INFO (point) (((point) << 16) | (0x1 << 8))#define ADL_PCODE_MEM_SS_READ_PSF_GV_INFO ((0) | (0x2 << 8)) +#define DISPLAY_TO_PCODE_CDCLK_MAX 0x28D +#define DISPLAY_TO_PCODE_VOLTAGE_MASK REG_GENMASK(1, 0) +#define DISPLAY_TO_PCODE_VOLTAGE_MAX DISPLAY_TO_PCODE_VOLTAGE_MASK +#define DISPLAY_TO_PCODE_CDCLK_VALID REG_BIT(27) +#define DISPLAY_TO_PCODE_PIPE_COUNT_VALID REG_BIT(31) +#define DISPLAY_TO_PCODE_CDCLK_MASK REG_GENMASK(25, 16) +#define DISPLAY_TO_PCODE_PIPE_COUNT_MASK REG_GENMASK(30, 28) +#define DISPLAY_TO_PCODE_CDCLK (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_CDCLK_MASK, (x)) +#define DISPLAY_TO_PCODE_PIPE_COUNT (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_PIPE_COUNT_MASK, (x)) +#define DISPLAY_TO_PCODE_VOLTAGE (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_VOLTAGE_MASK, (x)) +#define DISPLAY_TO_PCODE_UPDATE_MASK (cdclk, num_pipes, voltage_level) \ + (DISPLAY_TO_PCODE_CDCLK(cdclk)) | \ + (DISPLAY_TO_PCODE_PIPE_COUNT(num_pipes)) | \ + (DISPLAY_TO_PCODE_VOLTAGE(voltage_level))#define ICL_PCODE_SAGV_DE_MEM_SS_CONFIG 0xe#define ICL_PCODE_REP_QGV_MASK REG_GENMASK(1, 0)#define ICL_PCODE_REP_QGV_SAFE REG_FIELD_PREP(ICL_PCODE_REP_QGV_MASK, 0)Signature · 1 line
Jani Nikula, Intel Open Source Graphics CenterSignature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Jani Nikula
maintainerQuoted 149 lines · Stanislav
Quoted 48 lines · Jani Nikula
Quoted 47 lines · Stanislav
Quoted 46 lines · Jani Nikula
Quoted 45 lines · Stanislav Lisovskiy
Display to communicate display pipe count/CDCLK/voltage configuration to Pcode for more accurate power accounting for gen >= 12. Existing sequence is only sending the voltage value to the Pcode. Adding new sequence with current cdclk associate with voltage value masking. Adding pcode request when any pipe power well will disable or enable.
v2: - Make
intel_cdclk_need_serializestatic to make CI compiler happy.Signed-off-by Stanislav Lisovskiy <[email protected]>--- drivers/gpu/drm/i915/display/intel_cdclk.c | 174 +++++++++++++++++++-- drivers/gpu/drm/i915/display/intel_cdclk.h | 2 + drivers/gpu/drm/i915/i915_reg.h | 14 ++ 3 files changed, 176 insertions(+), 14 deletions(-)drivers/gpu/drm/i915/display/intel_cdclk.c +3
-3@@ -1932,10 +1932,10 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,* NOOP - No Pcode communication needed for * Display versions 14 and beyond */ ; - else if (DISPLAY_VER(dev_priv) >= 11) + else if (DISPLAY_VER(dev_priv) >= 11 && !IS_DG2(dev_priv)) ret =snb_pcode_write (&dev_priv->uncore,SKL_PCODE_CDCLK_CONTROL , cdclk_config->voltage_level); - else +if (DISPLAY_VER (dev_priv) <11 ) {/* * The timeout isn't specified, the 2ms used here is based on * experiment. @@ -1946,7 +1946,7 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,HSW_PCODE_DE_WRITE_FREQ_REQ , cdclk_config->voltage_level, 150, 2); - + }if (ret) { drm_err(&dev_priv->drm, "PCode CDCLK freq set failed, (err %d, freq %d)\n",@@ -2242,6 +2242,40 @@ void intel_cdclk_dump_config(struct drm_i915_private *i915, cdclk_config->voltage_level); }Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_cdclk.c void intel_cdclk_dump_config(struct drm_i915_private *i915, · line 2248
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +4
-0+static void intel_pcode_notify(struct drm_i915_private *i915, + u8 voltage_level, + u8 active_pipe_count, + u8 cdclk,How can that be u8?
Agree, cdclk uses 10 bits according to BSpec, for the rest u8 is enough. Thanks for noticing.
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_cdclk.c void intel_cdclk_dump_config(struct drm_i915_private *i915, · line 2250
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+bool cdclk_update_valid, + bool pipe_count_update_valid)Also not super happy about the flags arguments... could have cdclk == 0 means not valid and int
active_pipe_count== -1 means not valid. Maybe.Those are actually called that way, because BSpec calls those bits so. In fact it is more like "should we update this" flag.
As I understand if it is not set PCode will simply ignore those bits in notification.The calling site should determine whether this bit need to be set or not.
We set the to true only if correspodent state got changed.
I think those are validated already, so we shouldn't expect any bogus values there(otherwise we are screwed in quite many other places), however cdclk == 0 actually would be valid and this bit would be then set.
Active pipe count is always amount of "1"'s incdclk_state->active_pipesmask, so it shouldn't ever become -1. Or if it becomes, once again, this function would be the least of our problems.Quoted 53 lines
Quoted 39 lines
Quoted 39 lines
Quoted 16 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +15
-0+{ +int ret; +u32 update_mask =0 ; + +if (DISPLAY_VER (i915) <12 ) +return ; + + update_mask =DISPLAY_TO_PCODE_UPDATE_MASK (cdclk, active_pipe_count, voltage_level); + +if (cdclk_update_valid) + update_mask |=DISPLAY_TO_PCODE_CDCLK_VALID ; + +if (pipe_count_update_valid) + update_mask |=DISPLAY_TO_PCODE_PIPE_COUNT_VALID ; +drivers/gpu/drm/i915/display/intel_cdclk.c void intel_cdclk_dump_config(struct drm_i915_private *i915, · line 2275
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+ ret =skl_pcode_request (&i915->uncore,SKL_PCODE_CDCLK_CONTROL , +SKL_CDCLK_PREPARE_FOR_CHANGE | + update_mask, +SKL_CDCLK_READY_FOR_CHANGE , +SKL_CDCLK_READY_FOR_CHANGE ,3 ); +if (ret) { +drm_err (&i915->drm, +"Failed to inform PCU about display config (err %d)\n" , + ret); +return ;Superfluous return.
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +3
-0+ } +} +/** * intel_set_cdclk - Push the CDCLK configuration to the hardware * @dev_priv: i915 device @@ -2311,6 +2345,98 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv, } }Quoted 2 lines
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2349
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+/** +* intel_cdclk_power_usage_to_pcode_pre_notification: display to pcode notification This doesn't need to be a kernel-doc comment (and it's a malformed one at that). Ditto for the others.
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2354
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +5
-0+* before the enabling power wells. +* send notification with cdclk, number of pipes, voltage_level. +* @state: intel atomic state +*/ +void intel_cdclk_power_usage_to_pcode_pre_notification (struct intel_atomic_state *state)This could be static?
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Not happy with the name, really, but at least it could use a verb. Notify instead of notification.
Any hint for better naming?
Maybe just
intel_cdclk_pcode_pre_notify(),intel_cdclk_pcode_post_notify(), and thenintel_cdclk_pcode_notify()as the shared thing?Sorry Jani, but I think we would be going in circles then, because initially you were stating that:
"The function name should indicate what is being notified. Pre-notification of what? Post-notification of what?
Functions in this file should be prefixed intel_cdclk_*."
Quoted 8 lines
At this point it was called "
intel_display_to_pcode_pre_notification", the prefix comment of course is now changed.So if I change it back to "
pcode_pre_notify" thing, that would lose information about what its doing once again.I can for sure do that, but then what is the guarantee it won't get a comment about "lack of informativeness" once again? :)
*shrug* :)
Compared to the original, there's now "cdclk" in the name.
BR,
Jani.
Quoted 250 lines
Stan
Quoted 247 lines
Quoted 181 lines
Quoted 181 lines
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2356
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev);No new
dev_privplease.Quoted 37 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +37
-0+const struct intel_cdclk_state *old_cdclk_state = +intel_atomic_get_old_cdclk_state (state); +const struct intel_cdclk_state *new_cdclk_state = +intel_atomic_get_new_cdclk_state (state); +unsigned int cdclk =0 ;u8 voltage_level, num_active_pipes =0 ; +bool change_cdclk, update_pipe_count; + +if (!intel_cdclk_changed (&old_cdclk_state->actual, + &new_cdclk_state->actual) && + (new_cdclk_state->active_pipes == + old_cdclk_state->active_pipes)) +return ; + +/* According to "Sequence Before Frequency Change", voltage level set to 0x3 */ + voltage_level =DISPLAY_TO_PCODE_VOLTAGE_MAX ; + + change_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; + update_pipe_count =hweight8 (new_cdclk_state->active_pipes) > +hweight8 (old_cdclk_state->active_pipes); + +/* +* According to "Sequence Before Frequency Change", +* if CDCLK is increasing, set bits 25:16 to upcoming CDCLK, +* if CDCLK is decreasing or not changing, set bits 25:16 to current CDCLK, +* which basically means we choose the maximum of old and new CDCLK, if we know both +*/ +if (change_cdclk) + cdclk =max (new_cdclk_state->actual.cdclk, old_cdclk_state->actual.cdclk); + +/* +* According to "Sequence For Pipe Count Change", +* if pipe count is increasing, set bits 25:16 to upcoming pipe count +* (power well is enabled) +* no action if it is decreasing, before the change +*/ +if (update_pipe_count) + num_active_pipes =hweight8 (new_cdclk_state->active_pipes);drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2403
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+ +intel_pcode_notify (dev_priv, voltage_level, num_active_pipes, cdclk, + change_cdclk, update_pipe_count); +} + +/* intel_cdclk_power_usage_to_pcode_post_notification: after frequency change sending +* voltage_level, active pipes, current CDCLK frequency. +* @state: intel atomic state +*/ +void intel_cdclk_power_usage_to_pcode_post_notification (struct intel_atomic_state *state)Ditto about static & naming.
drivers/gpu/drm/i915/display/intel_cdclk.c static void intel_set_cdclk(struct drm_i915_private *dev_priv, · line 2405
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev);No new
dev_privplease.Quoted 96 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +49
-6+const struct intel_cdclk_state *new_cdclk_state = +intel_atomic_get_new_cdclk_state (state); +const struct intel_cdclk_state *old_cdclk_state = +intel_atomic_get_old_cdclk_state (state); +unsigned int cdclk =0 ;u8 voltage_level, num_active_pipes =0 ; +bool update_cdclk, update_pipe_count; + +/* According to "Sequence After Frequency Change", set voltage to used level */ + voltage_level = new_cdclk_state->actual.voltage_level; + + update_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; + update_pipe_count =hweight8 (new_cdclk_state->active_pipes) < +hweight8 (old_cdclk_state->active_pipes); + +/* +* According to "Sequence After Frequency Change", +* set bits 25:16 to current CDCLK +*/ +if (update_cdclk) + cdclk = new_cdclk_state->actual.cdclk; + +/* +* According to "Sequence For Pipe Count Change", +* if pipe count is decreasing, set bits 25:16 to current pipe count, +* after the change(power well is disabled) +* no action if it is increasing, after the change +*/ +if (update_pipe_count) + num_active_pipes =hweight8 (new_cdclk_state->active_pipes); + +intel_pcode_notify (dev_priv, voltage_level, num_active_pipes, cdclk, + update_cdclk, update_pipe_count); +} +/** * intel_set_cdclk_pre_plane_update - Push the CDCLK state to the hardware * @state: intel atomic state @@ -2321,7 +2447,7 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv,void intel_set_cdclk_pre_plane_update (struct intel_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_cdclk_state *old_cdclk_state =intel_atomic_get_old_cdclk_state (state); const struct intel_cdclk_state *new_cdclk_state =@@ -2332,11 +2458,14 @@ intel_set_cdclk_pre_plane_update(struct intel_atomic_state *state) &new_cdclk_state->actual))return ; +if (DISPLAY_VER (i915) >=12 ) +intel_cdclk_power_usage_to_pcode_pre_notification (state); +if (pipe ==INVALID_PIPE || old_cdclk_state->actual.cdclk <= new_cdclk_state->actual.cdclk) { -drm_WARN_ON (&dev_priv->drm, !new_cdclk_state->base.changed); +drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed); -intel_set_cdclk (dev_priv, &new_cdclk_state->actual, pipe); +intel_set_cdclk (i915, &new_cdclk_state->actual, pipe); } }@@ -2350,7 +2479,7 @@ intel_set_cdclk_pre_plane_update(struct intel_atomic_state *state)void intel_set_cdclk_post_plane_update (struct intel_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct drm_i915_private *i915 =to_i915 (state->base.dev);const struct intel_cdclk_state *old_cdclk_state =intel_atomic_get_old_cdclk_state (state); const struct intel_cdclk_state *new_cdclk_state =@@ -2361,11 +2490,14 @@ intel_set_cdclk_post_plane_update(struct intel_atomic_state *state) &new_cdclk_state->actual))return ; +if (DISPLAY_VER (i915) >=12 ) +intel_cdclk_power_usage_to_pcode_post_notification (state); +if (pipe !=INVALID_PIPE && old_cdclk_state->actual.cdclk > new_cdclk_state->actual.cdclk) { -drm_WARN_ON (&dev_priv->drm, !new_cdclk_state->base.changed); +drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed); -intel_set_cdclk (dev_priv, &new_cdclk_state->actual, pipe); +intel_set_cdclk (i915, &new_cdclk_state->actual, pipe); } }@@ -2871,6 +3003,21 @@ int intel_cdclk_init(struct drm_i915_private *dev_priv)return 0 ; } +static bool intel_cdclk_need_serialize (struct drm_i915_private *i915, +const struct intel_cdclk_state *old_cdclk_state, +const struct intel_cdclk_state *new_cdclk_state)drivers/gpu/drm/i915/display/intel_cdclk.c int intel_cdclk_init(struct drm_i915_private *dev_priv) · line 3018
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+{ +/* +* We need to poke hw for gen >= 12, because we notify PCode if +* pipe power well count changes. +*/ +return intel_cdclk_changed (&old_cdclk_state->actual, + &new_cdclk_state->actual) || + ((DISPLAY_VER (i915) >=12 && +hweight8 (old_cdclk_state->active_pipes) != +hweight8 (new_cdclk_state->active_pipes)));That's getting a bit unweildy for one expression.
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +2
-0+} +int intel_modeset_calc_cdclk (struct intel_atomic_state *state) {struct drm_i915_private *dev_priv =to_i915 (state->base.dev);@@ -2892,8 +3039,7 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state)if (ret)return ret;Quoted 16 lines
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +1
-2-if (intel_cdclk_changed (&old_cdclk_state->actual, - &new_cdclk_state->actual)) { +if (intel_cdclk_need_serialize (dev_priv, old_cdclk_state, new_cdclk_state)) {/* * Also serialize commits across all crtcs * if the actual hw needs to be poked. @@ -2905,9 +3051,9 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state) old_cdclk_state->force_min_cdclk != new_cdclk_state->force_min_cdclk ||Quoted 8 lines
drivers/gpu/drm/i915/display/intel_cdclk.c int intel_modeset_calc_cdclk(struct intel_atomic_state *state) · line 3056
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +3
-3intel_cdclk_changed(&old_cdclk_state->logical, &new_cdclk_state->logical)) { - ret =intel_atomic_lock_global_state (&new_cdclk_state->base); -if (ret) -return ret; + ret =intel_atomic_lock_global_state (&new_cdclk_state->base); +if (ret) +return ret;Accidental indentation change?
Quoted 44 lines
Quoted 44 lines
Quoted 41 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +0
-0}else {return 0 ; }drivers/gpu/drm/i915/display/intel_cdclk.h +2
-0@@ -64,6 +64,8 @@ bool intel_cdclk_needs_modeset(const struct intel_cdclk_config *a, const struct intel_cdclk_config *b);void intel_set_cdclk_pre_plane_update (struct intel_atomic_state *state);void intel_set_cdclk_post_plane_update (struct intel_atomic_state *state); +void intel_cdclk_power_usage_to_pcode_pre_notification (struct intel_atomic_state *state); +void intel_cdclk_power_usage_to_pcode_post_notification (struct intel_atomic_state *state);void intel_cdclk_dump_config (struct drm_i915_private *i915,const struct intel_cdclk_config *cdclk_config,const char *context);drivers/gpu/drm/i915/i915_reg.h +14
-0@@ -6526,6 +6526,20 @@#define ICL_PCODE_MEM_SS_READ_GLOBAL_INFO (0x0 << 8)#define ICL_PCODE_MEM_SS_READ_QGV_POINT_INFO (point) (((point) << 16) | (0x1 << 8))#define ADL_PCODE_MEM_SS_READ_PSF_GV_INFO ((0) | (0x2 << 8)) +#define DISPLAY_TO_PCODE_CDCLK_MAX 0x28D +#define DISPLAY_TO_PCODE_VOLTAGE_MASK REG_GENMASK(1, 0) +#define DISPLAY_TO_PCODE_VOLTAGE_MAX DISPLAY_TO_PCODE_VOLTAGE_MASK +#define DISPLAY_TO_PCODE_CDCLK_VALID REG_BIT(27) +#define DISPLAY_TO_PCODE_PIPE_COUNT_VALID REG_BIT(31) +#define DISPLAY_TO_PCODE_CDCLK_MASK REG_GENMASK(25, 16) +#define DISPLAY_TO_PCODE_PIPE_COUNT_MASK REG_GENMASK(30, 28) +#define DISPLAY_TO_PCODE_CDCLK (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_CDCLK_MASK, (x)) +#define DISPLAY_TO_PCODE_PIPE_COUNT (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_PIPE_COUNT_MASK, (x)) +#define DISPLAY_TO_PCODE_VOLTAGE (x) REG_FIELD_PREP(DISPLAY_TO_PCODE_VOLTAGE_MASK, (x)) +#define DISPLAY_TO_PCODE_UPDATE_MASK (cdclk, num_pipes, voltage_level) \ + (DISPLAY_TO_PCODE_CDCLK(cdclk)) | \ + (DISPLAY_TO_PCODE_PIPE_COUNT(num_pipes)) | \ + (DISPLAY_TO_PCODE_VOLTAGE(voltage_level))#define ICL_PCODE_SAGV_DE_MEM_SS_CONFIG 0xe#define ICL_PCODE_REP_QGV_MASK REG_GENMASK(1, 0)#define ICL_PCODE_REP_QGV_SAFE REG_FIELD_PREP(ICL_PCODE_REP_QGV_MASK, 0)Signature · 1 line
Jani Nikula, Intel Open Source Graphics CenterSignature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center