diff options
author | Dave Airlie <airlied@redhat.com> | 2016-03-17 17:16:25 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-03-17 17:16:25 -0400 |
commit | 902d02db1ff1b0d0075276917a36ba70847798a7 (patch) | |
tree | 2dbd296578edf17b7abd5d2ecde1b1f2f1eb5e10 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | e6087877794520748f7295212a4c6bdb870122f2 (diff) | |
parent | b9c743b85dc378510ef0e5ebe3c2e4ac1495c410 (diff) |
Merge branch 'drm-next-4.6' of git://people.freedesktop.org/~agd5f/linux into drm-next
A few other misc cleanups and bug fixes for 4.6. Highlights:
- unify endian handling in powerplay
- powerplay fixes
- fix a regression in 4.5 on boards with no display connectors
- fence cleanups and locking fixes
- whitespace cleanups and code refactoring in radeon
* 'drm-next-4.6' of git://people.freedesktop.org/~agd5f/linux: (35 commits)
drm/amdgpu/gfx7: add MTYPE definition
drm/amdgpu: removing BO_VAs shouldn't be interruptible
drm/amd/powerplay: show uvd/vce power gate enablement for tonga.
drm/amd/powerplay: show uvd/vce power gate info for fiji
drm/amdgpu: use sched fence if possible
drm/amdgpu: move ib.fence to job.fence
drm/amdgpu: give a fence param to ib_free
drm/amdgpu: include the right version of gmc header files for iceland
drm/radeon: fix indentation.
drm/amd/powerplay: add uvd/vce dpm enabling flag to fix the performance issue for CZ
drm/amdgpu: switch back to 32bit hw fences v2
drm/amdgpu: remove amdgpu_fence_is_signaled
drm/amdgpu: drop the extra fence range check v2
drm/amdgpu: signal fences directly in amdgpu_fence_process
drm/amdgpu: cleanup amdgpu_fence_wait_empty v2
drm/amdgpu: keep all fences in an RCU protected array v2
drm/amdgpu: add number of hardware submissions to amdgpu_fence_driver_init_ring
drm/amdgpu: RCU protected amd_sched_fence_release
drm/amdgpu: RCU protected amdgpu_fence_release
drm/amdgpu: merge amdgpu_fence_process and _activity
...
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 1ecdf6c01368..3e128c52bb87 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |||
@@ -161,7 +161,7 @@ void amdgpu_gem_object_close(struct drm_gem_object *obj, | |||
161 | 161 | ||
162 | amdgpu_vm_get_pd_bo(vm, &list, &vm_pd); | 162 | amdgpu_vm_get_pd_bo(vm, &list, &vm_pd); |
163 | 163 | ||
164 | r = ttm_eu_reserve_buffers(&ticket, &list, true, &duplicates); | 164 | r = ttm_eu_reserve_buffers(&ticket, &list, false, &duplicates); |
165 | if (r) { | 165 | if (r) { |
166 | dev_err(adev->dev, "leaking bo va because " | 166 | dev_err(adev->dev, "leaking bo va because " |
167 | "we fail to reserve bo (%d)\n", r); | 167 | "we fail to reserve bo (%d)\n", r); |
@@ -258,12 +258,10 @@ int amdgpu_gem_userptr_ioctl(struct drm_device *dev, void *data, | |||
258 | AMDGPU_GEM_USERPTR_REGISTER)) | 258 | AMDGPU_GEM_USERPTR_REGISTER)) |
259 | return -EINVAL; | 259 | return -EINVAL; |
260 | 260 | ||
261 | if (!(args->flags & AMDGPU_GEM_USERPTR_READONLY) && ( | 261 | if (!(args->flags & AMDGPU_GEM_USERPTR_READONLY) && |
262 | !(args->flags & AMDGPU_GEM_USERPTR_ANONONLY) || | 262 | !(args->flags & AMDGPU_GEM_USERPTR_REGISTER)) { |
263 | !(args->flags & AMDGPU_GEM_USERPTR_REGISTER))) { | ||
264 | 263 | ||
265 | /* if we want to write to it we must require anonymous | 264 | /* if we want to write to it we must install a MMU notifier */ |
266 | memory and install a MMU notifier */ | ||
267 | return -EACCES; | 265 | return -EACCES; |
268 | } | 266 | } |
269 | 267 | ||