mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 21:15:44 +07:00
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>
This commit is contained in:
parent
14808a12bd
commit
d8dfc3bd46
@ -1010,8 +1010,8 @@ static int vcn_v2_0_start_dpg_mode(struct amdgpu_device *adev, bool indirect)
|
||||
|
||||
if (indirect)
|
||||
psp_update_vcn_sram(adev, 0, adev->vcn.dpg_sram_gpu_addr,
|
||||
(uint32_t)((uint64_t)adev->vcn.dpg_sram_curr_addr -
|
||||
(uint64_t)adev->vcn.dpg_sram_cpu_addr));
|
||||
(uint32_t)((uintptr_t)adev->vcn.dpg_sram_curr_addr -
|
||||
(uintptr_t)adev->vcn.dpg_sram_cpu_addr));
|
||||
|
||||
/* force RBC into idle state */
|
||||
rb_bufsz = order_base_2(ring->ring_size);
|
||||
|
Loading…
Reference in New Issue
Block a user