]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "drm/i915/tgl: Add extra hdc flush workaround"
authorCaz Yokoyama <caz.yokoyama@intel.com>
Wed, 4 Mar 2020 22:13:59 +0000 (14:13 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Thu, 12 Mar 2020 22:19:00 +0000 (15:19 -0700)
This reverts commit 81d1d5ffde132f919e745c6e84a0812f4c5c53b0.

The commit takes care Wa_1604544889 which was fixed on a0 stepping based on
a0 replan. So no SW workaround is required on any stepping now.

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Caz Yokoyama <caz.yokoyama@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Fixes: 81d1d5ffde13 ("drm/i915/tgl: Add extra hdc flush workaround")
Link: https://patchwork.freedesktop.org/patch/msgid/1c751032ce79c80c5485cae315f1a9904ce07cac.1583359940.git.caz.yokoyama@intel.com
drivers/gpu/drm/i915/gt/intel_lrc.c

index 1c68b4f4e33db74c1cb3982ac9eec944c674febc..112531b29f596abf4fa7203efbf5e7881a07d257 100644 (file)
@@ -4165,26 +4165,6 @@ static int gen12_emit_flush_render(struct i915_request *request,
 
                *cs++ = preparser_disable(false);
                intel_ring_advance(request, cs);
-
-               /*
-                * Wa_1604544889:tgl
-                */
-               if (IS_TGL_REVID(request->i915, TGL_REVID_A0, TGL_REVID_A0)) {
-                       flags = 0;
-                       flags |= PIPE_CONTROL_CS_STALL;
-                       flags |= PIPE_CONTROL_HDC_PIPELINE_FLUSH;
-
-                       flags |= PIPE_CONTROL_STORE_DATA_INDEX;
-                       flags |= PIPE_CONTROL_QW_WRITE;
-
-                       cs = intel_ring_begin(request, 6);
-                       if (IS_ERR(cs))
-                               return PTR_ERR(cs);
-
-                       cs = gen8_emit_pipe_control(cs, flags,
-                                                   LRC_PPHWSP_SCRATCH_ADDR);
-                       intel_ring_advance(request, cs);
-               }
        }
 
        return 0;