Enable second DBuf slice for ICL and TGL
Subsystems (3)
v10 cover Enable second DBuf slice for ICL and TGL
Those patch series, do some initial preparation DBuf manipulating code cleanups, i.e remove redundant structures/code, switch to mask based DBuf manupulation, get into use DBuf assignment according to BSpec rules.
Stanislav Lisovskiy (4):
drm/i915: Remove skl_ddl_allocation struct drm/i915: Move dbuf slice update to proper place drm/i915: Manipulate DBuf slices properly drm/i915: Correctly map DBUF slices to pipes
drivers/gpu/drm/i915/display/intel_display.c | 53 ++- .../drm/i915/display/intel_display_power.c | 94 ++-- .../drm/i915/display/intel_display_power.h | 6 + .../drm/i915/display/intel_display_types.h | 3 + drivers/gpu/drm/i915/i915_drv.h | 7 +- drivers/gpu/drm/i915/i915_pci.c | 5 +- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_device_info.h | 1 + drivers/gpu/drm/i915/intel_pm.c | 447 +++++++++++++++--- drivers/gpu/drm/i915/intel_pm.h | 7 +- 10 files changed, 485 insertions(+), 139 deletions(-)
Signature · 6 lines
2.24.1.485.gad05a3d8e5 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v10 1/4 drm/i915: Remove skl_ddl_allocation struct
Current consensus that it is redundant as we already have skl_ddb_values struct out there, also this struct contains only single member which makes it unnecessary.
v2: As dirty_pipes soon going to be nuked away
from skl_ddb_values, evacuating enabled_slices to safer in dev_priv.
v3: Changed "enabled_slices" to be "enabled_dbuf_slices_num"
(Matt Roper)
v4: - Wrapped the line getting number of dbuf slices(Matt Roper)
- Removed indeed redundant skl_ddb_values declaration(Matt Roper)
--- drivers/gpu/drm/i915/display/intel_display.c | 16 +++---- .../drm/i915/display/intel_display_power.c | 8 ++-- .../drm/i915/display/intel_display_types.h | 3 ++ drivers/gpu/drm/i915/i915_drv.h | 7 +-- drivers/gpu/drm/i915/intel_pm.c | 45 +++++++++---------- drivers/gpu/drm/i915/intel_pm.h | 5 +-- 6 files changed, 39 insertions(+), 45 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +7 -9
@@ -13312,14 +13312,13 @@ static void verify_wm_state(struct intel_crtc *crtc,struct skl_hw_state {struct skl_ddb_entry ddb_y[I915_MAX_PLANES ];struct skl_ddb_entry ddb_uv[I915_MAX_PLANES ]; -struct skl_ddb_allocation ddb;struct skl_pipe_wm wm; } *hw; -struct skl_ddb_allocation *sw_ddb;struct skl_pipe_wm *sw_wm;struct skl_ddb_entry *hw_ddb_entry, *sw_ddb_entry;const enum pipe pipe = crtc->pipe;int plane, level, max_level =ilk_wm_max_level (dev_priv); +u8 hw_enabled_slices;if (INTEL_GEN (dev_priv) <9 || !new_crtc_state->hw.active)return ;
@@ -13333,14 +13332,13 @@ static void verify_wm_state(struct intel_crtc *crtc,skl_pipe_ddb_get_hw_state (crtc, hw->ddb_y, hw->ddb_uv); -skl_ddb_get_hw_state (dev_priv, &hw->ddb); - sw_ddb = &dev_priv->wm.skl_hw.ddb; + hw_enabled_slices =intel_enabled_dbuf_slices_num (dev_priv);if (INTEL_GEN (dev_priv) >=11 && - hw->ddb.enabled_slices != sw_ddb->enabled_slices) + hw_enabled_slices != dev_priv->enabled_dbuf_slices_num)DRM_ERROR ("mismatch in DBUF Slices (expected %u, got %u)\n" , - sw_ddb->enabled_slices, - hw->ddb.enabled_slices); + dev_priv->enabled_dbuf_slices_num, + hw_enabled_slices);/* planes */ for_each_universal_plane (dev_priv, pipe, plane) {
@@ -14522,8 +14520,8 @@ static void skl_commit_modeset_enables(struct intel_atomic_state *state)struct drm_i915_private *dev_priv =to_i915 (state->base.dev);struct intel_crtc *crtc;struct intel_crtc_state *old_crtc_state, *new_crtc_state; -u8 hw_enabled_slices = dev_priv->wm.skl_hw.ddb.enabled_slices; -u8 required_slices = state->wm_results.ddb.enabled_slices; +u8 hw_enabled_slices = dev_priv->enabled_dbuf_slices_num; +u8 required_slices = state->enabled_dbuf_slices_num;struct skl_ddb_entry entries[I915_MAX_PIPES ] = {};u8 dirty_pipes =0 ;int i;
drivers/gpu/drm/i915/display/intel_display_power.c +4 -4
@@ -4406,7 +4406,7 @@ static u8 intel_dbuf_max_slices(struct drm_i915_private *dev_priv)void icl_dbuf_slices_update (struct drm_i915_private *dev_priv,u8 req_slices) { -const u8 hw_enabled_slices = dev_priv->wm.skl_hw.ddb.enabled_slices; +const u8 hw_enabled_slices = dev_priv->enabled_dbuf_slices_num;bool ret;if (req_slices >intel_dbuf_max_slices (dev_priv)) {
@@ -4423,7 +4423,7 @@ void icl_dbuf_slices_update(struct drm_i915_private *dev_priv, ret =intel_dbuf_slice_set (dev_priv,DBUF_CTL_S2 , false);if (ret) - dev_priv->wm.skl_hw.ddb.enabled_slices = req_slices; + dev_priv->enabled_dbuf_slices_num = req_slices; }static void icl_dbuf_enable (struct drm_i915_private *dev_priv)
@@ -4442,7 +4442,7 @@ static void icl_dbuf_enable(struct drm_i915_private *dev_priv)* FIXME: for now pretend that we only have 1 slice, see * intel_enabled_dbuf_slices_num(). */ - dev_priv->wm.skl_hw.ddb.enabled_slices =1 ; + dev_priv->enabled_dbuf_slices_num =1 ; }static void icl_dbuf_disable (struct drm_i915_private *dev_priv)
@@ -4461,7 +4461,7 @@ static void icl_dbuf_disable(struct drm_i915_private *dev_priv)* FIXME: for now pretend that the first slice is always * enabled, see intel_enabled_dbuf_slices_num(). */ - dev_priv->wm.skl_hw.ddb.enabled_slices =1 ; + dev_priv->enabled_dbuf_slices_num =1 ; }static void icl_mbus_init (struct drm_i915_private *dev_priv)
drivers/gpu/drm/i915/display/intel_display_types.h +3 -0
@@ -517,6 +517,9 @@ struct intel_atomic_state {/* Gen9+ only */ struct skl_ddb_values wm_results; +/* Number of enabled DBuf slices */ +u8 enabled_dbuf_slices_num; +struct i915_sw_fence commit_ready;struct llist_node freed;
drivers/gpu/drm/i915/i915_drv.h +2 -5
@@ -798,13 +798,8 @@ static inline bool skl_ddb_entry_equal(const struct skl_ddb_entry *e1,return false; } -struct skl_ddb_allocation { -u8 enabled_slices;/* GEN11 has configurable 2 slices */ -}; -struct skl_ddb_values {unsigned dirty_pipes; -struct skl_ddb_allocation ddb; };struct skl_wm_level {
@@ -1215,6 +1210,8 @@ struct drm_i915_private {bool distrust_bios_wm; } wm; +u8 enabled_dbuf_slices_num;/* GEN11 has configurable 2 slices */ +struct dram_info {bool valid;bool is_16gb_dimm;
drivers/gpu/drm/i915/intel_pm.c +21 -24
132 lines not on this page · raw message
drivers/gpu/drm/i915/intel_pm.h +2 -3
@@ -17,7 +17,6 @@ struct intel_atomic_state;struct intel_crtc ;struct intel_crtc_state ;struct intel_plane ; -struct skl_ddb_allocation ;struct skl_ddb_entry ;struct skl_pipe_wm ;struct skl_wm_level ;
@@ -33,11 +32,11 @@ void g4x_wm_get_hw_state(struct drm_i915_private *dev_priv);void vlv_wm_get_hw_state (struct drm_i915_private *dev_priv);void ilk_wm_get_hw_state (struct drm_i915_private *dev_priv);void skl_wm_get_hw_state (struct drm_i915_private *dev_priv); +u8 intel_enabled_dbuf_slices_num (struct drm_i915_private *dev_priv);void skl_pipe_ddb_get_hw_state (struct intel_crtc *crtc,struct skl_ddb_entry *ddb_y,struct skl_ddb_entry *ddb_uv); -void skl_ddb_get_hw_state (struct drm_i915_private *dev_priv, -struct skl_ddb_allocation *ddb/* out */ ); +void skl_ddb_get_hw_state (struct drm_i915_private *dev_priv);void skl_pipe_wm_get_hw_state (struct intel_crtc *crtc,struct skl_pipe_wm *out);void g4x_wm_sanitize (struct drm_i915_private *dev_priv);
Signature · 6 lines
2.24.1.485.gad05a3d8e5 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v10 2/4 drm/i915: Move dbuf slice update to proper place
In reply to Stanislav LisovskiyCurrent DBuf slices update wasn't done in proper place, especially its "post" part, which should disable those only once vblank had passed and all other changes are committed.
v2: Fix to use dev_priv and intel_atomic_state
instead of skl_ddb_values
(to be nuked in Villes patch)
v3: Renamed "enabled_slices" to "enabled_dbuf_slices_num"
(Matt Roper)
--- drivers/gpu/drm/i915/display/intel_display.c | 38 ++++++++++++++------ 1 file changed, 28 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +28 -10
@@ -14515,13 +14515,33 @@ static void intel_update_trans_port_sync_crtcs(struct intel_crtc *crtc, state); } +static void icl_dbuf_slice_pre_update (struct intel_atomic_state *state) +{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +u8 hw_enabled_slices = dev_priv->enabled_dbuf_slices_num; +u8 required_slices = state->enabled_dbuf_slices_num; + +/* If 2nd DBuf slice required, enable it here */ +if (INTEL_GEN (dev_priv) >=11 && required_slices > hw_enabled_slices) +icl_dbuf_slices_update (dev_priv, required_slices); +} + +static void icl_dbuf_slice_post_update (struct intel_atomic_state *state) +{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +u8 hw_enabled_slices = dev_priv->enabled_dbuf_slices_num; +u8 required_slices = state->enabled_dbuf_slices_num; + +/* If 2nd DBuf slice is no more required disable it */ +if (INTEL_GEN (dev_priv) >=11 && required_slices < hw_enabled_slices) +icl_dbuf_slices_update (dev_priv, required_slices); +} +static void skl_commit_modeset_enables (struct intel_atomic_state *state) {struct drm_i915_private *dev_priv =to_i915 (state->base.dev);struct intel_crtc *crtc;struct intel_crtc_state *old_crtc_state, *new_crtc_state; -u8 hw_enabled_slices = dev_priv->enabled_dbuf_slices_num; -u8 required_slices = state->enabled_dbuf_slices_num;struct skl_ddb_entry entries[I915_MAX_PIPES ] = {};u8 dirty_pipes =0 ;int i;
@@ -14534,10 +14554,6 @@ static void skl_commit_modeset_enables(struct intel_atomic_state *state) dirty_pipes |=BIT (crtc->pipe); } -/* If 2nd DBuf slice required, enable it here */ -if (INTEL_GEN (dev_priv) >=11 && required_slices > hw_enabled_slices) -icl_dbuf_slices_update (dev_priv, required_slices); -/* * Whenever the number of active pipes changes, we need to make sure we * update the pipes in the right order so that their ddb allocations
@@ -14586,10 +14602,6 @@ static void skl_commit_modeset_enables(struct intel_atomic_state *state)intel_wait_for_vblank (dev_priv, pipe); } } - -/* If 2nd DBuf slice is no more required disable it */ -if (INTEL_GEN (dev_priv) >=11 && required_slices < hw_enabled_slices) -icl_dbuf_slices_update (dev_priv, required_slices); }static void intel_atomic_helper_free_state (struct drm_i915_private *dev_priv)
@@ -14719,6 +14731,9 @@ static void intel_atomic_commit_tail(struct intel_atomic_state *state)if (state->modeset)intel_encoders_update_prepare (state); +/* Enable all new slices, we might need */ +icl_dbuf_slice_pre_update (state); +/* Now enable the clocks, plane, pipe, and connectors that we set up. */ dev_priv->display.commit_modeset_enables (state);
@@ -14794,6 +14809,9 @@ static void intel_atomic_commit_tail(struct intel_atomic_state *state)if (state->modeset &&intel_can_enable_sagv (state))intel_enable_sagv (dev_priv); +/* Disable all slices, we don't need */ +icl_dbuf_slice_post_update (state); +drm_atomic_helper_commit_hw_done (&state->base);if (state->modeset) {
Signature · 6 lines
2.24.1.485.gad05a3d8e5 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v10 3/4 drm/i915: Manipulate DBuf slices properly
In reply to Stanislav LisovskiyStart manipulating DBuf slices as a mask, but not as a total number, as current approach doesn't give us full control on all combinations of slices, which we might need(like enabling S2 only can't enabled by setting enabled_slices=1).
Removed wrong code from intel_get_ddb_size as it doesn't match to BSpec. For now still just use DBuf slice until proper algorithm is implemented.
Other minor code refactoring to get prepared for major DBuf assignment changes landed:
- As now enabled slices contain a mask we still need some value which should reflect how much DBuf slices are supported by the platform, now device info contains num_supported_dbuf_slices.
- Removed unneeded assertion as we are now manipulating slices in a more proper way.
v2: Start using enabled_slices in dev_priv
v3: "enabled_slices" is now "enabled_dbuf_slices_mask",
as this now sits in dev_priv independently.
v4: - Fixed debug print formatting to hex(Matt Roper)
- Optimized dbuf slice updates to be used only
if slice union is different from current conf(Matt Roper)
- Fixed some functions to be static(Matt Roper)
- Created a parameterized version for DBUF_CTL to simplify DBuf programming cycle(Matt Roper)
- Removed unrequred field from GEN10_FEATURES(Matt Roper)
v5: - Removed redundant programming dbuf slices helper(Ville Syrjälä)
- Started to use parameterized loop for hw readout to get slices (Ville Syrjälä)
- Added back assertion checking amount of DBUF slices enabled after DC states 5/6 transition, also added new assertion as starting from ICL DMC seems to restore the last DBuf power state set, rather than power up all dbuf slices as assertion was previously expecting(Ville Syrjälä)
--- drivers/gpu/drm/i915/display/intel_display.c | 23 ++--- .../drm/i915/display/intel_display_power.c | 94 +++++++++---------- .../drm/i915/display/intel_display_power.h | 4 + .../drm/i915/display/intel_display_types.h | 2 +- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_pci.c | 5 +- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_device_info.h | 1 + drivers/gpu/drm/i915/intel_pm.c | 51 +++------- drivers/gpu/drm/i915/intel_pm.h | 2 +- 10 files changed, 83 insertions(+), 102 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +12 -11
@@ -13332,12 +13332,12 @@ static void verify_wm_state(struct intel_crtc *crtc,skl_pipe_ddb_get_hw_state (crtc, hw->ddb_y, hw->ddb_uv); - hw_enabled_slices =intel_enabled_dbuf_slices_num (dev_priv); + hw_enabled_slices =intel_enabled_dbuf_slices_mask (dev_priv);if (INTEL_GEN (dev_priv) >=11 && - hw_enabled_slices != dev_priv->enabled_dbuf_slices_num) -DRM_ERROR ("mismatch in DBUF Slices (expected %u, got %u)\n" , - dev_priv->enabled_dbuf_slices_num, + hw_enabled_slices != dev_priv->enabled_dbuf_slices_mask) +DRM_ERROR ("mismatch in DBUF Slices (expected 0x%x, got 0x%x)\n" , + dev_priv->enabled_dbuf_slices_mask, hw_enabled_slices);/* planes */
@@ -14518,22 +14518,23 @@ static void intel_update_trans_port_sync_crtcs(struct intel_crtc *crtc,static void icl_dbuf_slice_pre_update (struct intel_atomic_state *state) {struct drm_i915_private *dev_priv =to_i915 (state->base.dev); -u8 hw_enabled_slices = dev_priv->enabled_dbuf_slices_num; -u8 required_slices = state->enabled_dbuf_slices_num; +u8 hw_enabled_slices = dev_priv->enabled_dbuf_slices_mask; +u8 required_slices = state->enabled_dbuf_slices_mask; +u8 slices_union = hw_enabled_slices | required_slices;/* If 2nd DBuf slice required, enable it here */ -if (INTEL_GEN (dev_priv) >=11 && required_slices > hw_enabled_slices) -icl_dbuf_slices_update (dev_priv, required_slices); +if (INTEL_GEN (dev_priv) >=11 && slices_union != hw_enabled_slices) +icl_dbuf_slices_update (dev_priv, slices_union); }static void icl_dbuf_slice_post_update (struct intel_atomic_state *state) {struct drm_i915_private *dev_priv =to_i915 (state->base.dev); -u8 hw_enabled_slices = dev_priv->enabled_dbuf_slices_num; -u8 required_slices = state->enabled_dbuf_slices_num; +u8 hw_enabled_slices = dev_priv->enabled_dbuf_slices_mask; +u8 required_slices = state->enabled_dbuf_slices_mask;/* If 2nd DBuf slice is no more required disable it */ -if (INTEL_GEN (dev_priv) >=11 && required_slices < hw_enabled_slices) +if (INTEL_GEN (dev_priv) >=11 && required_slices != hw_enabled_slices)icl_dbuf_slices_update (dev_priv, required_slices); }
drivers/gpu/drm/i915/display/intel_display_power.c +43 -51
136 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_display_power.h +4 -0
@@ -311,8 +311,12 @@ intel_display_power_put_async(struct drm_i915_private *i915,for ((wf) =intel_display_power_get ((i915), (domain)); (wf); \ intel_display_power_put_async((i915), (domain), (wf)), (wf) = 0) +#define DBUF_S1_BIT BIT(0) +#define DBUF_S2_BIT BIT(1) +void icl_dbuf_slices_update (struct drm_i915_private *dev_priv,u8 req_slices); +int intel_dbuf_max_slices (struct drm_i915_private *dev_priv);void chv_phy_powergate_lanes (struct intel_encoder *encoder,bool override,unsigned int mask);
drivers/gpu/drm/i915/display/intel_display_types.h +1 -1
@@ -518,7 +518,7 @@ struct intel_atomic_state {struct skl_ddb_values wm_results;/* Number of enabled DBuf slices */ -u8 enabled_dbuf_slices_num; +u8 enabled_dbuf_slices_mask;struct i915_sw_fence commit_ready;
drivers/gpu/drm/i915/i915_drv.h +1 -1
@@ -1210,7 +1210,7 @@ struct drm_i915_private {bool distrust_bios_wm; } wm; -u8 enabled_dbuf_slices_num;/* GEN11 has configurable 2 slices */ +u8 enabled_dbuf_slices_mask;/* GEN11 has configurable 2 slices */ struct dram_info {bool valid;
drivers/gpu/drm/i915/i915_pci.c +4 -1
@@ -615,7 +615,8 @@ static const struct intel_device_info intel_cherryview_info = { .has_gt_uc = 1, \ .display.has_hdcp = 1, \ .display.has_ipc = 1, \ - .ddb_size = 896 + .ddb_size = 896, \ + .num_supported_dbuf_slices = 1#define SKL_PLATFORM \ GEN9_FEATURES, \
@@ -650,6 +651,7 @@ static const struct intel_device_info intel_skylake_gt4_info = {#define GEN9_LP_FEATURES \ GEN(9), \ .is_lp = 1, \ + .num_supported_dbuf_slices = 1, \ .display.has_hotplug = 1, \ .engine_mask = BIT(RCS0) | BIT(VCS0) | BIT(BCS0) | BIT(VECS0), \ .pipe_mask = BIT(PIPE_A) | BIT(PIPE_B) | BIT(PIPE_C), \
@@ -774,6 +776,7 @@ static const struct intel_device_info intel_cannonlake_info = { }, \ GEN(11), \ .ddb_size = 2048, \ + .num_supported_dbuf_slices = 2, \ .has_logical_ring_elsq = 1, \ .color = { .degamma_lut_size = 33, .gamma_lut_size = 262145 }
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -7760,6 +7760,7 @@ enum {#define DBUF_CTL _MMIO(0x45008)#define DBUF_CTL_S1 _MMIO(0x45008)#define DBUF_CTL_S2 _MMIO(0x44FE8) +#define DBUF_CTL_S (X ) ((X) == 1 ? DBUF_CTL_S1 : DBUF_CTL_S2)#define DBUF_POWER_REQUEST (1 << 31)#define DBUF_POWER_STATE (1 << 30)#define GEN7_MSG_CTL _MMIO(0x45010)
drivers/gpu/drm/i915/intel_device_info.h +1 -0
@@ -180,6 +180,7 @@ struct intel_device_info { } display;u16 ddb_size;/* in blocks */ +u8 num_supported_dbuf_slices;/* number of DBuf slices */ /* Register offsets for the various display pipes and transcoders */ int pipe_offsets[I915_MAX_TRANSCODERS ];
drivers/gpu/drm/i915/intel_pm.c +15 -36
87 lines not on this page · raw message
drivers/gpu/drm/i915/intel_pm.h +1 -1
@@ -32,7 +32,7 @@ void g4x_wm_get_hw_state(struct drm_i915_private *dev_priv);void vlv_wm_get_hw_state (struct drm_i915_private *dev_priv);void ilk_wm_get_hw_state (struct drm_i915_private *dev_priv);void skl_wm_get_hw_state (struct drm_i915_private *dev_priv); -u8 intel_enabled_dbuf_slices_num (struct drm_i915_private *dev_priv); +u8 intel_enabled_dbuf_slices_mask (struct drm_i915_private *dev_priv);void skl_pipe_ddb_get_hw_state (struct intel_crtc *crtc,struct skl_ddb_entry *ddb_y,struct skl_ddb_entry *ddb_uv);
Signature · 6 lines
2.24.1.485.gad05a3d8e5 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v10 4/4 drm/i915: Correctly map DBUF slices to pipes
In reply to Stanislav LisovskiyAdded proper DBuf slice mapping to correspondent
pipes, depending on pipe configuration as stated
in BSpec.
v2:
- Remove unneeded braces
- Stop using macro for DBuf assignments as
it seems to reduce readability.
v3: Start using enabled slices mask in dev_priv
v4: Renamed "enabled_slices" used in dev_priv
to "enabled_dbuf_slices_mask"(Matt Roper)
v5: - Removed redundant parameters from
intel_get_ddb_size function.(Matt Roper)
- Made i915_possible_dbuf_slices static(Matt Roper)
- Renamed total_width into total_width_in_range so that it now reflects that this is not a total pipe width but the one in current dbuf slice allowed range for pipe.(Matt Roper)
- Removed 4th pipe for ICL in DBuf assignment table(Matt Roper)
- Fixed wrong DBuf slice in DBuf table for TGL (Matt Roper)
- Added comment regarding why we currently not using pipe ratio for DBuf assignment for ICL
v6: - Changed u32 to unsigned int in
icl_get_first_dbuf_slice_offset function signature (Ville Syrjälä)
- Changed also u32 to u8 in dbuf slice mask structure (Ville Syrjälä)
- Switched from DBUF_S1_BIT to enum + explicit BIT(DBUF_S1) access(Ville Syrjälä)
- Switched to named initializers in DBuf assignment arrays(Ville Syrjälä)
- DBuf assignment arrays now use autogeneration tool from
https://patchwork.freedesktop.org/series/70493/
to avoid typos.
- Renamed i915_find_pipe_conf to *_compute_dbuf_slices (Ville Syrjälä)
- Changed platforms ordering in skl_compute_dbuf_slices to be from newest to oldest(Ville Syrjälä)
--- .../drm/i915/display/intel_display_power.c | 2 +- .../drm/i915/display/intel_display_power.h | 8 +- drivers/gpu/drm/i915/intel_pm.c | 387 +++++++++++++++++- drivers/gpu/drm/i915/intel_pm.h | 2 + 4 files changed, 376 insertions(+), 23 deletions(-)
drivers/gpu/drm/i915/display/intel_display_power.c +1 -1
@@ -4443,7 +4443,7 @@ static void icl_dbuf_enable(struct drm_i915_private *dev_priv)* Just power up 1 slice, we will * figure out later which slices we have and what we need. */ - dev_priv->enabled_dbuf_slices_mask =DBUF_S1_BIT ; + dev_priv->enabled_dbuf_slices_mask =BIT (DBUF_S1 );icl_dbuf_slices_update (dev_priv, dev_priv->enabled_dbuf_slices_mask); }
drivers/gpu/drm/i915/display/intel_display_power.h +5 -3
@@ -307,13 +307,15 @@ intel_display_power_put_async(struct drm_i915_private *i915, }#endif +enum dbuf_slice { +DBUF_S1 , +DBUF_S2 +}; +#define with_intel_display_power (i915, domain, wf) \ for ((wf) = intel_display_power_get((i915), (domain)); (wf); \ intel_display_power_put_async((i915), (domain), (wf)), (wf) = 0) -#define DBUF_S1_BIT BIT(0) -#define DBUF_S2_BIT BIT(1) -void icl_dbuf_slices_update (struct drm_i915_private *dev_priv,u8 req_slices);int intel_dbuf_max_slices (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/intel_pm.c +368 -19
458 lines not on this page · raw message
drivers/gpu/drm/i915/intel_pm.h +2 -0
@@ -57,6 +57,8 @@ bool ilk_disable_lp_wm(struct drm_i915_private *dev_priv);void intel_init_ipc (struct drm_i915_private *dev_priv);void intel_enable_ipc (struct drm_i915_private *dev_priv); +int intel_dbuf_max_slices (struct drm_i915_private *dev_priv); +bool intel_set_memory_cxsr (struct drm_i915_private *dev_priv,bool enable);#endif /* __INTEL_PM_H__ */
Signature · 6 lines
2.24.1.485.gad05a3d8e5 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Enable second DBuf slice for ICL and TGL (rev11)
In reply to Stanislav Lisovskiy== Series Details ==
== Series Details ==
Series: Enable second DBuf slice for ICL and TGL (rev11)
URL : https://patchwork.freedesktop.org/series/70059/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip a1aa6331b13f drm/i915: Remove skl_ddl_allocation struct d2d900d8860c drm/i915: Move dbuf slice update to proper place b0f2bab1a82d drm/i915: Manipulate DBuf slices properly 2a5ed9f339c2 drm/i915: Correctly map DBUF slices to pipes -:365: CHECK:LINE_SPACING: Please don't use multiple blank lines #365: FILE: drivers/gpu/drm/i915/intel_pm.c:4252: + +
-:539: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #539: FILE: drivers/gpu/drm/i915/intel_pm.c:4426:
+static u8 skl_compute_dbuf_slices(const struct intel_crtc_state *crtc_state,
+ u32 active_pipes)
total: 0 errors, 0 warnings, 2 checks, 492 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for Enable second DBuf slice for ICL and TGL (rev11)
In reply to Stanislav Lisovskiy== Series Details ==
== Series Details ==
Series: Enable second DBuf slice for ICL and TGL (rev11)
URL : https://patchwork.freedesktop.org/series/70059/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_7628 -> Patchwork_15894
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_15894 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_15894, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_15894:
### IGT changes ###
#### Possible regressions ####
* igt@i915_module_load@reload-with-fault-injection:
- fi-skl-6600u: NOTRUN -> [DMESG-WARN][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/fi-skl-6600u/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-skl-6600u: NOTRUN -> [FAIL][2]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/fi-skl-6600u/igt@[email protected]
* igt@i915_selftest@live_gt_lrc:
- fi-bwr-2160: NOTRUN -> [FAIL][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/fi-bwr-2160/igt@i915_selftest@live_gt_lrc.html
Known issues
------------
Here are the changes found in Patchwork_15894 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_module_load@reload-with-fault-injection:
- fi-cfl-guc: [PASS][4] -> [INCOMPLETE][5] ([i915#505] / [i915#671])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7628/fi-cfl-guc/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/fi-cfl-guc/igt@[email protected]
* igt@i915_selftest@live_blt:
- fi-hsw-4770: [PASS][6] -> [DMESG-FAIL][7] ([i915#553] / [i915#725])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7628/fi-hsw-4770/igt@i915_selftest@live_blt.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/fi-hsw-4770/igt@i915_selftest@live_blt.html
* igt@i915_selftest@live_execlists:
- fi-kbl-soraka: [PASS][8] -> [DMESG-FAIL][9] ([i915#656])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7628/fi-kbl-soraka/igt@i915_selftest@live_execlists.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/fi-kbl-soraka/igt@i915_selftest@live_execlists.html
#### Possible fixes ####
* igt@gem_close_race@basic-threads:
- {fi-tgl-guc}: [INCOMPLETE][10] ([i915#435]) -> [PASS][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7628/fi-tgl-guc/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/fi-tgl-guc/igt@[email protected]
* igt@i915_module_load@reload-with-fault-injection:
- fi-bxt-dsi: [INCOMPLETE][12] ([fdo#103927]) -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7628/fi-bxt-dsi/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/fi-bxt-dsi/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][14] ([fdo#111407]) -> [PASS][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7628/fi-kbl-7500u/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/fi-kbl-7500u/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [DMESG-WARN][16] ([i915#44]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7628/fi-hsw-peppy/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/fi-hsw-peppy/igt@[email protected]
#### Warnings ####
* igt@gem_exec_suspend@basic-s4-devices:
- fi-kbl-x1275: [DMESG-WARN][18] ([fdo#107139] / [i915#62] / [i915#92]) -> [DMESG-WARN][19] ([fdo#107139] / [i915#62] / [i915#92] / [i915#95])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7628/fi-kbl-x1275/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/fi-kbl-x1275/igt@[email protected]
* igt@kms_cursor_legacy@basic-flip-after-cursor-varying-size:
- fi-kbl-x1275: [DMESG-WARN][20] ([i915#62] / [i915#92]) -> [DMESG-WARN][21] ([i915#62] / [i915#92] / [i915#95]) +2 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7628/fi-kbl-x1275/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/fi-kbl-x1275/igt@[email protected]
* igt@kms_flip@basic-flip-vs-modeset:
- fi-kbl-x1275: [DMESG-WARN][22] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][23] ([i915#62] / [i915#92]) +5 similar issues
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7628/fi-kbl-x1275/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/fi-kbl-x1275/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#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#107139]: https://bugs.freedesktop.org/show_bug.cgi?id=107139
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
[i915#435]: https://gitlab.freedesktop.org/drm/intel/issues/435
[i915#44]: https://gitlab.freedesktop.org/drm/intel/issues/44
[i915#505]: https://gitlab.freedesktop.org/drm/intel/issues/505
[i915#553]: https://gitlab.freedesktop.org/drm/intel/issues/553
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#656]: https://gitlab.freedesktop.org/drm/intel/issues/656
[i915#671]: https://gitlab.freedesktop.org/drm/intel/issues/671
[i915#725]: https://gitlab.freedesktop.org/drm/intel/issues/725
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (44 -> 43)
------------------------------
Additional (7): fi-bsw-n3050 fi-bwr-2160 fi-ivb-3770 fi-elk-e7500 fi-tgl-y fi-skl-6600u fi-snb-2600
Missing (8): fi-hsw-4770r fi-ilk-m540 fi-tgl-u fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-n2820
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7628 -> Patchwork_15894
CI-20190529: 20190529
CI_DRM_7628: 22f0a3a9b0f332ef75988890b7f1d5881588a1dd @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5352: 0586d205f651674e575351c2d5a7d0760716c9f1 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_15894: 2a5ed9f339c27003a5746cfa0fc8643c5e06b32b @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
2a5ed9f339c2 drm/i915: Correctly map DBUF slices to pipes b0f2bab1a82d drm/i915: Manipulate DBuf slices properly d2d900d8860c drm/i915: Move dbuf slice update to proper place a1aa6331b13f drm/i915: Remove skl_ddl_allocation struct
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15894/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx