diff options
author | Dave Airlie <airlied@redhat.com> | 2017-11-19 15:14:14 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-11-19 15:14:14 -0500 |
commit | 1220a3e5698238c9d5f75dbaacd3938b60048496 (patch) | |
tree | d181b9e52e314fbe5c0c7caf78241b03aada8a2f /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
parent | f150891fd9878ef0d9197c4e8451ce67c3bdd014 (diff) | |
parent | 451cc55dd17fa5130f05629ac8d90e32facf27f6 (diff) |
Merge branch 'drm-next-4.15' of git://people.freedesktop.org/~agd5f/linux into drm-next
Misc fixes for 4.15.
* 'drm-next-4.15' of git://people.freedesktop.org/~agd5f/linux:
drm/amd/pp: fix dpm randomly failed on Vega10
drm/amdgpu: set f_mapping on exported DMA-bufs
drm/amdgpu: Properly allocate VM invalidate eng v2
drm/amd/amdgpu: if visible VRAM allocation fail, fall back to invisible try again
drm/amd/amdgpu: Fix wave mask in amdgpu_debugfs_wave_read() (v2)
drm/amdgpu: make AMDGPU_VA_RESERVED_SIZE 64bit
drm/amdgpu/gfx9: implement wave VGPR reading
drm/amdgpu: Add common golden settings for GFX9
drm/amd/powerplay: fix copy-n-paste error on vddci_buf index
drm/amdgpu: Fix null pointer issue in amdgpu_cs_wait_any_fence
drm/amdgpu: Remove check which is not valid for certain VBIOS
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index f7fceb63413c..146e05f21d35 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |||
@@ -1497,8 +1497,11 @@ out: | |||
1497 | memset(wait, 0, sizeof(*wait)); | 1497 | memset(wait, 0, sizeof(*wait)); |
1498 | wait->out.status = (r > 0); | 1498 | wait->out.status = (r > 0); |
1499 | wait->out.first_signaled = first; | 1499 | wait->out.first_signaled = first; |
1500 | /* set return value 0 to indicate success */ | 1500 | |
1501 | r = array[first]->error; | 1501 | if (array[first]) |
1502 | r = array[first]->error; | ||
1503 | else | ||
1504 | r = 0; | ||
1502 | 1505 | ||
1503 | err_free_fence_array: | 1506 | err_free_fence_array: |
1504 | for (i = 0; i < fence_count; i++) | 1507 | for (i = 0; i < fence_count; i++) |