mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-03 19:47:15 +00:00 
			
		
		
		
	lib/drmtest: Retire requests via drop caches after gem_quiescent_gpu
This helps make sure that the GPU is really quiescent by getting rid of any residual stuff. Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
		
							parent
							
								
									4a6a59f314
								
							
						
					
					
						commit
						aa252d0e00
					
				@ -47,6 +47,7 @@
 | 
			
		||||
#include "i915_drm.h"
 | 
			
		||||
#include "intel_chipset.h"
 | 
			
		||||
#include "intel_gpu_tools.h"
 | 
			
		||||
#include "igt_debugfs.h"
 | 
			
		||||
 | 
			
		||||
/* This file contains a bunch of wrapper functions to directly use gem ioctls.
 | 
			
		||||
 * Mostly useful to write kernel tests. */
 | 
			
		||||
@ -163,6 +164,7 @@ void gem_quiescent_gpu(int fd)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	gem_sync(fd, handle);
 | 
			
		||||
	igt_drop_caches_set(DROP_RETIRE);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user