--- linux-6.3/drivers/gpu/drm/i915/gt/intel_gtt.h.vanilla	2023-04-25 14:25:05.724332477 +0200
+++ linux-6.3/drivers/gpu/drm/i915/gt/intel_gtt.h	2023-04-25 14:26:03.759337503 +0200
@@ -46,7 +46,11 @@
 #define I915_GTT_PAGE_SIZE_64K	BIT_ULL(16)
 #define I915_GTT_PAGE_SIZE_2M	BIT_ULL(21)
 
+#ifdef CONFIG_PAGE_SIZE_64KB
+#define I915_GTT_PAGE_SIZE I915_GTT_PAGE_SIZE_64K
+#else
 #define I915_GTT_PAGE_SIZE I915_GTT_PAGE_SIZE_4K
+#endif
 #define I915_GTT_MAX_PAGE_SIZE I915_GTT_PAGE_SIZE_2M
 
 #define I915_GTT_PAGE_MASK -I915_GTT_PAGE_SIZE
