diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1412-drm-amd-powerplay-implement-sensor-of-SCLK-and-MCLK-.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/1412-drm-amd-powerplay-implement-sensor-of-SCLK-and-MCLK-.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1412-drm-amd-powerplay-implement-sensor-of-SCLK-and-MCLK-.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1412-drm-amd-powerplay-implement-sensor-of-SCLK-and-MCLK-.patch new file mode 100644 index 00000000..009e60c5 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1412-drm-amd-powerplay-implement-sensor-of-SCLK-and-MCLK-.patch @@ -0,0 +1,38 @@ +From cb8416eb73049b128f2e0c1fc4210ff1422dc6e5 Mon Sep 17 00:00:00 2001 +From: Kevin Wang <Kevin1.Wang@amd.com> +Date: Tue, 15 Jan 2019 12:25:59 +0800 +Subject: [PATCH 1412/2940] drm/amd/powerplay: implement sensor of SCLK and + MCLK for smu11 + +add sensor interface of SCLK and MCKL for sys interface and hwmon. + +Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com> +Reviewed-by: Huang Rui <ray.huang@amd.com> +Reviewed-by: Evan Quan <evan.quan@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 7ea19eb5896d..659e911636bb 100644 +--- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c ++++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c +@@ -1021,6 +1021,14 @@ static int smu_v11_0_read_sensor(struct smu_context *smu, + (uint32_t *)data); + *size = 4; + break; ++ case AMDGPU_PP_SENSOR_GFX_MCLK: ++ ret = smu_get_current_clk_freq(smu, PPCLK_UCLK, (uint32_t *)data); ++ *size = 4; ++ break; ++ case AMDGPU_PP_SENSOR_GFX_SCLK: ++ ret = smu_get_current_clk_freq(smu, PPCLK_GFXCLK, (uint32_t *)data); ++ *size = 4; ++ break; + default: + ret = -EINVAL; + break; +-- +2.17.1 + |