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 <[email protected]> Fixes: 9275277 ("drm/i915: use pat_index instead of cache_level") Cc: Fei Yang <[email protected]> Cc: Andi Shyti <[email protected]> Cc: Matt Roper <[email protected]> Reviewed-by: Rodrigo Vivi <[email protected]> Reviewed-by: Fei Yang <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 0850937) Signed-off-by: Tvrtko Ursulin <[email protected]>
1 parent dde4c3d commit 6bf0961

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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)