Skip to content

Commit 0fec53c

Browse files
ChristianKoenigAMDgregkh
authored andcommitted
drm/amdgpu: fix logic inversion in check
[ Upstream commit e8ae387 ] We probably never trigger this, but the logic inside the check is inverted. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 38108fd commit 0fec53c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1892,7 +1892,7 @@ int amdgpu_copy_buffer(struct amdgpu_ring *ring, uint64_t src_offset,
18921892
unsigned i;
18931893
int r;
18941894

1895-
if (direct_submit && !ring->sched.ready) {
1895+
if (!direct_submit && !ring->sched.ready) {
18961896
DRM_ERROR("Trying to move memory with ring turned off.\n");
18971897
return -EINVAL;
18981898
}

0 commit comments

Comments
 (0)