Runtime PM suspend "put" results in addition of PM suspend API in work
queue. This barrier API will remove it from the work queue.

Signed-off-by: Manjukumar Matha <[email protected]>
---
 recipes-graphics/mali/kernel-module-mali.bb        |  1 +
 ..._pm.c-Add-PM-runtime-barrier-after-removi.patch | 31 ++++++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 
recipes-graphics/mali/kernel-module-mali/0010-common-mali_pm.c-Add-PM-runtime-barrier-after-removi.patch

diff --git a/recipes-graphics/mali/kernel-module-mali.bb 
b/recipes-graphics/mali/kernel-module-mali.bb
index 6674071..edd8cbe 100644
--- a/recipes-graphics/mali/kernel-module-mali.bb
+++ b/recipes-graphics/mali/kernel-module-mali.bb
@@ -19,6 +19,7 @@ SRC_URI = " \
        file://0007-mali_memory_os_alloc.c-Align-with-dma_attrs-changes-.patch \
        file://0008-arm.c-dma_ops-will-be-modified-by-the-driver-only-ti.patch \
        file://0009-linux-mali_kernel_linux.c-Handle-clock-when-probed-a.patch \
+       file://0010-common-mali_pm.c-Add-PM-runtime-barrier-after-removi.patch \
        "
 SRC_URI[md5sum] = "db3ef3258eb55700484ecadfdce1fee1"
 SRC_URI[sha256sum] = 
"496ba80684aa4236806891a8445978849f7dd07299f5e58b14d52cd5e7ba0536"
diff --git 
a/recipes-graphics/mali/kernel-module-mali/0010-common-mali_pm.c-Add-PM-runtime-barrier-after-removi.patch
 
b/recipes-graphics/mali/kernel-module-mali/0010-common-mali_pm.c-Add-PM-runtime-barrier-after-removi.patch
new file mode 100644
index 0000000..ad159ba
--- /dev/null
+++ 
b/recipes-graphics/mali/kernel-module-mali/0010-common-mali_pm.c-Add-PM-runtime-barrier-after-removi.patch
@@ -0,0 +1,31 @@
+From 572d234259158bf9f046c2393a65e2800bec1062 Mon Sep 17 00:00:00 2001
+From: Madhurkiran Harikrishnan <[email protected]>
+Date: Mon, 28 Aug 2017 09:40:37 -0700
+Subject: [PATCH] common/mali_pm.c: Add PM runtime barrier after removing
+ suspend
+
+Runtime PM suspend "put" results in addition of PM suspend
+API in work queue. This barrier API will remove it from
+the work queue.
+
+Signed-off-by: Madhurkiran Harikrishnan <[email protected]>
+Upstream-Status: Pending
+---
+ driver/src/devicedrv/mali/common/mali_pm.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/driver/src/devicedrv/mali/common/mali_pm.c 
b/driver/src/devicedrv/mali/common/mali_pm.c
+index 1ef03a6..0343ad3 100755
+--- common/mali_pm.c
++++ b/common/mali_pm.c
+@@ -301,6 +301,7 @@ void mali_pm_init_end(void)
+       }
+ 
+       _mali_osk_pm_dev_ref_put();
++      _mali_osk_pm_dev_barrier();
+ }
+ 
+ void mali_pm_update_sync(void)
+-- 
+2.7.4
+
-- 
2.7.4

-- 
_______________________________________________
meta-xilinx mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-xilinx

Reply via email to