]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: update yellow carp external rev_id handling
authorAaron Liu <aaron.liu@amd.com>
Wed, 2 Jun 2021 02:32:41 +0000 (10:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Jul 2021 18:37:33 +0000 (14:37 -0400)
0x1681 has a different external revision id.

Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index cf73a6923203d43635d1b611c71985a22d950d80..f589b8334be66b2e1981a29e1764476bac85eced 100644 (file)
@@ -1236,7 +1236,10 @@ static int nv_common_early_init(void *handle)
                        AMD_PG_SUPPORT_VCN |
                        AMD_PG_SUPPORT_VCN_DPG |
                        AMD_PG_SUPPORT_JPEG;
-               adev->external_rev_id = adev->rev_id + 0x01;
+               if (adev->pdev->device == 0x1681)
+                       adev->external_rev_id = adev->rev_id + 0x19;
+               else
+                       adev->external_rev_id = adev->rev_id + 0x01;
                break;
        default:
                /* FIXME: not supported yet */