diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_display.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c index 76ee8e04ff11..a80407cf099b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | |||
@@ -157,7 +157,6 @@ int amdgpu_display_crtc_page_flip_target(struct drm_crtc *crtc, | |||
157 | struct amdgpu_bo *new_abo; | 157 | struct amdgpu_bo *new_abo; |
158 | unsigned long flags; | 158 | unsigned long flags; |
159 | u64 tiling_flags; | 159 | u64 tiling_flags; |
160 | u64 base; | ||
161 | int i, r; | 160 | int i, r; |
162 | 161 | ||
163 | work = kzalloc(sizeof *work, GFP_KERNEL); | 162 | work = kzalloc(sizeof *work, GFP_KERNEL); |
@@ -189,7 +188,7 @@ int amdgpu_display_crtc_page_flip_target(struct drm_crtc *crtc, | |||
189 | goto cleanup; | 188 | goto cleanup; |
190 | } | 189 | } |
191 | 190 | ||
192 | r = amdgpu_bo_pin(new_abo, amdgpu_display_supported_domains(adev), &base); | 191 | r = amdgpu_bo_pin(new_abo, amdgpu_display_supported_domains(adev)); |
193 | if (unlikely(r != 0)) { | 192 | if (unlikely(r != 0)) { |
194 | DRM_ERROR("failed to pin new abo buffer before flip\n"); | 193 | DRM_ERROR("failed to pin new abo buffer before flip\n"); |
195 | goto unreserve; | 194 | goto unreserve; |
@@ -206,7 +205,7 @@ int amdgpu_display_crtc_page_flip_target(struct drm_crtc *crtc, | |||
206 | amdgpu_bo_get_tiling_flags(new_abo, &tiling_flags); | 205 | amdgpu_bo_get_tiling_flags(new_abo, &tiling_flags); |
207 | amdgpu_bo_unreserve(new_abo); | 206 | amdgpu_bo_unreserve(new_abo); |
208 | 207 | ||
209 | work->base = base; | 208 | work->base = amdgpu_bo_gpu_offset(new_abo); |
210 | work->target_vblank = target - (uint32_t)drm_crtc_vblank_count(crtc) + | 209 | work->target_vblank = target - (uint32_t)drm_crtc_vblank_count(crtc) + |
211 | amdgpu_get_vblank_counter_kms(dev, work->crtc_id); | 210 | amdgpu_get_vblank_counter_kms(dev, work->crtc_id); |
212 | 211 | ||