File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1175,10 +1175,14 @@ panthor_vm_op_ctx_prealloc_vmas(struct panthor_vm_op_ctx *op_ctx)
11751175		break ;
11761176
11771177	case  DRM_PANTHOR_VM_BIND_OP_TYPE_UNMAP :
1178- 		/* Partial unmaps might trigger a remap with either a prev or a next VA, 
1179- 		 * but not both. 
1178+ 		/* Two VMAs can be needed for an unmap, as an unmap can happen 
1179+ 		 * in the middle of a drm_gpuva, requiring a remap with both 
1180+ 		 * prev & next VA. Or an unmap can span more than one drm_gpuva 
1181+ 		 * where the first and last ones are covered partially, requring 
1182+ 		 * a remap for the first with a prev VA and remap for the last 
1183+ 		 * with a next VA. 
11801184		 */ 
1181- 		vma_count  =  1 ;
1185+ 		vma_count  =  2 ;
11821186		break ;
11831187
11841188	default :
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments