mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
drm/ttm: move swapout logic around v3
Move the iteration of the global lru into the new function ttm_global_swapout() and use that instead in drivers. v2: consistently return int v3: fix build fail Signed-off-by: Christian König <christian.koenig@amd.com> Tested-by: Nirmoy Das <nirmoy.das@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/424008/
This commit is contained in:
@@ -1371,7 +1371,7 @@ static int vmw_pm_freeze(struct device *kdev)
|
||||
vmw_execbuf_release_pinned_bo(dev_priv);
|
||||
vmw_resource_evict_all(dev_priv);
|
||||
vmw_release_device_early(dev_priv);
|
||||
while (ttm_bo_swapout(&ctx, GFP_KERNEL) > 0);
|
||||
while (ttm_global_swapout(&ctx, GFP_KERNEL) > 0);
|
||||
if (dev_priv->enable_fb)
|
||||
vmw_fifo_resource_dec(dev_priv);
|
||||
if (atomic_read(&dev_priv->num_fifo_resources) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user