drm/i915/bdw: Implement WaForceContextSaveRestoreNonCoherent
Subsystems (2)
PATCH 1/1 drm/i915/bdw: Implement WaForceContextSaveRestoreNonCoherent
--- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_ringbuffer.c | 2 ++ 2 files changed, 3 insertions(+)
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -5253,6 +5253,7 @@ enum punit_power_well {/* GEN8 chicken */ #define HDC_CHICKEN0 0x7300 +#define HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT (1<<5)#define HDC_FORCE_NON_COHERENT (1<<4)#define HDC_DONOT_FETCH_MEM_WHEN_MASKED (1<<11)#define HDC_FENCE_DEST_SLM_DISABLE (1<<14)
drivers/gpu/drm/i915/intel_ringbuffer.c +2 -0
@@ -790,9 +790,11 @@ static int bdw_init_workarounds(struct intel_engine_cs *ring)*/ /* WaForceEnableNonCoherent:bdw */ /* WaHdcDisableFetchWhenMasked:bdw */ +/* WaForceContextSaveRestoreNonCoherent:bdw */ /* WaDisableFenceDestinationToSLM:bdw (GT3 pre-production) */ WA_SET_BIT_MASKED (HDC_CHICKEN0 ,HDC_FORCE_NON_COHERENT | +HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT |HDC_DONOT_FETCH_MEM_WHEN_MASKED | (IS_BDW_GT3 (dev) ?HDC_FENCE_DEST_SLM_DISABLE :0 ));
Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerOn Tue, 27 Jan 2015, Damien Lespiau <[email protected]> wrote:
Missing commit message. I need some description to decide whether this is required for fixes/stable or not.
BR,
Jani.
Quoted 41 lines
Signed-off-by Damien Lespiau <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_ringbuffer.c | 2 ++ 2 files changed, 3 insertions(+)drivers/gpu/drm/i915/i915_reg.h +1
-0@@ -5253,6 +5253,7 @@ enum punit_power_well {/* GEN8 chicken */ #define HDC_CHICKEN0 0x7300 +#define HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT (1<<5)#define HDC_FORCE_NON_COHERENT (1<<4)#define HDC_DONOT_FETCH_MEM_WHEN_MASKED (1<<11)#define HDC_FENCE_DEST_SLM_DISABLE (1<<14)drivers/gpu/drm/i915/intel_ringbuffer.c +2
-0@@ -790,9 +790,11 @@ static int bdw_init_workarounds(struct intel_engine_cs *ring)*/ /* WaForceEnableNonCoherent:bdw */ /* WaHdcDisableFetchWhenMasked:bdw */ +/* WaForceContextSaveRestoreNonCoherent:bdw */ /* WaDisableFenceDestinationToSLM:bdw (GT3 pre-production) */ WA_SET_BIT_MASKED (HDC_CHICKEN0 ,HDC_FORCE_NON_COHERENT | +HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT |HDC_DONOT_FETCH_MEM_WHEN_MASKED | (IS_BDW_GT3 (dev) ?HDC_FENCE_DEST_SLM_DISABLE :0 ));Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 4 lines · Jani Nikula
On Tue, 27 Jan 2015, Damien Lespiau <[email protected]> wrote:
Missing commit message. I need some description to decide whether this is required for fixes/stable or not.
This patch wasn't prompted by an actual problem I witnessed, but from going through the list of W/As for SKL.
The need for that W/A was itself discovered through a preemption test, there's no indication if it could occur with the non-preempted context switch we do today.
I'd leave it out of fixes/stable then.
Signature · 5 lines
Damien _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Task id: 5657 -------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
PNV 353/353 353/353 ILK 353/353 353/353 SNB 400/422 400/422
IVB +2 485/487 487/487
BYT 296/296 296/296
HSW +1 507/508 508/508
BDW 401/402 401/402
-------------------------------------Detailed-------------------------------------
Platform Test drm-intel-nightly Series Applied
IVB igt_gem_pwrite_pread_snooped-pwrite-blt-cpu_mmap-performance DMESG_WARN(4, M34M21)PASS(5, M4) PASS(1, M4) IVB igt_gem_storedw_batches_loop_normal DMESG_WARN(4, M34M4)PASS(8, M34M4M21) PASS(1, M4) HSW igt_gem_pwrite_pread_snooped-pwrite-blt-cpu_mmap-performance DMESG_WARN(1, M40)PASS(13, M40M20) PASS(1, M40)
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 1 line · Damien Lespiau
Signed-off-by Damien Lespiau <[email protected]>
OK, so this has the right w/a name whereas Ben's earlier patch didn't. So we should go with this version instead.
Quoted 40 lines
--- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_ringbuffer.c | 2 ++ 2 files changed, 3 insertions(+)drivers/gpu/drm/i915/i915_reg.h +1
-0@@ -5253,6 +5253,7 @@ enum punit_power_well {/* GEN8 chicken */ #define HDC_CHICKEN0 0x7300 +#define HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT (1<<5)#define HDC_FORCE_NON_COHERENT (1<<4)#define HDC_DONOT_FETCH_MEM_WHEN_MASKED (1<<11)#define HDC_FENCE_DEST_SLM_DISABLE (1<<14)drivers/gpu/drm/i915/intel_ringbuffer.c +2
-0@@ -790,9 +790,11 @@ static int bdw_init_workarounds(struct intel_engine_cs *ring)*/ /* WaForceEnableNonCoherent:bdw */ /* WaHdcDisableFetchWhenMasked:bdw */ +/* WaForceContextSaveRestoreNonCoherent:bdw */ /* WaDisableFenceDestinationToSLM:bdw (GT3 pre-production) */ WA_SET_BIT_MASKED (HDC_CHICKEN0 ,HDC_FORCE_NON_COHERENT | +HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT |HDC_DONOT_FETCH_MEM_WHEN_MASKED | (IS_BDW_GT3 (dev) ?HDC_FENCE_DEST_SLM_DISABLE :0 ));Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx