OSDN Git Service

drm/amdgpu: add nv common init for gc 10.3.6
authorYifan Zhang <yifan1.zhang@amd.com>
Thu, 10 Feb 2022 19:34:43 +0000 (14:34 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Feb 2022 20:59:05 +0000 (15:59 -0500)
This patch adds add nv common init for gc 10.3.6.

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
drivers/gpu/drm/amd/amdgpu/nv.c

index acd66a7..81104f7 100644 (file)
@@ -1177,6 +1177,7 @@ static int amdgpu_discovery_set_common_ip_blocks(struct amdgpu_device *adev)
        case IP_VERSION(10, 3, 3):
        case IP_VERSION(10, 3, 4):
        case IP_VERSION(10, 3, 5):
+       case IP_VERSION(10, 3, 6):
        case IP_VERSION(10, 3, 7):
                amdgpu_device_ip_block_add(adev, &nv_common_ip_block);
                break;
index f1285cf..78a0e88 100644 (file)
@@ -908,6 +908,11 @@ static int nv_common_early_init(void *handle)
                adev->pg_flags = 0;
                adev->external_rev_id = adev->rev_id + 0x82;
                break;
+       case IP_VERSION(10, 3, 6):
+               adev->cg_flags = 0;
+               adev->pg_flags = 0;
+               adev->external_rev_id = adev->rev_id + 0x01;
+               break;
        case IP_VERSION(10, 3, 7):
                adev->cg_flags = 0;
                adev->pg_flags = AMD_PG_SUPPORT_VCN |