drm/i915: Check crtc_state->wm.need_postvbl_update before grabbing wm.mutex
Subsystems (3)
PATCH 1/6 drm/i915: Check crtc_state->wm.need_postvbl_update before grabbing wm.mutex
From: Ville Syrjälä <[email protected]>
wm.mutex does not protect the crtc state so no point in grabbing it to check crtc_state->wm.need_postvbl_update.
Also do a bit of s/intel_crtc/crtc/ while at it.
--- drivers/gpu/drm/i915/intel_pm.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-)
drivers/gpu/drm/i915/intel_pm.c +12 -11
@@ -1566,13 +1566,13 @@ static void g4x_optimize_watermarks(struct intel_atomic_state *state, struct intel_crtc_state *crtc_state) {struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); -struct intel_crtc *intel_crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);if (!crtc_state->wm.need_postvbl_update)return ;mutex_lock (&dev_priv->wm.wm_mutex); - intel_crtc->wm.active.g4x = crtc_state->wm.g4x.optimal; + crtc->wm.active.g4x = crtc_state->wm.g4x.optimal;g4x_program_watermarks (dev_priv);mutex_unlock (&dev_priv->wm.wm_mutex); }
@@ -2185,13 +2185,13 @@ static void vlv_optimize_watermarks(struct intel_atomic_state *state, struct intel_crtc_state *crtc_state) {struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); -struct intel_crtc *intel_crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);if (!crtc_state->wm.need_postvbl_update)return ;mutex_lock (&dev_priv->wm.wm_mutex); - intel_crtc->wm.active.vlv = crtc_state->wm.vlv.optimal; + crtc->wm.active.vlv = crtc_state->wm.vlv.optimal;vlv_program_watermarks (dev_priv);mutex_unlock (&dev_priv->wm.wm_mutex); }
@@ -5723,10 +5723,10 @@ static void ilk_initial_watermarks(struct intel_atomic_state *state, struct intel_crtc_state *crtc_state) {struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); -struct intel_crtc *intel_crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);mutex_lock (&dev_priv->wm.wm_mutex); - intel_crtc->wm.active.ilk = crtc_state->wm.ilk.intermediate; + crtc->wm.active.ilk = crtc_state->wm.ilk.intermediate;ilk_program_watermarks (dev_priv);mutex_unlock (&dev_priv->wm.wm_mutex); }
@@ -5735,13 +5735,14 @@ static void ilk_optimize_watermarks(struct intel_atomic_state *state, struct intel_crtc_state *crtc_state) {struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); -struct intel_crtc *intel_crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); + +if (!crtc_state->wm.need_postvbl_update) +return ;mutex_lock (&dev_priv->wm.wm_mutex); -if (crtc_state->wm.need_postvbl_update) { - intel_crtc->wm.active.ilk = crtc_state->wm.ilk.optimal; -ilk_program_watermarks (dev_priv); - } + crtc->wm.active.ilk = crtc_state->wm.ilk.optimal; +ilk_program_watermarks (dev_priv);mutex_unlock (&dev_priv->wm.wm_mutex); }
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/6 drm/i915: Simplify modeset_get_crtc_power_domains() arguments
From: Ville Syrjälä <[email protected]>
Pass just the crtc state to modeset_get_crtc_power_domains(). We can get the crtc from therein.
--- drivers/gpu/drm/i915/display/intel_display.c | 21 ++++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +10 -11
@@ -6741,11 +6741,10 @@ intel_aux_power_domain(struct intel_digital_port *dig_port) } } -static u64 get_crtc_power_domains (struct intel_crtc *crtc, -struct intel_crtc_state *crtc_state) +static u64 get_crtc_power_domains (struct intel_crtc_state *crtc_state) { -struct drm_device *dev = crtc->base.dev; -struct drm_i915_private *dev_priv =to_i915 (dev); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);struct drm_encoder *encoder;enum pipe pipe = crtc->pipe;u64 mask;
@@ -6760,7 +6759,8 @@ static u64 get_crtc_power_domains(struct intel_crtc *crtc, crtc_state->pch_pfit.force_thru) mask |=BIT_ULL (POWER_DOMAIN_PIPE_PANEL_FITTER (pipe)); -drm_for_each_encoder_mask (encoder, dev, crtc_state->base.encoder_mask) { +drm_for_each_encoder_mask (encoder, &dev_priv->drm, + crtc_state->base.encoder_mask) {struct intel_encoder *intel_encoder =to_intel_encoder (encoder); mask |=BIT_ULL (intel_encoder->power_domain);
@@ -6776,16 +6776,16 @@ static u64 get_crtc_power_domains(struct intel_crtc *crtc, }static u64 -modeset_get_crtc_power_domains (struct intel_crtc *crtc, -struct intel_crtc_state *crtc_state) +modeset_get_crtc_power_domains (struct intel_crtc_state *crtc_state) { +struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);enum intel_display_power_domain domain;u64 domains, new_domains, old_domains; old_domains = crtc->enabled_power_domains; crtc->enabled_power_domains = new_domains = -get_crtc_power_domains (crtc, crtc_state); +get_crtc_power_domains (crtc_state); domains = new_domains & ~old_domains;
@@ -13876,8 +13876,7 @@ static void intel_atomic_commit_tail(struct intel_atomic_state *state) new_crtc_state->update_pipe) { put_domains[crtc->pipe] = -modeset_get_crtc_power_domains (crtc, - new_crtc_state); +modeset_get_crtc_power_domains (new_crtc_state); }if (!needs_modeset (new_crtc_state))
@@ -16971,7 +16970,7 @@ intel_modeset_setup_hw_state(struct drm_device *dev,u64 put_domains; crtc_state =to_intel_crtc_state (crtc->base.state); - put_domains =modeset_get_crtc_power_domains (crtc, crtc_state); + put_domains =modeset_get_crtc_power_domains (crtc_state);if (WARN_ON (put_domains))modeset_put_power_domains (dev_priv, put_domains); }
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/6 drm/i915: Polish intel_shared_dpll_swap_state()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Use swap() instead of hand rolling it in intel_shared_dpll_swap_state(), and pass in the intel_atomic_state instead of drm_atomic_state. Makes the code less convoluted.
--- drivers/gpu/drm/i915/display/intel_display.c | 2 +- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 19 +++++++------------ drivers/gpu/drm/i915/display/intel_dpll_mgr.h | 3 +-- 3 files changed, 9 insertions(+), 15 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +1 -1
@@ -14157,7 +14157,7 @@ static int intel_atomic_commit(struct drm_device *dev,return ret; } dev_priv->wm.distrust_bios_wm = false; -intel_shared_dpll_swap_state (state); +intel_shared_dpll_swap_state (intel_state);intel_atomic_track_fbs (state);if (intel_state->modeset) {
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +7 -12
@@ -343,25 +343,20 @@ static void intel_put_dpll(struct intel_atomic_state *state,* i.e. it also puts the current state into @state, even though there is no * need for that at this moment. */ -void intel_shared_dpll_swap_state (struct drm_atomic_state *state) +void intel_shared_dpll_swap_state (struct intel_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (state->dev); -struct intel_shared_dpll_state *shared_dpll; -struct intel_shared_dpll *pll; +struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct intel_shared_dpll_state *shared_dpll = state->shared_dpll;enum intel_dpll_id i; -if (!to_intel_atomic_state (state)->dpll_set) +if (!state->dpll_set)return ; - shared_dpll =to_intel_atomic_state (state)->shared_dpll;for (i =0 ; i < dev_priv->num_shared_dpll; i++) { -struct intel_shared_dpll_state tmp; - - pll = &dev_priv->shared_dplls[i]; +struct intel_shared_dpll *pll = + &dev_priv->shared_dplls[i]; - tmp = pll->state; - pll->state = shared_dpll[i]; - shared_dpll[i] = tmp; +swap (pll->state, shared_dpll[i]); } }
drivers/gpu/drm/i915/display/intel_dpll_mgr.h +1 -2
@@ -36,7 +36,6 @@ (void ) (&__a == &__b); \ __a > __b ? (__a - __b) : (__b - __a); }) -struct drm_atomic_state ;struct drm_device ;struct drm_i915_private ;struct intel_atomic_state ;
@@ -352,7 +351,7 @@ void intel_update_active_dpll(struct intel_atomic_state *state,void intel_prepare_shared_dpll (const struct intel_crtc_state *crtc_state);void intel_enable_shared_dpll (const struct intel_crtc_state *crtc_state);void intel_disable_shared_dpll (const struct intel_crtc_state *crtc_state); -void intel_shared_dpll_swap_state (struct drm_atomic_state *state); +void intel_shared_dpll_swap_state (struct intel_atomic_state *state);void intel_shared_dpll_init (struct drm_device *dev); void intel_dpll_dump_hw_state(struct drm_i915_private *dev_priv,
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/6 drm/i915: Polish intel_atomic_track_fbs()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Streamline the code a bit by using intel_ types instead of drm_ types in intel_atomic_track_fbs().
--- drivers/gpu/drm/i915/display/intel_display.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +9 -8
@@ -14071,16 +14071,17 @@ intel_atomic_commit_ready(struct i915_sw_fence *fence,return NOTIFY_DONE ; } -static void intel_atomic_track_fbs (struct drm_atomic_state *state) +static void intel_atomic_track_fbs (struct intel_atomic_state *state) { -struct drm_plane_state *old_plane_state, *new_plane_state; -struct drm_plane *plane; +struct intel_plane_state *old_plane_state, *new_plane_state; +struct intel_plane *plane;int i; -for_each_oldnew_plane_in_state (state, plane, old_plane_state, new_plane_state, i) -i915_gem_track_fb (intel_fb_obj (old_plane_state->fb), -intel_fb_obj (new_plane_state->fb), -to_intel_plane (plane)->frontbuffer_bit); +for_each_oldnew_intel_plane_in_state (state, plane, old_plane_state, + new_plane_state, i) +i915_gem_track_fb (intel_fb_obj (old_plane_state->base.fb), +intel_fb_obj (new_plane_state->base.fb), + plane->frontbuffer_bit); }/**
@@ -14158,7 +14159,7 @@ static int intel_atomic_commit(struct drm_device *dev, } dev_priv->wm.distrust_bios_wm = false;intel_shared_dpll_swap_state (intel_state); -intel_atomic_track_fbs (state); +intel_atomic_track_fbs (intel_state);if (intel_state->modeset) { memcpy(dev_priv->min_cdclk, intel_state->min_cdclk,
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 5/6 drm/i915: Use intel_ types in intel_{lock, modeset}_all_pipes()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Streamline the code a bit by using intel_ types instead of the drm_ types.
--- drivers/gpu/drm/i915/display/intel_display.c | 38 +++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +21 -17
@@ -13352,15 +13352,16 @@ static int haswell_mode_set_planes_workaround(struct intel_atomic_state *state)return 0 ; } -static int intel_lock_all_pipes (struct drm_atomic_state *state) +static int intel_lock_all_pipes (struct intel_atomic_state *state) { -struct drm_crtc *crtc; +struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct intel_crtc *crtc;/* Add all pipes to the state */ -for_each_crtc (state->dev, crtc) { -struct drm_crtc_state *crtc_state; +for_each_intel_crtc (&dev_priv->drm, crtc) { +struct intel_crtc_state *crtc_state; - crtc_state =drm_atomic_get_crtc_state (state, crtc); + crtc_state =intel_atomic_get_crtc_state (&state->base, crtc);if (IS_ERR (crtc_state))return PTR_ERR (crtc_state); }
@@ -13368,32 +13369,35 @@ static int intel_lock_all_pipes(struct drm_atomic_state *state)return 0 ; } -static int intel_modeset_all_pipes (struct drm_atomic_state *state) +static int intel_modeset_all_pipes (struct intel_atomic_state *state) { -struct drm_crtc *crtc; +struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct intel_crtc *crtc;/* * Add all pipes to the state, and force * a modeset on all the active ones. */ -for_each_crtc (state->dev, crtc) { -struct drm_crtc_state *crtc_state; +for_each_intel_crtc (&dev_priv->drm, crtc) { +struct intel_crtc_state *crtc_state;int ret; - crtc_state =drm_atomic_get_crtc_state (state, crtc); + crtc_state =intel_atomic_get_crtc_state (&state->base, crtc);if (IS_ERR (crtc_state))return PTR_ERR (crtc_state); -if (!crtc_state->active ||needs_modeset (to_intel_crtc_state (crtc_state))) +if (!crtc_state->base.active ||needs_modeset (crtc_state))continue ; - crtc_state->mode_changed = true; + crtc_state->base.mode_changed = true; - ret =drm_atomic_add_affected_connectors (state, crtc); + ret =drm_atomic_add_affected_connectors (&state->base, + &crtc->base);if (ret)return ret; - ret =drm_atomic_add_affected_planes (state, crtc); + ret =drm_atomic_add_affected_planes (&state->base, + &crtc->base);if (ret)return ret; }
@@ -13455,7 +13459,7 @@ static int intel_modeset_checks(struct intel_atomic_state *state)*/ if (intel_cdclk_changed (&dev_priv->cdclk.logical, &state->cdclk.logical)) { - ret =intel_lock_all_pipes (&state->base); + ret =intel_lock_all_pipes (state);if (ret <0 )return ret; }
@@ -13478,14 +13482,14 @@ static int intel_modeset_checks(struct intel_atomic_state *state) intel_cdclk_needs_cd2x_update(dev_priv, &dev_priv->cdclk.actual, &state->cdclk.actual)) { - ret =intel_lock_all_pipes (&state->base); + ret =intel_lock_all_pipes (state);if (ret <0 )return ret; state->cdclk.pipe = pipe; } else if (intel_cdclk_needs_modeset(&dev_priv->cdclk.actual, &state->cdclk.actual)) { - ret =intel_modeset_all_pipes (&state->base); + ret =intel_modeset_all_pipes (state);if (ret <0 )return ret;
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 6/6 drm/i915: Use intel_ types in intel_atomic_commit()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Make life less annoying by favoring the intel_ types over the drm_ types in intel_atomic_commit().
--- drivers/gpu/drm/i915/display/intel_display.c | 76 ++++++++++---------- 1 file changed, 37 insertions(+), 39 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +37 -39
@@ -13656,10 +13656,10 @@ static int intel_atomic_check(struct drm_device *dev,return ret; } -static int intel_atomic_prepare_commit (struct drm_device *dev, -struct drm_atomic_state *state) +static int intel_atomic_prepare_commit (struct intel_atomic_state *state) { -return drm_atomic_helper_prepare_planes (dev, state); +return drm_atomic_helper_prepare_planes (state->base.dev, + &state->base); }u32 intel_crtc_get_vblank_counter (struct intel_crtc *crtc)
@@ -14101,17 +14101,17 @@ static void intel_atomic_track_fbs(struct intel_atomic_state *state)* Zero for success or -errno. */ static int intel_atomic_commit (struct drm_device *dev, -struct drm_atomic_state *state, +struct drm_atomic_state *_state,bool nonblock) { -struct intel_atomic_state *intel_state =to_intel_atomic_state (state); +struct intel_atomic_state *state =to_intel_atomic_state (_state);struct drm_i915_private *dev_priv =to_i915 (dev);int ret =0 ; - intel_state->wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm); + state->wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm); -drm_atomic_state_get (state); -i915_sw_fence_init (&intel_state->commit_ready, +drm_atomic_state_get (&state->base); +i915_sw_fence_init (&state->commit_ready, intel_atomic_commit_ready);/*
@@ -14131,65 +14131,63 @@ static int intel_atomic_commit(struct drm_device *dev,* FIXME doing watermarks and fb cleanup from a vblank worker * (assuming we had any) would solve these problems. */ -if (INTEL_GEN (dev_priv) <9 && state->legacy_cursor_update) { +if (INTEL_GEN (dev_priv) <9 && state->base.legacy_cursor_update) {struct intel_crtc_state *new_crtc_state;struct intel_crtc *crtc;int i; -for_each_new_intel_crtc_in_state (intel_state, crtc, new_crtc_state, i) +for_each_new_intel_crtc_in_state (state, crtc, new_crtc_state, i)if (new_crtc_state->wm.need_postvbl_update || new_crtc_state->update_wm_post) - state->legacy_cursor_update = false; + state->base.legacy_cursor_update = false; } - ret =intel_atomic_prepare_commit (dev, state); + ret =intel_atomic_prepare_commit (state);if (ret) {DRM_DEBUG_ATOMIC ("Preparing state failed with %i\n" , ret); -i915_sw_fence_commit (&intel_state->commit_ready); -intel_runtime_pm_put (&dev_priv->runtime_pm, intel_state->wakeref); +i915_sw_fence_commit (&state->commit_ready); +intel_runtime_pm_put (&dev_priv->runtime_pm, state->wakeref);return ret; } - ret =drm_atomic_helper_setup_commit (state, nonblock); + ret =drm_atomic_helper_setup_commit (&state->base, nonblock);if (!ret) - ret =drm_atomic_helper_swap_state (state, true); + ret =drm_atomic_helper_swap_state (&state->base, true);if (ret) { -i915_sw_fence_commit (&intel_state->commit_ready); +i915_sw_fence_commit (&state->commit_ready); -drm_atomic_helper_cleanup_planes (dev, state); -intel_runtime_pm_put (&dev_priv->runtime_pm, intel_state->wakeref); +drm_atomic_helper_cleanup_planes (dev, &state->base); +intel_runtime_pm_put (&dev_priv->runtime_pm, state->wakeref);return ret; } dev_priv->wm.distrust_bios_wm = false; -intel_shared_dpll_swap_state (intel_state); -intel_atomic_track_fbs (intel_state); +intel_shared_dpll_swap_state (state); +intel_atomic_track_fbs (state); -if (intel_state->modeset) { -memcpy (dev_priv->min_cdclk, intel_state->min_cdclk, -sizeof (intel_state->min_cdclk)); -memcpy (dev_priv->min_voltage_level, - intel_state->min_voltage_level, -sizeof (intel_state->min_voltage_level)); - dev_priv->active_crtcs = intel_state->active_crtcs; - dev_priv->cdclk.force_min_cdclk = - intel_state->cdclk.force_min_cdclk; +if (state->modeset) { +memcpy (dev_priv->min_cdclk, state->min_cdclk, +sizeof (state->min_cdclk)); +memcpy (dev_priv->min_voltage_level, state->min_voltage_level, +sizeof (state->min_voltage_level)); + dev_priv->active_crtcs = state->active_crtcs; + dev_priv->cdclk.force_min_cdclk = state->cdclk.force_min_cdclk; -intel_cdclk_swap_state (intel_state); +intel_cdclk_swap_state (state); } -drm_atomic_state_get (state); -INIT_WORK (&state->commit_work, intel_atomic_commit_work); +drm_atomic_state_get (&state->base); +INIT_WORK (&state->base.commit_work, intel_atomic_commit_work); -i915_sw_fence_commit (&intel_state->commit_ready); -if (nonblock && intel_state->modeset) { -queue_work (dev_priv->modeset_wq, &state->commit_work); +i915_sw_fence_commit (&state->commit_ready); +if (nonblock && state->modeset) { +queue_work (dev_priv->modeset_wq, &state->base.commit_work); }else if (nonblock) { -queue_work (system_unbound_wq, &state->commit_work); +queue_work (system_unbound_wq, &state->base.commit_work); }else { -if (intel_state->modeset) +if (state->modeset)flush_workqueue (dev_priv->modeset_wq); -intel_atomic_commit_tail (intel_state); +intel_atomic_commit_tail (state); }return 0 ;
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for series starting with [1/6] drm/i915: Check crtc_state->wm.need_postvbl_update before grabbing wm.mutex
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: series starting with [1/6] drm/i915: Check crtc_state->wm.need_postvbl_update before grabbing wm.mutex
URL : https://patchwork.freedesktop.org/series/63044/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6394 -> Patchwork_13482
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/
Known issues
------------
Here are the changes found in Patchwork_13482 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@vgem_basic@dmabuf-mmap:
- fi-icl-u3: [PASS][1] -> [DMESG-WARN][2] ([fdo#107724])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/fi-icl-u3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/fi-icl-u3/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3:
- fi-blb-e6850: [INCOMPLETE][3] ([fdo#107718]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/fi-blb-e6850/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/fi-blb-e6850/igt@[email protected]
* igt@gem_mmap_gtt@basic-small-bo-tiledy:
- fi-icl-u3: [DMESG-WARN][5] ([fdo#107724]) -> [PASS][6] +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/fi-icl-u3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/fi-icl-u3/igt@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-skl-6600u: [DMESG-WARN][7] ([fdo#111012]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/fi-skl-6600u/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/fi-skl-6600u/igt@[email protected]
* igt@i915_selftest@live_blt:
- fi-cfl-guc: [DMESG-WARN][9] ([fdo#110943]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/fi-cfl-guc/igt@i915_selftest@live_blt.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/fi-cfl-guc/igt@i915_selftest@live_blt.html
* igt@i915_selftest@live_hugepages:
- fi-skl-gvtdvm: [DMESG-WARN][11] ([fdo#110976]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/fi-skl-gvtdvm/igt@i915_selftest@live_hugepages.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/fi-skl-gvtdvm/igt@i915_selftest@live_hugepages.html
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][13] ([fdo#109485]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/fi-kbl-7500u/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/fi-kbl-7500u/igt@[email protected]
* igt@prime_vgem@basic-fence-flip:
- fi-ilk-650: [DMESG-WARN][15] ([fdo#106387]) -> [PASS][16] +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/fi-ilk-650/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/fi-ilk-650/igt@[email protected]
[fdo#106387]: https://bugs.freedesktop.org/show_bug.cgi?id=106387
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#109485]: https://bugs.freedesktop.org/show_bug.cgi?id=109485
[fdo#110943]: https://bugs.freedesktop.org/show_bug.cgi?id=110943
[fdo#110976]: https://bugs.freedesktop.org/show_bug.cgi?id=110976
[fdo#111012]: https://bugs.freedesktop.org/show_bug.cgi?id=111012
Participating hosts (50 -> 45)
------------------------------
Additional (2): fi-icl-guc fi-cml-u
Missing (7): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper
Build changes
-------------
* Linux: CI_DRM_6394 -> Patchwork_13482
CI_DRM_6394: ad42b755acd3c10f7a8e23309189f0a850ec92c5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5075: 03779dd3de8a57544f124d9952a6d2b3e34e34ca @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13482: 442fe0eb9c7880c85ca766cf42ab0a8b6fe08f08 @ git://anongit.freedesktop.org/gfx-ci/linux
== Kernel 32bit build ==
Warning: Kernel 32bit buildtest failed:
https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/build_32bit.log
CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh CHK include/generated/compile.h
Kernel: arch/x86/boot/bzImage is ready (#1)
Building modules, stage 2.
MODPOST 112 modules
ERROR: "__udivdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
ERROR: "__divdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! scripts/Makefile.modpost:91: recipe for target '__modpost' failed make[1]: *** [__modpost] Error 1
Makefile:1287: recipe for target 'modules' failed
make: *** [modules] Error 2
== Linux commits ==
442fe0eb9c78 drm/i915: Use intel_ types in intel_atomic_commit() 1fa7d4d938ef drm/i915: Use intel_ types in intel_{lock, modeset}_all_pipes() 2a2d1e9b6114 drm/i915: Polish intel_atomic_track_fbs()f7a70af2f4e4 drm/i915: Polish intel_shared_dpll_swap_state()f46fce3ad481 drm/i915: Simplify modeset_get_crtc_power_domains() arguments b1b914a4fb3f drm/i915: Check crtc_state->wm.need_postvbl_update before grabbing wm.mutex
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for series starting with [1/6] drm/i915: Check crtc_state->wm.need_postvbl_update before grabbing wm.mutex
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: series starting with [1/6] drm/i915: Check crtc_state->wm.need_postvbl_update before grabbing wm.mutex
URL : https://patchwork.freedesktop.org/series/63044/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6394_full -> Patchwork_13482_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_13482_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rpm@basic-pci-d3-state:
- shard-kbl: [PASS][1] -> [DMESG-WARN][2] ([fdo#103558] / [fdo#105602]) +5 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-kbl4/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-kbl2/igt@[email protected]
* igt@i915_selftest@mock_requests:
- shard-skl: [PASS][3] -> [INCOMPLETE][4] ([fdo#110550])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-skl5/igt@i915_selftest@mock_requests.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-skl7/igt@i915_selftest@mock_requests.html
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy:
- shard-glk: [PASS][5] -> [FAIL][6] ([fdo#104873])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-glk5/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-glk2/igt@[email protected]
* igt@kms_flip@absolute-wf_vblank-interruptible:
- shard-apl: [PASS][7] -> [INCOMPLETE][8] ([fdo#103927])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-apl2/igt@kms_flip@absolute-wf_vblank-interruptible.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-apl5/igt@kms_flip@absolute-wf_vblank-interruptible.html
* igt@kms_flip@flip-vs-dpms-off-vs-modeset:
- shard-kbl: [PASS][9] -> [DMESG-FAIL][10] ([fdo#103558] / [fdo#105602])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-kbl4/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-kbl2/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank:
- shard-skl: [PASS][11] -> [FAIL][12] ([fdo#105363])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-skl9/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-skl8/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-apl: [PASS][13] -> [FAIL][14] ([fdo#105363])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-apl6/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-apl2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-blt:
- shard-iclb: [PASS][15] -> [FAIL][16] ([fdo#103167]) +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-iclb6/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-iclb2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][17] -> [FAIL][18] ([fdo#108145] / [fdo#110403])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-skl9/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-skl7/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-iclb: [PASS][19] -> [FAIL][20] ([fdo#103166])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-iclb2/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-iclb7/igt@[email protected]
* igt@kms_psr@no_drrs:
- shard-iclb: [PASS][21] -> [FAIL][22] ([fdo#108341])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-iclb3/igt@kms_psr@no_drrs.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-iclb1/igt@kms_psr@no_drrs.html
* igt@kms_psr@psr2_dpms:
- shard-iclb: [PASS][23] -> [SKIP][24] ([fdo#109441]) +4 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-iclb2/igt@kms_psr@psr2_dpms.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-iclb3/igt@kms_psr@psr2_dpms.html
#### Possible fixes ####
* igt@gem_tiled_swapping@non-threaded:
- shard-glk: [DMESG-WARN][25] ([fdo#108686]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-glk4/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-glk9/igt@[email protected]
* igt@i915_selftest@mock_requests:
- shard-glk: [INCOMPLETE][27] ([fdo#103359] / [k.org#198133]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-glk2/igt@i915_selftest@mock_requests.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-glk5/igt@i915_selftest@mock_requests.html
* igt@kms_cursor_crc@pipe-b-cursor-suspend:
- shard-apl: [DMESG-WARN][29] ([fdo#108566]) -> [PASS][30] +2 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-apl5/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-apl3/igt@[email protected]
* igt@kms_cursor_legacy@cursor-vs-flip-atomic-transitions:
- shard-hsw: [FAIL][31] ([fdo#103355]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-hsw6/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-hsw8/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-skl: [FAIL][33] ([fdo#105363]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-skl7/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-skl8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-pwrite:
- shard-iclb: [FAIL][35] ([fdo#103167]) -> [PASS][36] +4 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-pwrite.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-iclb4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-pwrite.html
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes:
- shard-iclb: [INCOMPLETE][37] ([fdo#107713] / [fdo#110042]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-iclb3/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-iclb7/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-iclb: [SKIP][39] ([fdo#109642]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-iclb6/igt@kms_psr2_su@page_flip.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-iclb2/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [SKIP][41] ([fdo#109441]) -> [PASS][42] +1 similar issue
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-iclb1/igt@kms_psr@psr2_cursor_render.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
#### Warnings ####
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render:
- shard-kbl: [SKIP][43] ([fdo#109271]) -> [SKIP][44] ([fdo#105602] / [fdo#109271]) +3 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-kbl4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-kbl2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html
* igt@kms_plane_alpha_blend@pipe-b-alpha-transparant-fb:
- shard-kbl: [FAIL][45] ([fdo#108145]) -> [DMESG-FAIL][46] ([fdo#103558] / [fdo#105602] / [fdo#108145])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6394/shard-kbl4/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13482/shard-kbl2/igt@[email protected]
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103355]: https://bugs.freedesktop.org/show_bug.cgi?id=103355
[fdo#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359
[fdo#103558]: https://bugs.freedesktop.org/show_bug.cgi?id=103558
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104873]: https://bugs.freedesktop.org/show_bug.cgi?id=104873
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108341]: https://bugs.freedesktop.org/show_bug.cgi?id=108341
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110042]: https://bugs.freedesktop.org/show_bug.cgi?id=110042
[fdo#110403]: https://bugs.freedesktop.org/show_bug.cgi?id=110403
[fdo#110550]: https://bugs.freedesktop.org/show_bug.cgi?id=110550
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* Linux: CI_DRM_6394 -> Patchwork_13482
CI_DRM_6394: ad42b755acd3c10f7a8e23309189f0a850ec92c5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5075: 03779dd3de8a57544f124d9952a6d2b3e34e34ca @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13482: 442fe0eb9c7880c85ca766cf42ab0a8b6fe08f08 @ 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_13482/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 8 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
wm.mutex does not protect the crtc state so no point in grabbing it to check
crtc_state->wm.need_postvbl_update.Also do a bit of s/intel_crtc/crtc/ while at it.
Signed-off-by Ville Syrjälä <[email protected]>
Looks ok, on patches 1-6:
Quoted 80 lines
--- drivers/gpu/drm/i915/intel_pm.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-)drivers/gpu/drm/i915/intel_pm.c +12
-11@@ -1566,13 +1566,13 @@ static void g4x_optimize_watermarks(struct intel_atomic_state *state, struct intel_crtc_state *crtc_state) {struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); -struct intel_crtc *intel_crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);if (!crtc_state->wm.need_postvbl_update)return ;mutex_lock (&dev_priv->wm.wm_mutex); - intel_crtc->wm.active.g4x = crtc_state->wm.g4x.optimal; + crtc->wm.active.g4x = crtc_state->wm.g4x.optimal;g4x_program_watermarks (dev_priv);mutex_unlock (&dev_priv->wm.wm_mutex); }@@ -2185,13 +2185,13 @@ static void vlv_optimize_watermarks(struct intel_atomic_state *state, struct intel_crtc_state *crtc_state) {struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); -struct intel_crtc *intel_crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);if (!crtc_state->wm.need_postvbl_update)return ;mutex_lock (&dev_priv->wm.wm_mutex); - intel_crtc->wm.active.vlv = crtc_state->wm.vlv.optimal; + crtc->wm.active.vlv = crtc_state->wm.vlv.optimal;vlv_program_watermarks (dev_priv);mutex_unlock (&dev_priv->wm.wm_mutex); }@@ -5723,10 +5723,10 @@ static void ilk_initial_watermarks(struct intel_atomic_state *state, struct intel_crtc_state *crtc_state) {struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); -struct intel_crtc *intel_crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);mutex_lock (&dev_priv->wm.wm_mutex); - intel_crtc->wm.active.ilk = crtc_state->wm.ilk.intermediate; + crtc->wm.active.ilk = crtc_state->wm.ilk.intermediate;ilk_program_watermarks (dev_priv);mutex_unlock (&dev_priv->wm.wm_mutex); }@@ -5735,13 +5735,14 @@ static void ilk_optimize_watermarks(struct intel_atomic_state *state, struct intel_crtc_state *crtc_state) {struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); -struct intel_crtc *intel_crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); + +if (!crtc_state->wm.need_postvbl_update) +return ;mutex_lock (&dev_priv->wm.wm_mutex); -if (crtc_state->wm.need_postvbl_update) { - intel_crtc->wm.active.ilk = crtc_state->wm.ilk.optimal; -ilk_program_watermarks (dev_priv); - } + crtc->wm.active.ilk = crtc_state->wm.ilk.optimal; +ilk_program_watermarks (dev_priv);mutex_unlock (&dev_priv->wm.wm_mutex); }Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx