From 4aa18ae44686144c5c5d29113d6e2c5c3ebb349d Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 22 Dec 2022 12:11:45 -0800 Subject: [PATCH] drm/xe/ggtt: Use BIT_ULL() for 64bit Make sure it's 64bit value in both 32b and 64b arch. Signed-off-by: Lucas De Marchi Reviewed-by: Rodrigo Vivi Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/xe/xe_ggtt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c index eab74a509f681..0018c84417470 100644 --- a/drivers/gpu/drm/xe/xe_ggtt.c +++ b/drivers/gpu/drm/xe/xe_ggtt.c @@ -20,8 +20,8 @@ #include "gt/intel_gt_regs.h" /* FIXME: Common file, preferably auto-gen */ -#define MTL_GGTT_PTE_PAT0 BIT(52) -#define MTL_GGTT_PTE_PAT1 BIT(53) +#define MTL_GGTT_PTE_PAT0 BIT_ULL(52) +#define MTL_GGTT_PTE_PAT1 BIT_ULL(53) u64 xe_ggtt_pte_encode(struct xe_bo *bo, u64 bo_offset) { -- 2.30.2