diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/5442-drm-amdgpu-implement-ENABLED_SMC_FEATURES_MASK-senso.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/5442-drm-amdgpu-implement-ENABLED_SMC_FEATURES_MASK-senso.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/5442-drm-amdgpu-implement-ENABLED_SMC_FEATURES_MASK-senso.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/5442-drm-amdgpu-implement-ENABLED_SMC_FEATURES_MASK-senso.patch new file mode 100644 index 00000000..775f9095 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/5442-drm-amdgpu-implement-ENABLED_SMC_FEATURES_MASK-senso.patch @@ -0,0 +1,34 @@ +From d6fd029101c4f24fcf65e2aa897d659db265ea0c Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Thu, 20 Sep 2018 22:36:23 -0500 +Subject: [PATCH 5442/5725] drm/amdgpu: implement ENABLED_SMC_FEATURES_MASK + sensor for vega12 + +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> +--- + drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +index de81abf..9600e2f 100644 +--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +@@ -1317,7 +1317,11 @@ static int vega12_read_sensor(struct pp_hwmgr *hwmgr, int idx, + break; + case AMDGPU_PP_SENSOR_GPU_POWER: + ret = vega12_get_gpu_power(hwmgr, (uint32_t *)value); +- ++ break; ++ case AMDGPU_PP_SENSOR_ENABLED_SMC_FEATURES_MASK: ++ ret = vega12_get_enabled_smc_features(hwmgr, (uint64_t *)value); ++ if (!ret) ++ *size = 8; + break; + default: + ret = -EINVAL; +-- +2.7.4 + |