drm/xe: Do not run GPU page fault handler on a closed VM
authorMatthew Brost <matthew.brost@intel.com>
Wed, 11 Sep 2024 01:18:20 +0000 (18:18 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 18 Sep 2024 04:31:41 +0000 (23:31 -0500)
commit9460f4bd5970f2e46fe190a0cb9814697bd7f21a
tree3e608e7a1f8501e6861d532d89882f6d119be127
parentddc73c465628ab3e60f7eb5b4063b644c18b6336
drm/xe: Do not run GPU page fault handler on a closed VM

Closing a VM removes page table memory thus we shouldn't touch page
tables when a VM is closed. Do not run the GPU page fault handler once
the VM is closed to avoid touching page tables.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240911011820.825127-1-matthew.brost@intel.com
(cherry picked from commit f96dbf7c321d70834d46f3aedb75a671e839b51e)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_gt_pagefault.c