aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp
diff options
context:
space:
mode:
Diffstat (limited to 'meta-agl-bsp')
-rwxr-xr-xmeta-agl-bsp/meta-renesas/recipes-kernel/gles-module/gles-kernel-module.bbappend7
-rw-r--r--meta-agl-bsp/meta-renesas/recipes-kernel/gles-module/gles-kernel-module/hibernation/0001-Add-gles-hibernation-code-for-M2W-only.patch38
2 files changed, 45 insertions, 0 deletions
diff --git a/meta-agl-bsp/meta-renesas/recipes-kernel/gles-module/gles-kernel-module.bbappend b/meta-agl-bsp/meta-renesas/recipes-kernel/gles-module/gles-kernel-module.bbappend
new file mode 100755
index 000000000..589ed87dc
--- /dev/null
+++ b/meta-agl-bsp/meta-renesas/recipes-kernel/gles-module/gles-kernel-module.bbappend
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := '${THISDIR}/${PN}:'
+SRC_URI_r8a7791_append_agl-porter-hibernate = ' file://hibernation/0001-Add-gles-hibernation-code-for-M2W-only.patch \
+ '
+python __anonymous () {
+ d.delVarFlag('do_patch', 'noexec')
+}
+
diff --git a/meta-agl-bsp/meta-renesas/recipes-kernel/gles-module/gles-kernel-module/hibernation/0001-Add-gles-hibernation-code-for-M2W-only.patch b/meta-agl-bsp/meta-renesas/recipes-kernel/gles-module/gles-kernel-module/hibernation/0001-Add-gles-hibernation-code-for-M2W-only.patch
new file mode 100644
index 000000000..a3dd6089c
--- /dev/null
+++ b/meta-agl-bsp/meta-renesas/recipes-kernel/gles-module/gles-kernel-module/hibernation/0001-Add-gles-hibernation-code-for-M2W-only.patch
@@ -0,0 +1,38 @@
+From 600612d670639fc74135a4f15a79d411931b39a8 Mon Sep 17 00:00:00 2001
+From: Yuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>
+Date: Sun, 21 May 2017 12:14:03 +0900
+Subject: [PATCH] Add gles hibernation code for M2W only
+
+Signed-off-by: Yuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>
+---
+ services4/srvkm/env/linux/module.c | 13 +++++++++++--
+ 1 file changed, 11 insertions(+), 2 deletions(-)
+
+diff --git a/services4/srvkm/env/linux/module.c b/services4/srvkm/env/linux/module.c
+index f3f22b0..85ac24f 100644
+--- a/services4/srvkm/env/linux/module.c
++++ b/services4/srvkm/env/linux/module.c
+@@ -284,9 +284,18 @@ static struct platform_device_id powervr_id_table[] __devinitdata = {
+ };
+ #endif
+
++int pvrsrv_restore_noirq(struct device *dev)
++{
++#if defined(CONFIG_ARM_LPAE) && defined(SUPPORT_RCAR_IPMMU)
++ extern int r8a779x_ipmmu_initialize(void);
++ r8a779x_ipmmu_initialize();
++#endif
++ return 0;
++}
++
+ static struct dev_pm_ops powervr_dev_pm_ops = {
+- .suspend = PVRSRVDriverSuspend,
+- .resume = PVRSRVDriverResume,
++ SET_SYSTEM_SLEEP_PM_OPS(PVRSRVDriverSuspend, PVRSRVDriverResume)
++ .restore_noirq = pvrsrv_restore_noirq,
+ };
+
+ static LDM_DRV powervr_driver = {
+--
+1.8.3.1
+