diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-09-20 23:36:38 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-26 22:09:11 -0400 |
commit | 39a8a0db838788bed487bea6e2276a3d0da76eea (patch) | |
tree | 47a3bcc27e361f5ff88b4a513f1b10b67072d18d | |
parent | d152d373a6e4a302be4a7f803125750d59f301e6 (diff) |
drm/amdgpu: implement ENABLED_SMC_FEATURES_MASK sensor for vega20
So we can query what features are enabled for debugging.
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c index 260e0e48dcd6..2a554f9edcda 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | |||
@@ -1941,6 +1941,11 @@ static int vega20_read_sensor(struct pp_hwmgr *hwmgr, int idx, | |||
1941 | *size = 16; | 1941 | *size = 16; |
1942 | ret = vega20_get_gpu_power(hwmgr, (uint32_t *)value); | 1942 | ret = vega20_get_gpu_power(hwmgr, (uint32_t *)value); |
1943 | break; | 1943 | break; |
1944 | case AMDGPU_PP_SENSOR_ENABLED_SMC_FEATURES_MASK: | ||
1945 | ret = vega20_get_enabled_smc_features(hwmgr, (uint64_t *)value); | ||
1946 | if (!ret) | ||
1947 | *size = 8; | ||
1948 | break; | ||
1944 | default: | 1949 | default: |
1945 | ret = -EINVAL; | 1950 | ret = -EINVAL; |
1946 | break; | 1951 | break; |