diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-24 10:04:56 +0300 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-24 10:04:56 +0300 | 
| commit | c353bfc6ebc1073f2f0af72a15f8f18db7193d2e (patch) | |
| tree | 5f9335398fc199756de6d73a9464407a9d68ead3 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | 1d3bc6363a7d14393e7e66f092645e2229b39954 (diff) | |
| parent | 98ecf1a308977505381b5c360b039a84cf67513c (diff) | |
| download | linux-c353bfc6ebc1073f2f0af72a15f8f18db7193d2e.tar.xz | |
Merge tag 'drm-for-v4.15-part2' of git://people.freedesktop.org/~airlied/linux
Pull more drm updates from Dave Airlie:
 "Fixes/cleanups for rc1, non-desktop flags for VR
   - remove the MSM dt-bindings file Rob managed to push in the previous
     pull.
   - add a property/edid quirk to denote HMD devices, I had these
     hanging around for a few weeks and Keith had done some work on
     them, they are fairly self contained and small, and only affect
     people using HTC Vive VR headsets so far.
   - amdgpu, tegra, tilcdc, fsl fixes
   - some imx-drm cleanups I missed, these seemed pretty small, and no
     reason to hold off.
  I have one TTM regression fix (fixes bochs-vga in qemu) sitting
  locally awaiting review I'll probably send that in a separate pull
  request tomorrow"
* tag 'drm-for-v4.15-part2' of git://people.freedesktop.org/~airlied/linux: (33 commits)
  dt-bindings: remove file that was added accidentally
  drm/edid: quirk HTC vive headset as non-desktop. [v2]
  drm/fb: add support for not enabling fbcon on non-desktop displays [v2]
  drm: add connector info/property for non-desktop displays [v2]
  drm/amdgpu: fix rmmod KCQ disable failed error
  drm/amdgpu: fix kernel hang when starting VNC server
  drm/amdgpu: don't skip attributes when powerplay is enabled
  drm/amd/pp: fix typecast error in powerplay.
  drm/tilcdc: Remove obsolete "ti,tilcdc,slave" dts binding support
  drm/tegra: sor: Reimplement pad clock
  Revert "drm/radeon: dont switch vt on suspend"
  drm/amd/amdgpu: fix over-bound accessing in amdgpu_cs_wait_any_fence
  drm/amd/powerplay: fix unfreeze level smc message for smu7
  drm/amdgpu:fix memleak
  drm/amdgpu:fix memleak in takedown
  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/fsl-dcu: enable IRQ before drm_atomic_helper_resume()
  drm/fsl-dcu: avoid disabling pixel clock twice on suspend
  ...
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 6c78623e1386..a57cec737c18 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -1495,8 +1495,11 @@ out:  	memset(wait, 0, sizeof(*wait));  	wait->out.status = (r > 0);  	wait->out.first_signaled = first; -	/* set return value 0 to indicate success */ -	r = array[first]->error; + +	if (first < fence_count && array[first]) +		r = array[first]->error; +	else +		r = 0;  err_free_fence_array:  	for (i = 0; i < fence_count; i++)  | 
