Skip to content

Commit 7b1abac

Browse files
Andrey Grodzovskygregkh
authored andcommitted
drm/amdgpu: Fix BUG_ON assert
commit ea7acd7 upstream. With added CPU domain to placement you can have now 3 placemnts at once. CC: stable@kernel.org Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210622162339.761651-5-andrey.grodzovsky@amd.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c29485e commit 7b1abac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/gpu/drm/amd/amdgpu/amdgpu_object.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain)
207207
c++;
208208
}
209209

210-
BUG_ON(c >= AMDGPU_BO_MAX_PLACEMENTS);
210+
BUG_ON(c > AMDGPU_BO_MAX_PLACEMENTS);
211211

212212
placement->num_placement = c;
213213
placement->placement = places;

0 commit comments

Comments
 (0)