diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3904-drm-amd-pp-Add-smu-irq-handlers-for-legacy-asics.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3904-drm-amd-pp-Add-smu-irq-handlers-for-legacy-asics.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3904-drm-amd-pp-Add-smu-irq-handlers-for-legacy-asics.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3904-drm-amd-pp-Add-smu-irq-handlers-for-legacy-asics.patch new file mode 100644 index 00000000..f5bfbc2c --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3904-drm-amd-pp-Add-smu-irq-handlers-for-legacy-asics.patch @@ -0,0 +1,55 @@ +From 8c9693c46c0ab3269c05e81aa4fe269643ba33db Mon Sep 17 00:00:00 2001 +From: Rex Zhu <Rex.Zhu@amd.com> +Date: Wed, 21 Mar 2018 16:19:21 +0800 +Subject: [PATCH 3904/4131] drm/amd/pp: Add smu irq handlers for legacy asics + +Change-Id: If199a5725646a43487f9cd3ee1c0d197c7943e85 +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> +--- + drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 27 ++++++++++++++++++++++++ + 1 file changed, 27 insertions(+) + +diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +index 73cc076..905fc5d 100644 +--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c ++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +@@ -3995,8 +3995,35 @@ static int smu7_set_max_fan_rpm_output(struct pp_hwmgr *hwmgr, uint16_t us_max_f + PPSMC_MSG_SetFanRpmMax, us_max_fan_rpm); + } + ++static const struct amdgpu_irq_src_funcs smu7_irq_funcs = { ++ .process = phm_irq_process, ++}; ++ + static int smu7_register_irq_handlers(struct pp_hwmgr *hwmgr) + { ++ struct amdgpu_irq_src *source = ++ kzalloc(sizeof(struct amdgpu_irq_src), GFP_KERNEL); ++ ++ if (!source) ++ return -ENOMEM; ++ ++ source->funcs = &smu7_irq_funcs; ++ ++ amdgpu_irq_add_id((struct amdgpu_device *)(hwmgr->adev), ++ AMDGPU_IH_CLIENTID_LEGACY, ++ 230, ++ source); ++ amdgpu_irq_add_id((struct amdgpu_device *)(hwmgr->adev), ++ AMDGPU_IH_CLIENTID_LEGACY, ++ 231, ++ source); ++ ++ /* Register CTF(GPIO_19) interrupt */ ++ amdgpu_irq_add_id((struct amdgpu_device *)(hwmgr->adev), ++ AMDGPU_IH_CLIENTID_LEGACY, ++ 83, ++ source); ++ + return 0; + } + +-- +2.7.4 + |