diff options
author | Xiaojie Yuan <xiaojie.yuan@amd.com> | 2019-05-16 19:47:33 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-08-02 10:30:40 -0500 |
commit | 74b5e509a082c70fa20798343cd0bbfa532ceda1 (patch) | |
tree | 5c22264cf5039b544b87a4c3380d4bd7d527a0b0 /drivers | |
parent | d4d838ba4e9d1ca0d46743141bba84de1f04a007 (diff) | |
download | linux-74b5e509a082c70fa20798343cd0bbfa532ceda1.tar.bz2 |
drm/amdgpu: initialize cg/pg flags and external rev id for navi12
don't enable any cg/pg features yet.
v2: calculate external revision id from revision id so that we can
differentiate navi12 A0 from A1 directly.
Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/nv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index 7b119285abe3..eb859b311409 100644 --- a/drivers/gpu/drm/amd/amdgpu/nv.c +++ b/drivers/gpu/drm/amd/amdgpu/nv.c @@ -596,6 +596,11 @@ static int nv_common_early_init(void *handle) AMD_PG_SUPPORT_VCN_DPG; adev->external_rev_id = adev->rev_id + 0x1; /* ??? */ break; + case CHIP_NAVI12: + adev->cg_flags = 0; + adev->pg_flags = 0; + adev->external_rev_id = adev->rev_id + 0xa; + break; default: /* FIXME: not supported yet */ return -EINVAL; |