drm/amdgpu: Initialize mmhub v1_8 ras function
Subsystems (2)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu: Initialize mmhub v1_8 ras function
From: Hawking Zhang <[email protected]>
Initialize mmhub v1_8 ras function.
Signed-off-by Hawking Zhang <[email protected]>
Reviewed-by Tao Zhou <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +++ drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c | 13 +++++++++++++ drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.h | 1 + 3 files changed, 17 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +3 -0
@@ -1401,6 +1401,9 @@ static void gmc_v9_0_set_mmhub_ras_funcs(struct amdgpu_device *adev)case IP_VERSION (9 ,4 ,2 ): adev->mmhub.ras = &mmhub_v1_7_ras;break ; +case IP_VERSION (1 ,8 ,0 ): + adev->mmhub.ras = &mmhub_v1_8_ras; +break ;default :/* mmhub ras is not available */ break ;
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c +13 -0
@@ -847,3 +847,16 @@ static void mmhub_v1_8_reset_ras_error_status(struct amdgpu_device *adev)for_each_inst (i, inst_mask)mmhub_v1_8_inst_reset_ras_err_status (adev, i); } + +static const struct amdgpu_ras_block_hw_ops mmhub_v1_8_ras_hw_ops = { + .query_ras_error_count = mmhub_v1_8_query_ras_error_count, + .reset_ras_error_count = mmhub_v1_8_reset_ras_error_count, + .query_ras_error_status = mmhub_v1_8_query_ras_error_status, + .reset_ras_error_status = mmhub_v1_8_reset_ras_error_status, +}; + +struct amdgpu_mmhub_ras mmhub_v1_8_ras = { + .ras_block = { + .hw_ops = &mmhub_v1_8_ras_hw_ops, + }, +};
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.h +1 -0
@@ -24,5 +24,6 @@#define __MMHUB_V1_8_H__extern const struct amdgpu_mmhub_funcs mmhub_v1_8_funcs; +extern struct amdgpu_mmhub_ras mmhub_v1_8_ras;#endif
Signature · 1 line
2.39.2
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu: Enable persistent edc harvesting in APP APU
From: Hawking Zhang <[email protected]>
Persistent edc harvesting is supported in APP APU
Signed-off-by Hawking Zhang <[email protected]>
Reviewed-by Tao Zhou <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +2 -1
@@ -2619,7 +2619,8 @@ int amdgpu_ras_init(struct amdgpu_device *adev)int amdgpu_persistent_edc_harvesting_supported (struct amdgpu_device *adev) { -if (adev->gmc.xgmi.connected_to_cpu) +if (adev->gmc.xgmi.connected_to_cpu || + adev->gmc.is_app_apu)return 1 ;return 0 ; }
Signature · 1 line
2.39.2
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu: Enable CG for IH v4.4.2
In reply to Alex DeucherFrom: Asad kamal <[email protected]>
Enable clock gating on IH v4.4.2 versions.
Signed-off-by Asad kamal <[email protected]>
Reviewed-by Lijo Lazar <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +2 -1
@@ -1155,7 +1155,8 @@ static int soc15_common_early_init(void *handle) adev->cg_flags =AMD_CG_SUPPORT_GFX_MGCG |AMD_CG_SUPPORT_GFX_CGCG |AMD_CG_SUPPORT_GFX_CGLS |AMD_CG_SUPPORT_SDMA_MGCG | -AMD_CG_SUPPORT_VCN_MGCG |AMD_CG_SUPPORT_JPEG_MGCG ; +AMD_CG_SUPPORT_IH_CG |AMD_CG_SUPPORT_VCN_MGCG | +AMD_CG_SUPPORT_JPEG_MGCG ; adev->pg_flags =AMD_PG_SUPPORT_VCN | AMD_PG_SUPPORT_VCN_DPG |
Signature · 1 line
2.39.2