aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-renesas/recipes-kernel/gles-module
diff options
context:
space:
mode:
authorYuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>2017-05-22 00:18:20 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-05-25 13:47:05 +0000
commit65abb1fc7a003814d5d32f1bb7d7e0d55c8de1df (patch)
tree596417b38e4246dc29161e34429b1a2c732679bb /meta-agl-bsp/meta-renesas/recipes-kernel/gles-module
parent77e55a2113167d3fe0d7c8cecbab5365b2512216 (diff)
Add gles Hibernation code for porter board.
This patch set is a support to Hibernation for a porter board. I've commit with Hibernation Off patch, because it depends strongly on user land. If you can use Hibernation, Please add local.conf agl-porter-hibernate. OVERRIDES .= ":agl-porter-hibernate" DISTRO_FEATURES_append = " agl-porter-hibernate" Change-Id: I6cde0492c28ec9ed67c377d22a29bda9c1b4746e Signed-off-by: Yuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9453 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'meta-agl-bsp/meta-renesas/recipes-kernel/gles-module')
-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
+