Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/sdma5: incorrect variable type for gpu address

Incorrect programming with 64bit gpu address assignment for
32bit variable.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Jack Xiao and committed by
Alex Deucher
37809f55 278b6fba

+2 -1
+2 -1
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
··· 565 565 u32 doorbell; 566 566 u32 doorbell_offset; 567 567 u32 temp; 568 - u32 wptr_gpu_addr, wptr_poll_cntl; 568 + u32 wptr_poll_cntl; 569 + u64 wptr_gpu_addr; 569 570 int i, r; 570 571 571 572 for (i = 0; i < adev->sdma.num_instances; i++) {