]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe: Skip adding PRL entry to NULL VMA
authorBrian Nguyen <brian3.nguyen@intel.com>
Thu, 5 Mar 2026 17:15:50 +0000 (17:15 +0000)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 16 Mar 2026 16:42:41 +0000 (09:42 -0700)
NULL VMAs have no corresponding PTE, so skip adding a PRL entry to avoid
an unnecessary PRL abort during unbind.

Signed-off-by: Brian Nguyen <brian3.nguyen@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260305171546.67691-8-brian3.nguyen@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_page_reclaim.c

index 60b0fda59ce33720ef0ffc888813c9b9bdd79b03..da1ed99cd3f8d0dc247c042e41a659f475114705 100644 (file)
  * 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);
 
        /*