diff options
| author | Lijo Lazar <[email protected]> | 2023-09-11 09:22:33 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-09-20 20:25:17 +0000 |
| commit | ff96ddc3f2643483dc64373934c5703b3a7a1e7d (patch) | |
| tree | dcc5d681170d8facce4103a98c0ba43db38fe4fa /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |
| parent | drm/amdgpu: print channel index for UMC bad page (diff) | |
| download | kernel-ff96ddc3f2643483dc64373934c5703b3a7a1e7d.tar.gz kernel-ff96ddc3f2643483dc64373934c5703b3a7a1e7d.zip | |
drm/amdgpu: Add more fields to IP version
Include subrevision and variant fileds also to IP version.
Signed-off-by: Lijo Lazar <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index 01860a132c33..081bd28e2443 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c @@ -540,25 +540,25 @@ static int amdgpu_hw_ip_info(struct amdgpu_device *adev, switch (type) { case AMD_IP_BLOCK_TYPE_GFX: result->ip_discovery_version = - amdgpu_ip_version(adev, GC_HWIP, 0); + IP_VERSION_MAJ_MIN_REV(amdgpu_ip_version(adev, GC_HWIP, 0)); break; case AMD_IP_BLOCK_TYPE_SDMA: result->ip_discovery_version = - amdgpu_ip_version(adev, SDMA0_HWIP, 0); + IP_VERSION_MAJ_MIN_REV(amdgpu_ip_version(adev, SDMA0_HWIP, 0)); break; case AMD_IP_BLOCK_TYPE_UVD: case AMD_IP_BLOCK_TYPE_VCN: case AMD_IP_BLOCK_TYPE_JPEG: result->ip_discovery_version = - amdgpu_ip_version(adev, UVD_HWIP, 0); + IP_VERSION_MAJ_MIN_REV(amdgpu_ip_version(adev, UVD_HWIP, 0)); break; case AMD_IP_BLOCK_TYPE_VCE: result->ip_discovery_version = - amdgpu_ip_version(adev, VCE_HWIP, 0); + IP_VERSION_MAJ_MIN_REV(amdgpu_ip_version(adev, VCE_HWIP, 0)); break; case AMD_IP_BLOCK_TYPE_VPE: result->ip_discovery_version = - amdgpu_ip_version(adev, VPE_HWIP, 0); + IP_VERSION_MAJ_MIN_REV(amdgpu_ip_version(adev, VPE_HWIP, 0)); break; default: result->ip_discovery_version = 0; |
