All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Nelson <eric.nelson@boundarydevices.com>
To: Otavio Salvador <otavio@ossystems.com.br>,
	 Lauren Post <lauren.post@freescale.com>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: [meta-fsl-arm][PATCH] imx-vpu: fix checks of IOGetVirtMem() return value
Date: Wed, 25 Jun 2014 09:22:21 -0700	[thread overview]
Message-ID: <53AAF73D.70308@boundarydevices.com> (raw)
In-Reply-To: <CAP9ODKqfXzLFN1KUNQD3vvVDcciyZm4-iY4uL19td2meRvEtgw@mail.gmail.com>

On 06/25/2014 09:18 AM, Otavio Salvador wrote:
> Hello Eric,
> Hello Lauren,
> 
> On Sat, Jun 21, 2014 at 2:52 PM, Eric Nelson
> <eric.nelson@boundarydevices.com> wrote:
>> The IOGetVirtMem() routine returns the address of a memory block
>> or -1 (MAP_FAILED) to indicate an error.
>>
>> Many callers of this routine tested the return value for <= 0
>> to detect failure, and at least with a 3G/1G memory split
>> configured in the kernel, a negative number (!= -1) is a
>> valid (successful) return value.
>>
>> Without this patch, the IOSystemInit() will often detect
>> failure incorrectly.
>>
>> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
> 
> Eric, you forgot the add the upstream-status field as:
> 
> diff --git a/recipes-bsp/imx-vpu/imx-vpu/0001-IOGetVirtMem-returns-1-MAP_FAILED-on-failure.patch
> b/recipes-bsp/imx-vpu/imx-vpu/0001-IOGetVirtMem-returns-1-MAP_FAILED-on-failure.patch
> index 26826ba..348a536 100644
> --- a/recipes-bsp/imx-vpu/imx-vpu/0001-IOGetVirtMem-returns-1-MAP_FAILED-on-failure.patch
> +++ b/recipes-bsp/imx-vpu/imx-vpu/0001-IOGetVirtMem-returns-1-MAP_FAILED-on-failure.patch
> @@ -3,6 +3,8 @@ From: Eric Nelson <eric.nelson@boundarydevices.com>
>  Date: Fri, 20 Jun 2014 19:42:38 -0700
>  Subject: [PATCH] IOGetVirtMem returns -1 (MAP_FAILED) on failure
> 
> +Upstream-Status: Pending
> +
>  Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
>  ---
>   vpu/vpu_io.c  | 2 +-
> 
> I have done it here, so no need to resend it but please do it next time.
> 

Thanks Otavio.

> Lauren, this patch should be reviewed internally.
> 

This should be a quick scan, since the routines are pretty simple.

Regards,


Eric


  reply	other threads:[~2014-06-25 16:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-21 17:52 [meta-fsl-arm][PATCH] imx-vpu: fix checks of IOGetVirtMem() return value Eric Nelson
2014-06-25 16:18 ` Otavio Salvador
2014-06-25 16:22   ` Eric Nelson [this message]
2014-06-26  0:22   ` Lauren Post
2014-06-26  1:03     ` Eric Nelson
2014-06-28 14:45 ` Lauren Post
2014-06-28 15:48   ` Eric Nelson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53AAF73D.70308@boundarydevices.com \
    --to=eric.nelson@boundarydevices.com \
    --cc=lauren.post@freescale.com \
    --cc=meta-freescale@yoctoproject.org \
    --cc=otavio@ossystems.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.