Skip to content

Commit

Permalink
drm/amdgpu: support B0&B1 external revision id for yellow carp
Browse files Browse the repository at this point in the history
B0 internal rev_id is 0x01, B1 internal rev_id is 0x02.
The external rev_id for B0 and B1 is 0x20.
The original expression is not suitable for B1.

v2: squash in fix for display code (Alex)

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>
Cc: stable@vger.kernel.org
  • Loading branch information
Aaron Liu authored and Alex Deucher committed Oct 20, 2021
1 parent 2ef8ea2 commit 53c2ff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/nv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ static int nv_common_early_init(void *handle)
AMD_PG_SUPPORT_VCN_DPG |
AMD_PG_SUPPORT_JPEG;
if (adev->pdev->device == 0x1681)
adev->external_rev_id = adev->rev_id + 0x19;
adev->external_rev_id = 0x20;
else
adev->external_rev_id = adev->rev_id + 0x01;
break;
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/display/include/dal_asic_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ enum {
#define FAMILY_YELLOW_CARP 146

#define YELLOW_CARP_A0 0x01
#define YELLOW_CARP_B0 0x1A
#define YELLOW_CARP_B0 0x20
#define YELLOW_CARP_UNKNOWN 0xFF

#ifndef ASICREV_IS_YELLOW_CARP
Expand Down

0 comments on commit 53c2ff8

Please sign in to comment.