From: Arnd Bergmann <arnd@arndb.de>
To: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Marek Vasut <marex@denx.de>, Jingoo Han <jg1.han@samsung.com>,
"'Pratyush Anand'" <pratyush.anand@gmail.com>,
"'Pratyush Anand'" <pratyush.anand@st.com>,
linux-pci@vger.kernel.org,
"'Mohit KUMAR DCG'" <Mohit.KUMAR@st.com>,
"'Ajay KHANDELWAL'" <ajay.khandelwal@st.com>,
"'Tim Harvey'" <tharvey@gateworks.com>
Subject: Re: [QUERY] Number of address translation regions in designware
Date: Mon, 18 Nov 2013 15:43:32 +0100 [thread overview]
Message-ID: <201311181543.32385.arnd@arndb.de> (raw)
In-Reply-To: <5289A9B8.3010408@ti.com>
On Monday 18 November 2013, Kishon Vijay Abraham I wrote:
> commit b91b61d594f293d994d87f10eb8a1a3b2e5f8977
> Author: Kishon Vijay Abraham I <kishon@ti.com>
> Date: Wed Oct 30 14:51:58 2013 +0530
>
> pci: host: pcie-designware: Use *base-mask* for configuring the iATU
>
> In DRA7, the cpu sees 32bit address, but the pcie controller can see only 28bit
> address. So whenever the cpu issues a read/write request, the 4 most
> significant bits are used by L3 to determine the target controller.
> For example, the cpu reserves 0x2000_0000 - 0x2FFF_FFFF for PCIe controller but
> the PCIe controller will see only (0x000_0000 - 0xFFF_FFF). So for programming
> the outbound translation window the base should be programmed as 0x000_0000.
> Whenever we try to write to say 0x2000_0000, it will be translated to whatever
> we have programmed in the translation window with base as 0x000_0000.
>
> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Sorry I didn't see that patch earlier. Have you had a look at the definition of the
"dma-ranges" property? I think that is something we have already defined that can
handle this in a more generic way.
Arnd
next prev parent reply other threads:[~2013-11-18 14:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-21 13:28 [QUERY] Number of address translation regions in designware Kishon Vijay Abraham I
2013-10-22 4:36 ` Pratyush Anand
2013-10-22 5:16 ` Jingoo Han
2013-10-22 14:20 ` Kishon Vijay Abraham I
2013-10-23 4:36 ` Pratyush Anand
2013-10-23 15:45 ` Kishon Vijay Abraham I
2013-10-29 7:10 ` Pratyush Anand
2013-10-29 10:55 ` Kishon Vijay Abraham I
2013-10-29 16:14 ` Pratyush Anand
2013-11-06 8:42 ` Kishon Vijay Abraham I
2013-11-15 0:40 ` Marek Vasut
2013-11-15 5:28 ` Kishon Vijay Abraham I
2013-11-15 6:13 ` Jingoo Han
2013-11-15 15:37 ` Marek Vasut
2013-11-18 5:46 ` Kishon Vijay Abraham I
2013-11-18 14:43 ` Arnd Bergmann [this message]
2013-11-01 12:37 ` Marek Vasut
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=201311181543.32385.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=Mohit.KUMAR@st.com \
--cc=ajay.khandelwal@st.com \
--cc=jg1.han@samsung.com \
--cc=kishon@ti.com \
--cc=linux-pci@vger.kernel.org \
--cc=marex@denx.de \
--cc=pratyush.anand@gmail.com \
--cc=pratyush.anand@st.com \
--cc=tharvey@gateworks.com \
/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.