]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/gpusvm: Limit the number of retries in drm_gpusvm_get_pages
authorMatthew Brost <matthew.brost@intel.com>
Sat, 22 Nov 2025 01:25:01 +0000 (17:25 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 26 Nov 2025 18:21:45 +0000 (10:21 -0800)
commit9fb1f1256e419fcd0e5000ea8aaa71a65575a90b
tree45a47f9bea079b7bf7a573e65cdfc4fdfafc7a8f
parentdacda0cf75d5f4aa8da5404c21dc8ab4b7667799
drm/gpusvm: Limit the number of retries in drm_gpusvm_get_pages

drm_gpusvm_get_pages should not be allowed to retry forever, cap the
time spent in the function to HMM_RANGE_DEFAULT_TIMEOUT has this is
essentially a wrapper around hmm_range_fault.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patch.msgid.link/20251122012502.382587-1-matthew.brost@intel.com
drivers/gpu/drm/drm_gpusvm.c