All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-fsl-arm][PATCH] libfslvpuwrap_1.0.46: fix IOGetVirtMem calls
@ 2014-06-28 17:02 Eric Nelson
  2014-06-28 17:11 ` Eric Nelson
  2014-06-28 17:17 ` [meta-fsl-arm][PATCH V2] " Eric Nelson
  0 siblings, 2 replies; 7+ messages in thread
From: Eric Nelson @ 2014-06-28 17:02 UTC (permalink / raw)
  To: meta-freescale; +Cc: laci, otavio

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
---
 ...-fix-tests-of-return-value-from-IOGetVirt.patch | 39 ++++++++++++++++++++++
 .../libfslvpuwrap/libfslvpuwrap_1.0.46.bb          |  2 ++
 2 files changed, 41 insertions(+)
 create mode 100644 recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch

diff --git a/recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch
new file mode 100644
index 0000000..e12db3f
--- /dev/null
+++ b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch
@@ -0,0 +1,39 @@
+From 08270a6fefaefee69f2d3d324be06d631a911c80 Mon Sep 17 00:00:00 2001
+From: Eric Nelson <eric.nelson@boundarydevices.com>
+Date: Sat, 28 Jun 2014 09:45:09 -0700
+Subject: [PATCH] vpu_wrapper: fix tests of return value from IOGetVirtMem
+
+IOGetVirtMem() returns a pointer or specifically -1 (MAP_FAILED)
+in the case of failure.
+
+Signed-off-by: Laci Tele <laci@boundarydevices.com>
+Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
+---
+ vpu_wrapper.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/vpu_wrapper.c b/vpu_wrapper.c
+index 9249174..148c5df 100755
+--- a/vpu_wrapper.c
++++ b/vpu_wrapper.c
+@@ -6653,7 +6653,7 @@ VpuDecRetCode VPU_DecGetMem(VpuMemDesc* pInOutMem)
+ 		return VPU_DEC_RET_FAILURE;
+ 	}
+ 	ret=IOGetVirtMem(&buff);
+-	if(ret==0) //if(ret!=RETCODE_SUCCESS)
++	if(ret == -1) //if(ret==MAP_FAILED)
+ 	{
+ 		VPU_ERROR("%s: get virtual memory failure: size=%d, ret=%d \r\n",__FUNCTION__,buff.size,ret);
+ 		return VPU_DEC_RET_FAILURE;
+@@ -8277,7 +8277,7 @@ VpuEncRetCode VPU_EncGetMem(VpuMemDesc* pInOutMem)
+ 		return VPU_ENC_RET_FAILURE;
+ 	}
+ 	ret=IOGetVirtMem(&buff);
+-	if(ret==0) //if(ret!=RETCODE_SUCCESS)
++	if(ret == -1) //if(ret==MAP_FAILED)
+ 	{
+ 		VPU_ENC_ERROR("%s: get virtual memory failure: size=%d, ret=%d \r\n",__FUNCTION__,buff.size,(UINT32)ret);
+ 		return VPU_ENC_RET_FAILURE;
+-- 
+1.9.1
+
diff --git a/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb
index e4970e2..8cc1523 100644
--- a/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb
+++ b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb
@@ -10,6 +10,8 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
 SRC_URI[md5sum] = "1f50110cb6de8ebf767fb9c5f8baf20d"
 SRC_URI[sha256sum] = "7fc1258de338339d19a1a35167393fdc4d773682dfd9b951b197403a075f85fd"
 
+SRC_URI_append = " file://0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch"
+
 inherit fsl-eula-unpack autotools pkgconfig
 
 do_install_append() {
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [meta-fsl-arm][PATCH] libfslvpuwrap_1.0.46: fix IOGetVirtMem calls
  2014-06-28 17:02 [meta-fsl-arm][PATCH] libfslvpuwrap_1.0.46: fix IOGetVirtMem calls Eric Nelson
@ 2014-06-28 17:11 ` Eric Nelson
  2014-06-28 17:25   ` Otavio Salvador
  2014-06-28 17:17 ` [meta-fsl-arm][PATCH V2] " Eric Nelson
  1 sibling, 1 reply; 7+ messages in thread
From: Eric Nelson @ 2014-06-28 17:11 UTC (permalink / raw)
  To: meta-freescale; +Cc: laci, otavio

On 06/28/2014 10:02 AM, Eric Nelson wrote:
> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>

Missing upstream-status.

Hang tight for V2.

> ---
>  ...-fix-tests-of-return-value-from-IOGetVirt.patch | 39 ++++++++++++++++++++++
>  .../libfslvpuwrap/libfslvpuwrap_1.0.46.bb          |  2 ++
>  2 files changed, 41 insertions(+)
>  create mode 100644 recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch
> 

Note that we have some similar patches for imx-test and
libfslcodec.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [meta-fsl-arm][PATCH V2] libfslvpuwrap_1.0.46: fix IOGetVirtMem calls
  2014-06-28 17:02 [meta-fsl-arm][PATCH] libfslvpuwrap_1.0.46: fix IOGetVirtMem calls Eric Nelson
  2014-06-28 17:11 ` Eric Nelson
@ 2014-06-28 17:17 ` Eric Nelson
  2014-06-28 17:27   ` Otavio Salvador
  1 sibling, 1 reply; 7+ messages in thread
From: Eric Nelson @ 2014-06-28 17:17 UTC (permalink / raw)
  To: meta-freescale; +Cc: laci, otavio

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
---
V2 adds Upstream-Status

 ...-fix-tests-of-return-value-from-IOGetVirt.patch | 41 ++++++++++++++++++++++
 .../libfslvpuwrap/libfslvpuwrap_1.0.46.bb          |  2 ++
 2 files changed, 43 insertions(+)
 create mode 100644 recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch

diff --git a/recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch
new file mode 100644
index 0000000..ccd2d9e
--- /dev/null
+++ b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch
@@ -0,0 +1,41 @@
+From 7ca66c10c05168c7d342df7c7a70d4a1ae0629f7 Mon Sep 17 00:00:00 2001
+From: Eric Nelson <eric.nelson@boundarydevices.com>
+Date: Sat, 28 Jun 2014 09:45:09 -0700
+Subject: [PATCH] vpu_wrapper: fix tests of return value from IOGetVirtMem
+
+IOGetVirtMem() returns a pointer or specifically -1 (MAP_FAILED)
+in the case of failure.
+
+Upstream-Status: Pending
+
+Signed-off-by: Laci Tele <laci@boundarydevices.com>
+Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
+---
+ vpu_wrapper.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/vpu_wrapper.c b/vpu_wrapper.c
+index 9249174..148c5df 100755
+--- a/vpu_wrapper.c
++++ b/vpu_wrapper.c
+@@ -6653,7 +6653,7 @@ VpuDecRetCode VPU_DecGetMem(VpuMemDesc* pInOutMem)
+ 		return VPU_DEC_RET_FAILURE;
+ 	}
+ 	ret=IOGetVirtMem(&buff);
+-	if(ret==0) //if(ret!=RETCODE_SUCCESS)
++	if(ret == -1) //if(ret==MAP_FAILED)
+ 	{
+ 		VPU_ERROR("%s: get virtual memory failure: size=%d, ret=%d \r\n",__FUNCTION__,buff.size,ret);
+ 		return VPU_DEC_RET_FAILURE;
+@@ -8277,7 +8277,7 @@ VpuEncRetCode VPU_EncGetMem(VpuMemDesc* pInOutMem)
+ 		return VPU_ENC_RET_FAILURE;
+ 	}
+ 	ret=IOGetVirtMem(&buff);
+-	if(ret==0) //if(ret!=RETCODE_SUCCESS)
++	if(ret == -1) //if(ret==MAP_FAILED)
+ 	{
+ 		VPU_ENC_ERROR("%s: get virtual memory failure: size=%d, ret=%d \r\n",__FUNCTION__,buff.size,(UINT32)ret);
+ 		return VPU_ENC_RET_FAILURE;
+-- 
+1.9.1
+
diff --git a/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb
index e4970e2..8cc1523 100644
--- a/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb
+++ b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb
@@ -10,6 +10,8 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
 SRC_URI[md5sum] = "1f50110cb6de8ebf767fb9c5f8baf20d"
 SRC_URI[sha256sum] = "7fc1258de338339d19a1a35167393fdc4d773682dfd9b951b197403a075f85fd"
 
+SRC_URI_append = " file://0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch"
+
 inherit fsl-eula-unpack autotools pkgconfig
 
 do_install_append() {
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [meta-fsl-arm][PATCH] libfslvpuwrap_1.0.46: fix IOGetVirtMem calls
  2014-06-28 17:11 ` Eric Nelson
@ 2014-06-28 17:25   ` Otavio Salvador
  0 siblings, 0 replies; 7+ messages in thread
From: Otavio Salvador @ 2014-06-28 17:25 UTC (permalink / raw)
  To: Eric Nelson; +Cc: meta-freescale@yoctoproject.org, laci

On Sat, Jun 28, 2014 at 2:11 PM, Eric Nelson
<eric.nelson@boundarydevices.com> wrote:
> On 06/28/2014 10:02 AM, Eric Nelson wrote:
>> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
>
> Missing upstream-status.
>
> Hang tight for V2.

:-)

>> ---
>>  ...-fix-tests-of-return-value-from-IOGetVirt.patch | 39 ++++++++++++++++++++++
>>  .../libfslvpuwrap/libfslvpuwrap_1.0.46.bb          |  2 ++
>>  2 files changed, 41 insertions(+)
>>  create mode 100644 recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch
>>
>
> Note that we have some similar patches for imx-test and
> libfslcodec.

Do you mind to send them all in a patchset? So we can get Lauren to
review them in one shot and we can also merge them in one shot.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [meta-fsl-arm][PATCH V2] libfslvpuwrap_1.0.46: fix IOGetVirtMem calls
  2014-06-28 17:17 ` [meta-fsl-arm][PATCH V2] " Eric Nelson
@ 2014-06-28 17:27   ` Otavio Salvador
  2014-06-28 17:46     ` Eric Nelson
  2014-06-28 17:58     ` [meta-fsl-arm][PATCH V3] " Eric Nelson
  0 siblings, 2 replies; 7+ messages in thread
From: Otavio Salvador @ 2014-06-28 17:27 UTC (permalink / raw)
  To: Eric Nelson; +Cc: meta-freescale@yoctoproject.org, laci

Hello Eric,

On Sat, Jun 28, 2014 at 2:17 PM, Eric Nelson
<eric.nelson@boundarydevices.com> wrote:
> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
...
> +Subject: [PATCH] vpu_wrapper: fix tests of return value from IOGetVirtMem
> +
> +IOGetVirtMem() returns a pointer or specifically -1 (MAP_FAILED)
> +in the case of failure.

Please extend the commit log with this info. This is much better to
have it in commit log instead of forcing people to find out what 'fix
calls' means ;)

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [meta-fsl-arm][PATCH V2] libfslvpuwrap_1.0.46: fix IOGetVirtMem calls
  2014-06-28 17:27   ` Otavio Salvador
@ 2014-06-28 17:46     ` Eric Nelson
  2014-06-28 17:58     ` [meta-fsl-arm][PATCH V3] " Eric Nelson
  1 sibling, 0 replies; 7+ messages in thread
From: Eric Nelson @ 2014-06-28 17:46 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org, laci

On 06/28/2014 10:27 AM, Otavio Salvador wrote:
> Hello Eric,
> 
> On Sat, Jun 28, 2014 at 2:17 PM, Eric Nelson
> <eric.nelson@boundarydevices.com> wrote:
>> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
> ...
>> +Subject: [PATCH] vpu_wrapper: fix tests of return value from IOGetVirtMem
>> +
>> +IOGetVirtMem() returns a pointer or specifically -1 (MAP_FAILED)
>> +in the case of failure.
> 
> Please extend the commit log with this info. This is much better to
> have it in commit log instead of forcing people to find out what 'fix
> calls' means ;)
> 

Okay.

I started to do that, but it felt redundant-redundant...


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [meta-fsl-arm][PATCH V3] libfslvpuwrap_1.0.46: fix IOGetVirtMem calls
  2014-06-28 17:27   ` Otavio Salvador
  2014-06-28 17:46     ` Eric Nelson
@ 2014-06-28 17:58     ` Eric Nelson
  1 sibling, 0 replies; 7+ messages in thread
From: Eric Nelson @ 2014-06-28 17:58 UTC (permalink / raw)
  To: meta-freescale; +Cc: laci, otavio

IOGetVirtMem() returns a pointer or specifically -1 (MAP_FAILED) 
in the case of failure, and a couple of calls were improperly testing
for zero.

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
---
V2 adds Upstream-Status
V3 expands comment for the recipe update

 ...-fix-tests-of-return-value-from-IOGetVirt.patch | 41 ++++++++++++++++++++++
 .../libfslvpuwrap/libfslvpuwrap_1.0.46.bb          |  2 ++
 2 files changed, 43 insertions(+)
 create mode 100644 recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch

diff --git a/recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch
new file mode 100644
index 0000000..ccd2d9e
--- /dev/null
+++ b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch
@@ -0,0 +1,41 @@
+From 7ca66c10c05168c7d342df7c7a70d4a1ae0629f7 Mon Sep 17 00:00:00 2001
+From: Eric Nelson <eric.nelson@boundarydevices.com>
+Date: Sat, 28 Jun 2014 09:45:09 -0700
+Subject: [PATCH] vpu_wrapper: fix tests of return value from IOGetVirtMem
+
+IOGetVirtMem() returns a pointer or specifically -1 (MAP_FAILED)
+in the case of failure.
+
+Upstream-Status: Pending
+
+Signed-off-by: Laci Tele <laci@boundarydevices.com>
+Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
+---
+ vpu_wrapper.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/vpu_wrapper.c b/vpu_wrapper.c
+index 9249174..148c5df 100755
+--- a/vpu_wrapper.c
++++ b/vpu_wrapper.c
+@@ -6653,7 +6653,7 @@ VpuDecRetCode VPU_DecGetMem(VpuMemDesc* pInOutMem)
+ 		return VPU_DEC_RET_FAILURE;
+ 	}
+ 	ret=IOGetVirtMem(&buff);
+-	if(ret==0) //if(ret!=RETCODE_SUCCESS)
++	if(ret == -1) //if(ret==MAP_FAILED)
+ 	{
+ 		VPU_ERROR("%s: get virtual memory failure: size=%d, ret=%d \r\n",__FUNCTION__,buff.size,ret);
+ 		return VPU_DEC_RET_FAILURE;
+@@ -8277,7 +8277,7 @@ VpuEncRetCode VPU_EncGetMem(VpuMemDesc* pInOutMem)
+ 		return VPU_ENC_RET_FAILURE;
+ 	}
+ 	ret=IOGetVirtMem(&buff);
+-	if(ret==0) //if(ret!=RETCODE_SUCCESS)
++	if(ret == -1) //if(ret==MAP_FAILED)
+ 	{
+ 		VPU_ENC_ERROR("%s: get virtual memory failure: size=%d, ret=%d \r\n",__FUNCTION__,buff.size,(UINT32)ret);
+ 		return VPU_ENC_RET_FAILURE;
+-- 
+1.9.1
+
diff --git a/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb
index e4970e2..8cc1523 100644
--- a/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb
+++ b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb
@@ -10,6 +10,8 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
 SRC_URI[md5sum] = "1f50110cb6de8ebf767fb9c5f8baf20d"
 SRC_URI[sha256sum] = "7fc1258de338339d19a1a35167393fdc4d773682dfd9b951b197403a075f85fd"
 
+SRC_URI_append = " file://0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch"
+
 inherit fsl-eula-unpack autotools pkgconfig
 
 do_install_append() {
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-28 17:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-28 17:02 [meta-fsl-arm][PATCH] libfslvpuwrap_1.0.46: fix IOGetVirtMem calls Eric Nelson
2014-06-28 17:11 ` Eric Nelson
2014-06-28 17:25   ` Otavio Salvador
2014-06-28 17:17 ` [meta-fsl-arm][PATCH V2] " Eric Nelson
2014-06-28 17:27   ` Otavio Salvador
2014-06-28 17:46     ` Eric Nelson
2014-06-28 17:58     ` [meta-fsl-arm][PATCH V3] " Eric Nelson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.