diff options
author | Dave Airlie <airlied@redhat.com> | 2016-10-27 21:33:52 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-10-27 21:33:52 -0400 |
commit | 220196b38483be6d84a295d318d48595f65da443 (patch) | |
tree | f91c2e6e64ef59afdc075d843d51f23369e9164a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | a1873c62710b23e9afbd2faeed5f28649cbe4739 (diff) | |
parent | 56df51d003203f1c3a8eab05605973515aa15feb (diff) |
Merge tag 'topic/drm-misc-2016-10-27' of git://anongit.freedesktop.org/git/drm-intel into drm-next
Pull request already again to get the s/fence/dma_fence/ stuff in and
allow everyone to resync. Otherwise really just misc stuff all over, and a
new bridge driver.
* tag 'topic/drm-misc-2016-10-27' of git://anongit.freedesktop.org/git/drm-intel:
drm/bridge: fix platform_no_drv_owner.cocci warnings
drm/bridge: fix semicolon.cocci warnings
drm: Print some debug/error info during DP dual mode detect
drm: mark drm_of_component_match_add dummy inline
drm/bridge: add Silicon Image SiI8620 driver
dt-bindings: add Silicon Image SiI8620 bridge bindings
video: add header file for Mobile High-Definition Link (MHL) interface
drm: convert DT component matching to component_match_add_release()
dma-buf: Rename struct fence to dma_fence
dma-buf/fence: add an lockdep_assert_held()
drm/dp: Factor out helper to distinguish between branch and sink devices
drm/edid: Only print the bad edid when aborting
drm/msm: add missing header dependencies
drm/msm/adreno: move function declarations to header file
drm/i2c/tda998x: mark symbol static where possible
doc: add missing docbook parameter for fence-array
drm: RIP mode_config->rotation_property
drm/msm/mdp5: Advertize 180 degree rotation
drm/msm/mdp5: Use per-plane rotation property
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 6efa8d73b394..f0a0513ef4c2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |||
@@ -391,7 +391,7 @@ int amdgpu_bo_create_restricted(struct amdgpu_device *adev, | |||
391 | 391 | ||
392 | if (flags & AMDGPU_GEM_CREATE_VRAM_CLEARED && | 392 | if (flags & AMDGPU_GEM_CREATE_VRAM_CLEARED && |
393 | bo->tbo.mem.placement & TTM_PL_FLAG_VRAM) { | 393 | bo->tbo.mem.placement & TTM_PL_FLAG_VRAM) { |
394 | struct fence *fence; | 394 | struct dma_fence *fence; |
395 | 395 | ||
396 | if (adev->mman.buffer_funcs_ring == NULL || | 396 | if (adev->mman.buffer_funcs_ring == NULL || |
397 | !adev->mman.buffer_funcs_ring->ready) { | 397 | !adev->mman.buffer_funcs_ring->ready) { |
@@ -411,9 +411,9 @@ int amdgpu_bo_create_restricted(struct amdgpu_device *adev, | |||
411 | amdgpu_fill_buffer(bo, 0, bo->tbo.resv, &fence); | 411 | amdgpu_fill_buffer(bo, 0, bo->tbo.resv, &fence); |
412 | amdgpu_bo_fence(bo, fence, false); | 412 | amdgpu_bo_fence(bo, fence, false); |
413 | amdgpu_bo_unreserve(bo); | 413 | amdgpu_bo_unreserve(bo); |
414 | fence_put(bo->tbo.moving); | 414 | dma_fence_put(bo->tbo.moving); |
415 | bo->tbo.moving = fence_get(fence); | 415 | bo->tbo.moving = dma_fence_get(fence); |
416 | fence_put(fence); | 416 | dma_fence_put(fence); |
417 | } | 417 | } |
418 | *bo_ptr = bo; | 418 | *bo_ptr = bo; |
419 | 419 | ||
@@ -499,7 +499,7 @@ int amdgpu_bo_backup_to_shadow(struct amdgpu_device *adev, | |||
499 | struct amdgpu_ring *ring, | 499 | struct amdgpu_ring *ring, |
500 | struct amdgpu_bo *bo, | 500 | struct amdgpu_bo *bo, |
501 | struct reservation_object *resv, | 501 | struct reservation_object *resv, |
502 | struct fence **fence, | 502 | struct dma_fence **fence, |
503 | bool direct) | 503 | bool direct) |
504 | 504 | ||
505 | { | 505 | { |
@@ -531,7 +531,7 @@ int amdgpu_bo_restore_from_shadow(struct amdgpu_device *adev, | |||
531 | struct amdgpu_ring *ring, | 531 | struct amdgpu_ring *ring, |
532 | struct amdgpu_bo *bo, | 532 | struct amdgpu_bo *bo, |
533 | struct reservation_object *resv, | 533 | struct reservation_object *resv, |
534 | struct fence **fence, | 534 | struct dma_fence **fence, |
535 | bool direct) | 535 | bool direct) |
536 | 536 | ||
537 | { | 537 | { |
@@ -941,7 +941,7 @@ int amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo) | |||
941 | * @shared: true if fence should be added shared | 941 | * @shared: true if fence should be added shared |
942 | * | 942 | * |
943 | */ | 943 | */ |
944 | void amdgpu_bo_fence(struct amdgpu_bo *bo, struct fence *fence, | 944 | void amdgpu_bo_fence(struct amdgpu_bo *bo, struct dma_fence *fence, |
945 | bool shared) | 945 | bool shared) |
946 | { | 946 | { |
947 | struct reservation_object *resv = bo->tbo.resv; | 947 | struct reservation_object *resv = bo->tbo.resv; |