drm/i915/icl: Fix read of memory frequency
Subsystems (2)
PATCH 1/1 drm/i915/icl: Fix read of memory frequency
All display 9 and display 10 platforms has only 4 bits for the memory frequency but display 11 platforms it changes to 8 bits.
Display 9 platforms has another register in bits 7:4 that prevents us to have a single mask.
Also adding new mask with the current name in CRWebViewer, not sure why current mask is named like this.
--- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_dram.c | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -11148,6 +11148,7 @@ enum skl_power_gate {#define SKL_MEMORY_FREQ_MULTIPLIER_HZ 266666666#define SKL_MC_BIOS_DATA_0_0_0_MCHBAR_PCU _MMIO(MCHBAR_MIRROR_BASE_SNB + 0x5E04)#define SKL_REQ_DATA_MASK (0xF << 0) +#define ICL_FREQ_MASK (0xFF << 0)#define DG1_GEAR_TYPE REG_BIT(16)#define SKL_MAD_INTER_CHANNEL_0_0_0_MCHBAR_MCMAIN _MMIO(MCHBAR_MIRROR_BASE_SNB + 0x5000)
drivers/gpu/drm/i915/intel_dram.c +5 -2
@@ -257,8 +257,11 @@ skl_get_dram_info(struct drm_i915_private *i915) val =intel_uncore_read (&i915->uncore,SKL_MC_BIOS_DATA_0_0_0_MCHBAR_PCU ); - mem_freq_khz =DIV_ROUND_UP ((val &SKL_REQ_DATA_MASK ) * -SKL_MEMORY_FREQ_MULTIPLIER_HZ ,1000 ); +if (DISPLAY_VER (i915) ==11 ) + val &=ICL_FREQ_MASK ; +else + val &=SKL_REQ_DATA_MASK ; + mem_freq_khz =DIV_ROUND_UP (val *SKL_MEMORY_FREQ_MULTIPLIER_HZ ,1000 );if (dram_info->num_channels * mem_freq_khz ==0 ) { drm_info(&i915->drm,
Signature · 1 line
2.33.0
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/icl: Fix read of memory frequency
== Series Details ==
== Series Details ==
Series: drm/i915/icl: Fix read of memory frequency
URL : https://patchwork.freedesktop.org/series/95627/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
fe3148c5e2ce drm/i915/icl: Fix read of memory frequency
-:17: WARNING:UNKNOWN_COMMIT_ID: Unknown commit id 'f8112cb9574b', maybe rebased or not pulled?
#17:
Fixes: f8112cb9574b ("drm/i915/gen11+: Only load DRAM information from pcode")total: 0 errors, 1 warnings, 0 checks, 20 lines checked
Quoted 9 lines · José Roberto de Souza
All display 9 and display 10 platforms has only 4 bits for the memory frequency but display 11 platforms it changes to 8 bits.
Display 9 platforms has another register in bits 7:4 that prevents us to have a single mask.
Also adding new mask with the current name in CRWebViewer, not sure why current mask is named like this.Fixes f8112cb9574b ("drm/i915/gen11+: Only load DRAM information from pcode")
Ops hash should be: 5d0c938ec9cc
Will fix in the next version or when applying.
Quoted 36 lines
Signed-off-by José Roberto de Souza <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_dram.c | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_reg.h +1
-0@@ -11148,6 +11148,7 @@ enum skl_power_gate {#define SKL_MEMORY_FREQ_MULTIPLIER_HZ 266666666#define SKL_MC_BIOS_DATA_0_0_0_MCHBAR_PCU _MMIO(MCHBAR_MIRROR_BASE_SNB + 0x5E04)#define SKL_REQ_DATA_MASK (0xF << 0) +#define ICL_FREQ_MASK (0xFF << 0)#define DG1_GEAR_TYPE REG_BIT(16)#define SKL_MAD_INTER_CHANNEL_0_0_0_MCHBAR_MCMAIN _MMIO(MCHBAR_MIRROR_BASE_SNB + 0x5000)drivers/gpu/drm/i915/intel_dram.c +5
-2@@ -257,8 +257,11 @@ skl_get_dram_info(struct drm_i915_private *i915) val =intel_uncore_read (&i915->uncore,SKL_MC_BIOS_DATA_0_0_0_MCHBAR_PCU ); - mem_freq_khz =DIV_ROUND_UP ((val &SKL_REQ_DATA_MASK ) * -SKL_MEMORY_FREQ_MULTIPLIER_HZ ,1000 ); +if (DISPLAY_VER (i915) ==11 ) + val &=ICL_FREQ_MASK ; +else + val &=SKL_REQ_DATA_MASK ; + mem_freq_khz =DIV_ROUND_UP (val *SKL_MEMORY_FREQ_MULTIPLIER_HZ ,1000 );if (dram_info->num_channels * mem_freq_khz ==0 ) { drm_info(&i915->drm,
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/icl: Fix read of memory frequency
In reply to José Roberto de Souza== Series Details ==
== Series Details ==
Series: drm/i915/icl: Fix read of memory frequency
URL : https://patchwork.freedesktop.org/series/95627/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10700 -> Patchwork_21295
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/index.html
Known issues
------------
Here are the changes found in Patchwork_21295 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_flip@basic-flip-vs-modeset@c-dp1:
- fi-cfl-8109u: [PASS][1] -> [FAIL][2] ([i915#4165]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/fi-cfl-8109u/igt@kms_flip@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/fi-cfl-8109u/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-cml-u2: [PASS][3] -> [DMESG-WARN][4] ([i915#4269])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/fi-cml-u2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/fi-cml-u2/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-b:
- fi-cfl-8109u: [PASS][5] -> [DMESG-WARN][6] ([i915#295]) +18 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/fi-cfl-8109u/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/fi-cfl-8109u/igt@[email protected]
#### Possible fixes ####
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-a:
- {fi-tgl-dsi}: [DMESG-WARN][7] ([i915#1982]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/fi-tgl-dsi/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/fi-tgl-dsi/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#295]: https://gitlab.freedesktop.org/drm/intel/issues/295
[i915#4165]: https://gitlab.freedesktop.org/drm/intel/issues/4165
[i915#4269]: https://gitlab.freedesktop.org/drm/intel/issues/4269
Participating hosts (40 -> 37)
------------------------------
Missing (3): fi-ilk-m540 fi-bsw-cyan fi-hsw-4200u
Build changes
-------------
* Linux: CI_DRM_10700 -> Patchwork_21295
CI-20190529: 20190529
CI_DRM_10700: 6ecdd5e29c83cd8fc191f8cce5c283eefb53c97e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6240: b232a092b9e1b10a8be13601acaa440903b226bc @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_21295: fe3148c5e2cea9b6f99d1e034361122eedad8c45 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
fe3148c5e2ce drm/i915/icl: Fix read of memory frequency
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/index.html
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/icl: Fix read of memory frequency
In reply to José Roberto de Souza== Series Details ==
== Series Details ==
Series: drm/i915/icl: Fix read of memory frequency
URL : https://patchwork.freedesktop.org/series/95627/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10700_full -> Patchwork_21295_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_21295_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_21295_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_21295_full:
### IGT changes ###
#### Possible regressions ####
* igt@i915_pm_dc@dc9-dpms:
- shard-tglb: NOTRUN -> [SKIP][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-tglb5/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_21295_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_eio@unwedge-stress:
- shard-tglb: [PASS][2] -> [TIMEOUT][3] ([i915#2369] / [i915#3063] / [i915#3648])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-tglb2/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-tglb8/igt@[email protected]
* igt@gem_exec_fair@basic-none-vip@rcs0:
- shard-kbl: [PASS][4] -> [FAIL][5] ([i915#2842]) +1 similar issue
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl3/igt@gem_exec_fair@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [PASS][6] -> [FAIL][7] ([i915#2842]) +1 similar issue
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk6/igt@gem_exec_fair@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-iclb: NOTRUN -> [FAIL][8] ([i915#2842]) +1 similar issue
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-glk: NOTRUN -> [FAIL][9] ([i915#2842])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk8/igt@gem_exec_fair@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-apl: NOTRUN -> [SKIP][10] ([fdo#109271] / [i915#2190])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl3/igt@[email protected]
* igt@gem_pwrite@basic-exhaustion:
- shard-snb: NOTRUN -> [WARN][11] ([i915#2658])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-snb5/igt@[email protected]
- shard-glk: NOTRUN -> [WARN][12] ([i915#2658])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk8/igt@[email protected]
* igt@gem_pxp@reject-modify-context-protection-off-2:
- shard-tglb: NOTRUN -> [SKIP][13] ([i915#4270])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-tglb5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][14] ([i915#4270])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb7/igt@[email protected]
* igt@gem_render_copy@yf-tiled-mc-ccs-to-vebox-y-tiled:
- shard-glk: NOTRUN -> [SKIP][15] ([fdo#109271]) +36 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk8/igt@[email protected]
* igt@gen9_exec_parse@batch-invalid-length:
- shard-iclb: NOTRUN -> [SKIP][16] ([i915#2856])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb7/igt@[email protected]
* igt@kms_big_fb@x-tiled-32bpp-rotate-180:
- shard-glk: NOTRUN -> [DMESG-WARN][17] ([i915#118])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk8/igt@[email protected]
* igt@kms_big_fb@x-tiled-64bpp-rotate-270:
- shard-iclb: NOTRUN -> [SKIP][18] ([fdo#110725] / [fdo#111614])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb7/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-hflip:
- shard-kbl: NOTRUN -> [SKIP][19] ([fdo#109271] / [i915#3777])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl7/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-hflip:
- shard-apl: NOTRUN -> [SKIP][20] ([fdo#109271] / [i915#3777]) +1 similar issue
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl3/igt@[email protected]
* igt@kms_big_fb@y-tiled-16bpp-rotate-0:
- shard-glk: [PASS][21] -> [DMESG-WARN][22] ([i915#118]) +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk5/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk4/igt@[email protected]
* igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc:
- shard-skl: NOTRUN -> [SKIP][23] ([fdo#109271] / [i915#3886]) +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl10/igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-b-bad-pixel-format-y_tiled_ccs:
- shard-snb: NOTRUN -> [SKIP][24] ([fdo#109271]) +137 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-snb5/igt@kms_ccs@pipe-b-bad-pixel-format-y_tiled_ccs.html
* igt@kms_ccs@pipe-b-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc:
- shard-apl: NOTRUN -> [SKIP][25] ([fdo#109271] / [i915#3886]) +10 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl6/igt@kms_ccs@pipe-b-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-c-crc-primary-rotation-180-y_tiled_gen12_mc_ccs:
- shard-kbl: NOTRUN -> [SKIP][26] ([fdo#109271] / [i915#3886]) +3 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl7/igt@kms_ccs@pipe-c-crc-primary-rotation-180-y_tiled_gen12_mc_ccs.html
* igt@kms_cdclk@mode-transition:
- shard-apl: NOTRUN -> [SKIP][27] ([fdo#109271]) +131 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl1/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-with-enabled-mode:
- shard-snb: NOTRUN -> [SKIP][28] ([fdo#109271] / [fdo#111827]) +5 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-snb7/igt@[email protected]
* igt@kms_chamelium@vga-hpd:
- shard-apl: NOTRUN -> [SKIP][29] ([fdo#109271] / [fdo#111827]) +12 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl6/igt@[email protected]
* igt@kms_color@pipe-a-ctm-0-5:
- shard-skl: [PASS][30] -> [DMESG-WARN][31] ([i915#1982]) +2 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl7/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl5/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-negative:
- shard-kbl: NOTRUN -> [SKIP][32] ([fdo#109271] / [fdo#111827]) +4 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl7/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-0-5:
- shard-glk: NOTRUN -> [SKIP][33] ([fdo#109271] / [fdo#111827]) +2 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk8/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-red-to-blue:
- shard-skl: NOTRUN -> [SKIP][34] ([fdo#109271] / [fdo#111827]) +5 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl10/igt@[email protected]
* igt@kms_content_protection@legacy:
- shard-kbl: NOTRUN -> [TIMEOUT][35] ([i915#1319])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl7/igt@[email protected]
* igt@kms_content_protection@lic:
- shard-apl: NOTRUN -> [TIMEOUT][36] ([i915#1319])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl6/igt@[email protected]
* igt@kms_content_protection@uevent:
- shard-kbl: NOTRUN -> [FAIL][37] ([i915#2105])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl7/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-32x32-sliding:
- shard-iclb: NOTRUN -> [SKIP][38] ([fdo#109278]) +4 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb7/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-kbl: [PASS][39] -> [DMESG-WARN][40] ([i915#180]) +3 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl2/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-512x170-rapid-movement:
- shard-tglb: NOTRUN -> [SKIP][41] ([i915#3359])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-tglb5/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-skl: [PASS][42] -> [FAIL][43] ([i915#2346])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl7/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl5/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@c-hdmi-a2:
- shard-glk: [PASS][44] -> [FAIL][45] ([i915#79])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk4/igt@kms_flip@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk1/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
- shard-apl: NOTRUN -> [DMESG-WARN][46] ([i915#180]) +2 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl6/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@c-dp1:
- shard-kbl: NOTRUN -> [DMESG-WARN][47] ([i915#180]) +3 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl7/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate-interruptible@b-edp1:
- shard-skl: [PASS][48] -> [FAIL][49] ([i915#2122]) +1 similar issue
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl2/igt@kms_flip@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl6/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile:
- shard-iclb: [PASS][50] -> [SKIP][51] ([i915#3701])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb3/igt@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb2/igt@[email protected]
- shard-skl: NOTRUN -> [INCOMPLETE][52] ([i915#3699])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl10/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-render:
- shard-iclb: NOTRUN -> [SKIP][53] ([fdo#109280])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb7/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-render.html
* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: [PASS][54] -> [FAIL][55] ([i915#1188])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl9/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl1/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- shard-apl: NOTRUN -> [SKIP][56] ([fdo#109271] / [i915#533]) +1 similar issue
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl1/igt@[email protected]
* igt@kms_pipe_crc_basic@disable-crc-after-crtc-pipe-d:
- shard-glk: NOTRUN -> [SKIP][57] ([fdo#109271] / [i915#533])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk8/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-d:
- shard-kbl: NOTRUN -> [SKIP][58] ([fdo#109271] / [i915#533])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl7/igt@[email protected]
* igt@kms_plane@pixel-format-source-clamping@pipe-a-planes:
- shard-skl: NOTRUN -> [SKIP][59] ([fdo#109271]) +100 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl10/igt@kms_plane@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b-planes:
- shard-apl: [PASS][60] -> [DMESG-WARN][61] ([i915#180])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-apl3/igt@kms_plane@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl3/igt@kms_plane@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-skl: NOTRUN -> [FAIL][62] ([fdo#108145] / [i915#265])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-7efc:
- shard-apl: NOTRUN -> [FAIL][63] ([fdo#108145] / [i915#265])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-basic:
- shard-glk: NOTRUN -> [FAIL][64] ([fdo#108145] / [i915#265])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk8/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-transparent-fb:
- shard-apl: NOTRUN -> [FAIL][65] ([i915#265])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][66] -> [FAIL][67] ([fdo#108145] / [i915#265]) +1 similar issue
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl1/igt@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl8/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-2:
- shard-skl: NOTRUN -> [SKIP][68] ([fdo#109271] / [i915#658])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl10/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-3:
- shard-apl: NOTRUN -> [SKIP][69] ([fdo#109271] / [i915#658]) +1 similar issue
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl6/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-4:
- shard-kbl: NOTRUN -> [SKIP][70] ([fdo#109271] / [i915#658])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl7/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-1:
- shard-glk: NOTRUN -> [SKIP][71] ([fdo#109271] / [i915#658])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk8/igt@[email protected]
* igt@kms_psr@cursor_plane_onoff:
- shard-kbl: NOTRUN -> [SKIP][72] ([fdo#109271]) +82 similar issues
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl6/igt@kms_psr@cursor_plane_onoff.html
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [PASS][73] -> [SKIP][74] ([fdo#109441]) +4 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb6/igt@kms_psr@psr2_primary_mmap_cpu.html
* igt@kms_setmode@clone-exclusive-crtc:
- shard-skl: NOTRUN -> [WARN][75] ([i915#2100])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl10/igt@[email protected]
* igt@kms_vblank@pipe-b-accuracy-idle:
- shard-glk: [PASS][76] -> [FAIL][77] ([i915#43])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk3/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk3/igt@[email protected]
* igt@sysfs_clients@recycle:
- shard-skl: NOTRUN -> [SKIP][78] ([fdo#109271] / [i915#2994])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl10/igt@[email protected]
* igt@sysfs_clients@recycle-many:
- shard-glk: NOTRUN -> [SKIP][79] ([fdo#109271] / [i915#2994])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk8/igt@[email protected]
* igt@sysfs_clients@sema-25:
- shard-kbl: NOTRUN -> [SKIP][80] ([fdo#109271] / [i915#2994]) +2 similar issues
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl7/igt@[email protected]
#### Possible fixes ####
* igt@gem_eio@in-flight-contexts-1us:
- shard-iclb: [TIMEOUT][81] ([i915#3070]) -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb8/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb5/igt@[email protected]
* igt@gem_eio@in-flight-contexts-immediate:
- shard-apl: [TIMEOUT][83] ([i915#3063]) -> [PASS][84]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-apl7/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl1/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-glk: [FAIL][85] ([i915#2846]) -> [PASS][86]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk8/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk9/igt@[email protected]
* igt@gem_exec_fair@basic-flow@rcs0:
- shard-glk: [FAIL][87] ([i915#2842]) -> [PASS][88] +1 similar issue
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk7/igt@gem_exec_fair@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs1:
- shard-kbl: [FAIL][89] ([i915#2842]) -> [PASS][90]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl7/igt@gem_exec_fair@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs1:
- shard-kbl: [SKIP][91] ([fdo#109271]) -> [PASS][92]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl3/igt@gem_exec_fair@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl4/igt@gem_exec_fair@[email protected]
- shard-tglb: [FAIL][93] ([i915#2842]) -> [PASS][94]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-tglb2/igt@gem_exec_fair@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-tglb8/igt@gem_exec_fair@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-tglb: [SKIP][95] ([i915#2190]) -> [PASS][96]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-tglb6/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-tglb3/igt@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-skl: [DMESG-WARN][97] ([i915#1436] / [i915#716]) -> [PASS][98]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl8/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl2/igt@[email protected]
* igt@i915_pm_dc@dc6-dpms:
- shard-iclb: [FAIL][99] ([i915#454]) -> [PASS][100]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb3/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb1/igt@[email protected]
* igt@i915_pm_rpm@system-suspend:
- shard-skl: [INCOMPLETE][101] ([i915#151]) -> [PASS][102]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl10/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl7/igt@[email protected]
* igt@kms_async_flips@alternate-sync-async-flip:
- shard-skl: [FAIL][103] ([i915#2521]) -> [PASS][104]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl8/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl3/igt@[email protected]
* igt@kms_big_fb@yf-tiled-16bpp-rotate-0:
- shard-glk: [DMESG-WARN][105] ([i915#118]) -> [PASS][106]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk2/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk2/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [DMESG-WARN][107] ([i915#180]) -> [PASS][108] +3 similar issues
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl6/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-kbl6/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@b-edp1:
- shard-skl: [FAIL][109] ([i915#79]) -> [PASS][110]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl6/igt@kms_flip@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl9/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate@a-edp1:
- shard-skl: [FAIL][111] ([i915#2122]) -> [PASS][112]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl1/igt@kms_flip@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl8/igt@kms_flip@[email protected]
* igt@kms_psr@psr2_primary_page_flip:
- shard-iclb: [SKIP][113] ([fdo#109441]) -> [PASS][114] +3 similar issues
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb3/igt@kms_psr@psr2_primary_page_flip.html
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb2/igt@kms_psr@psr2_primary_page_flip.html
* igt@perf@polling-parameterized:
- shard-glk: [FAIL][115] ([i915#1542]) -> [PASS][116]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk5/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk4/igt@[email protected]
- shard-skl: [FAIL][117] ([i915#1542]) -> [PASS][118]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl8/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl3/igt@[email protected]
#### Warnings ####
* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-glk: [FAIL][119] ([i915#2842]) -> [FAIL][120] ([i915#2851])
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk6/igt@gem_exec_fair@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-glk6/igt@gem_exec_fair@[email protected]
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-iclb: [WARN][121] ([i915#1804] / [i915#2684]) -> [WARN][122] ([i915#2684])
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb7/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb8/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-1:
- shard-iclb: [SKIP][123] ([i915#2920]) -> [SKIP][124] ([i915#658]) +3 similar issues
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb2/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb7/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-4:
- shard-iclb: [SKIP][125] ([i915#658]) -> [SKIP][126] ([i915#2920]) +1 similar issue
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb1/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-iclb2/igt@[email protected]
* igt@runner@aborted:
- shard-apl: ([FAIL][127], [FAIL][128], [FAIL][129]) ([fdo#109271] / [i915#1814] / [i915#3002] / [i915#3363]) -> ([FAIL][130], [FAIL][131], [FAIL][132], [FAIL][133], [FAIL][134], [FAIL][135], [FAIL][136]) ([fdo#109271] / [i915#180] / [i915#1814] / [i915#3002] / [i915#3363])
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-apl6/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-apl7/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-apl2/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl3/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl6/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl6/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl3/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl2/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl3/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-apl7/igt@[email protected]
- shard-skl: ([FAIL][137], [FAIL][138], [FAIL][139], [FAIL][140]) ([i915#1436] / [i915#2029] / [i915#3002] / [i915#3363]) -> ([FAIL][141], [FAIL][142]) ([i915#3002] / [i915#3363])
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl8/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl9/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl2/igt@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl3/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl9/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/shard-skl4/igt@[email protected]
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110725]: https://bugs.freedesktop.org/show_bug.cgi?id=110725
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#1319]: https://gitlab.freedesktop.org/drm/intel/issues/1319
[i915#1436]: https://
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21295/index.html
Quoted 20 lines · José Roberto de Souza
All display 9 and display 10 platforms has only 4 bits for the memory frequency but display 11 platforms it changes to 8 bits.
Display 9 platforms has another register in bits 7:4 that prevents us to have a single mask.
Also adding new mask with the current name in CRWebViewer, not sure why current mask is named like this.Fixes f8112cb9574b ("drm/i915/gen11+: Only load DRAM information from pcode")Signed-off-by José Roberto de Souza <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_dram.c | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_reg.h +0
-0
drivers/gpu/drm/i915/i915_reg.h enum skl_power_gate { · line 11151
Quoted 4 lines
drivers/gpu/drm/i915/i915_reg.h +1
-0@@ -11148,6 +11148,7 @@ enum skl_power_gate {#define SKL_MEMORY_FREQ_MULTIPLIER_HZ 266666666#define SKL_MC_BIOS_DATA_0_0_0_MCHBAR_PCU _MMIO(MCHBAR_MIRROR_BASE_SNB + 0x5E04)#define SKL_REQ_DATA_MASK (0xF << 0) +#define ICL_FREQ_MASK (0xFF << 0)
We might as well take this opportunity to switch over to REG_GENMASK notation while we're here.
Quoted 8 lines
drivers/gpu/drm/i915/i915_reg.h +0
-0#define DG1_GEAR_TYPE REG_BIT(16)#define SKL_MAD_INTER_CHANNEL_0_0_0_MCHBAR_MCMAIN _MMIO(MCHBAR_MIRROR_BASE_SNB + 0x5000)drivers/gpu/drm/i915/intel_dram.c +0
-0
drivers/gpu/drm/i915/intel_dram.c skl_get_dram_info(struct drm_i915_private *i915) · line 264
Quoted 10 lines
drivers/gpu/drm/i915/intel_dram.c +5
-2@@ -257,8 +257,11 @@ skl_get_dram_info(struct drm_i915_private *i915) val =intel_uncore_read (&i915->uncore,SKL_MC_BIOS_DATA_0_0_0_MCHBAR_PCU ); - mem_freq_khz =DIV_ROUND_UP ((val &SKL_REQ_DATA_MASK ) * -SKL_MEMORY_FREQ_MULTIPLIER_HZ ,1000 ); +if (DISPLAY_VER (i915) ==11 ) + val &=ICL_FREQ_MASK ; +else + val &=SKL_REQ_DATA_MASK ; + mem_freq_khz =DIV_ROUND_UP (val *SKL_MEMORY_FREQ_MULTIPLIER_HZ ,1000 );
I'm not sure SKL_MEMORY_FREQ_MULTIPLIER_HZ is correct anymore either. If I'm reading the register description correctly, it appears the value is now given in units of 133.33 MHz instead of the old 266.66.
Matt
Quoted 6 lines
drivers/gpu/drm/i915/intel_dram.c +0
-0if (dram_info->num_channels * mem_freq_khz ==0 ) { drm_info(&i915->drm,Signature · 1 line
2.33.0
Signature · 5 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795
Quoted 16 lines · Matt Roper
Quoted 15 lines · José Roberto de Souza
All display 9 and display 10 platforms has only 4 bits for the memory frequency but display 11 platforms it changes to 8 bits.
Display 9 platforms has another register in bits 7:4 that prevents us to have a single mask.
Also adding new mask with the current name in CRWebViewer, not sure why current mask is named like this.Fixes f8112cb9574b ("drm/i915/gen11+: Only load DRAM information from pcode")Signed-off-by José Roberto de Souza <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_dram.c | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-)
Quoted 12 lines
drivers/gpu/drm/i915/i915_reg.h enum skl_power_gate { · line 11151
Quoted 9 lines
drivers/gpu/drm/i915/i915_reg.h +1
-0@@ -11148,6 +11148,7 @@ enum skl_power_gate {#define SKL_MEMORY_FREQ_MULTIPLIER_HZ 266666666#define SKL_MC_BIOS_DATA_0_0_0_MCHBAR_PCU _MMIO(MCHBAR_MIRROR_BASE_SNB + 0x5E04)#define SKL_REQ_DATA_MASK (0xF << 0) +#define ICL_FREQ_MASK (0xFF << 0)We might as well take this opportunity to switch over to
REG_GENMASKnotation while we're here.
Will do.
Quoted 10 lines
Quoted 10 lines
drivers/gpu/drm/i915/i915_reg.h +0
-0#define DG1_GEAR_TYPE REG_BIT(16)#define SKL_MAD_INTER_CHANNEL_0_0_0_MCHBAR_MCMAIN _MMIO(MCHBAR_MIRROR_BASE_SNB + 0x5000)drivers/gpu/drm/i915/intel_dram.c +0
-0@@ -257,8 +257,11 @@ skl_get_dram_info(struct drm_i915_private *i915)
Quoted 13 lines
drivers/gpu/drm/i915/intel_dram.c skl_get_dram_info(struct drm_i915_private *i915) · line 264
Quoted 9 lines
drivers/gpu/drm/i915/intel_dram.c +5
-2val =intel_uncore_read (&i915->uncore,SKL_MC_BIOS_DATA_0_0_0_MCHBAR_PCU ); - mem_freq_khz =DIV_ROUND_UP ((val &SKL_REQ_DATA_MASK ) * -SKL_MEMORY_FREQ_MULTIPLIER_HZ ,1000 ); +if (DISPLAY_VER (i915) ==11 ) + val &=ICL_FREQ_MASK ; +else + val &=SKL_REQ_DATA_MASK ; + mem_freq_khz =DIV_ROUND_UP (val *SKL_MEMORY_FREQ_MULTIPLIER_HZ ,1000 );I'm not sure
SKL_MEMORY_FREQ_MULTIPLIER_HZis correct anymore either. If I'm reading the register description correctly, it appears the value is now given in units of 133.33 MHz instead of the old 266.66.
Thought about that but as the calculated memory frequency here is not used for anything besides check if is not zero, I left as is.
Quoted 11 lines
Matt
Quoted 6 lines
drivers/gpu/drm/i915/intel_dram.c +0
-0if (dram_info->num_channels * mem_freq_khz ==0 ) { drm_info(&i915->drm,Signature · 1 line
2.33.0
Quoted 56 lines · Jose
Quoted 16 lines · Matt Roper
Quoted 15 lines · José Roberto de Souza
All display 9 and display 10 platforms has only 4 bits for the memory frequency but display 11 platforms it changes to 8 bits.
Display 9 platforms has another register in bits 7:4 that prevents us to have a single mask.
Also adding new mask with the current name in CRWebViewer, not sure why current mask is named like this.Fixes f8112cb9574b ("drm/i915/gen11+: Only load DRAM information from pcode")Signed-off-by José Roberto de Souza <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_dram.c | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-)Quoted 12 lines
drivers/gpu/drm/i915/i915_reg.h enum skl_power_gate { · line 11151
Quoted 9 lines
drivers/gpu/drm/i915/i915_reg.h +1
-0@@ -11148,6 +11148,7 @@ enum skl_power_gate {#define SKL_MEMORY_FREQ_MULTIPLIER_HZ 266666666#define SKL_MC_BIOS_DATA_0_0_0_MCHBAR_PCU _MMIO(MCHBAR_MIRROR_BASE_SNB + 0x5E04)#define SKL_REQ_DATA_MASK (0xF << 0) +#define ICL_FREQ_MASK (0xFF << 0)We might as well take this opportunity to switch over to
REG_GENMASKnotation while we're here.Will do.
Quoted 10 lines
Quoted 10 lines
drivers/gpu/drm/i915/i915_reg.h +0
-0#define DG1_GEAR_TYPE REG_BIT(16)#define SKL_MAD_INTER_CHANNEL_0_0_0_MCHBAR_MCMAIN _MMIO(MCHBAR_MIRROR_BASE_SNB + 0x5000)drivers/gpu/drm/i915/intel_dram.c +0
-0@@ -257,8 +257,11 @@ skl_get_dram_info(struct drm_i915_private *i915)Quoted 13 lines
drivers/gpu/drm/i915/intel_dram.c skl_get_dram_info(struct drm_i915_private *i915) · line 264
Quoted 9 lines
drivers/gpu/drm/i915/intel_dram.c +5
-2val =intel_uncore_read (&i915->uncore,SKL_MC_BIOS_DATA_0_0_0_MCHBAR_PCU ); - mem_freq_khz =DIV_ROUND_UP ((val &SKL_REQ_DATA_MASK ) * -SKL_MEMORY_FREQ_MULTIPLIER_HZ ,1000 ); +if (DISPLAY_VER (i915) ==11 ) + val &=ICL_FREQ_MASK ; +else + val &=SKL_REQ_DATA_MASK ; + mem_freq_khz =DIV_ROUND_UP (val *SKL_MEMORY_FREQ_MULTIPLIER_HZ ,1000 );I'm not sure
SKL_MEMORY_FREQ_MULTIPLIER_HZis correct anymore either. If I'm reading the register description correctly, it appears the value is now given in units of 133.33 MHz instead of the old 266.66.
Quoted 1 line
Thought about that but as the calculated memory frequency here is not used for anything besides check if is not zero, I left as is.
Hmm, good point. Although in that case do we really need to read this register at all? It seems like after
commit f0b29707baa9e6f3d7b90090fcce62d2f1023fa1
Author: José Roberto de Souza <[email protected]>
AuthorDate: Thu Jan 28 08:43:10 2021 -0800
Commit: José Roberto de Souza <[email protected]>
CommitDate: Fri Jan 29 05:50:48 2021 -0800
drm/i915: Nuke not needed members of dram_info
we're not calculating bandwidth_kbps, so checking if the register is valid doesn't really gain us anything and could just be removed? A simple check for
if (dram_info->num_channels == 0) {
...error...
}might be sufficient?
Matt
Quoted 13 lines
Quoted 12 lines
Matt
Quoted 6 lines
drivers/gpu/drm/i915/intel_dram.c +0
-0if (dram_info->num_channels * mem_freq_khz ==0 ) { drm_info(&i915->drm,Signature · 1 line
2.33.0
Signature · 5 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795