drm/i915: Don't do the WM0->WM1 copy w/a if WM1 is already enabled
Subsystems (3)
PATCH 1/4 drm/i915: Don't do the WM0->WM1 copy w/a if WM1 is already enabled
From: Ville Syrjälä <[email protected]>
Due to a workaround we have to make sure the WM1 watermarks block/lines values are sensible even when WM1 is disabled. To that end we copy those values from WM0.
However since we now keep each wm level enabled on a per-plane basis it doesn't seem necessary to do that copy when we already have an enabled WM1 on the current plane. That is, we might be in a situation where another plane can only do WM0 (and thus needs the copy) but the current plane's WM1 is still perfectly valid (ie. fits into the current DDB allocation).
Skipping the copy could avoid reprogramming the plane's registers needlessly in some cases.
--- drivers/gpu/drm/i915/display/skl_watermark.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/skl_watermark.c +2 -1
@@ -1586,7 +1586,8 @@ skl_crtc_allocate_plane_ddb(struct intel_atomic_state *state,skl_check_wm_level (&wm->wm[level], ddb);if (icl_need_wm1_wa (i915, plane_id) && - level ==1 && wm->wm[0 ].enable) { + level ==1 && !wm->wm[level].enable && + wm->wm[0 ].enable) { wm->wm[level].blocks = wm->wm[0 ].blocks; wm->wm[level].lines = wm->wm[0 ].lines; wm->wm[level].ignore_lines = wm->wm[0 ].ignore_lines;
Signature · 1 line
2.39.1
PATCH 2/4 drm/i915: Introduce HAS_SAGV()
From: Ville Syrjälä <[email protected]>
Introuce a HAS_SAGV() macro to answer the question whether the platform in general supports SAGV. intel_has_sagv() will keep on giving us the more specific answer whether the current device supports SAGV or not.
--- drivers/gpu/drm/i915/display/skl_watermark.c | 6 +++--- drivers/gpu/drm/i915/i915_drv.h | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/skl_watermark.c +3 -3
@@ -64,7 +64,7 @@ static bool skl_needs_memory_bw_wa(struct drm_i915_private *i915)static bool intel_has_sagv (struct drm_i915_private *i915) { -return DISPLAY_VER (i915) >=9 && !IS_LP (i915) && +return HAS_SAGV (i915) && i915->display.sagv.status !=I915_SAGV_NOT_CONTROLLED ; }
@@ -92,7 +92,7 @@ intel_sagv_block_time(struct drm_i915_private *i915)return val; }else if (DISPLAY_VER (i915) ==11 ) {return 10 ; - }else if (DISPLAY_VER (i915) ==9 && !IS_LP (i915)) { + }else if (HAS_SAGV (i915)) {return 30 ; }else {return 0 ;
@@ -101,7 +101,7 @@ intel_sagv_block_time(struct drm_i915_private *i915)static void intel_sagv_init (struct drm_i915_private *i915) { -if (!intel_has_sagv (i915)) +if (!HAS_SAGV (i915)) i915->display.sagv.status =I915_SAGV_NOT_CONTROLLED ;/*
drivers/gpu/drm/i915/i915_drv.h +2 -1
@@ -863,7 +863,8 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,*/ #define HAS_64K_PAGES (dev_priv) (INTEL_INFO(dev_priv)->has_64k_pages) -#define HAS_IPC (dev_priv) (INTEL_INFO(dev_priv)->display.has_ipc) +#define HAS_IPC (dev_priv) (INTEL_INFO(dev_priv)->display.has_ipc) +#define HAS_SAGV (dev_priv) (DISPLAY_VER(dev_priv) >= 9 && !IS_LP(dev_priv))#define HAS_REGION (i915, i) (RUNTIME_INFO(i915)->memory_regions & (i))#define HAS_LMEM (i915) HAS_REGION(i915, REGION_LMEM)
Signature · 1 line
2.39.1
Re: [Intel-gfx] [PATCH 2/4] drm/i915: Introduce HAS_SAGV()
Quoted 8 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Introuce a
HAS_SAGV()macro to answer the question whether the platform in general supports SAGV.intel_has_sagv()will keep on giving us the more specific answer whether the current device supports SAGV or not.Signed-off-by Ville Syrjälä <[email protected]>
Quoted 50 lines
--- drivers/gpu/drm/i915/display/skl_watermark.c | 6 +++--- drivers/gpu/drm/i915/i915_drv.h | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/skl_watermark.c +3
-3@@ -64,7 +64,7 @@ static bool skl_needs_memory_bw_wa(struct drm_i915_private *i915)static bool intel_has_sagv (struct drm_i915_private *i915) { -return DISPLAY_VER (i915) >=9 && !IS_LP (i915) && +return HAS_SAGV (i915) && i915->display.sagv.status !=I915_SAGV_NOT_CONTROLLED ; }@@ -92,7 +92,7 @@ intel_sagv_block_time(struct drm_i915_private *i915)return val; }else if (DISPLAY_VER (i915) ==11 ) {return 10 ; - }else if (DISPLAY_VER (i915) ==9 && !IS_LP (i915)) { + }else if (HAS_SAGV (i915)) {return 30 ; }else {return 0 ;@@ -101,7 +101,7 @@ intel_sagv_block_time(struct drm_i915_private *i915)static void intel_sagv_init (struct drm_i915_private *i915) { -if (!intel_has_sagv (i915)) +if (!HAS_SAGV (i915)) i915->display.sagv.status =I915_SAGV_NOT_CONTROLLED ;/* drivers/gpu/drm/i915/i915_drv.h +2
-1@@ -863,7 +863,8 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,*/ #define HAS_64K_PAGES (dev_priv) (INTEL_INFO(dev_priv)->has_64k_pages) -#define HAS_IPC (dev_priv) (INTEL_INFO(dev_priv)->display.has_ipc) +#define HAS_IPC (dev_priv) (INTEL_INFO(dev_priv)->display.has_ipc) +#define HAS_SAGV (dev_priv) (DISPLAY_VER(dev_priv) >= 9 && !IS_LP(dev_priv))#define HAS_REGION (i915, i) (RUNTIME_INFO(i915)->memory_regions & (i))#define HAS_LMEM (i915) HAS_REGION(i915, REGION_LMEM)
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH 3/4 drm/i915: Keep sagv status updated on icl+
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
On icl+ SAGV is controlled by masking of the QGV points. Reduce the QGV point mask to the same kind of enabled vs. disable information that we had on previous platforms. Will be useful in answering the question whether SAGV is actually enabled or not.
--- drivers/gpu/drm/i915/display/intel_bw.c | 49 +++++++++++++++---------- 1 file changed, 29 insertions(+), 20 deletions(-)
drivers/gpu/drm/i915/display/intel_bw.c +29 -20
@@ -119,6 +119,32 @@ static int adls_pcode_read_psf_gv_point_info(struct drm_i915_private *dev_priv,return 0 ; } +static u16 icl_qgv_points_mask (struct drm_i915_private *i915) +{ +unsigned int num_psf_gv_points = i915->display.bw.max[0 ].num_psf_gv_points; +unsigned int num_qgv_points = i915->display.bw.max[0 ].num_qgv_points; +u16 qgv_points =0 , psf_points =0 ; + +/* +* We can _not_ use the whole ADLS_QGV_PT_MASK here, as PCode rejects +* it with failure if we try masking any unadvertised points. +* So need to operate only with those returned from PCode. +*/ +if (num_qgv_points >0 ) + qgv_points =GENMASK (num_qgv_points -1 ,0 ); + +if (num_psf_gv_points >0 ) + psf_points =GENMASK (num_psf_gv_points -1 ,0 ); + +return ICL_PCODE_REQ_QGV_PT (qgv_points) |ADLS_PCODE_REQ_PSF_PT (psf_points); +} + +static bool is_sagv_enabled (struct drm_i915_private *i915,u16 points_mask) +{ +return !is_power_of_2 (~points_mask &icl_qgv_points_mask (i915) & +ICL_PCODE_REQ_QGV_PT_MASK ); +} +int icl_pcode_restrict_qgv_points (struct drm_i915_private *dev_priv,u32 points_mask) {
@@ -136,6 +162,9 @@ int icl_pcode_restrict_qgv_points(struct drm_i915_private *dev_priv,return ret; } + dev_priv->display.sagv.status =is_sagv_enabled (dev_priv, points_mask) ? +I915_SAGV_ENABLED :I915_SAGV_DISABLED ; +return 0 ; }
@@ -965,26 +994,6 @@ int intel_bw_calc_min_cdclk(struct intel_atomic_state *state,return 0 ; } -static u16 icl_qgv_points_mask (struct drm_i915_private *i915) -{ -unsigned int num_psf_gv_points = i915->display.bw.max[0 ].num_psf_gv_points; -unsigned int num_qgv_points = i915->display.bw.max[0 ].num_qgv_points; -u16 qgv_points =0 , psf_points =0 ; - -/* -* We can _not_ use the whole ADLS_QGV_PT_MASK here, as PCode rejects -* it with failure if we try masking any unadvertised points. -* So need to operate only with those returned from PCode. -*/ -if (num_qgv_points >0 ) - qgv_points =GENMASK (num_qgv_points -1 ,0 ); - -if (num_psf_gv_points >0 ) - psf_points =GENMASK (num_psf_gv_points -1 ,0 ); - -return ICL_PCODE_REQ_QGV_PT (qgv_points) |ADLS_PCODE_REQ_PSF_PT (psf_points); -} -static int intel_bw_check_data_rate (struct intel_atomic_state *state,bool *changed) {struct drm_i915_private *i915 =to_i915 (state->base.dev);
Signature · 1 line
2.39.1
Re: [Intel-gfx] [PATCH 3/4] drm/i915: Keep sagv status updated on icl+
Quoted 9 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
On icl+ SAGV is controlled by masking of the QGV points. Reduce the QGV point mask to the same kind of enabled vs. disable information that we had on previous platforms. Will be useful in answering the question whether SAGV is actually enabled or not.
Signed-off-by Ville Syrjälä <[email protected]>
Quoted 81 lines
--- drivers/gpu/drm/i915/display/intel_bw.c | 49 +++++++++++++++---------- 1 file changed, 29 insertions(+), 20 deletions(-)drivers/gpu/drm/i915/display/intel_bw.c +29
-20@@ -119,6 +119,32 @@ static int adls_pcode_read_psf_gv_point_info(struct drm_i915_private *dev_priv,return 0 ; } +static u16 icl_qgv_points_mask (struct drm_i915_private *i915) +{ +unsigned int num_psf_gv_points = i915->display.bw.max[0 ].num_psf_gv_points; +unsigned int num_qgv_points = i915->display.bw.max[0 ].num_qgv_points; +u16 qgv_points =0 , psf_points =0 ; + +/* +* We can _not_ use the whole ADLS_QGV_PT_MASK here, as PCode rejects +* it with failure if we try masking any unadvertised points. +* So need to operate only with those returned from PCode. +*/ +if (num_qgv_points >0 ) + qgv_points =GENMASK (num_qgv_points -1 ,0 ); + +if (num_psf_gv_points >0 ) + psf_points =GENMASK (num_psf_gv_points -1 ,0 ); + +return ICL_PCODE_REQ_QGV_PT (qgv_points) |ADLS_PCODE_REQ_PSF_PT (psf_points); +} + +static bool is_sagv_enabled (struct drm_i915_private *i915,u16 points_mask) +{ +return !is_power_of_2 (~points_mask &icl_qgv_points_mask (i915) & +ICL_PCODE_REQ_QGV_PT_MASK ); +} +int icl_pcode_restrict_qgv_points (struct drm_i915_private *dev_priv,u32 points_mask) {@@ -136,6 +162,9 @@ int icl_pcode_restrict_qgv_points(struct drm_i915_private *dev_priv,return ret; } + dev_priv->display.sagv.status =is_sagv_enabled (dev_priv, points_mask) ? +I915_SAGV_ENABLED :I915_SAGV_DISABLED ; +return 0 ; }@@ -965,26 +994,6 @@ int intel_bw_calc_min_cdclk(struct intel_atomic_state *state,return 0 ; } -static u16 icl_qgv_points_mask (struct drm_i915_private *i915) -{ -unsigned int num_psf_gv_points = i915->display.bw.max[0 ].num_psf_gv_points; -unsigned int num_qgv_points = i915->display.bw.max[0 ].num_qgv_points; -u16 qgv_points =0 , psf_points =0 ; - -/* -* We can _not_ use the whole ADLS_QGV_PT_MASK here, as PCode rejects -* it with failure if we try masking any unadvertised points. -* So need to operate only with those returned from PCode. -*/ -if (num_qgv_points >0 ) - qgv_points =GENMASK (num_qgv_points -1 ,0 ); - -if (num_psf_gv_points >0 ) - psf_points =GENMASK (num_psf_gv_points -1 ,0 ); - -return ICL_PCODE_REQ_QGV_PT (qgv_points) |ADLS_PCODE_REQ_PSF_PT (psf_points); -} -static int intel_bw_check_data_rate (struct intel_atomic_state *state,bool *changed) {struct drm_i915_private *i915 =to_i915 (state->base.dev);Signature · 1 line
2.39.1
PATCH 4/4 drm/i915: Expose SAGV state via debugfs
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Since SAGV is controlled via unidirectional pcode commands we have no way to query the current state. So instead let's expose the last programmed state via debugfs. This way we can at least know whether SAGV should be enabled or not (which can be important to know when dealing with underruns/etc.).
--- .../drm/i915/display/intel_display_debugfs.c | 2 +- drivers/gpu/drm/i915/display/skl_watermark.c | 31 ++++++++++++++++--- drivers/gpu/drm/i915/display/skl_watermark.h | 2 +- 3 files changed, 28 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/display/intel_display_debugfs.c +1 -1
@@ -1622,7 +1622,7 @@ void intel_display_debugfs_register(struct drm_i915_private *i915)intel_dmc_debugfs_register (i915);intel_fbc_debugfs_register (i915);intel_hpd_debugfs_register (i915); -skl_watermark_ipc_debugfs_register (i915); +skl_watermark_debugfs_register (i915); }static int i915_panel_show (struct seq_file *m,void *data)
drivers/gpu/drm/i915/display/skl_watermark.c +26 -5
@@ -3545,13 +3545,34 @@ static const struct file_operations skl_watermark_ipc_status_fops = { .write = skl_watermark_ipc_status_write }; -void skl_watermark_ipc_debugfs_register (struct drm_i915_private *i915) +static int intel_sagv_status_show (struct seq_file *m,void *unused) +{ +struct drm_i915_private *i915 = m->private; +static const char *const sagv_status[] = { + [I915_SAGV_UNKNOWN ] ="unknown" , + [I915_SAGV_DISABLED ] ="disabled" , + [I915_SAGV_ENABLED ] ="enabled" , + [I915_SAGV_NOT_CONTROLLED ] ="not controlled" , + }; + +seq_printf (m,"SAGV available: %s\n" ,str_yes_no (intel_has_sagv (i915))); +seq_printf (m,"SAGV status: %s\n" , sagv_status[i915->display.sagv.status]); +seq_printf (m,"SAGV block time: %d usec\n" , i915->display.sagv.block_time_us); + +return 0 ; +} + +DEFINE_SHOW_ATTRIBUTE (intel_sagv_status); + +void skl_watermark_debugfs_register (struct drm_i915_private *i915) {struct drm_minor *minor = i915->drm.primary; -if (!HAS_IPC (i915)) -return ; +if (HAS_IPC (i915)) +debugfs_create_file ("i915_ipc_status" ,0644 , minor->debugfs_root, i915, + &skl_watermark_ipc_status_fops); -debugfs_create_file ("i915_ipc_status" ,0644 , minor->debugfs_root, i915, - &skl_watermark_ipc_status_fops); +if (HAS_SAGV (i915)) +debugfs_create_file ("i915_sagv_status" ,0444 , minor->debugfs_root, i915, + &intel_sagv_status_fops); }
drivers/gpu/drm/i915/display/skl_watermark.h +1 -1
@@ -47,7 +47,7 @@ void intel_wm_state_verify(struct intel_crtc *crtc,void skl_watermark_ipc_init (struct drm_i915_private *i915);void skl_watermark_ipc_update (struct drm_i915_private *i915);bool skl_watermark_ipc_enabled (struct drm_i915_private *i915); -void skl_watermark_ipc_debugfs_register (struct drm_i915_private *i915); +void skl_watermark_debugfs_register (struct drm_i915_private *i915);void skl_wm_init (struct drm_i915_private *i915);
Signature · 1 line
2.39.1
Re: [Intel-gfx] [PATCH 4/4] drm/i915: Expose SAGV state via debugfs
Quoted 9 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Since SAGV is controlled via unidirectional pcode commands we have no way to query the current state. So instead let's expose the last programmed state via debugfs. This way we can at least know whether SAGV should be enabled or not (which can be important to know when dealing with underruns/etc.).
Signed-off-by Ville Syrjälä <[email protected]>
Quoted 75 lines
--- .../drm/i915/display/intel_display_debugfs.c | 2 +- drivers/gpu/drm/i915/display/skl_watermark.c | 31 ++++++++++++++++--- drivers/gpu/drm/i915/display/skl_watermark.h | 2 +- 3 files changed, 28 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/display/intel_display_debugfs.c +1
-1@@ -1622,7 +1622,7 @@ void intel_display_debugfs_register(struct drm_i915_private *i915)intel_dmc_debugfs_register (i915);intel_fbc_debugfs_register (i915);intel_hpd_debugfs_register (i915); -skl_watermark_ipc_debugfs_register (i915); +skl_watermark_debugfs_register (i915); }static int i915_panel_show (struct seq_file *m,void *data)drivers/gpu/drm/i915/display/skl_watermark.c +26
-5@@ -3545,13 +3545,34 @@ static const struct file_operations skl_watermark_ipc_status_fops = { .write = skl_watermark_ipc_status_write }; -void skl_watermark_ipc_debugfs_register (struct drm_i915_private *i915) +static int intel_sagv_status_show (struct seq_file *m,void *unused) +{ +struct drm_i915_private *i915 = m->private; +static const char *const sagv_status[] = { + [I915_SAGV_UNKNOWN ] ="unknown" , + [I915_SAGV_DISABLED ] ="disabled" , + [I915_SAGV_ENABLED ] ="enabled" , + [I915_SAGV_NOT_CONTROLLED ] ="not controlled" , + }; + +seq_printf (m,"SAGV available: %s\n" ,str_yes_no (intel_has_sagv (i915))); +seq_printf (m,"SAGV status: %s\n" , sagv_status[i915->display.sagv.status]); +seq_printf (m,"SAGV block time: %d usec\n" , i915->display.sagv.block_time_us); + +return 0 ; +} + +DEFINE_SHOW_ATTRIBUTE (intel_sagv_status); + +void skl_watermark_debugfs_register (struct drm_i915_private *i915) {struct drm_minor *minor = i915->drm.primary; -if (!HAS_IPC (i915)) -return ; +if (HAS_IPC (i915)) +debugfs_create_file ("i915_ipc_status" ,0644 , minor->debugfs_root, i915, + &skl_watermark_ipc_status_fops); -debugfs_create_file ("i915_ipc_status" ,0644 , minor->debugfs_root, i915, - &skl_watermark_ipc_status_fops); +if (HAS_SAGV (i915)) +debugfs_create_file ("i915_sagv_status" ,0444 , minor->debugfs_root, i915, + &intel_sagv_status_fops); }drivers/gpu/drm/i915/display/skl_watermark.h +1
-1@@ -47,7 +47,7 @@ void intel_wm_state_verify(struct intel_crtc *crtc,void skl_watermark_ipc_init (struct drm_i915_private *i915);void skl_watermark_ipc_update (struct drm_i915_private *i915);bool skl_watermark_ipc_enabled (struct drm_i915_private *i915); -void skl_watermark_ipc_debugfs_register (struct drm_i915_private *i915); +void skl_watermark_debugfs_register (struct drm_i915_private *i915);void skl_wm_init (struct drm_i915_private *i915);
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/4] drm/i915: Don't do the WM0->WM1 copy w/a if WM1 is already enabled
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: series starting with [1/4] drm/i915: Don't do the WM0->WM1 copy w/a if WM1 is already enabled
URL : https://patchwork.freedesktop.org/series/113512/
State : warning
== Summary ==
Error: dim sparse failed
Sparse version: v0.6.2
Fast mode used, each commit won't be checked separately.
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/4] drm/i915: Don't do the WM0->WM1 copy w/a if WM1 is already enabled
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: series starting with [1/4] drm/i915: Don't do the WM0->WM1 copy w/a if WM1 is already enabled
URL : https://patchwork.freedesktop.org/series/113512/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12669 -> Patchwork_113512v1
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/index.html
Participating hosts (25 -> 24)
------------------------------
Missing (1): fi-snb-2520m
Known issues
------------
Here are the changes found in Patchwork_113512v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@gt_heartbeat:
- fi-apl-guc: [PASS][1] -> [DMESG-FAIL][2] ([i915#5334])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
#### Possible fixes ####
* igt@fbdev@write:
- fi-blb-e6850: [SKIP][3] ([fdo#109271]) -> [PASS][4] +4 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/fi-blb-e6850/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/fi-blb-e6850/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
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
Build changes
-------------
* Linux: CI_DRM_12669 -> Patchwork_113512v1
CI-20190529: 20190529
CI_DRM_12669: 0ba44f2494c482325e1a25982c2e0754cbee2a48 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7143: c7b12dcc460fc2348e1fa7f4dcb791bb82e29e44 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_113512v1: 0ba44f2494c482325e1a25982c2e0754cbee2a48 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
179db19c54be drm/i915: Expose SAGV state via debugfs7cae35ee1982 drm/i915: Keep sagv status updated on icl+ 40ec3cf76984 drm/i915: Introduce HAS_SAGV()a35224c55f64 drm/i915: Don't do the WM0->WM1 copy w/a if WM1 is already enabled
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/index.html
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [1/4] drm/i915: Don't do the WM0->WM1 copy w/a if WM1 is already enabled
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: series starting with [1/4] drm/i915: Don't do the WM0->WM1 copy w/a if WM1 is already enabled
URL : https://patchwork.freedesktop.org/series/113512/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12669_full -> Patchwork_113512v1_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_113512v1_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_113512v1_full, 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_113512v1/index.html
Participating hosts (10 -> 11)
------------------------------
Additional (1): shard-rkl0
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_113512v1_full:
### IGT changes ###
#### Possible regressions ####
* igt@i915_pm_rps@engine-order:
- shard-glk: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/shard-glk9/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/shard-glk8/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_113512v1_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_ccs@pipe-a-crc-primary-basic-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#3886]) +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/shard-glk4/igt@kms_ccs@pipe-a-crc-primary-basic-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_frontbuffer_tracking@psr-rgb565-draw-mmap-gtt:
- shard-glk: NOTRUN -> [SKIP][4] ([fdo#109271]) +25 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/shard-glk4/igt@[email protected]
#### Possible fixes ####
* igt@drm_fdinfo@most-busy-check-all@rcs0:
- {shard-rkl}: [FAIL][5] ([i915#7742]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/shard-rkl-1/igt@drm_fdinfo@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/shard-rkl-3/igt@drm_fdinfo@[email protected]
* igt@gem_exec_fair@basic-none@vecs0:
- shard-glk: [FAIL][7] ([i915#2842]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/shard-glk4/igt@gem_exec_fair@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/shard-glk2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- {shard-rkl}: [FAIL][9] ([i915#2842]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/shard-rkl-3/igt@gem_exec_fair@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/shard-rkl-5/igt@gem_exec_fair@[email protected]
* igt@gem_pwrite@basic-self:
- {shard-rkl}: [SKIP][11] ([i915#3282]) -> [PASS][12] +3 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/shard-rkl-3/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/shard-rkl-5/igt@[email protected]
* igt@gem_set_tiling_vs_blt@tiled-to-untiled:
- {shard-rkl}: [SKIP][13] ([i915#3281]) -> [PASS][14] +13 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/shard-rkl-3/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/shard-rkl-5/igt@[email protected]
* igt@gen9_exec_parse@valid-registers:
- {shard-rkl}: [SKIP][15] ([i915#2527]) -> [PASS][16] +3 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/shard-rkl-3/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/shard-rkl-5/igt@[email protected]
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a:
- {shard-dg1}: [SKIP][17] ([i915#1937]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/shard-dg1-17/igt@i915_pm_lpsp@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/shard-dg1-14/igt@i915_pm_lpsp@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions-varying-size:
- shard-glk: [FAIL][19] ([i915#2346]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/shard-glk9/igt@kms_cursor_legacy@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/shard-glk6/igt@kms_cursor_legacy@[email protected]
* igt@kms_rotation_crc@bad-pixel-format:
- {shard-rkl}: [INCOMPLETE][21] -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/shard-rkl-6/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/shard-rkl-6/igt@[email protected]
* igt@perf@polling-small-buf:
- {shard-rkl}: [FAIL][23] ([i915#1722]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/shard-rkl-3/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/shard-rkl-5/igt@[email protected]
* igt@prime_vgem@basic-fence-read:
- {shard-rkl}: [SKIP][25] ([fdo#109295] / [i915#3291] / [i915#3708]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12669/shard-rkl-3/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/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#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109283]: https://bugs.freedesktop.org/show_bug.cgi?id=109283
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109291]: https://bugs.freedesktop.org/show_bug.cgi?id=109291
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109302]: https://bugs.freedesktop.org/show_bug.cgi?id=109302
[fdo#109303]: https://bugs.freedesktop.org/show_bug.cgi?id=109303
[fdo#109309]: https://bugs.freedesktop.org/show_bug.cgi?id=109309
[fdo#109313]: https://bugs.freedesktop.org/show_bug.cgi?id=109313
[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#110542]: https://bugs.freedesktop.org/show_bug.cgi?id=110542
[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#1257]: https://gitlab.freedesktop.org/drm/intel/issues/1257
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1722]: https://gitlab.freedesktop.org/drm/intel/issues/1722
[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#1902]: https://gitlab.freedesktop.org/drm/intel/issues/1902
[i915#1937]: https://gitlab.freedesktop.org/drm/intel/issues/1937
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2434]: https://gitlab.freedesktop.org/drm/intel/issues/2434
[i915#2436]: https://gitlab.freedesktop.org/drm/intel/issues/2436
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2532]: https://gitlab.freedesktop.org/drm/intel/issues/2532
[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#2658]: https://gitlab.freedesktop.org/drm/intel/issues/2658
[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#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[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#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3639]: https://gitlab.freedesktop.org/drm/intel/issues/3639
[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#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3804]: https://gitlab.freedesktop.org/drm/intel/issues/3804
[i915#3826]: https://gitlab.freedesktop.org/drm/intel/issues/3826
[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#426]: https://gitlab.freedesktop.org/drm/intel/issues/426
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4387]: https://gitlab.freedesktop.org/drm/intel/issues/4387
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4767]: https://gitlab.freedesktop.org/drm/intel/issues/4767
[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#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#4877]: https://gitlab.freedesktop.org/drm/intel/issues/4877
[i915#4880]: https://gitlab.freedesktop.org/drm/intel/issues/4880
[i915#4958]: https://gitlab.freedesktop.org/drm/intel/issues/4958
[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#5439]: https://gitlab.freedesktop.org/drm/intel/issues/5439
[i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
[i915#5563]: https://gitlab.freedesktop.org/drm/intel/issues/5563
[i915#5723]: https://gitlab.freedesktop.org/drm/intel/issues/5723
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6117]: https://gitlab.freedesktop.org/drm/intel/issues/6117
[i915#6227]: https://gitlab.freedesktop.org/drm/intel/issues/6227
[i915#6230]: https://gitlab.freedesktop.org/drm/intel/issues/6230
[i915#6248]: https://gitlab.freedesktop.org/drm/intel/issues/6248
[i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268
[i915#6301]: https://gitlab.freedesktop.org/drm/intel/issues/6301
[i915#6334]: https://gitlab.freedesktop.org/drm/intel/issues/6334
[i915#6335]: https://gitlab.freedesktop.org/drm/intel/issues/6335
[i915#6412]: https://gitlab.freedesktop.org/drm/intel/issues/6412
[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#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#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
[i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118
[i915#7128]: https://gitlab.freedesktop.org/drm/intel/issues/7128
[i915#7294]: https://gitlab.freedesktop.org/drm/intel/issues/7294
[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#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#7949]: https://gitlab.freedesktop.org/drm/intel/issues/7949
[i915#7975]: https://gitlab.freedesktop.org/drm/intel/issues/7975
Build changes
-------------
* Linux: CI_DRM_12669 -> Patchwork_113512v1
CI-20190529: 20190529
CI_DRM_12669: 0ba44f2494c482325e1a25982c2e0754cbee2a48 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7143: c7b12dcc460fc2348e1fa7f4dcb791bb82e29e44 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_113512v1: 0ba44f2494c482325e1a25982c2e0754cbee2a48 @ git://anongit.freedesktop.org/gfx-ci/linux
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_113512v1/index.html
Quoted 27 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Due to a workaround we have to make sure the WM1 watermarks block/lines values are sensible even when WM1 is disabled. To that end we copy those values from WM0.
However since we now keep each wm level enabled on a per-plane basis it doesn't seem necessary to do that copy when we already have an enabled WM1 on the current plane. That is, we might be in a situation where another plane can only do WM0 (and thus needs the copy) but the current plane's WM1 is still perfectly valid (ie. fits into the current DDB allocation).
Skipping the copy could avoid reprogramming the plane's registers needlessly in some cases.
Fixes a301cb0fca2d ("drm/i915: Keep plane watermarks enabled more aggressively")Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/skl_watermark.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/display/skl_watermark.c +0
-0
drivers/gpu/drm/i915/display/skl_watermark.c skl_crtc_allocate_plane_ddb(struct intel_atomic_state *state, · line 1593
Quoted 9 lines
drivers/gpu/drm/i915/display/skl_watermark.c +2
-1@@ -1586,7 +1586,8 @@ skl_crtc_allocate_plane_ddb(struct intel_atomic_state *state,skl_check_wm_level (&wm->wm[level], ddb);if (icl_need_wm1_wa (i915, plane_id) && - level ==1 && wm->wm[0 ].enable) { + level ==1 && !wm->wm[level].enable && + wm->wm[0 ].enable) { wm->wm[level].blocks = wm->wm[0 ].blocks; wm->wm[level].lines = wm->wm[0 ].lines; wm->wm[level].ignore_lines = wm->wm[0 ].ignore_lines;
Took some time to remember once again the logic here :)
We probably need to make this more easily readable, because the comment kinda suggests that we disable all wms starting from level + 1 here, while we actually do also check with ddb allocation first.
Quoted 3 lines
Signature · 1 line
2.39.1