Skip to content

Commit 6bf0961

Browse files
committed
drm/i915: Remove dead code from gen8_pte_encode
Commit 9275277 ("drm/i915: use pat_index instead of cache_level") added a dedicated gen12_pte_encode but forgot to remove the Gen12 specific bit from gen8_pte_encode. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Fixes: 9275277 ("drm/i915: use pat_index instead of cache_level") Cc: Fei Yang <fei.yang@intel.com> Cc: Andi Shyti <andi.shyti@linux.intel.com> Cc: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Fei Yang <fei.yang@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230707124644.3965281-1-tvrtko.ursulin@linux.intel.com (cherry picked from commit 0850937) Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
1 parent dde4c3d commit 6bf0961

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ static u64 gen8_pte_encode(dma_addr_t addr,
3737
if (unlikely(flags & PTE_READ_ONLY))
3838
pte &= ~GEN8_PAGE_RW;
3939

40-
if (flags & PTE_LM)
41-
pte |= GEN12_PPGTT_PTE_LM;
42-
4340
/*
4441
* For pre-gen12 platforms pat_index is the same as enum
4542
* i915_cache_level, so the switch-case here is still valid.

0 commit comments

Comments
 (0)