diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1464-drm-amd-powerplay-implement-sensor-of-uvd-vce-power-.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/1464-drm-amd-powerplay-implement-sensor-of-uvd-vce-power-.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1464-drm-amd-powerplay-implement-sensor-of-uvd-vce-power-.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1464-drm-amd-powerplay-implement-sensor-of-uvd-vce-power-.patch new file mode 100644 index 00000000..883e15bd --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1464-drm-amd-powerplay-implement-sensor-of-uvd-vce-power-.patch @@ -0,0 +1,37 @@ +From b398a0f366cd089b9f81a5e5ee9563fbabbb654c Mon Sep 17 00:00:00 2001 +From: Kevin Wang <kevin1.wang@amd.com> +Date: Fri, 25 Jan 2019 16:22:20 +0800 +Subject: [PATCH 1464/2940] drm/amd/powerplay: implement sensor of uvd & vce + power state for smu11 + +add functions of uvd & vce for hwmon. + +Signed-off-by: Kevin Wang <kevin1.wang@amd.com> +Reviewed-by: Huang Rui <ray.huang@amd.com> +Acked-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c +index cdaf23f82016..3ebf89b3f815 100644 +--- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c ++++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c +@@ -1119,6 +1119,14 @@ static int smu_v11_0_read_sensor(struct smu_context *smu, + ret = smu_v11_0_get_gfx_vdd(smu, (uint32_t *)data); + *size = 4; + break; ++ case AMDGPU_PP_SENSOR_UVD_POWER: ++ *(uint32_t *)data = smu_feature_is_enabled(smu, FEATURE_DPM_UVD_BIT) ? 1 : 0; ++ *size = 4; ++ break; ++ case AMDGPU_PP_SENSOR_VCE_POWER: ++ *(uint32_t *)data = smu_feature_is_enabled(smu, FEATURE_DPM_VCE_BIT) ? 1 : 0; ++ *size = 4; ++ break; + default: + ret = smu_common_read_sensor(smu, sensor, data, size); + break; +-- +2.17.1 + |