From: Xiaojie Yuan Date: Wed, 27 Mar 2019 12:27:20 +0000 (+0800) Subject: drm/amdgpu/discovery: stop converting the units of base addresses X-Git-Tag: v5.3-rc1~81^2~10^2~362 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=966f1d8fd05fd1e3b7c35f4cf657ceb3bfbdfc7a;p=linux.git drm/amdgpu/discovery: stop converting the units of base addresses the unit is already in dword Signed-off-by: Xiaojie Yuan Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index 5f967ae8d4ed..697800c4741f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c @@ -300,11 +300,11 @@ int amdgpu_discovery_reg_base_init(struct amdgpu_device *adev) for (k = 0; k < num_base_address; k++) { /* - * convert the endianness and unit (in dword) of base addresses in place, + * convert the endianness of base addresses in place, * so that we don't need to convert them when accessing adev->reg_offset. */ - ip->base_address[k] = le32_to_cpu(ip->base_address[k]) >> 2; - DRM_DEBUG("\t0x%08x\n", ip->base_address[k] << 2); + ip->base_address[k] = le32_to_cpu(ip->base_address[k]); + DRM_DEBUG("\t0x%08x\n", ip->base_address[k]); } adev->reg_offset[hw_ip][ip->number_instance] =