diff options
| author | Christian König <[email protected]> | 2022-01-28 12:21:10 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-02-02 23:26:32 +0000 |
| commit | fcd6b0e270a9dd849981df34051ee6dcbdbb1c0d (patch) | |
| tree | 2520369aa47709c5264d32898b13e90aa99d53ef /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |
| parent | drm/amd/display: Force link_rate as LINK_RATE_RBR2 for 2018 15" Apple Retina ... (diff) | |
| download | kernel-fcd6b0e270a9dd849981df34051ee6dcbdbb1c0d.tar.gz kernel-fcd6b0e270a9dd849981df34051ee6dcbdbb1c0d.zip | |
drm/amdgpu: fix logic inversion in check
We probably never trigger this, but the logic inside the check is
inverted.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 74d8b721bd7d..4b2920af1209 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -1941,7 +1941,7 @@ int amdgpu_copy_buffer(struct amdgpu_ring *ring, uint64_t src_offset, unsigned i; int r; - if (direct_submit && !ring->sched.ready) { + if (!direct_submit && !ring->sched.ready) { DRM_ERROR("Trying to move memory with ring turned off.\n"); return -EINVAL; } |
