Skip to content

Commit

Permalink
drm/i915/gt: Set unused mocs entry to follow PTE on tgl as on all others
Browse files Browse the repository at this point in the history
Be consistent in our mocs setup on Tigerlake and set the unused control
value to follow the PTE entry as we previously have done. The unused
values are beyond the defines of the ABI, the consistency simplifies our
checking.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191112223600.30993-1-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Nov 14, 2019
1 parent abc5520 commit 93975d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/gt/intel_mocs.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ static void intel_mocs_init_global(struct intel_gt *gt)
for (; index < table.n_entries; index++)
intel_uncore_write(uncore,
GEN12_GLOBAL_MOCS(index),
table.table[0].control_value);
table.table[I915_MOCS_PTE].control_value);
}

void intel_mocs_init(struct intel_gt *gt)
Expand Down

0 comments on commit 93975d6

Please sign in to comment.