drm/amdgpu: get number of shade engine by cgs interface.
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 7 Jun 2016 12:15:24 +0000 (20:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 19:06:20 +0000 (15:06 -0400)
commitd826c982d7ab512d37f808b17e9d83f60d4b0c6d
tree932ea35c7c9965844698ccf118f3c4df3acb60d6
parent33b7ed0122e4da0d92d50cc226cd9db659834eaa
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: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
drivers/gpu/drm/amd/include/cgs_common.h