[Buildroot] [PATCH v2 10/11] imx-vpu: fix IOSystemInit failure

Gary Bisson bisson.gary at gmail.com
Fri Jun 27 05:24:53 UTC 2014


buffer address can be < 0 when using a 3G/1G split which makes
IOSystemInit fail. Fix the test by checking against -1 instead.

Signed-off-by: Gary Bisson <bisson.gary at gmail.com>
---
 ...-vpu-0001-vpu-io-fix-IOSystemInit-failure.patch | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 package/freescale-imx/imx-vpu/imx-vpu-0001-vpu-io-fix-IOSystemInit-failure.patch

diff --git a/package/freescale-imx/imx-vpu/imx-vpu-0001-vpu-io-fix-IOSystemInit-failure.patch b/package/freescale-imx/imx-vpu/imx-vpu-0001-vpu-io-fix-IOSystemInit-failure.patch
new file mode 100644
index 0000000..d8d2a69
--- /dev/null
+++ b/package/freescale-imx/imx-vpu/imx-vpu-0001-vpu-io-fix-IOSystemInit-failure.patch
@@ -0,0 +1,24 @@
+[PATCH] vpu-io: fix IOSystemInit failure
+
+buffer address can be < 0 when using a 3G/1G split which makes
+IOSystemInit fail. Fix the test by checking against -1 instead.
+
+Signed-off-by: Gary Bisson <bisson.gary at gmail.com>
+---
+ vpu/vpu_io.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/vpu/vpu_io.c b/vpu/vpu_io.c
+index 8cbb571..14759da 100644
+--- a/vpu/vpu_io.c
++++ b/vpu/vpu_io.c
+@@ -265,7 +265,7 @@ int IOSystemInit(void *callback)
+ 		goto err;
+ 	}
+ 
+-	if (IOGetVirtMem(&bit_work_addr) <= 0)
++	if (IOGetVirtMem(&bit_work_addr) == -1)
+ 		goto err;
+ #endif
+ 	UnlockVpu(vpu_semap);
+
-- 
2.0.0



More information about the buildroot mailing list