drm/amdgpu: support B0&B1 external revision id for yellow carp
Subsystems (2)
PATCH 1/1 drm/amdgpu: support B0&B1 external revision id for yellow carp
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.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/nv.c +1 -1
@@ -1248,7 +1248,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 ;
Signature · 1 line
2.25.1
[AMD Official Use Only]
Quoted 9 lines
-----Original Message-----
From: Liu, Aaron <[email protected]>
Sent: Tuesday, October 19, 2021 11:23 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Liu, Aaron <[email protected]>
Subject: [PATCH] drm/amdgpu: support B0&B1 external revision id for yellow carp
Quoted 5 lines
B0 internal
rev_idis0x01, B1 internalrev_idis0x02. The externalrev_idfor B0 and B1 is0x20.
The original expression is not suitable for B1.Signed-off-by Aaron Liu <[email protected]>
Quoted 20 lines
--- drivers/gpu/drm/amd/amdgpu/nv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/drivers/gpu/drm/amd/amdgpu/nv.cindex898e688be63c..5166a1573e7e100644drivers/gpu/drm/amd/amdgpu/nv.c +1
-2@@ -1248,7 +1248,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 ; --2.25.1
Quoted 4 lines · Aaron Liu
B0 internal
rev_idis0x01, B1 internalrev_idis0x02. The externalrev_idfor B0 and B1 is0x20.
The original expression is not suitable for B1.
Are you sure about this? We'll be losing the difference between B0 and B1. I think 0x19 is correct. What will give us 0x1a for B0 and 0x1b for B1. That aligns with what the display code has as well.
Alex
Quoted 22 lines
Signed-off-by Aaron Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/nv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/nv.c +1
-2@@ -1248,7 +1248,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 ; --2.25.1