From: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
To: "Guzman Lugo, Fernando" <fernando.lugo@ti.com>
Cc: David Cohen <dacohen@gmail.com>,
Michael Jones <michael.jones@matrix-vision.de>,
Hiroshi.DOYU@nokia.com,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Linux Media Mailing List <linux-media@vger.kernel.org>,
linux-omap@vger.kernel.org
Subject: Re: [PATCH] omap: iommu: disallow mapping NULL address
Date: Tue, 08 Mar 2011 11:13:39 +0200 [thread overview]
Message-ID: <4D75F343.8090505@maxwell.research.nokia.com> (raw)
In-Reply-To: <AANLkTi=KncNfW0NEEoV+mrT_Ft2j-c=rQG=qbeR6tLQK@mail.gmail.com>
Guzman Lugo, Fernando wrote:
> On Mon, Mar 7, 2011 at 1:19 PM, David Cohen <dacohen@gmail.com> wrote:
>> On Mon, Mar 7, 2011 at 9:17 PM, Guzman Lugo, Fernando
>> <fernando.lugo@ti.com> wrote:
>>> On Mon, Mar 7, 2011 at 7:10 AM, Michael Jones
>>> <michael.jones@matrix-vision.de> wrote:
>>>> From e7dbe4c4b64eb114f9b0804d6af3a3ca0e78acc8 Mon Sep 17 00:00:00 2001
>>>> From: Michael Jones <michael.jones@matrix-vision.de>
>>>> Date: Mon, 7 Mar 2011 13:36:15 +0100
>>>> Subject: [PATCH] omap: iommu: disallow mapping NULL address
>>>>
>>>> commit c7f4ab26e3bcdaeb3e19ec658e3ad9092f1a6ceb allowed mapping
>>>> the NULL address if da_start==0. Force da_start to exclude the
>>>> first page.
>>>
>>> what about devices that uses page 0? ipu after reset always starts
>>> from 0x00000000 how could we map that address??
>>
>> from 0x0? The driver sees da == 0 as error. May I ask you why do you want it?
>
> unlike DSP that you can load a register with the addres the DSP will
> boot, IPU core always starts from address 0x00000000, so if you take
> IPU out of reset it will try to access address 0x0 if not map it,
> there will be a mmu fault.
I think the driver for IPU (what is it, btw.?) must map the NULL address
explicitly. It cannot rely on automatic allocation of the NULL address
by the iommu even if it was the first allocation.
--
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com
next prev parent reply other threads:[~2011-03-08 9:14 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-01 16:41 omap3isp cache error when unloading Michael Jones
2011-03-02 19:18 ` Laurent Pinchart
2011-03-03 16:06 ` Michael Jones
2011-03-04 7:38 ` Sakari Ailus
2011-03-04 10:07 ` Hiroshi DOYU
2011-03-04 13:12 ` David Cohen
2011-03-04 14:39 ` Michael Jones
2011-03-04 15:45 ` David Cohen
2011-03-04 16:49 ` David Cohen
2011-03-07 13:10 ` [PATCH] omap: iommu: disallow mapping NULL address Michael Jones
2011-03-07 19:17 ` Guzman Lugo, Fernando
2011-03-07 19:19 ` David Cohen
2011-03-07 19:25 ` Guzman Lugo, Fernando
2011-03-07 19:41 ` David Cohen
2011-03-07 21:19 ` Laurent Pinchart
2011-03-07 21:35 ` David Cohen
2011-03-08 9:07 ` Hiroshi DOYU
2011-03-08 20:31 ` Laurent Pinchart
2011-03-08 20:41 ` Guzman Lugo, Fernando
2011-03-08 20:51 ` David Cohen
2011-03-09 7:55 ` Sakari Ailus
2011-03-08 9:02 ` Hiroshi DOYU
2011-03-08 9:13 ` Sakari Ailus [this message]
2011-03-08 9:55 ` David Cohen
2011-03-08 17:49 ` Guzman Lugo, Fernando
2011-03-08 17:45 ` Guzman Lugo, Fernando
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=4D75F343.8090505@maxwell.research.nokia.com \
--to=sakari.ailus@maxwell.research.nokia.com \
--cc=Hiroshi.DOYU@nokia.com \
--cc=dacohen@gmail.com \
--cc=fernando.lugo@ti.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=michael.jones@matrix-vision.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox