Skip to content

Commit

Permalink
drm/i915/tgl: Implement Wa_1406941453
Browse files Browse the repository at this point in the history
Enable Small PL for power benefit.

Signed-off-by: Michel Thierry <[email protected]>
Signed-off-by: Lucas De Marchi <[email protected]>
Reviewed-by: Stuart Summers <[email protected]>
Reviewed-by: Radhakrishna Sripada <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
mthierry authored and lucasdemarchi committed Sep 19, 2019
1 parent 1c75749 commit 7f0cc34
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/gpu/drm/i915/gt/intel_workarounds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,13 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)
{
struct drm_i915_private *i915 = engine->i915;

if (IS_GEN(i915, 12)) {
/* Wa_1406941453:tgl */
wa_masked_en(wal,
SAMPLER_MODE,
SAMPLER_ENABLE_SMALL_PL);
}

if (IS_GEN(i915, 11)) {
/* This is not an Wa. Enable for better image quality */
wa_masked_en(wal,
Expand Down
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/i915_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -8965,6 +8965,9 @@ enum {
#define GEN9_DG_MIRROR_FIX_ENABLE (1 << 5)
#define GEN9_CCS_TLB_PREFETCH_ENABLE (1 << 3)

#define SAMPLER_MODE _MMIO(0xe18c)
#define SAMPLER_ENABLE_SMALL_PL (1 << 15)

#define GEN8_ROW_CHICKEN _MMIO(0xe4f0)
#define FLOW_CONTROL_ENABLE (1 << 15)
#define PARTIAL_INSTRUCTION_SHOOTDOWN_DISABLE (1 << 8)
Expand Down

0 comments on commit 7f0cc34

Please sign in to comment.