diff options
| author | 2022-05-24 16:22:21 +0800 | |
|---|---|---|
| committer | 2023-08-30 15:00:18 -0400 | |
| commit | 0d1db799e7a8ba5faad60d81f7e714465b6b6944 (patch) | |
| tree | b5e5eb33054d38322c685d32c2009a4d40daefe0 /drivers/gpu/drm/amd/amdgpu/soc21.c | |
| parent | drm/amdgpu: add new AMDGPU_FAMILY definition (diff) | |
| download | wireguard-linux-0d1db799e7a8ba5faad60d81f7e714465b6b6944.tar.xz wireguard-linux-0d1db799e7a8ba5faad60d81f7e714465b6b6944.zip | |
drm/amdgpu/soc21: add initial GC 11.5.0 soc21 support
Disable clock gating and power gating on the early bring up phase.
Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc21.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc21.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index 40d23738ee4e..a920bcb9f5b3 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc21.c +++ b/drivers/gpu/drm/amd/amdgpu/soc21.c @@ -688,6 +688,12 @@ static int soc21_common_early_init(void *handle) adev->external_rev_id = adev->rev_id + 0x80; break; + + case IP_VERSION(11, 5, 0): + adev->cg_flags = 0; + adev->pg_flags = 0; + adev->external_rev_id = adev->rev_id + 0x1; + break; default: /* FIXME: not supported yet */ return -EINVAL; |
