aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3822-drm-amd-powerplay-Fix-NULL-pointer-deref-on-driver-u.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3822-drm-amd-powerplay-Fix-NULL-pointer-deref-on-driver-u.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3822-drm-amd-powerplay-Fix-NULL-pointer-deref-on-driver-u.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3822-drm-amd-powerplay-Fix-NULL-pointer-deref-on-driver-u.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3822-drm-amd-powerplay-Fix-NULL-pointer-deref-on-driver-u.patch
new file mode 100644
index 00000000..d6db73b1
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3822-drm-amd-powerplay-Fix-NULL-pointer-deref-on-driver-u.patch
@@ -0,0 +1,41 @@
+From 8e795eae93da7f9eb3ec456b29c326aac07d3f04 Mon Sep 17 00:00:00 2001
+From: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
+Date: Mon, 19 Mar 2018 16:48:54 -0400
+Subject: [PATCH 3822/4131] drm/amd/powerplay: Fix NULL pointer deref on driver
+ unbind.
+
+Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
+index 482115b..c8db2d5 100644
+--- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
++++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
+@@ -286,6 +286,12 @@ static int pp_resume(void *handle)
+ return hwmgr_hw_resume(hwmgr);
+ }
+
++static int pp_set_clockgating_state(void *handle,
++ enum amd_clockgating_state state)
++{
++ return 0;
++}
++
+ static const struct amd_ip_funcs pp_ip_funcs = {
+ .name = "powerplay",
+ .early_init = pp_early_init,
+@@ -300,7 +306,7 @@ static const struct amd_ip_funcs pp_ip_funcs = {
+ .is_idle = pp_is_idle,
+ .wait_for_idle = pp_wait_for_idle,
+ .soft_reset = pp_sw_reset,
+- .set_clockgating_state = NULL,
++ .set_clockgating_state = pp_set_clockgating_state,
+ .set_powergating_state = pp_set_powergating_state,
+ };
+
+--
+2.7.4
+