Skip to contentSkip to conversation

drm/i915: Added Wa_18022495364

PATCH Superseded Dnyaneshwar Bhadane 4 participants 5 messages Sep 7, 2023 – Sep 8, 2023

Subsystems (2)

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Added Wa_18022495364

This workaround has two different implementations, one for gen 12 to DG2 and another for DG2 and later. Bspec : 11354 , 56551.

---
 drivers/gpu/drm/i915/gt/gen8_engine_cs.c    | 4 ++++
 drivers/gpu/drm/i915/gt/intel_gt_regs.h     | 2 ++
 drivers/gpu/drm/i915/gt/intel_workarounds.c | 3 +++
 3 files changed, 9 insertions(+)
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +4 -0
index 0143445dba83..fee2712f81e8 100644
@@ -271,6 +271,10 @@ int gen12_emit_flush_rcs(struct i915_request *rq, u32 mode)
 		if (GRAPHICS_VER_FULL(rq->i915) >= IP_VER(12, 70))
 			bit_group_0 |= PIPE_CONTROL_CCS_FLUSH;
 
+		/* Wa_18022495364 */
+		if ((GRAPHICS_VER_FULL(rq->i915) >= IP_VER(12, 70)) ||
+		    IS_DG2(rq->i915))
+			bit_group_1 |= PIPE_CONTROL_CONST_CACHE_INVALIDATE;
 		bit_group_1 |= PIPE_CONTROL_TILE_CACHE_FLUSH;
 		bit_group_1 |= PIPE_CONTROL_FLUSH_L3;
 		bit_group_1 |= PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH;
drivers/gpu/drm/i915/gt/intel_gt_regs.h +2 -0
index 0e4c638fcbbf..4c0cb3a3d0aa 100644
@@ -164,6 +164,8 @@
 #define GEN9_CSFE_CHICKEN1_RCS			_MMIO(0x20d4)
 #define   GEN9_PREEMPT_GPGPU_SYNC_SWITCH_DISABLE	(1 << 2)
 #define   GEN11_ENABLE_32_PLANE_MODE		(1 << 7)
+#define GEN12_CS_DEBUG_MODE2			_MMIO(0x20d8)
+#define   GEN12_GLOBAL_DEBUG_ENABLE			BIT(6)
 
 #define GEN7_FF_SLICE_CS_CHICKEN1		_MMIO(0x20e0)
 #define   GEN9_FFSC_PERCTX_PREEMPT_CTRL		(1 << 14)
drivers/gpu/drm/i915/gt/intel_workarounds.c +3 -0
index 864d41bcf6bb..1a026d4d7ac5 100644
@@ -712,6 +712,9 @@ static void gen12_ctx_workarounds_init(struct intel_engine_cs *engine,
 			    GEN9_PREEMPT_GPGPU_LEVEL_MASK,
 			    GEN9_PREEMPT_GPGPU_THREAD_GROUP_LEVEL);
 
+	/* Wa_18022495364 :tgl,rkl,dg1,adl-s,adl-p */
+	wa_masked_en(wal, GEN12_CS_DEBUG_MODE2,
+		     GEN12_GLOBAL_DEBUG_ENABLE);
 	/*
 	 * Wa_16011163337 - GS_TIMER
 	 *
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Intel-gfx <[email protected]> On Behalf Of Dnyaneshwar Bhadane
Sent: Thursday, September 7, 2023 12:28 PM
To: [email protected]
Cc: Roper, Matthew D <[email protected]>
Subject: [Intel-gfx] [PATCH] drm/i915: Added Wa_18022495364

Quoted 5 lines

This workaround has two different implementations, one for gen 12 to DG2 and another for DG2 and later.
Bspec : 11354 , 56551.

Quoted 57 lines
---
 drivers/gpu/drm/i915/gt/gen8_engine_cs.c    | 4 ++++
 drivers/gpu/drm/i915/gt/intel_gt_regs.h     | 2 ++
 drivers/gpu/drm/i915/gt/intel_workarounds.c | 3 +++
 3 files changed, 9 insertions(+)
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +4 -0
index 0143445dba83..fee2712f81e8 100644
@@ -271,6 +271,10 @@ int gen12_emit_flush_rcs(struct i915_request *rq, u32
 mode)
 		if (GRAPHICS_VER_FULL(rq->i915) >= IP_VER(12, 70))
 			bit_group_0 |= PIPE_CONTROL_CCS_FLUSH;
 
+		/* Wa_18022495364 */
+		if ((GRAPHICS_VER_FULL(rq->i915) >= IP_VER(12, 70)) ||
+		    IS_DG2(rq->i915))
+			bit_group_1 |=
 PIPE_CONTROL_CONST_CACHE_INVALIDATE;
 		bit_group_1 |= PIPE_CONTROL_TILE_CACHE_FLUSH;
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +0 -0
 		bit_group_1 |= PIPE_CONTROL_FLUSH_L3;
 		bit_group_1 |=

PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH;

drivers/gpu/drm/i915/gt/intel_gt_regs.h +2 -0
index 0e4c638fcbbf..4c0cb3a3d0aa 100644
@@ -164,6 +164,8 @@
 #define GEN9_CSFE_CHICKEN1_RCS			_MMIO(0x20d4)
 #define   GEN9_PREEMPT_GPGPU_SYNC_SWITCH_DISABLE	(1 << 2)
 #define   GEN11_ENABLE_32_PLANE_MODE		(1 << 7)
+#define GEN12_CS_DEBUG_MODE2			_MMIO(0x20d8)
+#define   GEN12_GLOBAL_DEBUG_ENABLE			BIT(6)
 
 #define GEN7_FF_SLICE_CS_CHICKEN1		_MMIO(0x20e0)
 #define   GEN9_FFSC_PERCTX_PREEMPT_CTRL		(1 << 14)
drivers/gpu/drm/i915/gt/intel_workarounds.c +3 -0
index 864d41bcf6bb..1a026d4d7ac5 100644
@@ -712,6 +712,9 @@ static void gen12_ctx_workarounds_init(struct
 intel_engine_cs *engine,
 			    GEN9_PREEMPT_GPGPU_LEVEL_MASK,
 			    GEN9_PREEMPT_GPGPU_THREAD_GROUP_LEVEL);
 
+	/* Wa_18022495364 :tgl,rkl,dg1,adl-s,adl-p */
+	wa_masked_en(wal, GEN12_CS_DEBUG_MODE2,
+		     GEN12_GLOBAL_DEBUG_ENABLE);
 	/*
 	 * Wa_16011163337 - GS_TIMER

*
--
2.34.1

#2 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Added Wa_18022495364

In reply to Dnyaneshwar Bhadane
== Series Details ==

== Series Details ==

Series: drm/i915: Added Wa_18022495364
URL : https://patchwork.freedesktop.org/series/123377/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_13605 -> Patchwork_123377v1
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_123377v1 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in Patchwork_123377v1, 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_123377v1/index.html

Participating hosts (39 -> 40)
------------------------------

Additional (2): fi-kbl-soraka fi-bsw-n3050
Missing (1): fi-snb-2520m

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_123377v1:

### IGT changes ###

#### Possible regressions ####

* igt@gem_exec_suspend@basic-s0@lmem0:
- bat-dg2-9: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13605/bat-dg2-9/igt@gem_exec_suspend@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123377v1/bat-dg2-9/igt@gem_exec_suspend@[email protected]

Known issues
------------

Here are the changes found in Patchwork_123377v1 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#2190])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123377v1/fi-kbl-soraka/igt@[email protected]

* igt@gem_lmem_swapping@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#4613]) +3 other tests skip
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123377v1/fi-kbl-soraka/igt@[email protected]

* igt@gem_lmem_swapping@random-engines:
- fi-bsw-n3050: NOTRUN -> [SKIP][5] ([fdo#109271]) +18 other tests skip
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123377v1/fi-bsw-n3050/igt@[email protected]

* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][6] ([i915#1886] / [i915#7913])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123377v1/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-kbl-soraka: NOTRUN -> [SKIP][7] ([fdo#109271]) +8 other tests skip
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123377v1/fi-kbl-soraka/igt@[email protected]

* igt@kms_hdmi_inject@inject-audio:
- fi-bsw-n3050: NOTRUN -> [FAIL][8] ([IGT#3])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123377v1/fi-bsw-n3050/igt@[email protected]

* igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-a-dp-5:
- bat-adlp-11: [PASS][9] -> [ABORT][10] ([i915#8668])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13605/bat-adlp-11/igt@kms_pipe_crc_basic@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123377v1/bat-adlp-11/igt@kms_pipe_crc_basic@[email protected]

#### Possible fixes ####

* igt@kms_chamelium_edid@hdmi-edid-read:
- {bat-dg2-13}: [DMESG-WARN][11] ([i915#7952]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13605/bat-dg2-13/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123377v1/bat-dg2-13/igt@[email protected]

* igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-b-dp-6:
- bat-adlp-11: [ABORT][13] ([i915#8668]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13605/bat-adlp-11/igt@kms_pipe_crc_basic@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123377v1/bat-adlp-11/igt@kms_pipe_crc_basic@[email protected]

#### Warnings ####

* igt@kms_psr@sprite_plane_onoff:
- bat-rplp-1: [ABORT][15] ([i915#8712]) -> [ABORT][16] ([i915#8442] / [i915#8712])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13605/bat-rplp-1/igt@kms_psr@sprite_plane_onoff.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123377v1/bat-rplp-1/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).

[IGT#3]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/3
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7952]: https://gitlab.freedesktop.org/drm/intel/issues/7952
[i915#8442]: https://gitlab.freedesktop.org/drm/intel/issues/8442
[i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
[i915#8712]: https://gitlab.freedesktop.org/drm/intel/issues/8712

Build changes
-------------

* Linux: CI_DRM_13605 -> Patchwork_123377v1

CI-20190529: 20190529
CI_DRM_13605: 5008076127a9599704e98fb4de3761743d943dd0 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7471: 7e63756ac5406760faa3e6d51dc2d575440a780b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_123377v1: 5008076127a9599704e98fb4de3761743d943dd0 @ git://anongit.freedesktop.org/gfx-ci/linux

### Linux commits

529e0e1f0e37 drm/i915: Added Wa_18022495364

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123377v1/index.html

#3 lore raw
In reply to Dnyaneshwar Bhadane
Quoted 3 lines · Dnyaneshwar Bhadane

This workaround has two different implementations, one for gen 12 to DG2 and another for DG2 and later. Bspec : 11354 , 56551.

You seem to have extra spaces here. Please format it smilarly to other commits.

Quoted 13 lines

---

drivers/gpu/drm/i915/gt/gen8_engine_cs.c    | 4 ++++
drivers/gpu/drm/i915/gt/intel_gt_regs.h     | 2 ++
drivers/gpu/drm/i915/gt/intel_workarounds.c | 3 +++
3 files changed, 9 insertions(+)
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +0 -0
index 0143445dba83..fee2712f81e8 100644

drivers/gpu/drm/i915/gt/gen8_engine_cs.c int gen12_emit_flush_rcs(struct i915_request *rq, u32 mode) · line 275

Quoted 5 lines
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +2 -0
@@ -271,6 +271,10 @@ int gen12_emit_flush_rcs(struct i915_request *rq, u32 mode)
 		if (GRAPHICS_VER_FULL(rq->i915) >= IP_VER(12, 70))
 			bit_group_0 |= PIPE_CONTROL_CCS_FLUSH;
 
+		/* Wa_18022495364 */
+		if ((GRAPHICS_VER_FULL(rq->i915) >= IP_VER(12, 70)) ||

^ why the extra parenthesis here?

drivers/gpu/drm/i915/gt/gen8_engine_cs.c int gen12_emit_flush_rcs(struct i915_request *rq, u32 mode) · line 277

Quoted 2 lines
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +2 -0
+		    IS_DG2(rq->i915))
+			bit_group_1 |= PIPE_CONTROL_CONST_CACHE_INVALIDATE;

it's usually preferred to leave a newline after then if/else branches to help readability.

Quoted 21 lines
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +0 -0
 		bit_group_1 |= PIPE_CONTROL_TILE_CACHE_FLUSH;
 		bit_group_1 |= PIPE_CONTROL_FLUSH_L3;
 		bit_group_1 |= PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH;
drivers/gpu/drm/i915/gt/intel_gt_regs.h +2 -0
index 0e4c638fcbbf..4c0cb3a3d0aa 100644
@@ -164,6 +164,8 @@
 #define GEN9_CSFE_CHICKEN1_RCS			_MMIO(0x20d4)
 #define   GEN9_PREEMPT_GPGPU_SYNC_SWITCH_DISABLE	(1 << 2)
 #define   GEN11_ENABLE_32_PLANE_MODE		(1 << 7)
+#define GEN12_CS_DEBUG_MODE2			_MMIO(0x20d8)
+#define   GEN12_GLOBAL_DEBUG_ENABLE			BIT(6)
 
 #define GEN7_FF_SLICE_CS_CHICKEN1		_MMIO(0x20e0)
 #define   GEN9_FFSC_PERCTX_PREEMPT_CTRL		(1 << 14)
drivers/gpu/drm/i915/gt/intel_workarounds.c +0 -0
index 864d41bcf6bb..1a026d4d7ac5 100644

drivers/gpu/drm/i915/gt/intel_workarounds.c static void gen12_ctx_workarounds_init(struct intel_engine_cs *engine, · line 715

Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +1 -0
@@ -712,6 +712,9 @@ static void gen12_ctx_workarounds_init(struct intel_engine_cs *engine,
 			    GEN9_PREEMPT_GPGPU_LEVEL_MASK,
 			    GEN9_PREEMPT_GPGPU_THREAD_GROUP_LEVEL);
 
+	/* Wa_18022495364 :tgl,rkl,dg1,adl-s,adl-p */

^ extra space here too.

Actually there is no need to add the platforms names as comments.

drivers/gpu/drm/i915/gt/intel_workarounds.c static void gen12_ctx_workarounds_init(struct intel_engine_cs *engine, · line 717

Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +2 -0
+	wa_masked_en(wal, GEN12_CS_DEBUG_MODE2,
+		     GEN12_GLOBAL_DEBUG_ENABLE);

missing newline

Lucas De Marchi

Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +0 -0
 	/*
 	 * Wa_16011163337 - GS_TIMER
 	 *
Signature · 1 line
2.34.1
#4 lore raw
Quoted 81 lines

-----Original Message-----
From: De Marchi, Lucas <[email protected]>
Sent: Friday, September 8, 2023 3:58 AM
To: Bhadane, Dnyaneshwar <[email protected]>
Cc: [email protected]; Roper, Matthew D <[email protected]>
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Added Wa_18022495364

Quoted 3 lines · Dnyaneshwar Bhadane

This workaround has two different implementations, one for gen 12 to DG2 and another for DG2 and later.
Bspec : 11354 , 56551.

You seem to have extra spaces here. Please format it smilarly to other commits.

drivers/gpu/drm/i915/gt/gen8_engine_cs.c int gen12_emit_flush_rcs(struct i915_request *rq,

Quoted 14 lines

---

drivers/gpu/drm/i915/gt/gen8_engine_cs.c    | 4 ++++
drivers/gpu/drm/i915/gt/intel_gt_regs.h     | 2 ++
drivers/gpu/drm/i915/gt/intel_workarounds.c | 3 +++
3 files changed, 9 insertions(+)
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +0 -0
index 0143445dba83..fee2712f81e8 100644
@@ -271,6 +271,10 @@ int gen12_emit_flush_rcs(struct i915_request *rq,

u32 mode)

drivers/gpu/drm/i915/gt/gen8_engine_cs.c int gen12_emit_flush_rcs(struct i915_request *rq, u32 mode) · line 275

Quoted 5 lines
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +2 -0
 		if (GRAPHICS_VER_FULL(rq->i915) >= IP_VER(12, 70))
 			bit_group_0 |= PIPE_CONTROL_CCS_FLUSH;
 
+		/* Wa_18022495364 */
+		if ((GRAPHICS_VER_FULL(rq->i915) >= IP_VER(12, 70)) ||

^ why the extra parenthesis here?

drivers/gpu/drm/i915/gt/gen8_engine_cs.c int gen12_emit_flush_rcs(struct i915_request *rq, · line 277

Quoted 2 lines
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +2 -0
+		    IS_DG2(rq->i915))
+			bit_group_1 |=

PIPE_CONTROL_CONST_CACHE_INVALIDATE;

it's usually preferred to leave a newline after then if/else branches to help readability.

drivers/gpu/drm/i915/gt/gen8_engine_cs.c int gen12_emit_flush_rcs(struct i915_request *rq, u32 mode)

Quoted 3 lines
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +0 -0
 		bit_group_1 |= PIPE_CONTROL_TILE_CACHE_FLUSH;
 		bit_group_1 |= PIPE_CONTROL_FLUSH_L3;
 		bit_group_1 |=

PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH;

drivers/gpu/drm/i915/gt/intel_workarounds.c static void gen12_ctx_workarounds_init(struct

Quoted 20 lines
drivers/gpu/drm/i915/gt/intel_gt_regs.h +2 -0
index 0e4c638fcbbf..4c0cb3a3d0aa 100644
@@ -164,6 +164,8 @@
 #define GEN9_CSFE_CHICKEN1_RCS			_MMIO(0x20d4)
 #define   GEN9_PREEMPT_GPGPU_SYNC_SWITCH_DISABLE	(1 << 2)
 #define   GEN11_ENABLE_32_PLANE_MODE		(1 << 7)
+#define GEN12_CS_DEBUG_MODE2			_MMIO(0x20d8)
+#define   GEN12_GLOBAL_DEBUG_ENABLE			BIT(6)
 
 #define GEN7_FF_SLICE_CS_CHICKEN1		_MMIO(0x20e0)
 #define   GEN9_FFSC_PERCTX_PREEMPT_CTRL		(1 << 14)
drivers/gpu/drm/i915/gt/intel_workarounds.c +0 -0
index 864d41bcf6bb..1a026d4d7ac5 100644
@@ -712,6 +712,9 @@ static void gen12_ctx_workarounds_init(struct

intel_engine_cs *engine,

drivers/gpu/drm/i915/gt/intel_workarounds.c static void gen12_ctx_workarounds_init(struct intel_engine_cs *engine, · line 715

Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +1 -0
 			    GEN9_PREEMPT_GPGPU_LEVEL_MASK,
 			    GEN9_PREEMPT_GPGPU_THREAD_GROUP_LEVEL);
 
+	/* Wa_18022495364 :tgl,rkl,dg1,adl-s,adl-p */

^ extra space here too.

Quoted 8 lines

Actually there is no need to add the platforms names as comments.

drivers/gpu/drm/i915/gt/intel_workarounds.c static void gen12_ctx_workarounds_init(struct intel_engine_cs *engine, · line 717

Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +2 -0
+	wa_masked_en(wal, GEN12_CS_DEBUG_MODE2,
+		     GEN12_GLOBAL_DEBUG_ENABLE);

missing newline

Thanks Lucas, I will address all above suggestion in next revision.

Quoted 9 lines

Lucas De Marchi

Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +0 -1
 	/*
 	 * Wa_16011163337 - GS_TIMER
 	 *
--

2.34.1