[PATCH] drm/amdgpu: support B0&B1 external revision id for yellow carp

Huang, Ray Ray.Huang at amd.com
Tue Oct 19 03:53:26 UTC 2021


[AMD Official Use Only]

> -----Original Message-----
> From: Liu, Aaron <Aaron.Liu at amd.com>
> Sent: Tuesday, October 19, 2021 11:23 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: Deucher, Alexander <Alexander.Deucher at amd.com>; Huang, Ray
> <Ray.Huang at amd.com>; Liu, Aaron <Aaron.Liu at amd.com>
> Subject: [PATCH] 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.
> 
> Signed-off-by: Aaron Liu <aaron.liu at amd.com>

Reviewed-by: Huang Rui <ray.huang at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/nv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c
> b/drivers/gpu/drm/amd/amdgpu/nv.c index 898e688be63c..5166a1573e7e
> 100644
> --- a/drivers/gpu/drm/amd/amdgpu/nv.c
> +++ b/drivers/gpu/drm/amd/amdgpu/nv.c
> @@ -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


More information about the amd-gfx mailing list