Skip to content

Commit 6ed9ccb

Browse files
mlankhorstairlied
authored andcommitted
drm/radeon: allow move_notify to be called without reservation
The few places that care should have those checks instead. This allows destruction of bo backed memory without a reservation. It's required for being able to rework the delayed destroy path, as it is no longer guaranteed to hold a reservation before unlocking. However any previous wait is still guaranteed to complete, and it's one of the last things to be done before the buffer object is freed. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 4154f05 commit 6ed9ccb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/gpu/drm/radeon/radeon_gart.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,6 @@ void radeon_vm_bo_invalidate(struct radeon_device *rdev,
12371237
{
12381238
struct radeon_bo_va *bo_va;
12391239

1240-
BUG_ON(!radeon_bo_is_reserved(bo));
12411240
list_for_each_entry(bo_va, &bo->va, bo_list) {
12421241
bo_va->valid = false;
12431242
}

drivers/gpu/drm/radeon/radeon_object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ void radeon_bo_get_tiling_flags(struct radeon_bo *bo,
530530
int radeon_bo_check_tiling(struct radeon_bo *bo, bool has_moved,
531531
bool force_drop)
532532
{
533-
BUG_ON(!radeon_bo_is_reserved(bo));
533+
BUG_ON(!radeon_bo_is_reserved(bo) && !force_drop);
534534

535535
if (!(bo->tiling_flags & RADEON_TILING_SURFACE))
536536
return 0;

0 commit comments

Comments
 (0)