diff options
| author | Arvind Yadav <arvind.yadav@intel.com> | 2026-07-28 14:33:04 +0530 |
|---|---|---|
| committer | Matthew Brost <matthew.brost@intel.com> | 2026-08-31 14:56:05 -0700 |
| commit | 8eae39cd0adf28ba81a46090b10484cf402c0ac8 (patch) | |
| tree | 25665b4ac699c3a42bc8e08e792a721ca6dc088c /include/linux | |
| parent | c4126f1db36e6b2e1c79b0e30a8a2de91c568f4c (diff) | |
drm/pagemap: Reset migration page count on eviction retry
drm_pagemap_evict_to_ram() may retry eviction, but mpages retains
the count from the previous attempt. A retry can therefore continue
to the copy path even when no RAM pages were populated.
Reset mpages at the retry label so it reflects only the current
attempt.
Fixes: 99624bdff867 ("drm/gpusvm: Add support for GPU Shared Virtual Memory")
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: David Airlie <airlied@gmail.com>
Cc: Simona Vetter <simona@ffwll.ch>
Signed-off-by: Arvind Yadav <arvind.yadav@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260728090304.1264759-1-arvind.yadav@intel.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
