drm/i915: Add Wa_18028616096
Subsystems (2)
PATCH 1/1 drm/i915: Add Wa_18028616096
Drop UGM per set fragment threshold to 3
BSpec: 54833
--- drivers/gpu/drm/i915/gt/intel_gt_regs.h | 1 + drivers/gpu/drm/i915/gt/intel_workarounds.c | 3 +++ 2 files changed, 4 insertions(+)
drivers/gpu/drm/i915/gt/intel_gt_regs.h +1 -0
@@ -1230,6 +1230,7 @@#define DISABLE_D8_D16_COASLESCE REG_BIT(30)#define FORCE_1_SUB_MESSAGE_PER_FRAGMENT REG_BIT(15)#define LSC_CHICKEN_BIT_0_UDW MCR_REG(0xe7c8 + 4) +#define UGM_FRAGMENT_THRESHOLD_TO_3 REG_BIT(58 - 32)#define DIS_CHAIN_2XSIMD8 REG_BIT(55 - 32)#define FORCE_SLM_FENCE_SCOPE_TO_TILE REG_BIT(42 - 32)#define FORCE_UGM_FENCE_SCOPE_TO_TILE REG_BIT(41 - 32)
drivers/gpu/drm/i915/gt/intel_workarounds.c +3 -0
@@ -2914,6 +2914,9 @@ general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_li* Wa_22015475538:dg2 */ wa_mcr_write_or (wal,LSC_CHICKEN_BIT_0_UDW ,DIS_CHAIN_2XSIMD8 ); + +/* Wa_18028616096:dg2 */ +wa_mcr_write_or (wal,LSC_CHICKEN_BIT_0_UDW ,UGM_FRAGMENT_THRESHOLD_TO_3 ); }if (IS_DG2_G11 (i915)) {
Signature · 1 line
2.34.1
Quoting Shekhar Chauhan (2023-09-21 11:30:28-03:00)
Quoted 26 lines
Drop UGM per set fragment threshold to 3
BSpec: 54833
Signed-off-by Shekhar Chauhan <[email protected]>---
drivers/gpu/drm/i915/gt/intel_gt_regs.h| 1 +drivers/gpu/drm/i915/gt/intel_workarounds.c| 3 +++2 files changed, 4 insertions(+)drivers/gpu/drm/i915/gt/intel_gt_regs.h +1
-0@@ -1230,6 +1230,7 @@#define DISABLE_D8_D16_COASLESCE REG_BIT(30)#define FORCE_1_SUB_MESSAGE_PER_FRAGMENT REG_BIT(15)#define LSC_CHICKEN_BIT_0_UDW MCR_REG(0xe7c8 + 4) +#define UGM_FRAGMENT_THRESHOLD_TO_3 REG_BIT(58 - 32)#define DIS_CHAIN_2XSIMD8 REG_BIT(55 - 32)#define FORCE_SLM_FENCE_SCOPE_TO_TILE REG_BIT(42 - 32)#define FORCE_UGM_FENCE_SCOPE_TO_TILE REG_BIT(41 - 32)drivers/gpu/drm/i915/gt/intel_workarounds.c +0
-0
drivers/gpu/drm/i915/gt/intel_workarounds.c general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_li · line 2918
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +2
-0@@ -2914,6 +2914,9 @@ general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_li* Wa_22015475538:dg2 */ wa_mcr_write_or (wal,LSC_CHICKEN_BIT_0_UDW ,DIS_CHAIN_2XSIMD8 ); + +/* Wa_18028616096:dg2 */
This is not a blocker, but I would prefer to remove the ":dg2" suffix.
There was an effort to remove them from our driver[1], but it kinda of stalled. I myself agree that we would be better off without them.
drivers/gpu/drm/i915/gt/intel_workarounds.c general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_li · line 2919
Quoted 1 line
drivers/gpu/drm/i915/gt/intel_workarounds.c +1
-0+wa_mcr_write_or (wal,LSC_CHICKEN_BIT_0_UDW ,UGM_FRAGMENT_THRESHOLD_TO_3 );
This workaround applies to (i) DG2 G10 from stepping C0 to forever and (ii) any stepping of DG2 G12. Here you are applying this workaround to any variant of DG2.
It should be moved out of this "if" statement and rather be guarded by something like:
if ((IS_DG2_G10(i915) && IS_GRAPHICS_STEP(i915, STEP_C0, STEP_FOREVER)) || IS_DG2_G12(i915))
Note that we are there is still a pending decision for G11, so we may need to update this in the future.
--
Gustavo Sousa
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +0
-0}if (IS_DG2_G11 (i915)) {Signature · 1 line
2.34.1
Quoting Gustavo Sousa:
Quoted 34 lines · Gustavo Sousa
Quoting Shekhar Chauhan (2023-09-21 11:30:28-03:00)
Quoted 26 lines
Drop UGM per set fragment threshold to 3
BSpec: 54833
Signed-off-by Shekhar Chauhan<[email protected]>---
drivers/gpu/drm/i915/gt/intel_gt_regs.h| 1 +drivers/gpu/drm/i915/gt/intel_workarounds.c| 3 +++2 files changed, 4 insertions(+)drivers/gpu/drm/i915/gt/intel_gt_regs.h +1
-0@@ -1230,6 +1230,7 @@#define DISABLE_D8_D16_COASLESCE REG_BIT(30)#define FORCE_1_SUB_MESSAGE_PER_FRAGMENT REG_BIT(15)#define LSC_CHICKEN_BIT_0_UDW MCR_REG(0xe7c8 + 4) +#define UGM_FRAGMENT_THRESHOLD_TO_3 REG_BIT(58 - 32)#define DIS_CHAIN_2XSIMD8 REG_BIT(55 - 32)#define FORCE_SLM_FENCE_SCOPE_TO_TILE REG_BIT(42 - 32)#define FORCE_UGM_FENCE_SCOPE_TO_TILE REG_BIT(41 - 32)drivers/gpu/drm/i915/gt/intel_workarounds.c +0
-0drivers/gpu/drm/i915/gt/intel_workarounds.c general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_li · line 2918
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +2
-0@@ -2914,6 +2914,9 @@ general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_li* Wa_22015475538:dg2 */ wa_mcr_write_or (wal,LSC_CHICKEN_BIT_0_UDW ,DIS_CHAIN_2XSIMD8 ); + +/* Wa_18028616096:dg2 */ This is not a blocker, but I would prefer to remove the ":dg2" suffix.
Quoted 4 lines
There was an effort to remove them from our driver[1], but it kinda of stalled. I myself agree that we would be better off without them.
Ack'ed in the new version.
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_li · line 2919
Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +1
-0+wa_mcr_write_or (wal,LSC_CHICKEN_BIT_0_UDW ,UGM_FRAGMENT_THRESHOLD_TO_3 );This workaround applies to (i) DG2 G10 from stepping C0 to forever and (ii) any stepping of DG2 G12. Here you are applying this workaround to any variant of DG2.
Quoted 8 lines
It should be moved out of this "if" statement and rather be guarded by something like:
if ((IS_DG2_G10(i915) && IS_GRAPHICS_STEP(i915, STEP_C0, STEP_FOREVER)) || IS_DG2_G12(i915))Note that we are there is still a pending decision for G11, so we may need to update this in the future.
I believe we're only supporting production steppings for DG2, henceforth, not really interacting with the "older" steppings.
Please have a look:
https://lore.kernel.org/intel-gfx/[email protected]/
Although, I could be wrong, if I am, I'll send in another version, modifying the patch as you've suggested.
Quoted 9 lines
--
Gustavo SousaQuoted 6 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +0
-0}if (IS_DG2_G11 (i915)) {Signature · 1 line
2.34.1
Signature · 1 line
-shekhar
Quoting Chauhan, Shekhar (2023-09-22 01:04:36-03:00)
Quoted 57 lines
Quoting Gustavo Sousa:
Quoted 34 lines · Gustavo Sousa
Quoting Shekhar Chauhan (2023-09-21 11:30:28-03:00)
Quoted 26 lines
Drop UGM per set fragment threshold to 3
BSpec: 54833
Signed-off-by Shekhar Chauhan<[email protected]>---
drivers/gpu/drm/i915/gt/intel_gt_regs.h| 1 +drivers/gpu/drm/i915/gt/intel_workarounds.c| 3 +++2 files changed, 4 insertions(+)drivers/gpu/drm/i915/gt/intel_gt_regs.h +1
-0@@ -1230,6 +1230,7 @@#define DISABLE_D8_D16_COASLESCE REG_BIT(30)#define FORCE_1_SUB_MESSAGE_PER_FRAGMENT REG_BIT(15)#define LSC_CHICKEN_BIT_0_UDW MCR_REG(0xe7c8 + 4) +#define UGM_FRAGMENT_THRESHOLD_TO_3 REG_BIT(58 - 32)#define DIS_CHAIN_2XSIMD8 REG_BIT(55 - 32)#define FORCE_SLM_FENCE_SCOPE_TO_TILE REG_BIT(42 - 32)#define FORCE_UGM_FENCE_SCOPE_TO_TILE REG_BIT(41 - 32)drivers/gpu/drm/i915/gt/intel_workarounds.c +0
-0drivers/gpu/drm/i915/gt/intel_workarounds.c general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_li · line 2918
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +2
-0@@ -2914,6 +2914,9 @@ general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_li* Wa_22015475538:dg2 */ wa_mcr_write_or (wal,LSC_CHICKEN_BIT_0_UDW ,DIS_CHAIN_2XSIMD8 ); + +/* Wa_18028616096:dg2 */ This is not a blocker, but I would prefer to remove the ":dg2" suffix.
Quoted 4 lines
There was an effort to remove them from our driver[1], but it kinda of stalled. I myself agree that we would be better off without them.
Ack'ed in the new version.
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_li · line 2919
Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +1
-0+wa_mcr_write_or (wal,LSC_CHICKEN_BIT_0_UDW ,UGM_FRAGMENT_THRESHOLD_TO_3 );This workaround applies to (i) DG2 G10 from stepping C0 to forever and (ii) any stepping of DG2 G12. Here you are applying this workaround to any variant of DG2.
Quoted 8 lines
It should be moved out of this "if" statement and rather be guarded by something like:
if ((IS_DG2_G10(i915) && IS_GRAPHICS_STEP(i915, STEP_C0, STEP_FOREVER)) || IS_DG2_G12(i915))Note that we are there is still a pending decision for G11, so we may need to update this in the future.
Quoted 6 lines
I believe we're only supporting production steppings for DG2, henceforth, not really interacting with the "older" steppings.
Please have a look:
Oh, I missed that. Thanks!
So I believe we would have the following condition instead:
if (IS_DG2_G10(i915) || IS_DG2_G12(i915))
, because we do not know yet if this will also apply to DG2 G11.
--
Gustavo Sousa
Quoted 15 lines
Although, I could be wrong, if I am, I'll send in another version, modifying the patch as you've suggested.
Quoted 9 lines
--
Gustavo SousaQuoted 6 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +0
-0}if (IS_DG2_G11 (i915)) {Signature · 1 line
2.34.1Signature · 1 line
-shekhar
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Add Wa_18028616096 (rev3)
In reply to Shekhar Chauhan== Series Details ==
== Series Details ==
Series: drm/i915: Add Wa_18028616096 (rev3)
URL : https://patchwork.freedesktop.org/series/123951/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_13667 -> Patchwork_123951v3
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/index.html
Participating hosts (37 -> 38)
------------------------------
Additional (2): fi-kbl-soraka bat-dg2-9
Missing (1): fi-snb-2520m
Known issues
------------
Here are the changes found in Patchwork_123951v3 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][1] ([fdo#109271] / [i915#2190])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/fi-kbl-soraka/igt@[email protected]
* igt@gem_lmem_swapping@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][2] ([fdo#109271] / [i915#4613]) +3 other tests skip
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/fi-kbl-soraka/igt@[email protected]
* igt@gem_mmap@basic:
- bat-dg2-9: NOTRUN -> [SKIP][3] ([i915#4083])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@gem_mmap_gtt@basic:
- bat-dg2-9: NOTRUN -> [SKIP][4] ([i915#4077]) +2 other tests skip
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@gem_render_tiled_blits@basic:
- bat-dg2-9: NOTRUN -> [SKIP][5] ([i915#4079]) +1 other test skip
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@i915_pm_rps@basic-api:
- bat-dg2-9: NOTRUN -> [SKIP][6] ([i915#6621])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][7] ([i915#5334] / [i915#7872])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][8] ([i915#1886] / [i915#7913])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html
* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- bat-dg2-9: NOTRUN -> [SKIP][9] ([i915#5190])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@kms_addfb_basic@basic-y-tiled-legacy:
- bat-dg2-9: NOTRUN -> [SKIP][10] ([i915#4215] / [i915#5190])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@kms_addfb_basic@framebuffer-vs-set-tiling:
- bat-dg2-9: NOTRUN -> [SKIP][11] ([i915#4212]) +6 other tests skip
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@kms_addfb_basic@tile-pitch-mismatch:
- bat-dg2-9: NOTRUN -> [SKIP][12] ([i915#4212] / [i915#5608])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-dg2-9: NOTRUN -> [SKIP][13] ([i915#4103] / [i915#4213] / [i915#5608]) +1 other test skip
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@kms_dsc@dsc-basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][14] ([fdo#109271]) +9 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/fi-kbl-soraka/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- bat-dg2-9: NOTRUN -> [SKIP][15] ([fdo#109285])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@kms_force_connector_basic@prune-stale-modes:
- bat-dg2-9: NOTRUN -> [SKIP][16] ([i915#5274])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@kms_psr@sprite_plane_onoff:
- bat-dg2-9: NOTRUN -> [SKIP][17] ([i915#1072]) +3 other tests skip
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@kms_psr@sprite_plane_onoff.html
* igt@kms_setmode@basic-clone-single-crtc:
- bat-dg2-9: NOTRUN -> [SKIP][18] ([i915#3555])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@prime_vgem@basic-fence-flip:
- bat-dg2-9: NOTRUN -> [SKIP][19] ([i915#3708])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@prime_vgem@basic-fence-mmap:
- bat-dg2-9: NOTRUN -> [SKIP][20] ([i915#3708] / [i915#4077]) +1 other test skip
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
* igt@prime_vgem@basic-write:
- bat-dg2-9: NOTRUN -> [SKIP][21] ([i915#3291] / [i915#3708]) +2 other tests skip
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/bat-dg2-9/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@gt_heartbeat:
- fi-apl-guc: [DMESG-FAIL][22] ([i915#5334]) -> [PASS][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13667/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
* igt@kms_hdmi_inject@inject-audio:
- fi-kbl-guc: [FAIL][24] ([IGT#3]) -> [PASS][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13667/fi-kbl-guc/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/fi-kbl-guc/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#3]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/3
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5274]: https://gitlab.freedesktop.org/drm/intel/issues/5274
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#5608]: https://gitlab.freedesktop.org/drm/intel/issues/5608
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#7872]: https://gitlab.freedesktop.org/drm/intel/issues/7872
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
Build changes
-------------
* Linux: CI_DRM_13667 -> Patchwork_123951v3
CI-20190529: 20190529
CI_DRM_13667: 5e02013de5896d3099b06de0d2d93c6788111409 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7496: 6a96d3ad178e468b74a58cc10dead2f57bc1558d @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_123951v3: 5e02013de5896d3099b06de0d2d93c6788111409 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
0f848481fa91 drm/i915: Add Wa_18028616096
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123951v3/index.html