Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d826c982 authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher
Browse files

drm/amdgpu: get number of shade engine by cgs interface.



the num of shade engine was needed to
measure the activity of the graphics core
and to enable di/dt feature.

Signed-off-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 33b7ed01
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -831,6 +831,9 @@ static int amdgpu_cgs_query_system_info(struct cgs_device *cgs_device,
	case CGS_SYSTEM_INFO_GFX_CU_INFO:
		sys_info->value = adev->gfx.cu_info.number;
		break;
	case CGS_SYSTEM_INFO_GFX_SE_INFO:
		sys_info->value = adev->gfx.config.max_shader_engines;
		break;
	default:
		return -ENODEV;
	}
+1 −0
Original line number Diff line number Diff line
@@ -115,6 +115,7 @@ enum cgs_system_info_id {
	CGS_SYSTEM_INFO_CG_FLAGS,
	CGS_SYSTEM_INFO_PG_FLAGS,
	CGS_SYSTEM_INFO_GFX_CU_INFO,
	CGS_SYSTEM_INFO_GFX_SE_INFO,
	CGS_SYSTEM_INFO_ID_MAXIMUM,
};