diff options
author | Aaron Liu <[email protected]> | 2021-06-02 10:32:41 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2021-07-23 10:08:00 -0400 |
commit | e97c8d86773d14c8aced0b25f2a5063aefeb5dec (patch) | |
tree | 4807aea2426034a1be3e7c187cd6d7d7b9e925e7 | |
parent | aff890288de2d818e4f83ec40c9315e2d735df07 (diff) |
drm/amdgpu: update yellow carp external rev_id handling
0x1681 has a different external revision id.
Signed-off-by: Aaron Liu <[email protected]>
Reviewed-by: Huang Rui <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/nv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index 751c7b8b13e6..94d029dbf30d 100644 --- a/drivers/gpu/drm/amd/amdgpu/nv.c +++ b/drivers/gpu/drm/amd/amdgpu/nv.c @@ -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 */ |