diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2021-07-20 16:57:40 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-10-04 15:22:58 -0400 |
commit | 54d2b1f402b6fefd50c088d7c3ce3195bad05322 (patch) | |
tree | 4e37b23cd04bb95cfa08b37bcb8f3dce181f7035 /drivers/gpu | |
parent | 5f52e9a78061cbced92ed5c64d70f342f5c9b68c (diff) | |
download | linux-54d2b1f402b6fefd50c088d7c3ce3195bad05322.tar.gz linux-54d2b1f402b6fefd50c088d7c3ce3195bad05322.tar.bz2 linux-54d2b1f402b6fefd50c088d7c3ce3195bad05322.zip |
drm/amdgpu: fill in IP versions from IP discovery table
Prerequisite for using IP versions in the driver rather
than asic type.
v2: Use IP_VERSION() macro instead of new function
Reviewed-by: Christian König <christian.koenig@amd.com> (v1)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index d195b814712d..3c60b7af9898 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c @@ -336,8 +336,9 @@ int amdgpu_discovery_reg_base_init(struct amdgpu_device *adev) hw_id_names[le16_to_cpu(ip->hw_id)]); adev->reg_offset[hw_ip][ip->number_instance] = ip->base_address; + adev->ip_versions[hw_ip] = + IP_VERSION(ip->major, ip->minor, ip->revision); } - } next_ip: |