aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2019-06-27 09:48:19 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-06-27 09:56:16 -0400
commitd8dfc3bd461def65fbd180acab7c49a8d8394d7b (patch)
treebc2c59654e25e26c223148c5d665e218b616003a
parent14808a12bdbdc21143eba70ea07830197b3a04ff (diff)
drm/amdgpu: fix warning on 32 bit
Properly cast pointer to int. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
index c441e6ce95ec..988c0adaca91 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
@@ -1010,8 +1010,8 @@ static int vcn_v2_0_start_dpg_mode(struct amdgpu_device *adev, bool indirect)
1010 1010
1011 if (indirect) 1011 if (indirect)
1012 psp_update_vcn_sram(adev, 0, adev->vcn.dpg_sram_gpu_addr, 1012 psp_update_vcn_sram(adev, 0, adev->vcn.dpg_sram_gpu_addr,
1013 (uint32_t)((uint64_t)adev->vcn.dpg_sram_curr_addr - 1013 (uint32_t)((uintptr_t)adev->vcn.dpg_sram_curr_addr -
1014 (uint64_t)adev->vcn.dpg_sram_cpu_addr)); 1014 (uintptr_t)adev->vcn.dpg_sram_cpu_addr));
1015 1015
1016 /* force RBC into idle state */ 1016 /* force RBC into idle state */
1017 rb_bufsz = order_base_2(ring->ring_size); 1017 rb_bufsz = order_base_2(ring->ring_size);