drm/amdgpu: enable GFX/UVD/VCE PG for Bristol
Subsystems (2)
PATCH 1/1 drm/amdgpu: enable GFX/UVD/VCE PG for Bristol
From: Eric Huang <[email protected]>
Signed-off-by Eric Huang <[email protected]>
Signed-off-by Samuel Li <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/vi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/vi.c +4 -1
@@ -910,6 +910,9 @@ static const struct amdgpu_asic_funcs vi_asic_funcs = .get_config_memsize = &vi_get_config_memsize, }; +#define CZ_REV_BRISTOL (rev) \ + ((rev >= 0xC8 && rev <= 0xCE) || (rev >= 0xE1 && rev <= 0xE6)) +static int vi_common_early_init (void *handle) {bool smc_enabled = false;
@@ -1057,7 +1060,7 @@ static int vi_common_early_init(void *handle)AMD_CG_SUPPORT_VCE_MGCG ;/* rev0 hardware requires workarounds to support PG */ adev->pg_flags =0 ; -if (adev->rev_id !=0x00 ) { +if (adev->rev_id !=0x00 ||CZ_REV_BRISTOL (adev->pdev->revision)) { adev->pg_flags |=AMD_PG_SUPPORT_GFX_SMG | AMD_PG_SUPPORT_GFX_PIPELINE |
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx