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 @@ -1168,10 +1168,14 @@ panthor_vm_op_ctx_prealloc_vmas(struct panthor_vm_op_ctx *op_ctx)
11681168 break ;
11691169
11701170 case DRM_PANTHOR_VM_BIND_OP_TYPE_UNMAP :
1171- /* Partial unmaps might trigger a remap with either a prev or a next VA,
1172- * but not both.
1171+ /* Two VMAs can be needed for an unmap, as an unmap can happen
1172+ * in the middle of a drm_gpuva, requiring a remap with both
1173+ * prev & next VA. Or an unmap can span more than one drm_gpuva
1174+ * where the first and last ones are covered partially, requring
1175+ * a remap for the first with a prev VA and remap for the last
1176+ * with a next VA.
11731177 */
1174- vma_count = 1 ;
1178+ vma_count = 2 ;
11751179 break ;
11761180
11771181 default :
You can’t perform that action at this time.
0 commit comments