drm/i915: Add Wa_14019789679
Subsystems (2)
PATCH v3 1/1 drm/i915: Add Wa_14019789679
Wa_14019789679 implementation for MTL, ARL and DG2.
v2: Corrected condition
v3:
- Fix indentation (Jani Nikula)
- dword size should be 0x1 and
initialize dword to 0 instead of MI_NOOP (Tejas)
- Use IS_GFX_GT_IP_RANGE() (Tejas)
Bspec: 47083
--- drivers/gpu/drm/i915/gt/intel_gpu_commands.h | 1 + drivers/gpu/drm/i915/gt/intel_workarounds.c | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/intel_gpu_commands.h +1 -0
@@ -220,6 +220,7 @@#define GFX_OP_DESTBUFFER_INFO ((0x3<<29)|(0x1d<<24)|(0x8e<<16)|1)#define GFX_OP_DRAWRECT_INFO ((0x3<<29)|(0x1d<<24)|(0x80<<16)|(0x3))#define GFX_OP_DRAWRECT_INFO_I965 ((0x7900<<16)|0x2) +#define CMD_3DSTATE_MESH_CONTROL ((0x3 << 29) | (0x3 << 27) | (0x0 << 24) | (0x77 << 16) | (0x1))#define XY_CTRL_SURF_INSTR_SIZE 5#define MI_FLUSH_DW_SIZE 3
drivers/gpu/drm/i915/gt/intel_workarounds.c +13 -1
@@ -974,7 +974,12 @@ int intel_engine_emit_ctx_wa(struct i915_request *rq)if (ret)return ret; - cs =intel_ring_begin (rq, (wal->count *2 +2 )); +if (IS_GFX_GT_IP_RANGE (rq->engine->gt,IP_VER (12 ,70 ),IP_VER (12 ,74 )) || +IS_DG2 (rq->i915)) + cs =intel_ring_begin (rq, (wal->count *2 +4 )); +else + cs =intel_ring_begin (rq, (wal->count *2 +2 )); +if (IS_ERR (cs))return PTR_ERR (cs);
@@ -1004,6 +1009,13 @@ int intel_engine_emit_ctx_wa(struct i915_request *rq) } *cs++ =MI_NOOP ; +/* Wa_14019789679 */ +if (IS_GFX_GT_IP_RANGE (rq->engine->gt,IP_VER (12 ,70 ),IP_VER (12 ,74 )) || +IS_DG2 (rq->i915)) { + *cs++ =CMD_3DSTATE_MESH_CONTROL ; + *cs++ =0 ; + } +intel_uncore_forcewake_put__locked (uncore, fw);spin_unlock (&uncore->lock);intel_gt_mcr_unlock (wal->gt, flags);
Signature · 1 line
2.25.1
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915: Add Wa_14019789679 (rev3)
== Series Details ==
== Series Details ==
Series: drm/i915: Add Wa_14019789679 (rev3)
URL : https://patchwork.freedesktop.org/series/136659/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_15156 -> Patchwork_136659v3
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_136659v3 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_136659v3, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_136659v3/index.html
Participating hosts (39 -> 37)
------------------------------
Additional (1): bat-dg2-11
Missing (3): bat-arls-5 fi-snb-2520m fi-kbl-8809g
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_136659v3:
### IGT changes ###
#### Possible regressions ####
* igt@i915_module_load@load:
- bat-arls-1: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15156/bat-arls-1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_136659v3/bat-arls-1/igt@[email protected]
- bat-arlh-2: [PASS][3] -> [ABORT][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15156/bat-arlh-2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_136659v3/bat-arlh-2/igt@[email protected]
- bat-dg2-13: [PASS][5] -> [INCOMPLETE][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15156/bat-dg2-13/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_136659v3/bat-dg2-13/igt@[email protected]
- bat-dg2-11: NOTRUN -> [ABORT][7]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_136659v3/bat-dg2-11/igt@[email protected]
- bat-dg2-14: [PASS][8] -> [ABORT][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15156/bat-dg2-14/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_136659v3/bat-dg2-14/igt@[email protected]
- bat-mtlp-6: [PASS][10] -> [ABORT][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15156/bat-mtlp-6/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_136659v3/bat-mtlp-6/igt@[email protected]
- bat-dg2-9: [PASS][12] -> [ABORT][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15156/bat-dg2-9/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_136659v3/bat-dg2-9/igt@[email protected]
- bat-arls-2: [PASS][14] -> [ABORT][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15156/bat-arls-2/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_136659v3/bat-arls-2/igt@[email protected]
- bat-mtlp-8: [PASS][16] -> [INCOMPLETE][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15156/bat-mtlp-8/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_136659v3/bat-mtlp-8/igt@[email protected]
- bat-dg2-8: [PASS][18] -> [ABORT][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15156/bat-dg2-8/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_136659v3/bat-dg2-8/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@i915_module_load@load:
- {bat-arlh-3}: [PASS][20] -> [ABORT][21]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15156/bat-arlh-3/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_136659v3/bat-arlh-3/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
Build changes
-------------
* Linux: CI_DRM_15156 -> Patchwork_136659v3
CI-20190529: 20190529
CI_DRM_15156: acd846e309e206a4dbc83e4b857b6604aa0741af @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7942: 0f02dc176959e6296866b1bafd3982e277a5e44b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_136659v3: acd846e309e206a4dbc83e4b857b6604aa0741af @ git://anongit.freedesktop.org/gfx-ci/linux
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_136659v3/index.html
Quoted 35 lines · Nitin Gote
Wa_14019789679implementation for MTL, ARL and DG2.v2: Corrected condition
v3:
- Fix indentation (Jani Nikula)
- dword size should be0x1and
initialize dword to 0 instead ofMI_NOOP(Tejas)
- UseIS_GFX_GT_IP_RANGE()(Tejas)Bspec: 47083
Signed-off-by Nitin Gote <[email protected]>--- drivers/gpu/drm/i915/gt/intel_gpu_commands.h | 1 + drivers/gpu/drm/i915/gt/intel_workarounds.c | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/gt/intel_gpu_commands.h +1
-0@@ -220,6 +220,7 @@#define GFX_OP_DESTBUFFER_INFO ((0x3<<29)|(0x1d<<24)|(0x8e<<16)|1)#define GFX_OP_DRAWRECT_INFO ((0x3<<29)|(0x1d<<24)|(0x80<<16)|(0x3))#define GFX_OP_DRAWRECT_INFO_I965 ((0x7900<<16)|0x2) +#define CMD_3DSTATE_MESH_CONTROL ((0x3 << 29) | (0x3 << 27) | (0x0 << 24) | (0x77 << 16) | (0x1))#define XY_CTRL_SURF_INSTR_SIZE 5#define MI_FLUSH_DW_SIZE 3drivers/gpu/drm/i915/gt/intel_workarounds.c +0
-0
drivers/gpu/drm/i915/gt/intel_workarounds.c int intel_engine_emit_ctx_wa(struct i915_request *rq) · line 979
Quoted 7 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +3
-1@@ -974,7 +974,12 @@ int intel_engine_emit_ctx_wa(struct i915_request *rq)if (ret)return ret; - cs =intel_ring_begin (rq, (wal->count *2 +2 )); +if (IS_GFX_GT_IP_RANGE (rq->engine->gt,IP_VER (12 ,70 ),IP_VER (12 ,74 )) || +IS_DG2 (rq->i915)) + cs =intel_ring_begin (rq, (wal->count *2 +4 ));
The 3DSTATE_MESH_CONTROL instruction is 3 dwords long (one header dword, two body dwords) so going from +2 up to +4 doesn't cover it completely. You'd need +5 to cover the entire instruction, but I think we want the output here to remain qword-aligned, so you probably actually want +6.
Quoted 7 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +3
-0+else + cs =intel_ring_begin (rq, (wal->count *2 +2 )); +if (IS_ERR (cs))return PTR_ERR (cs);
drivers/gpu/drm/i915/gt/intel_workarounds.c int intel_engine_emit_ctx_wa(struct i915_request *rq) · line 1016
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +5
-0@@ -1004,6 +1009,13 @@ int intel_engine_emit_ctx_wa(struct i915_request *rq) } *cs++ =MI_NOOP ; +/* Wa_14019789679 */ +if (IS_GFX_GT_IP_RANGE (rq->engine->gt,IP_VER (12 ,70 ),IP_VER (12 ,74 )) || +IS_DG2 (rq->i915)) { + *cs++ =CMD_3DSTATE_MESH_CONTROL ; + *cs++ =0 ;
As noted above, the body is two dwords (64-bits), so we want to emit one more empty dword here to finish the mesh control command, and then an MI_NOOP after it to preserve qword alignment.
Matt
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +2
-0+ } +intel_uncore_forcewake_put__locked (uncore, fw);spin_unlock (&uncore->lock);intel_gt_mcr_unlock (wal->gt, flags);Signature · 1 line
2.25.1
Signature · 4 lines
Matt Roper Graphics Software Engineer Linux GPU Platform Enablement Intel Corporation
Quoted 59 lines
-----Original Message-----
From: Gote, Nitin R <[email protected]>
Sent: Tuesday, July 30, 2024 8:33 PM
To: [email protected]; Upadhyay, Tejas <[email protected]>; [email protected]; Roper, Matthew D <[email protected]>
Cc: Shyti, Andi <[email protected]>; Wilson, Chris P <[email protected]>; Gote, Nitin R <[email protected]>
Subject: [PATCH v3] drm/i915: AddWa_14019789679
Wa_14019789679implementation for MTL, ARL and DG2.v2: Corrected condition
v3:
- Fix indentation (Jani Nikula)
- dword size should be0x1and
initialize dword to 0 instead ofMI_NOOP(Tejas)
- UseIS_GFX_GT_IP_RANGE()(Tejas)Bspec: 47083
Signed-off-by Nitin Gote <[email protected]>--- drivers/gpu/drm/i915/gt/intel_gpu_commands.h | 1 + drivers/gpu/drm/i915/gt/intel_workarounds.c | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/gt/intel_gpu_commands.h +2
-0@@ -220,6 +220,7 @@#define GFX_OP_DESTBUFFER_INFO ((0x3<<29)|(0x1d<<24)|(0x8e<<16)|1)#define GFX_OP_DRAWRECT_INFO ((0x3<<29)|(0x1d<<24)|(0x80<<16)|(0x3))#define GFX_OP_DRAWRECT_INFO_I965 ((0x7900<<16)|0x2) +#define CMD_3DSTATE_MESH_CONTROL ((0x3 << 29) | (0x3 << 27) | (0x0 << +24) | (0x77 << 16) | (0x1))#define XY_CTRL_SURF_INSTR_SIZE 5#define MI_FLUSH_DW_SIZE 3drivers/gpu/drm/i915/gt/intel_workarounds.c +1
-1@@ -974,7 +974,12 @@ int intel_engine_emit_ctx_wa(struct i915_request *rq)if (ret)return ret; - cs =intel_ring_begin (rq, (wal->count *2 +2 )); + if (IS_GFX_GT_IP_RANGE(rq->engine->gt, IP_VER(12, 70), IP_VER(12,74)) ||
drivers/gpu/drm/i915/gt/intel_workarounds.c int intel_engine_emit_ctx_wa(struct i915_request *rq) · line 978
Quoted 1 line
drivers/gpu/drm/i915/gt/intel_workarounds.c +1
-0+ IS_DG2(rq->i915))
You might also need to put check for engine as well, looks like it applies to RCS only.
Tejas
Quoted 25 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +6
-0+ cs =intel_ring_begin (rq, (wal->count *2 +4 )); + else + cs =intel_ring_begin (rq, (wal->count *2 +2 )); +if (IS_ERR (cs))return PTR_ERR (cs);@@ -1004,6 +1009,13 @@ int intel_engine_emit_ctx_wa(struct i915_request *rq) } *cs++ =MI_NOOP ; +/* Wa_14019789679 */ + if (IS_GFX_GT_IP_RANGE(rq->engine->gt, IP_VER(12, 70), IP_VER(12,74)) ||
drivers/gpu/drm/i915/gt/intel_workarounds.c +5
-1+ IS_DG2(rq->i915)) { + *cs++ =CMD_3DSTATE_MESH_CONTROL ; + *cs++ =0 ; + } +intel_uncore_forcewake_put__locked (uncore, fw);spin_unlock (&uncore->lock);intel_gt_mcr_unlock (wal->gt, flags); --2.25.1