drm/amdgpu/renoir: move gfxoff handling into gfx9 module
Subsystems (2)
PATCH 1/1 drm/amdgpu/renoir: move gfxoff handling into gfx9 module
To properly handle the option parsing ordering.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 6 ++++++ drivers/gpu/drm/amd/amdgpu/soc15.c | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +6 -0
@@ -1051,6 +1051,12 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev) !adev->gfx.rlc.is_rlc_v2_1)) adev->pm.pp_feature &= ~PP_GFXOFF_MASK ; +if (adev->pm.pp_feature &PP_GFXOFF_MASK ) + adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | +AMD_PG_SUPPORT_CP | +AMD_PG_SUPPORT_RLC_SMU_HS ; +break ; +case CHIP_RENOIR :if (adev->pm.pp_feature &PP_GFXOFF_MASK ) adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | AMD_PG_SUPPORT_CP |
drivers/gpu/drm/amd/amdgpu/soc15.c +0 -5
@@ -1263,11 +1263,6 @@ static int soc15_common_early_init(void *handle)AMD_PG_SUPPORT_VCN |AMD_PG_SUPPORT_VCN_DPG ; adev->external_rev_id = adev->rev_id +0x91 ; - -if (adev->pm.pp_feature &PP_GFXOFF_MASK ) - adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | -AMD_PG_SUPPORT_CP | -AMD_PG_SUPPORT_RLC_SMU_HS ;break ;default :/* FIXME: not supported yet */
Signature · 6 lines
2.23.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20191029201031.1514210-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Ping?
Quoted 43 lines · Alex Deucher
To properly handle the option parsing ordering.
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 6 ++++++ drivers/gpu/drm/amd/amdgpu/soc15.c | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +6
-0@@ -1051,6 +1051,12 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev) !adev->gfx.rlc.is_rlc_v2_1)) adev->pm.pp_feature &= ~PP_GFXOFF_MASK ; +if (adev->pm.pp_feature &PP_GFXOFF_MASK ) + adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | +AMD_PG_SUPPORT_CP | +AMD_PG_SUPPORT_RLC_SMU_HS ; +break ; +case CHIP_RENOIR :if (adev->pm.pp_feature &PP_GFXOFF_MASK ) adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | AMD_PG_SUPPORT_CP |drivers/gpu/drm/amd/amdgpu/soc15.c +0
-6@@ -1263,11 +1263,6 @@ static int soc15_common_early_init(void *handle)AMD_PG_SUPPORT_VCN |AMD_PG_SUPPORT_VCN_DPG ; adev->external_rev_id = adev->rev_id +0x91 ; - -if (adev->pm.pp_feature &PP_GFXOFF_MASK ) - adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | -AMD_PG_SUPPORT_CP | -AMD_PG_SUPPORT_RLC_SMU_HS ;break ;default :/* FIXME: not supported yet */ --
Quoted 2 lines
2.23.0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Ping?
Quoted 43 lines · Alex Deucher
To properly handle the option parsing ordering.
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 6 ++++++ drivers/gpu/drm/amd/amdgpu/soc15.c | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +6
-0@@ -1051,6 +1051,12 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev) !adev->gfx.rlc.is_rlc_v2_1)) adev->pm.pp_feature &= ~PP_GFXOFF_MASK ; +if (adev->pm.pp_feature &PP_GFXOFF_MASK ) + adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | +AMD_PG_SUPPORT_CP | +AMD_PG_SUPPORT_RLC_SMU_HS ; +break ; +case CHIP_RENOIR :if (adev->pm.pp_feature &PP_GFXOFF_MASK ) adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | AMD_PG_SUPPORT_CP |drivers/gpu/drm/amd/amdgpu/soc15.c +0
-6@@ -1263,11 +1263,6 @@ static int soc15_common_early_init(void *handle)AMD_PG_SUPPORT_VCN |AMD_PG_SUPPORT_VCN_DPG ; adev->external_rev_id = adev->rev_id +0x91 ; - -if (adev->pm.pp_feature &PP_GFXOFF_MASK ) - adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | -AMD_PG_SUPPORT_CP | -AMD_PG_SUPPORT_RLC_SMU_HS ;break ;default :/* FIXME: not supported yet */ --
Quoted 2 lines
2.23.0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): CADnq5_PJ-228f8tzZ3NJwH3q+xFHP4qZaKxPZBb6t8ZdzLz5fA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Zhao, Yong
Reviewed-by Yong ZhaoQuoted 43 lines · Alex Deucher
Ping?
Quoted 40 lines · Alex Deucher
To properly handle the option parsing ordering.
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 6 ++++++ drivers/gpu/drm/amd/amdgpu/soc15.c | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +6
-0@@ -1051,6 +1051,12 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev) !adev->gfx.rlc.is_rlc_v2_1)) adev->pm.pp_feature &= ~PP_GFXOFF_MASK ; +if (adev->pm.pp_feature &PP_GFXOFF_MASK ) + adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | +AMD_PG_SUPPORT_CP | +AMD_PG_SUPPORT_RLC_SMU_HS ; +break ; +case CHIP_RENOIR :if (adev->pm.pp_feature &PP_GFXOFF_MASK ) adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | AMD_PG_SUPPORT_CP |drivers/gpu/drm/amd/amdgpu/soc15.c +0
-5@@ -1263,11 +1263,6 @@ static int soc15_common_early_init(void *handle)AMD_PG_SUPPORT_VCN |AMD_PG_SUPPORT_VCN_DPG ; adev->external_rev_id = adev->rev_id +0x91 ; - -if (adev->pm.pp_feature &PP_GFXOFF_MASK ) - adev->pg_flags |=AMD_PG_SUPPORT_GFX_PG | -AMD_PG_SUPPORT_CP | -AMD_PG_SUPPORT_RLC_SMU_HS ;break ;default :
Quoted 8 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/soc15.c +0
-1/* FIXME: not supported yet */ --2.23.0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx