From: Lucas De Marchi Date: Thu, 22 Dec 2022 20:11:45 +0000 (-0800) Subject: drm/xe/ggtt: Use BIT_ULL() for 64bit X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4aa18ae44686144c5c5d29113d6e2c5c3ebb349d;p=linux.git 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 --- 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) {