mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	drm/ttm: drop waiting for idle in ttm_bo_evict.
That is unnecessary now. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
		
							parent
							
								
									a6f76dcd02
								
							
						
					
					
						commit
						17d33bc9d6
					
				
					 1 changed files with 1 additions and 10 deletions
				
			
		| 
						 | 
					@ -684,15 +684,6 @@ static int ttm_bo_evict(struct ttm_buffer_object *bo, bool interruptible,
 | 
				
			||||||
	struct ttm_placement placement;
 | 
						struct ttm_placement placement;
 | 
				
			||||||
	int ret = 0;
 | 
						int ret = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ret = ttm_bo_wait(bo, interruptible, no_wait_gpu);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if (unlikely(ret != 0)) {
 | 
					 | 
				
			||||||
		if (ret != -ERESTARTSYS) {
 | 
					 | 
				
			||||||
			pr_err("Failed to expire sync object before buffer eviction\n");
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
		goto out;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	lockdep_assert_held(&bo->resv->lock.base);
 | 
						lockdep_assert_held(&bo->resv->lock.base);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	evict_mem = bo->mem;
 | 
						evict_mem = bo->mem;
 | 
				
			||||||
| 
						 | 
					@ -716,7 +707,7 @@ static int ttm_bo_evict(struct ttm_buffer_object *bo, bool interruptible,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ret = ttm_bo_handle_move_mem(bo, &evict_mem, true, interruptible,
 | 
						ret = ttm_bo_handle_move_mem(bo, &evict_mem, true, interruptible,
 | 
				
			||||||
				     no_wait_gpu);
 | 
									     no_wait_gpu);
 | 
				
			||||||
	if (ret) {
 | 
						if (unlikely(ret)) {
 | 
				
			||||||
		if (ret != -ERESTARTSYS)
 | 
							if (ret != -ERESTARTSYS)
 | 
				
			||||||
			pr_err("Buffer eviction failed\n");
 | 
								pr_err("Buffer eviction failed\n");
 | 
				
			||||||
		ttm_bo_mem_put(bo, &evict_mem);
 | 
							ttm_bo_mem_put(bo, &evict_mem);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue