OSDN Git Service

drm/amdgpu/mmhub2.1: convert to IP version checking
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Jul 2021 20:23:45 +0000 (16:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Oct 2021 19:22:59 +0000 (15:22 -0400)
Use IP versions rather than asic_type to differentiate
IP version specific features.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c

index 88e457a..4cf5d05 100644 (file)
@@ -90,9 +90,9 @@ mmhub_v2_3_print_l2_protection_fault_status(struct amdgpu_device *adev,
        dev_err(adev->dev,
                "MMVM_L2_PROTECTION_FAULT_STATUS:0x%08X\n",
                status);
-       switch (adev->asic_type) {
-       case CHIP_VANGOGH:
-       case CHIP_YELLOW_CARP:
+       switch (adev->ip_versions[MMHUB_HWIP]) {
+       case IP_VERSION(2, 3, 0):
+       case IP_VERSION(2, 4, 0):
                mmhub_cid = mmhub_client_ids_vangogh[cid][rw];
                break;
        default: