drm/amdgpu: use pin rather than pin_restricted in a few cases
Subsystems (2)
PATCH 1/1 drm/amdgpu: use pin rather than pin_restricted in a few cases
We don't require a resticted pinning in these cases, so just use plain pin.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -1
@@ -187,7 +187,7 @@ int amdgpu_crtc_page_flip_target(struct drm_crtc *crtc, goto cleanup; } - r =amdgpu_bo_pin_restricted (new_abo,AMDGPU_GEM_DOMAIN_VRAM ,0 ,0 , &base); + r =amdgpu_bo_pin (new_abo,AMDGPU_GEM_DOMAIN_VRAM , &base);if (unlikely (r !=0 )) { r = -EINVAL ;DRM_ERROR ("failed to pin new abo buffer before flip\n" );
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +1 -1
@@ -171,7 +171,7 @@ static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev, } - ret =amdgpu_bo_pin_restricted (abo,AMDGPU_GEM_DOMAIN_VRAM ,0 ,0 ,NULL ); + ret =amdgpu_bo_pin (abo,AMDGPU_GEM_DOMAIN_VRAM ,NULL );if (ret) {amdgpu_bo_unreserve (abo); goto out_unref;
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1481145457-23105-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Edward O'Callaghan
Reviewed-byReviewed-by Edward O'Callaghan <[email protected]>
Quoted 28 lines · Alex Deucher
We don't require a resticted pinning in these cases, so just use plain pin.
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1
-1@@ -187,7 +187,7 @@ int amdgpu_crtc_page_flip_target(struct drm_crtc *crtc, goto cleanup; } - r =amdgpu_bo_pin_restricted (new_abo,AMDGPU_GEM_DOMAIN_VRAM ,0 ,0 , &base); + r =amdgpu_bo_pin (new_abo,AMDGPU_GEM_DOMAIN_VRAM , &base);if (unlikely (r !=0 )) { r = -EINVAL ;DRM_ERROR ("failed to pin new abo buffer before flip\n" );drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev, · line 177
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +1
-1@@ -171,7 +171,7 @@ static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev, } - ret =amdgpu_bo_pin_restricted (abo,AMDGPU_GEM_DOMAIN_VRAM ,0 ,0 ,NULL ); + ret =amdgpu_bo_pin (abo,AMDGPU_GEM_DOMAIN_VRAM ,NULL );if (ret) {amdgpu_bo_unreserve (abo); goto out_unref;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx