diff options
author | Tao Zhou <tao.zhou1@amd.com> | 2023-10-27 12:02:05 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-10-31 17:09:53 -0400 |
commit | d539b0ad7c7cea6f7ebd8a1f12d2877c15563e73 (patch) | |
tree | 6c3d71880b260effc33693762f3002bc49778261 /drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | |
parent | 853eebe6ec4f6a277b8c8fb34da268aca6cf720b (diff) | |
download | linux-d539b0ad7c7cea6f7ebd8a1f12d2877c15563e73.tar.gz linux-d539b0ad7c7cea6f7ebd8a1f12d2877c15563e73.tar.bz2 linux-d539b0ad7c7cea6f7ebd8a1f12d2877c15563e73.zip |
drm/amdgpu: set XGMI IP version manually for v6_4
The version can't be queried from discovery table.
Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index b6a53e8429b2..6da413688344 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c @@ -2449,6 +2449,9 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev) if (amdgpu_ip_version(adev, XGMI_HWIP, 0) == IP_VERSION(4, 8, 0)) adev->gmc.xgmi.supported = true; + if (amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(9, 4, 3)) + adev->ip_versions[XGMI_HWIP][0] = IP_VERSION(6, 4, 0); + /* set NBIO version */ switch (amdgpu_ip_version(adev, NBIO_HWIP, 0)) { case IP_VERSION(6, 1, 0): |