drm/i915: Fix glk watermark calculations
Subsystems (2)
PATCH 1/2 drm/i915: Fix glk watermark calculations
From: Ville Syrjälä <[email protected]>
GLK wants the +1 adjustement for the "blocks per line" value for x-tile/y-tile, just like cnl+.
Also the x-tile and linear cases are almost identical. The only difference is this +1 which is always done for glk+, and only done for linear on skl/bxt. Let's unify it to a single branch with a special case for the +1, just like we do for y-tile.
--- drivers/gpu/drm/i915/intel_pm.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/intel_pm.c +8 -7
@@ -4810,7 +4810,7 @@ skl_wm_method1(const struct drm_i915_private *dev_priv, u32 pixel_rate, wm_intermediate_val = latency * pixel_rate * cpp; ret =div_fixed16 (wm_intermediate_val,1000 * dbuf_block_size); -if (INTEL_GEN (dev_priv) >=10 ) +if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) ret =add_fixed16_u32 (ret,1 );return ret;
@@ -4945,18 +4945,19 @@ skl_compute_wm_params(const struct intel_crtc_state *crtc_state, wp->y_min_scanlines, wp->dbuf_block_size); -if (INTEL_GEN (dev_priv) >=10 ) +if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) interm_pbpl++; wp->plane_blocks_per_line =div_fixed16 (interm_pbpl, wp->y_min_scanlines); - }else if (wp->x_tiled &&IS_GEN (dev_priv,9 )) { - interm_pbpl =DIV_ROUND_UP (wp->plane_bytes_per_line, - wp->dbuf_block_size); - wp->plane_blocks_per_line =u32_to_fixed16 (interm_pbpl); }else { interm_pbpl =DIV_ROUND_UP (wp->plane_bytes_per_line, - wp->dbuf_block_size) +1 ; + wp->dbuf_block_size); + +if (!wp->x_tiled || +INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) + interm_pbpl++; + wp->plane_blocks_per_line =u32_to_fixed16 (interm_pbpl); }
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 drm/i915: Remove cnl pre-prod workarounds
From: Ville Syrjälä <[email protected]>
Remove all the stepping dependent cnl workarounds. Bspec lists more steppings than this so presumably these are classed as pre-production. And this is cnl after all so no one should really care anyway.
--- drivers/gpu/drm/i915/gt/intel_rc6.c | 8 +------- drivers/gpu/drm/i915/gt/intel_workarounds.c | 17 ----------------- drivers/gpu/drm/i915/intel_pm.c | 7 ------- drivers/gpu/drm/i915/intel_wopcm.c | 3 +-- 4 files changed, 2 insertions(+), 33 deletions(-)
drivers/gpu/drm/i915/gt/intel_rc6.c +1 -7
@@ -113,7 +113,6 @@ static void gen9_rc6_enable(struct intel_rc6 *rc6)struct intel_uncore *uncore =rc6_to_uncore (rc6);struct intel_engine_cs *engine;enum intel_engine_id id; -u32 rc6_mode;/* 2b: Program RC6 thresholds.*/ if (INTEL_GEN (rc6_to_i915 (rc6)) >=10 ) {
@@ -165,16 +164,11 @@ static void gen9_rc6_enable(struct intel_rc6 *rc6)/* 3a: Enable RC6 */ set (uncore,GEN6_RC6_THRESHOLD ,37500 );/* 37.5/125ms per EI */ -/* WaRsUseTimeoutMode:cnl (pre-prod) */ -if (IS_CNL_REVID (rc6_to_i915 (rc6),CNL_REVID_A0 ,CNL_REVID_C0 )) - rc6_mode =GEN7_RC_CTL_TO_MODE ; -else - rc6_mode =GEN6_RC_CTL_EI_MODE (1 ); rc6->ctl_enable =GEN6_RC_CTL_HW_ENABLE |GEN6_RC_CTL_RC6_ENABLE | - rc6_mode; +GEN6_RC_CTL_EI_MODE (1 );/* * WaRsDisableCoarsePowerGating:skl,cnl
drivers/gpu/drm/i915/gt/intel_workarounds.c +0 -17
@@ -485,25 +485,14 @@ static void cfl_ctx_workarounds_init(struct intel_engine_cs *engine,static void cnl_ctx_workarounds_init (struct intel_engine_cs *engine,struct i915_wa_list *wal) { -struct drm_i915_private *i915 = engine->i915; -/* WaForceContextSaveRestoreNonCoherent:cnl */ WA_SET_BIT_MASKED (CNL_HDC_CHICKEN0 ,HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT ); -/* WaThrottleEUPerfToAvoidTDBackPressure:cnl(pre-prod) */ -if (IS_CNL_REVID (i915,CNL_REVID_B0 ,CNL_REVID_B0 )) -WA_SET_BIT_MASKED (GEN8_ROW_CHICKEN ,THROTTLE_12_5 ); -/* WaDisableReplayBufferBankArbitrationOptimization:cnl */ WA_SET_BIT_MASKED (COMMON_SLICE_CHICKEN2 ,GEN8_SBE_DISABLE_REPLAY_BUF_OPTIMIZATION ); -/* WaDisableEnhancedSBEVertexCaching:cnl (pre-prod) */ -if (IS_CNL_REVID (i915,0 ,CNL_REVID_B0 )) -WA_SET_BIT_MASKED (COMMON_SLICE_CHICKEN2 , -GEN8_CSC2_SBE_VUE_CACHE_CONSERVATIVE ); -/* WaPushConstantDereferenceHoldDisable:cnl */ WA_SET_BIT_MASKED (GEN7_ROW_CHICKEN2 ,PUSH_CONSTANT_DEREF_DISABLE );
@@ -872,12 +861,6 @@ cnl_gt_workarounds_init(struct drm_i915_private *i915, struct i915_wa_list *wal) {wa_init_mcr (i915, wal); -/* WaDisableI2mCycleOnWRPort:cnl (pre-prod) */ -if (IS_CNL_REVID (i915,CNL_REVID_B0 ,CNL_REVID_B0 )) -wa_write_or (wal, -GAMT_CHKN_BIT_REG , -GAMT_CHKN_DISABLE_I2M_CYCLE_ON_WR_PORT ); -/* WaInPlaceDecompressionHang:cnl */ wa_write_or(wal, GEN9_GAMT_ECO_REG_RW_IA,
drivers/gpu/drm/i915/intel_pm.c +0 -7
@@ -5198,10 +5198,6 @@ static void skl_compute_transition_wm(const struct intel_crtc_state *crtc_state, trans_offset_b; }else { res_blocks = wm0_sel_res_b + trans_offset_b; - -/* WA BUG:1938466 add one block for non y-tile planes */ -if (IS_CNL_REVID (dev_priv,CNL_REVID_A0 ,CNL_REVID_A0 )) - res_blocks +=1 ; }/*
@@ -6917,9 +6913,6 @@ static void cnl_init_clock_gating(struct drm_i915_private *dev_priv) val =I915_READ (SLICE_UNIT_LEVEL_CLKGATE );/* ReadHitWriteOnlyDisable:cnl */ val |=RCCUNIT_CLKGATE_DIS ; -/* WaSarbUnitClockGatingDisable:cnl (pre-prod) */ -if (IS_CNL_REVID (dev_priv,CNL_REVID_A0 ,CNL_REVID_B0 )) - val |=SARBUNIT_CLKGATE_DIS ;I915_WRITE (SLICE_UNIT_LEVEL_CLKGATE , val);/* Wa_2201832410:cnl */
drivers/gpu/drm/i915/intel_wopcm.c +1 -2
@@ -149,8 +149,7 @@ static bool check_hw_restrictions(struct drm_i915_private *i915, guc_wopcm_size))return false; -if ((IS_GEN (i915,9 ) || -IS_CNL_REVID (i915,CNL_REVID_A0 ,CNL_REVID_A0 )) && +if (IS_GEN (i915,9 ) && !gen9_check_huc_fw_fits (i915, guc_wopcm_size, huc_fw_size))return false;
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 2/2] drm/i915: Remove cnl pre-prod workarounds
Quoting Ville Syrjala (2020-04-30 13:58:22)
Quoted 8 lines
From: Ville Syrjälä <[email protected]>
Remove all the stepping dependent cnl workarounds. Bspec lists more steppings than this so presumably these are classed as pre-production. And this is cnl after all so no one should really care anyway.
Signed-off-by Ville Syrjälä <[email protected]>
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Fix glk watermark calculations
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915: Fix glk watermark calculations
URL : https://patchwork.freedesktop.org/series/76774/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8401 -> Patchwork_17527
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_17527:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@debugfs_test@read_all_entries:
- fi-kbl-7500u: NOTRUN -> [{ABORT}][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/fi-kbl-7500u/igt@debugfs_test@read_all_entries.html
Known issues
------------
Here are the changes found in Patchwork_17527 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@sanitycheck:
- fi-bwr-2160: [PASS][2] -> [INCOMPLETE][3] ([i915#489])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/fi-bwr-2160/igt@i915_selftest@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/fi-bwr-2160/igt@i915_selftest@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#489]: https://gitlab.freedesktop.org/drm/intel/issues/489
Participating hosts (50 -> 44)
------------------------------
Missing (6): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_8401 -> Patchwork_17527
CI-20190529: 20190529
CI_DRM_8401: 41fac0e3809be301af095c66e717eb9843b80212 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5617: 807b26292a3f21057ef7865a4028d22c512590df @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17527: 790b959bc5a3ec7a8820074aec9822ed0118c677 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
790b959bc5a3 drm/i915: Remove cnl pre-prod workarounds f0177337991d drm/i915: Fix glk watermark calculations
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/2] drm/i915: Fix glk watermark calculations
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915: Fix glk watermark calculations
URL : https://patchwork.freedesktop.org/series/76774/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8401_full -> Patchwork_17527_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_17527_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_params@invalid-bsd-ring:
- shard-iclb: [PASS][1] -> [SKIP][2] ([fdo#109276])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-iclb1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-iclb8/igt@[email protected]
* igt@i915_pm_rpm@system-suspend:
- shard-skl: [PASS][3] -> [INCOMPLETE][4] ([i915#151] / [i915#69])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-skl10/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-skl9/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [PASS][5] -> [DMESG-WARN][6] ([i915#180]) +2 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-kbl2/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-kbl3/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-apl: [PASS][7] -> [DMESG-WARN][8] ([i915#180])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-apl7/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-apl8/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][9] -> [FAIL][10] ([fdo#108145] / [i915#265]) +1 similar issue
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-skl5/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-skl2/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-glk: [PASS][11] -> [FAIL][12] ([i915#899])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-glk1/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-glk4/igt@[email protected]
* igt@kms_psr2_su@frontbuffer:
- shard-iclb: [PASS][13] -> [SKIP][14] ([fdo#109642] / [fdo#111068])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-iclb2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-iclb1/igt@[email protected]
* igt@kms_psr@psr2_basic:
- shard-iclb: [PASS][15] -> [SKIP][16] ([fdo#109441]) +2 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-iclb2/igt@kms_psr@psr2_basic.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-iclb5/igt@kms_psr@psr2_basic.html
#### Possible fixes ####
* igt@gen9_exec_parse@allowed-all:
- shard-apl: [DMESG-WARN][17] ([i915#716]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-apl2/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-apl7/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [FAIL][19] ([i915#454]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-iclb4/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-iclb4/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-kbl: [DMESG-WARN][21] ([i915#180]) -> [PASS][22] +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-kbl1/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-kbl7/igt@[email protected]
* {igt@kms_flip@flip-vs-expired-vblank@c-edp1}:
- shard-skl: [FAIL][23] ([i915#79]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-skl7/igt@kms_flip@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-skl1/igt@kms_flip@[email protected]
* {igt@kms_flip@flip-vs-suspend-interruptible@a-dp1}:
- shard-apl: [DMESG-WARN][25] ([i915#180]) -> [PASS][26] +2 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-apl8/igt@kms_flip@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-apl4/igt@kms_flip@[email protected]
* {igt@kms_flip@flip-vs-suspend@c-hdmi-a1}:
- shard-hsw: [INCOMPLETE][27] ([i915#61]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-hsw4/igt@kms_flip@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-hsw1/igt@kms_flip@[email protected]
* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: [FAIL][29] ([i915#1188]) -> [PASS][30] +1 similar issue
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-skl10/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-skl6/igt@[email protected]
* igt@kms_psr@no_drrs:
- shard-iclb: [FAIL][31] ([i915#173]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-iclb1/igt@kms_psr@no_drrs.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-iclb3/igt@kms_psr@no_drrs.html
* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [SKIP][33] ([fdo#109441]) -> [PASS][34] +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-iclb6/igt@kms_psr@psr2_no_drrs.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-iclb2/igt@kms_psr@psr2_no_drrs.html
* igt@perf@gen8-unprivileged-single-ctx-counters:
- shard-glk: [TIMEOUT][35] -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-glk6/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-glk4/igt@[email protected]
#### Warnings ####
* igt@i915_pm_rpm@fences-dpms:
- shard-snb: [SKIP][37] ([fdo#109271]) -> [INCOMPLETE][38] ([i915#82])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-snb2/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-snb2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-basic:
- shard-apl: [FAIL][39] ([fdo#108145] / [i915#265]) -> [FAIL][40] ([fdo#108145] / [i915#265] / [i915#95])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-apl8/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-apl6/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-iclb: [SKIP][41] ([fdo#109642] / [fdo#111068]) -> [FAIL][42] ([i915#608])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8401/shard-iclb3/igt@kms_psr2_su@page_flip.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17527/shard-iclb2/igt@kms_psr2_su@page_flip.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#151]: https://gitlab.freedesktop.org/drm/intel/issues/151
[i915#1542]: https://gitlab.freedesktop.org/drm/intel/issues/1542
[i915#173]: https://gitlab.freedesktop.org/drm/intel/issues/173
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#608]: https://gitlab.freedesktop.org/drm/intel/issues/608
[i915#61]: https://gitlab.freedesktop.org/drm/intel/issues/61
[i915#69]: https://gitlab.freedesktop.org/drm/intel/issues/69
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#82]: https://gitlab.freedesktop.org/drm/intel/issues/82
[i915#899]: https://gitlab.freedesktop.org/drm/intel/issues/899
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_8401 -> Patchwork_17527
CI-20190529: 20190529
CI_DRM_8401: 41fac0e3809be301af095c66e717eb9843b80212 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5617: 807b26292a3f21057ef7865a4028d22c512590df @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17527: 790b959bc5a3ec7a8820074aec9822ed0118c677 @ 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_17527/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 41 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
GLK wants the +1 adjustement for the "blocks per line" value for x-tile/y-tile, just like cnl+.
Also the x-tile and linear cases are almost identical. The only difference is this +1 which is always done for glk+, and only done for linear on skl/bxt. Let's unify it to a single branch with a special case for the +1, just like we do for y-tile.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/intel_pm.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/intel_pm.c +2
-5@@ -4810,7 +4810,7 @@ skl_wm_method1(const struct drm_i915_private *dev_priv, u32 pixel_rate, wm_intermediate_val = latency * pixel_rate * cpp; ret =div_fixed16 (wm_intermediate_val,1000 * dbuf_block_size); -if (INTEL_GEN (dev_priv) >=10 ) +if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) ret =add_fixed16_u32 (ret,1 );return ret;@@ -4945,18 +4945,19 @@ skl_compute_wm_params(const struct intel_crtc_state *crtc_state, wp->y_min_scanlines, wp->dbuf_block_size); -if (INTEL_GEN (dev_priv) >=10 ) +if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) interm_pbpl++; wp->plane_blocks_per_line =div_fixed16 (interm_pbpl, wp->y_min_scanlines); - }else if (wp->x_tiled &&IS_GEN (dev_priv,9 )) { - interm_pbpl =DIV_ROUND_UP (wp->plane_bytes_per_line, - wp->dbuf_block_size);
drivers/gpu/drm/i915/intel_pm.c skl_compute_wm_params(const struct intel_crtc_state *crtc_state, · line 4960
Quoted 10 lines
drivers/gpu/drm/i915/intel_pm.c +6
-2- wp->plane_blocks_per_line =u32_to_fixed16 (interm_pbpl); }else { interm_pbpl =DIV_ROUND_UP (wp->plane_bytes_per_line, - wp->dbuf_block_size) +1 ; + wp->dbuf_block_size); + +if (!wp->x_tiled || +INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) + interm_pbpl++; +
Is it so that we want +1 here only for x-tile,y-tile for GLK? Because I guess if you have linear mapping and GLK, this will do +1 as well.
With this clarified,
Quoted 10 lines
drivers/gpu/drm/i915/intel_pm.c +0
-0wp->plane_blocks_per_line =u32_to_fixed16 (interm_pbpl); }Signature · 6 lines
2.24.1 _______________________________________________ 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
Quoted 47 lines · Stanislav
Quoted 46 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
GLK wants the +1 adjustement for the "blocks per line" value for x-tile/y-tile, just like cnl+.
Also the x-tile and linear cases are almost identical. The only difference is this +1 which is always done for glk+, and only done for linear on skl/bxt. Let's unify it to a single branch with a special case for the +1, just like we do for y-tile.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/intel_pm.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/intel_pm.c +3
-7@@ -4810,7 +4810,7 @@ skl_wm_method1(const struct drm_i915_private *dev_priv, u32 pixel_rate, wm_intermediate_val = latency * pixel_rate * cpp; ret =div_fixed16 (wm_intermediate_val,1000 * dbuf_block_size); -if (INTEL_GEN (dev_priv) >=10 ) +if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) ret =add_fixed16_u32 (ret,1 );return ret;@@ -4945,18 +4945,19 @@ skl_compute_wm_params(const struct intel_crtc_state *crtc_state, wp->y_min_scanlines, wp->dbuf_block_size); -if (INTEL_GEN (dev_priv) >=10 ) +if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) interm_pbpl++; wp->plane_blocks_per_line =div_fixed16 (interm_pbpl, wp->y_min_scanlines); - }else if (wp->x_tiled &&IS_GEN (dev_priv,9 )) { - interm_pbpl =DIV_ROUND_UP (wp->plane_bytes_per_line, - wp->dbuf_block_size); - wp->plane_blocks_per_line =u32_to_fixed16 (interm_pbpl); }else { interm_pbpl =DIV_ROUND_UP (wp->plane_bytes_per_line, - wp->dbuf_block_size) +1 ; + wp->dbuf_block_size);
Quoted 8 lines
drivers/gpu/drm/i915/intel_pm.c skl_compute_wm_params(const struct intel_crtc_state *crtc_state, · line 4960
Quoted 5 lines
drivers/gpu/drm/i915/intel_pm.c +5
-0+ +if (!wp->x_tiled || +INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) + interm_pbpl++; +Is it so that we want +1 here only for x-tile,y-tile for GLK? Because I guess if you have linear mapping and GLK, this will do +1 as well.
glk+ always wants the +1.
pre-glk wants +1 only for linear.
Quoted 15 lines
With this clarified,
Reviewed-by Stanislav Lisovskiy <[email protected]>Quoted 10 lines
drivers/gpu/drm/i915/intel_pm.c +0
-0wp->plane_blocks_per_line =u32_to_fixed16 (interm_pbpl); }Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx