Skip to contentSkip to conversation

Apply Wa_16018031267 / Wa_16018063123

PATCH Superseded Jonathan Cavitt 2 participants 6 messages Aug 24, 2023

Subsystems (2)

v3 of 13 Superseded Latest is v13 →

lore
Share & tools
lore
#0 lore raw

v3 cover Apply Wa_16018031267 / Wa_16018063123

Apply Wa_16018031267 / Wa_16018063123. This necessitates submitting a fastcolor blit as WABB and setting the copy engine arbitration to round-robin mode.

v2:
- Rename old platform check in second patch to match declaration in first patch.
- Refactor second patch name to match first patch.

v3:
- Move NEEDS_FASTCOLOR_BLT_WABB to intel_gt.h.
- Refactor NEEDS_FASTCOLOR_BLT_WABB to make it more streamlined to use.
- Stop dividing PAGE_SIZE by sizeof(u32) when computing ctx_bb_ggtt_addr for lrc_setup_bb_per_ctx.
- Reduce comment complexity.
- Fix several checkpatch warnings.

CC Joonas Lahtinen <[email protected]>
CC Rodrigo Vivi <[email protected]>
CC Tomasz Mistat <[email protected]>
CC Gregory F Germano <[email protected]>
CC Matt Roper <[email protected]>
CC James Ausmus <[email protected]>

Nirmoy Das (2):
drm/i915: Add WABB blit for Wa_16018031267 / Wa_16018063123 drm/i915: Set copy engine arbitration for Wa_16018031267 /

    Wa_16018063123
 drivers/gpu/drm/i915/gt/intel_engine_regs.h |   6 ++
 drivers/gpu/drm/i915/gt/intel_gt.h          |   4 +
 drivers/gpu/drm/i915/gt/intel_gt_types.h    |   2 +
 drivers/gpu/drm/i915/gt/intel_lrc.c         | 107 +++++++++++++++++++-
 drivers/gpu/drm/i915/gt/intel_workarounds.c |   5 +
 drivers/gpu/drm/i915/gt/selftest_lrc.c      |  65 ++++++++----
 6 files changed, 168 insertions(+), 21 deletions(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH v3 1/2 drm/i915: Add WABB blit for Wa_16018031267 / Wa_16018063123

From: Nirmoy Das <[email protected]>

Apply WABB blit for Wa_16018031267 / Wa_16018063123. Additionally, update the lrc selftest to exercise the new WABB changes.

---
 drivers/gpu/drm/i915/gt/intel_engine_regs.h |   3 +
 drivers/gpu/drm/i915/gt/intel_gt.h          |   4 +
 drivers/gpu/drm/i915/gt/intel_gt_types.h    |   2 +
 drivers/gpu/drm/i915/gt/intel_lrc.c         | 107 +++++++++++++++++++-
 drivers/gpu/drm/i915/gt/selftest_lrc.c      |  65 ++++++++----
 5 files changed, 160 insertions(+), 21 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine_regs.h +3 -0
index 6b9d9f837669..2e06bea73297 100644
@@ -118,6 +118,9 @@
 #define   CCID_EXTENDED_STATE_RESTORE		BIT(2)
 #define   CCID_EXTENDED_STATE_SAVE		BIT(3)
 #define RING_BB_PER_CTX_PTR(base)		_MMIO((base) + 0x1c0) /* gen8+ */
+#define   PER_CTX_BB_FORCE			BIT(2)
+#define   PER_CTX_BB_VALID			BIT(0)
+
 #define RING_INDIRECT_CTX(base)			_MMIO((base) + 0x1c4) /* gen8+ */
 #define RING_INDIRECT_CTX_OFFSET(base)		_MMIO((base) + 0x1c8) /* gen8+ */
 #define ECOSKPD(base)				_MMIO((base) + 0x1d0)
drivers/gpu/drm/i915/gt/intel_gt.h +4 -0
index 239848bcb2a4..40cc0005dd73 100644
@@ -83,6 +83,10 @@ struct drm_printer;
 		  ##__VA_ARGS__);					\
 } while (0)
 
+#define NEEDS_FASTCOLOR_BLT_WABB(engine) ( \
+	IS_GFX_GT_IP_RANGE(engine->gt, IP_VER(12, 55), IP_VER(12, 71)) && \
+	engine->class == COPY_ENGINE_CLASS)
+
 static inline bool gt_is_root(struct intel_gt *gt)
 {
 	return !gt->info.id;
drivers/gpu/drm/i915/gt/intel_gt_types.h +2 -0
index def7dd0eb6f1..4917633f299d 100644
@@ -307,6 +307,8 @@ enum intel_gt_scratch_field {
 
 	/* 8 bytes */
 	INTEL_GT_SCRATCH_FIELD_COHERENTL3_WA = 256,
+
+	INTEL_GT_SCRATCH_FIELD_DUMMY_BLIT = 384,
 };
 
 #define intel_gt_support_legacy_fencing(gt) ((gt)->ggtt->num_fences > 0)
drivers/gpu/drm/i915/gt/intel_lrc.c +104 -3

148 lines not on this page · raw message

drivers/gpu/drm/i915/gt/selftest_lrc.c +47 -18

148 lines not on this page · raw message

Signature · 1 line
2.25.1
#2 lore raw

PATCH v3 2/2 drm/i915: Set copy engine arbitration for Wa_16018031267 / Wa_16018063123

In reply to Jonathan Cavitt

From: Nirmoy Das <[email protected]>

Set copy engine arbitration into round robin mode for part of Wa_16018031267 / Wa_16018063123 mitigation.

---
 drivers/gpu/drm/i915/gt/intel_engine_regs.h | 3 +++
 drivers/gpu/drm/i915/gt/intel_workarounds.c | 5 +++++
 2 files changed, 8 insertions(+)
drivers/gpu/drm/i915/gt/intel_engine_regs.h +3 -0
index 2e06bea73297..823c6c40213f 100644
@@ -124,6 +124,9 @@
 #define RING_INDIRECT_CTX(base)			_MMIO((base) + 0x1c4) /* gen8+ */
 #define RING_INDIRECT_CTX_OFFSET(base)		_MMIO((base) + 0x1c8) /* gen8+ */
 #define ECOSKPD(base)				_MMIO((base) + 0x1d0)
+#define   XEHP_BLITTER_SCHEDULING_MODE_MASK	REG_GENMASK(12, 11)
+#define   XEHP_BLITTER_ROUND_ROBIN_MODE		\
+		REG_FIELD_PREP(XEHP_BLITTER_SCHEDULING_MODE_MASK, 1)
 #define   ECO_CONSTANT_BUFFER_SR_DISABLE	REG_BIT(4)
 #define   ECO_GATING_CX_ONLY			REG_BIT(3)
 #define   GEN6_BLITTER_FBC_NOTIFY		REG_BIT(3)
drivers/gpu/drm/i915/gt/intel_workarounds.c +5 -0
index 864d41bcf6bb..e891e7c8c078 100644
@@ -2769,6 +2769,11 @@ xcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)
 			 RING_SEMA_WAIT_POLL(engine->mmio_base),
 			 1);
 	}
+	/* Wa_16018031267, Wa_16018063123 */
+	if (NEEDS_FASTCOLOR_BLT_WABB(engine))
+		wa_masked_field_set(wal, ECOSKPD(engine->mmio_base),
+				    XEHP_BLITTER_SCHEDULING_MODE_MASK,
+				    XEHP_BLITTER_ROUND_ROBIN_MODE);
 }
 
 static void
Signature · 1 line
2.25.1
#5 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for Apply Wa_16018031267 / Wa_16018063123

In reply to Jonathan Cavitt
== Series Details ==

== Series Details ==

Series: Apply Wa_16018031267 / Wa_16018063123
URL : https://patchwork.freedesktop.org/series/122864/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_13562 -> Patchwork_122864v1
====================================================

Summary
-------

**FAILURE**

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

If you think the reported changes have nothing to do with the changes introduced in Patchwork_122864v1, please notify your bug team 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_122864v1/index.html

Participating hosts (41 -> 39)
------------------------------

Missing (2): fi-kbl-soraka fi-snb-2520m

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_module_load@load:
- bat-dg2-11: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-dg2-11/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-dg2-11/igt@[email protected]
- bat-atsm-1: [PASS][3] -> [ABORT][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-atsm-1/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-atsm-1/igt@[email protected]
- bat-dg2-9: [PASS][5] -> [ABORT][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-dg2-9/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-dg2-9/igt@[email protected]

* igt@i915_selftest@live@gt_lrc:
- bat-dg1-5: [PASS][7] -> [DMESG-FAIL][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-dg1-5/igt@i915_selftest@live@gt_lrc.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-dg1-5/igt@i915_selftest@live@gt_lrc.html
- fi-rkl-11600: [PASS][9] -> [DMESG-FAIL][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/fi-rkl-11600/igt@i915_selftest@live@gt_lrc.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/fi-rkl-11600/igt@i915_selftest@live@gt_lrc.html
- bat-mtlp-8: [PASS][11] -> [DMESG-FAIL][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-mtlp-8/igt@i915_selftest@live@gt_lrc.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-mtlp-8/igt@i915_selftest@live@gt_lrc.html
- bat-adlm-1: NOTRUN -> [DMESG-FAIL][13]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-adlm-1/igt@i915_selftest@live@gt_lrc.html
- fi-tgl-1115g4: [PASS][14] -> [DMESG-FAIL][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/fi-tgl-1115g4/igt@i915_selftest@live@gt_lrc.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/fi-tgl-1115g4/igt@i915_selftest@live@gt_lrc.html
- bat-rpls-1: [PASS][16] -> [DMESG-FAIL][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-rpls-1/igt@i915_selftest@live@gt_lrc.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-rpls-1/igt@i915_selftest@live@gt_lrc.html
- bat-mtlp-6: [PASS][18] -> [DMESG-FAIL][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-mtlp-6/igt@i915_selftest@live@gt_lrc.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-mtlp-6/igt@i915_selftest@live@gt_lrc.html

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@i915_module_load@load:
- {bat-dg2-13}: [DMESG-WARN][20] ([i915#8879]) -> [ABORT][21]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-dg2-13/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-dg2-13/igt@[email protected]
- {bat-dg2-14}: [DMESG-WARN][22] ([i915#8879]) -> [ABORT][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-dg2-14/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-dg2-14/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@i915_selftest@live@gt_lrc:
- bat-adlp-9: [PASS][24] -> [DMESG-FAIL][25] ([i915#7913])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-adlp-9/igt@i915_selftest@live@gt_lrc.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-adlp-9/igt@i915_selftest@live@gt_lrc.html
- bat-adls-5: [PASS][26] -> [DMESG-FAIL][27] ([i915#7913])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-adls-5/igt@i915_selftest@live@gt_lrc.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-adls-5/igt@i915_selftest@live@gt_lrc.html
- bat-rpls-2: [PASS][28] -> [DMESG-FAIL][29] ([i915#7913])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-rpls-2/igt@i915_selftest@live@gt_lrc.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-rpls-2/igt@i915_selftest@live@gt_lrc.html

* igt@i915_suspend@basic-s3-without-i915:
- bat-adlm-1: NOTRUN -> [INCOMPLETE][30] ([i915#7443])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-adlm-1/igt@[email protected]
- bat-mtlp-8: NOTRUN -> [SKIP][31] ([i915#6645])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-mtlp-8/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@requests:
- bat-mtlp-8: [ABORT][32] ([i915#7982] / [i915#8865]) -> [PASS][33]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-mtlp-8/igt@i915_selftest@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-mtlp-8/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@workarounds:
- bat-adlm-1: [INCOMPLETE][34] ([i915#4983] / [i915#7677]) -> [PASS][35]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13562/bat-adlm-1/igt@i915_selftest@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_122864v1/bat-adlm-1/igt@i915_selftest@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
[i915#7443]: https://gitlab.freedesktop.org/drm/intel/issues/7443
[i915#7677]: https://gitlab.freedesktop.org/drm/intel/issues/7677
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7982]: https://gitlab.freedesktop.org/drm/intel/issues/7982
[i915#8865]: https://gitlab.freedesktop.org/drm/intel/issues/8865
[i915#8879]: https://gitlab.freedesktop.org/drm/intel/issues/8879

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

* Linux: CI_DRM_13562 -> Patchwork_122864v1

CI-20190529: 20190529
CI_DRM_13562: 6cd46255547ba72bb6cc6aab91c905b1dec95696 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7451: 5d48d1fb231f449fe2f80cda14ea7a1ecfda59fa @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_122864v1: 6cd46255547ba72bb6cc6aab91c905b1dec95696 @ git://anongit.freedesktop.org/gfx-ci/linux

### Linux commits

8d0016397ca9 drm/i915: Set copy engine arbitration for Wa_16018031267 / Wa_16018063123 93247db0732c drm/i915: Add WABB blit for Wa_16018031267 / Wa_16018063123

== Logs ==

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