Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C7E1EE00510; Sat, 28 Jun 2014 10:17:43 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.49 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1A57BE003D6 for ; Sat, 28 Jun 2014 10:17:42 -0700 (PDT) Received: by mail-pa0-f49.google.com with SMTP id lj1so6151098pab.8 for ; Sat, 28 Jun 2014 10:17:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Kkx6QtZyauafWL6kWCiCmoi+HuSZFx7UhJ3JArDTelQ=; b=RvFV3YDEpBpcnuuRysi9U0lXsl00kD1nvTawkYhiJFF2Eom3rwK5vUOjinYmE16nnG gP8QL4H34EiEU92Y7uCKL6x5PZjvDR0E/tO1r0ibgMhS51ozqFVV394grVUTXIxgFB6g w8aorDPNzE8Kn/cPLi1kzYb5MEyDhs1APWx9lqafuG8n1O5kvvdKh8Y5BaYCHkeIyf6N t90Ci0Q8lU8SKF+YtvrKruMoLwN0Gze1CsLPSRu3a0D8ac4tvzFDbbWREwIBQ/O8VgXP QWxVgV4Udc6F/wGk7/kWk61PCaR9XXYsGSm9VhGmkC6xRLyH0CM6xyhylynTZVVUM3Xw zSiw== X-Gm-Message-State: ALoCoQk6/c9bEd2J6yjNrwIRa2RPST4Xx7mPZ/ya5xYKGymMd2GFEpEm5FWRdR9XMAnqZq5aquSU X-Received: by 10.66.100.163 with SMTP id ez3mr40347754pab.155.1403975862108; Sat, 28 Jun 2014 10:17:42 -0700 (PDT) Received: from localhost.localdomain (ip98-165-103-37.ph.ph.cox.net. [98.165.103.37]) by mx.google.com with ESMTPSA id by1sm20091471pbb.75.2014.06.28.10.17.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 28 Jun 2014 10:17:40 -0700 (PDT) From: Eric Nelson To: meta-freescale@yoctoproject.org Date: Sat, 28 Jun 2014 10:17:32 -0700 Message-Id: <1403975852-28924-1-git-send-email-eric.nelson@boundarydevices.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1403974920-28364-1-git-send-email-eric.nelson@boundarydevices.com> References: <1403974920-28364-1-git-send-email-eric.nelson@boundarydevices.com> Cc: laci@boundarydevices.com, otavio@ossystems.com.br Subject: [meta-fsl-arm][PATCH V2] libfslvpuwrap_1.0.46: fix IOGetVirtMem calls X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jun 2014 17:17:43 -0000 Signed-off-by: Eric Nelson --- 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 +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 +Signed-off-by: Eric Nelson +--- + 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