From: Michał Winiarski Date: Fri, 30 Jan 2026 21:56:24 +0000 (+0100) Subject: drm/xe/pf: Fix the address range assert in ggtt_get_pte helper X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6fa45759cf43df3508a94dda7b6b02735ab19c4f;p=thirdparty%2Flinux.git drm/xe/pf: Fix the address range assert in ggtt_get_pte helper The ggtt_get_pte helper used for saving VF GGTT incorrectly assumes that ggtt_size == ggtt_end. Fix it to avoid triggering spurious asserts if VF GGTT object lands in high GGTT range. Reviewed-by: Michal Wajdeczko Link: https://patch.msgid.link/20260130215624.556099-1-michal.winiarski@intel.com Signed-off-by: Michał Winiarski --- diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c index 8b9d7c0bbe907..2ab8807728479 100644 --- a/drivers/gpu/drm/xe/xe_ggtt.c +++ b/drivers/gpu/drm/xe/xe_ggtt.c @@ -193,7 +193,7 @@ static void xe_ggtt_set_pte_and_flush(struct xe_ggtt *ggtt, u64 addr, u64 pte) static u64 xe_ggtt_get_pte(struct xe_ggtt *ggtt, u64 addr) { xe_tile_assert(ggtt->tile, !(addr & XE_PTE_MASK)); - xe_tile_assert(ggtt->tile, addr < ggtt->size); + xe_tile_assert(ggtt->tile, addr < ggtt->start + ggtt->size); return readq(&ggtt->gsm[addr >> XE_PTE_SHIFT]); }