mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 12:31:52 -04:00
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 <michal.wajdeczko@intel.com> Link: https://patch.msgid.link/20260130215624.556099-1-michal.winiarski@intel.com Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user