Commit bc7c3d1d authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu/mmhub2.1: convert to IP version checking

Use IP versions rather than asic_type to differentiate
IP version specific features.
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ce2d99a8
...@@ -90,9 +90,9 @@ mmhub_v2_3_print_l2_protection_fault_status(struct amdgpu_device *adev, ...@@ -90,9 +90,9 @@ mmhub_v2_3_print_l2_protection_fault_status(struct amdgpu_device *adev,
dev_err(adev->dev, dev_err(adev->dev,
"MMVM_L2_PROTECTION_FAULT_STATUS:0x%08X\n", "MMVM_L2_PROTECTION_FAULT_STATUS:0x%08X\n",
status); status);
switch (adev->asic_type) { switch (adev->ip_versions[MMHUB_HWIP]) {
case CHIP_VANGOGH: case IP_VERSION(2, 3, 0):
case CHIP_YELLOW_CARP: case IP_VERSION(2, 4, 0):
mmhub_cid = mmhub_client_ids_vangogh[cid][rw]; mmhub_cid = mmhub_client_ids_vangogh[cid][rw];
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment