From patchwork Fri Jun 27 05:24:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 364777 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id EE6371400F4 for ; Fri, 27 Jun 2014 15:26:30 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E0D4E8B633; Fri, 27 Jun 2014 05:26:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jDKRoQ_aD-HH; Fri, 27 Jun 2014 05:26:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 268438B7B8; Fri, 27 Jun 2014 05:26:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id EEE801C2098 for ; Fri, 27 Jun 2014 05:26:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EBAD68B7B4 for ; Fri, 27 Jun 2014 05:26:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p6tjFSExQB7o for ; Fri, 27 Jun 2014 05:26:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ig0-f180.google.com (mail-ig0-f180.google.com [209.85.213.180]) by whitealder.osuosl.org (Postfix) with ESMTPS id 879148B640 for ; Fri, 27 Jun 2014 05:26:01 +0000 (UTC) Received: by mail-ig0-f180.google.com with SMTP id h18so1558985igc.13 for ; Thu, 26 Jun 2014 22:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=G0fwsGtPlXLVSC9OM7OycYrQjI2AmGVJd+56LBh4Cr4=; b=SxCF82q5eVplVoYI9xqFBfrO1LZQg1eWVWsx/dCy9Rkcg234h3j2YBHdME6BDXQKTJ JkabldTH19cUBhn6H376lTd4FV/QU1bIsuHlngBgh6t9GqVx3Jl5j3KMo5L8wl7CSfPj Xor7KqTOds6uYsO7nePUulOvsy3J9Sz4gqsQqAmlSeSx+eeKPMCOkrUgNwFuy+HR1NrY Xj0v+Y/FVS0S/jzYp/FS1yj2rl9ngy/rirr5qlLuQmUAnD+8PsBRVF/V68MpeJTfPIY2 XdEWQSdya/toZ/Va96jDnGSimKpezeWfi4+LJbEg195UsgLV5akO6mAqhh7iVSZqNjcH boAw== X-Received: by 10.50.108.100 with SMTP id hj4mr9662549igb.43.1403846761039; Thu, 26 Jun 2014 22:26:01 -0700 (PDT) Received: from localhost.localdomain (216-50-218-2.dal-10.cvx.algx.net. [216.50.218.2]) by mx.google.com with ESMTPSA id uu8sm10678526igb.13.2014.06.26.22.26.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Jun 2014 22:26:00 -0700 (PDT) From: Gary Bisson To: buildroot@busybox.net Date: Thu, 26 Jun 2014 22:24:53 -0700 Message-Id: <1403846694-21974-11-git-send-email-bisson.gary@gmail.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1403846694-21974-1-git-send-email-bisson.gary@gmail.com> References: <1403150639-29382-1-git-send-email-bisson.gary@gmail.com> <1403846694-21974-1-git-send-email-bisson.gary@gmail.com> Cc: Gary Bisson , yann.morin.1998@free.fr Subject: [Buildroot] [PATCH v2 10/11] imx-vpu: fix IOSystemInit failure X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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 --- ...-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 +--- + 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); +