From: Alex Deucher Date: Tue, 20 Jul 2021 20:57:40 +0000 (-0400) Subject: drm/amdgpu: fill in IP versions from IP discovery table X-Git-Tag: v6.6.17~8832^2~19^2~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54d2b1f402b6fefd50c088d7c3ce3195bad05322;p=platform%2Fkernel%2Flinux-rpi.git 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 (v1) 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 d195b81..3c60b7a 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: