mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	drm/amd/amdgpu: Fix the mes version that support inv_tlbs
MES pipe0 will do VM invalidation with engine set 5 when assign VMID to a process, driver will submit inv_tlb package to mes pipe1. It might run into race condition if both pipes use the same invalidate engine set. From MES version 0x83 it will use invalidate engine set 6 for pipe1 to fix the issue Signed-off-by: Shaoyun Liu <shaoyun.liu@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
		
							parent
							
								
									531df041f2
								
							
						
					
					
						commit
						85442bac84
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -337,7 +337,7 @@ static void gmc_v12_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev,
 | 
			
		|||
	int vmid, i;
 | 
			
		||||
 | 
			
		||||
	if (adev->enable_uni_mes && adev->mes.ring[AMDGPU_MES_SCHED_PIPE].sched.ready &&
 | 
			
		||||
	    (adev->mes.sched_version & AMDGPU_MES_VERSION_MASK) >= 0x81) {
 | 
			
		||||
	    (adev->mes.sched_version & AMDGPU_MES_VERSION_MASK) >= 0x83) {
 | 
			
		||||
		struct mes_inv_tlbs_pasid_input input = {0};
 | 
			
		||||
		input.pasid = pasid;
 | 
			
		||||
		input.flush_type = flush_type;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue