drm/i915/mtl: Add PTE encode function
authorFei Yang <fei.yang@intel.com>
Mon, 24 Apr 2023 18:29:01 +0000 (11:29 -0700)
committerNirmoy Das <nirmoy.das@intel.com>
Tue, 25 Apr 2023 07:23:28 +0000 (09:23 +0200)
commit341ad0e8e254267704e0b87e35ad23aba5c02359
treec2007bc93f7112d2316ae629438404bbbeac2d85
parent66ca1d8f222bdb1c9470e44131e12d753622ab08
drm/i915/mtl: Add PTE encode function

PTE encode functions are platform dependent. This patch implements
PTE functions for MTL, and ensures the correct PTE encode function
is used by calling pte_encode function pointer instead of the
hardcoded gen8 version of PTE encode.

Fixes: b76c0deef627 ("drm/i915/mtl: Define MOCS and PAT tables for MTL")
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Acked-by: Nirmoy Das <nirmoy.das@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230424182902.3663500-2-fei.yang@intel.com
drivers/gpu/drm/i915/display/intel_dpt.c
drivers/gpu/drm/i915/gt/gen8_ppgtt.c
drivers/gpu/drm/i915/gt/intel_ggtt.c
drivers/gpu/drm/i915/gt/intel_gtt.h