drm/i915: Add TigerLake bandwidth checking
Subsystems (3)
PATCH v3 1/1 drm/i915: Add TigerLake bandwidth checking
Added bandwidth calculation algorithm and checks, similar way as it was done for ICL, some constants were corrected according to BSpec.
v2: Start using same icl_get_bw_info function to avoid
code duplication. Moved mpagesize to memory info related structure as it is now dependant on memory type. Fixed qi.t_bl field assignment.
v3: Removed mpagesize as unused. Duplicate code and redundant blankline
fixed.
--- drivers/gpu/drm/i915/display/intel_bw.c | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/display/intel_bw.c +18 -7
@@ -56,7 +56,11 @@ static int icl_pcode_read_mem_global_info(struct drm_i915_private *dev_priv, qi->num_channels = (val &0xf0 ) >>4 ; qi->num_points = (val &0xf00 ) >>8 ; - qi->t_bl = qi->dram_type ==INTEL_DRAM_DDR4 ?4 :8 ; +if (IS_GEN (dev_priv,11 )) { + qi->t_bl = qi->dram_type ==INTEL_DRAM_DDR4 ?4 :8 ; + }else if (IS_GEN (dev_priv,12 )) { + qi->t_bl = qi->dram_type ==INTEL_DRAM_DDR4 ?4 :16 ; + }return 0 ; }
@@ -132,20 +136,25 @@ static int icl_sagv_max_dclk(const struct intel_qgv_info *qi) }struct intel_sa_info { -u8 deburst, mpagesize, deprogbwlimit, displayrtids; +u16 displayrtids; +u8 deburst, deprogbwlimit; };static const struct intel_sa_info icl_sa_info = { .deburst =8 , - .mpagesize =16 , .deprogbwlimit =25 ,/* GB/s */ .displayrtids =128 , }; -static int icl_get_bw_info (struct drm_i915_private *dev_priv) +static const struct intel_sa_info tgl_sa_info = { + .deburst =16 , + .deprogbwlimit =34 ,/* GB/s */ + .displayrtids =256 , +}; + +static int icl_get_bw_info (struct drm_i915_private *dev_priv,const struct intel_sa_info *sa) {struct intel_qgv_info qi = {}; -const struct intel_sa_info *sa = &icl_sa_info;bool is_y_tile = true;/* assume y tile may be used */ int num_channels;int deinterleave;
@@ -234,13 +243,15 @@ static unsigned int icl_max_bw(struct drm_i915_private *dev_priv,void intel_bw_init_hw (struct drm_i915_private *dev_priv) {if (IS_GEN (dev_priv,11 )) -icl_get_bw_info (dev_priv); +icl_get_bw_info (dev_priv, &icl_sa_info); +else if (IS_GEN (dev_priv,12 )) +icl_get_bw_info (dev_priv, &tgl_sa_info); }static unsigned int intel_max_data_rate (struct drm_i915_private *dev_priv,int num_planes) { -if (IS_GEN (dev_priv,11 )) +if (IS_GEN (dev_priv,11 ) ||IS_GEN (dev_priv,12 ))/* * FIXME with SAGV disabled maybe we can assume * point 1 will always be used? Seems to match
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for drm/i915: Add TigerLake bandwidth checking (rev3)
== Series Details ==
== Series Details ==
Series: drm/i915: Add TigerLake bandwidth checking (rev3)
URL : https://patchwork.freedesktop.org/series/66817/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
2ff98c4e712a drm/i915: Add TigerLake bandwidth checking
-:31: WARNING:BRACES: braces {} are not necessary for any arm of this statement
#31: FILE: drivers/gpu/drm/i915/display/intel_bw.c:59:
+ if (IS_GEN(dev_priv, 11)) {
[...]
+ } else if (IS_GEN(dev_priv, 12)) {
[...]total: 0 errors, 1 warnings, 0 checks, 58 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Add TigerLake bandwidth checking (rev3)
In reply to Stanislav Lisovskiy== Series Details ==
== Series Details ==
Series: drm/i915: Add TigerLake bandwidth checking (rev3)
URL : https://patchwork.freedesktop.org/series/66817/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6915 -> Patchwork_14443
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/
Known issues
------------
Here are the changes found in Patchwork_14443 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_flink_basic@basic:
- fi-icl-u3: [PASS][1] -> [DMESG-WARN][2] ([fdo#107724]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/fi-icl-u3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/fi-icl-u3/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_create@basic-files:
- fi-bxt-dsi: [INCOMPLETE][3] ([fdo#103927]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/fi-bxt-dsi/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/fi-bxt-dsi/igt@[email protected]
* igt@gem_mmap_gtt@basic-write-no-prefault:
- fi-icl-u3: [DMESG-WARN][5] ([fdo#107724]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/fi-icl-u3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/fi-icl-u3/igt@[email protected]
* igt@i915_module_load@reload-with-fault-injection:
- {fi-icl-u4}: [DMESG-WARN][7] ([fdo#105602] / [fdo#106107] / [fdo#106350]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/fi-icl-u4/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/fi-icl-u4/igt@[email protected]
* igt@kms_psr@sprite_plane_onoff:
- {fi-icl-u4}: [DMESG-WARN][9] ([fdo#105602]) -> [PASS][10] +40 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/fi-icl-u4/igt@kms_psr@sprite_plane_onoff.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/fi-icl-u4/igt@kms_psr@sprite_plane_onoff.html
{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#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602
[fdo#106107]: https://bugs.freedesktop.org/show_bug.cgi?id=106107
[fdo#106350]: https://bugs.freedesktop.org/show_bug.cgi?id=106350
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109309]: https://bugs.freedesktop.org/show_bug.cgi?id=109309
[fdo#111045]: https://bugs.freedesktop.org/show_bug.cgi?id=111045
[fdo#111155]: https://bugs.freedesktop.org/show_bug.cgi?id=111155
[fdo#111562]: https://bugs.freedesktop.org/show_bug.cgi?id=111562
[fdo#111597]: https://bugs.freedesktop.org/show_bug.cgi?id=111597
Participating hosts (56 -> 46)
------------------------------
Missing (10): fi-ilk-m540 fi-cml-h fi-skl-gvtdvm fi-tgl-u2 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6915 -> Patchwork_14443
CI-20190529: 20190529
CI_DRM_6915: c72f7d5ea4386172247558b74c1f8012b35800b7 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5190: 0e9510b83502af3e230870df2d66d4f68918d3a4 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14443: 2ff98c4e712ab67e4d2f057bbd00cbd7cf4b90fb @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
2ff98c4e712a drm/i915: Add TigerLake bandwidth checking
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915: Add TigerLake bandwidth checking (rev3)
In reply to Stanislav Lisovskiy== Series Details ==
== Series Details ==
Series: drm/i915: Add TigerLake bandwidth checking (rev3)
URL : https://patchwork.freedesktop.org/series/66817/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6915_full -> Patchwork_14443_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_14443_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_eio@in-flight-suspend:
- shard-skl: [PASS][1] -> [INCOMPLETE][2] ([fdo#104108])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-skl9/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-skl10/igt@[email protected]
* igt@gem_eio@reset-stress:
- shard-apl: [PASS][3] -> [FAIL][4] ([fdo#109661])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-apl3/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-apl2/igt@[email protected]
* igt@gem_exec_schedule@preempt-hang-vebox:
- shard-apl: [PASS][5] -> [INCOMPLETE][6] ([fdo#103927])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-apl1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-apl7/igt@[email protected]
* igt@gem_exec_schedule@preemptive-hang-bsd:
- shard-iclb: [PASS][7] -> [SKIP][8] ([fdo#111325]) +4 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-iclb6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-iclb1/igt@[email protected]
* igt@kms_flip@flip-vs-suspend:
- shard-hsw: [PASS][9] -> [INCOMPLETE][10] ([fdo#103540])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-hsw5/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-hsw5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-apl: [PASS][11] -> [DMESG-WARN][12] ([fdo#108566]) +5 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-apl8/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-apl6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-pri-indfb-multidraw:
- shard-iclb: [PASS][13] -> [FAIL][14] ([fdo#103167]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-iclb4/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-iclb4/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][15] -> [FAIL][16] ([fdo#108145] / [fdo#110403])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-skl3/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-skl2/igt@[email protected]
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [PASS][17] -> [SKIP][18] ([fdo#109441]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-iclb5/igt@kms_psr@psr2_primary_mmap_cpu.html
* igt@kms_psr@suspend:
- shard-skl: [PASS][19] -> [INCOMPLETE][20] ([fdo#108972])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-skl6/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-skl2/igt@[email protected]
* igt@kms_setmode@basic:
- shard-glk: [PASS][21] -> [FAIL][22] ([fdo#99912])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-glk9/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-glk6/igt@[email protected]
* igt@perf@blocking:
- shard-skl: [PASS][23] -> [FAIL][24] ([fdo#110728])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-skl3/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-skl4/igt@[email protected]
* igt@prime_busy@hang-bsd2:
- shard-iclb: [PASS][25] -> [SKIP][26] ([fdo#109276]) +17 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-iclb1/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-iclb7/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_schedule@wide-bsd:
- shard-iclb: [SKIP][27] ([fdo#111325]) -> [PASS][28] +4 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-iclb2/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-iclb5/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-accuracy:
- shard-kbl: [SKIP][29] ([fdo#109271]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-kbl7/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-kbl6/igt@[email protected]
* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-apl: [DMESG-WARN][31] ([fdo#108566]) -> [PASS][32] +5 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-apl1/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-apl4/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-cursor-vs-flip-atomic:
- shard-hsw: [FAIL][33] ([fdo#105767]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-hsw4/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-hsw1/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-kbl: [FAIL][35] ([fdo#105363]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-kbl6/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-kbl4/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-move:
- shard-iclb: [FAIL][37] ([fdo#103167]) -> [PASS][38] +2 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-iclb8/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-iclb3/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
- shard-kbl: [INCOMPLETE][39] ([fdo#103665]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-kbl3/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-kbl7/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-skl: [INCOMPLETE][41] ([fdo#104108]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-skl4/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-skl3/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [FAIL][43] ([fdo#108145] / [fdo#110403]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-skl10/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-skl8/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-iclb: [FAIL][45] ([fdo#103166]) -> [PASS][46] +1 similar issue
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-iclb4/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-iclb4/igt@[email protected]
* igt@kms_psr@psr2_sprite_render:
- shard-iclb: [SKIP][47] ([fdo#109441]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-iclb8/igt@kms_psr@psr2_sprite_render.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-iclb2/igt@kms_psr@psr2_sprite_render.html
* igt@kms_setmode@basic:
- shard-hsw: [FAIL][49] ([fdo#99912]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-hsw1/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-hsw7/igt@[email protected]
* igt@perf@polling:
- shard-skl: [FAIL][51] ([fdo#110728]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-skl6/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-skl2/igt@[email protected]
* igt@prime_vgem@fence-wait-bsd2:
- shard-iclb: [SKIP][53] ([fdo#109276]) -> [PASS][54] +16 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-iclb6/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-iclb1/igt@[email protected]
#### Warnings ####
* igt@gem_mocs_settings@mocs-rc6-bsd2:
- shard-iclb: [FAIL][55] ([fdo#111330]) -> [SKIP][56] ([fdo#109276])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-iclb1/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-iclb7/igt@[email protected]
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [DMESG-WARN][57] ([fdo#107724]) -> [SKIP][58] ([fdo#109349])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6915/shard-iclb2/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14443/shard-iclb5/igt@[email protected]
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#105767]: https://bugs.freedesktop.org/show_bug.cgi?id=105767
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108972]: https://bugs.freedesktop.org/show_bug.cgi?id=108972
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109661]: https://bugs.freedesktop.org/show_bug.cgi?id=109661
[fdo#110403]: https://bugs.freedesktop.org/show_bug.cgi?id=110403
[fdo#110728]: https://bugs.freedesktop.org/show_bug.cgi?id=110728
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6915 -> Patchwork_14443
CI-20190529: 20190529
CI_DRM_6915: c72f7d5ea4386172247558b74c1f8012b35800b7 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5190: 0e9510b83502af3e230870df2d66d4f68918d3a4 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14443: 2ff98c4e712ab67e4d2f057bbd00cbd7cf4b90fb @ 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_14443/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 3 lines · Stanislav Lisovskiy
Added bandwidth calculation algorithm and checks, similar way as it was done for ICL, some constants were corrected according to BSpec.
BSpec: 53998
Quoted 2 lines
Signed-off-by Stanislav Lisovskiy <[email protected]>
S-o-b should be last tag, so after the version changelog and the Bugzilla tag
Quoted 10 lines
v2: Start using same
icl_get_bw_infofunction to avoid
code duplication. Moved mpagesize to memory info related structure as it is now dependant on memory type. Fixed qi.t_bl field assignment.v3: Removed mpagesize as unused. Duplicate code and redundant blankline
fixed.
This should be
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111600
Quoted 9 lines
--- drivers/gpu/drm/i915/display/intel_bw.c | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/display/intel_bw.c +0
-0
drivers/gpu/drm/i915/display/intel_bw.c static int icl_pcode_read_mem_global_info(struct drm_i915_private *dev_priv, · line 61
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_bw.c +3
-1@@ -56,7 +56,11 @@ static int icl_pcode_read_mem_global_info(struct drm_i915_private *dev_priv, qi->num_channels = (val &0xf0 ) >>4 ; qi->num_points = (val &0xf00 ) >>8 ; - qi->t_bl = qi->dram_type ==INTEL_DRAM_DDR4 ?4 :8 ; +if (IS_GEN (dev_priv,11 )) { + qi->t_bl = qi->dram_type ==INTEL_DRAM_DDR4 ?4 :8 ; + }else if (IS_GEN (dev_priv,12 )) {
Preferred style is to have gen checks ordered from newest to oldest
Quoted 36 lines
drivers/gpu/drm/i915/display/intel_bw.c +11
-4+ qi->t_bl = qi->dram_type ==INTEL_DRAM_DDR4 ?4 :16 ; + }return 0 ; }@@ -132,20 +136,25 @@ static int icl_sagv_max_dclk(const struct intel_qgv_info *qi) }struct intel_sa_info { -u8 deburst, mpagesize, deprogbwlimit, displayrtids; +u16 displayrtids; +u8 deburst, deprogbwlimit; };static const struct intel_sa_info icl_sa_info = { .deburst =8 , - .mpagesize =16 , .deprogbwlimit =25 ,/* GB/s */ .displayrtids =128 , }; -static int icl_get_bw_info (struct drm_i915_private *dev_priv) +static const struct intel_sa_info tgl_sa_info = { + .deburst =16 , + .deprogbwlimit =34 ,/* GB/s */ + .displayrtids =256 , +}; + +static int icl_get_bw_info (struct drm_i915_private *dev_priv,const struct intel_sa_info *sa) {struct intel_qgv_info qi = {}; -const struct intel_sa_info *sa = &icl_sa_info;bool is_y_tile = true;/* assume y tile may be used */ int num_channels;int deinterleave;
drivers/gpu/drm/i915/display/intel_bw.c static unsigned int icl_max_bw(struct drm_i915_private *dev_priv, · line 247
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_bw.c +2
-1@@ -234,13 +243,15 @@ static unsigned int icl_max_bw(struct drm_i915_private *dev_priv,void intel_bw_init_hw (struct drm_i915_private *dev_priv) {if (IS_GEN (dev_priv,11 )) -icl_get_bw_info (dev_priv); +icl_get_bw_info (dev_priv, &icl_sa_info); +else if (IS_GEN (dev_priv,12 ))
Same comment here
drivers/gpu/drm/i915/display/intel_bw.c static unsigned int icl_max_bw(struct drm_i915_private *dev_priv, · line 254
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_bw.c +2
-1+icl_get_bw_info (dev_priv, &tgl_sa_info); }static unsigned int intel_max_data_rate (struct drm_i915_private *dev_priv,int num_planes) { -if (IS_GEN (dev_priv,11 )) +if (IS_GEN (dev_priv,11 ) ||IS_GEN (dev_priv,12 ))
It would be good to future proof this - if (INTEL_GEN(dev_priv) >= 11)
With the above fixed up,
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_bw.c +0
-0/* * FIXME with SAGV disabled maybe we can assume * point 1 will always be used? Seems to match Signature · 1 line
2.17.1
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx