summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLikun Gao <Likun.Gao@amd.com>2026-02-27 10:16:09 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-03-11 20:58:08 +0300
commitcbbf33396c5b4b54e28e9865a28090eca7a13173 (patch)
tree3851ce16c2742bee6278bef02310c0289c6a65ec
parentd3f8a9eba034d4c223d516a5f31a011b428a7c21 (diff)
downloadlinux-cbbf33396c5b4b54e28e9865a28090eca7a13173.tar.xz
drm/amdgpu: fix sysfs ip base addr with 64bit
Correct the base addr value shown on sysfs with ignore reg_base_64, since the base_addr value have been over write when discovery_init. Signed-off-by: Likun Gao <Likun.Gao@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
index 5f8f0c841666..f9f785c5d8ac 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
@@ -1215,13 +1215,8 @@ static int amdgpu_discovery_sysfs_ips(struct amdgpu_device *adev,
ip_hw_instance->num_instance);
ip_hw_instance->num_base_addresses = ip->num_base_address;
- for (kk = 0; kk < ip_hw_instance->num_base_addresses; kk++) {
- if (reg_base_64)
- ip_hw_instance->base_addr[kk] =
- lower_32_bits(le64_to_cpu(ip->base_address_64[kk])) & 0x3FFFFFFF;
- else
- ip_hw_instance->base_addr[kk] = ip->base_address[kk];
- }
+ for (kk = 0; kk < ip_hw_instance->num_base_addresses; kk++)
+ ip_hw_instance->base_addr[kk] = ip->base_address[kk];
kobject_init(&ip_hw_instance->kobj, &ip_hw_instance_ktype);
ip_hw_instance->kobj.kset = &ip_hw_id->hw_id_kset;