Skip to content

Commit 36a6b5d

Browse files
mikuintickle
authored andcommitted
drm/i915/tgl: Add extra hdc flush workaround
In order to ensure constant caches are invalidated properly with a0, we need extra hdc flush after invalidation. v2: use IS_TGL_REVID (Chris) References: HSDES#1604544889 Signed-off-by: Mika Kuoppala <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 4aa0b5d commit 36a6b5d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

drivers/gpu/drm/i915/gt/intel_lrc.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3253,6 +3253,26 @@ static int gen12_emit_flush_render(struct i915_request *request,
32533253

32543254
*cs++ = preparser_disable(false);
32553255
intel_ring_advance(request, cs);
3256+
3257+
/*
3258+
* Wa_1604544889:tgl
3259+
*/
3260+
if (IS_TGL_REVID(request->i915, TGL_REVID_A0, TGL_REVID_A0)) {
3261+
flags = 0;
3262+
flags |= PIPE_CONTROL_CS_STALL;
3263+
flags |= PIPE_CONTROL_HDC_PIPELINE_FLUSH;
3264+
3265+
flags |= PIPE_CONTROL_STORE_DATA_INDEX;
3266+
flags |= PIPE_CONTROL_QW_WRITE;
3267+
3268+
cs = intel_ring_begin(request, 6);
3269+
if (IS_ERR(cs))
3270+
return PTR_ERR(cs);
3271+
3272+
cs = gen8_emit_pipe_control(cs, flags,
3273+
LRC_PPHWSP_SCRATCH_ADDR);
3274+
intel_ring_advance(request, cs);
3275+
}
32563276
}
32573277

32583278
return 0;

0 commit comments

Comments
 (0)