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 @@ -1147,10 +1147,14 @@ panthor_vm_op_ctx_prealloc_vmas(struct panthor_vm_op_ctx *op_ctx)
11471147 break ;
11481148
11491149 case DRM_PANTHOR_VM_BIND_OP_TYPE_UNMAP :
1150- /* Partial unmaps might trigger a remap with either a prev or a next VA,
1151- * but not both.
1150+ /* Two VMAs can be needed for an unmap, as an unmap can happen
1151+ * in the middle of a drm_gpuva, requiring a remap with both
1152+ * prev & next VA. Or an unmap can span more than one drm_gpuva
1153+ * where the first and last ones are covered partially, requring
1154+ * a remap for the first with a prev VA and remap for the last
1155+ * with a next VA.
11521156 */
1153- vma_count = 1 ;
1157+ vma_count = 2 ;
11541158 break ;
11551159
11561160 default :
You can’t perform that action at this time.
0 commit comments