Commit 1b12096b authored by Brian Nguyen's avatar Brian Nguyen Committed by Matt Roper
Browse files

drm/xe: Skip adding PRL entry to NULL VMA



NULL VMAs have no corresponding PTE, so skip adding a PRL entry to avoid
an unnecessary PRL abort during unbind.

Signed-off-by: default avatarBrian Nguyen <brian3.nguyen@intel.com>
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260305171546.67691-8-brian3.nguyen@intel.com


Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
parent d88fa967
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -27,12 +27,18 @@
 * flushes.
 * - pat_index is transient display (1)
 *
 * For cases of NULL VMA, there should be no corresponding PRL entry
 * so skip over.
 *
 * Return: true when page reclamation is unnecessary, false otherwise.
 */
bool xe_page_reclaim_skip(struct xe_tile *tile, struct xe_vma *vma)
{
	u8 l3_policy;

	if (xe_vma_is_null(vma))
		return true;

	l3_policy = xe_pat_index_get_l3_policy(tile->xe, vma->attr.pat_index);

	/*