From: Yong Wu <yong.wu@mediatek.com>
To: Joerg Roedel <joro@8bytes.org>,
Robin Murphy <robin.murphy@arm.com>,
Will Deacon <will.deacon@arm.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>,
Daniel Kurtz <djkurtz@google.com>, Tomasz Figa <tfiga@google.com>,
Lucas Stach <l.stach@pengutronix.de>,
Rob Herring <robh+dt@kernel.org>,
Catalin Marinas <catalin.marinas@arm.com>,
<linux-mediatek@lists.infradead.org>,
Sasha Hauer <kernel@pengutronix.de>,
<srv_heupstream@mediatek.com>, <linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<iommu@lists.linux-foundation.org>, <arnd@arndb.de>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
<youhua.li@mediatek.com>, <milton.chiang@mediatek.com>
Subject: [PATCH v2 0/2] MT8173 IOMMU 4GB MODE SUPPORT
Date: Mon, 14 Mar 2016 06:01:09 +0800 [thread overview]
Message-ID: <1457906471-31549-1-git-send-email-yong.wu@mediatek.com> (raw)
This patch-set add MTK 4GB mode support on the Short-Descriptor.
Normally, the memory map in mt8173 looks like below:
Physical addr
| 1st GB | -> HW SRAM and Regs
|--------
| 2nd GB | -> Dram 1st GB
|--------
| 3rd GB | -> Dram 2nd GB
|--------
| 4th GB | -> Dram 3rd GB
|--------
Then if the dram size is 4GB, we have to add bit33 in the physical
address. We have a "DRAM 4GB mode" toggle bit for this.
If it is enabled, from CPU's point of view, the dram will
be shifted to start from PA 0x1_00000000. Then the dram PA is from
0x1_00000000~0x1_ffffffff.
MTK extend the bit9 of the standard pgtable descriptor as the 4GB mode.
we add a special quirk for this.
v2:
- Rebase on next-20160310.
- Rename IO_PGTABLE_QUIRK_MTK_4GB_EXT to IO_PGTABLE_QUIRK_ARM_MTK_4GB.
- Improve the comment of this "4GB mode".
Yong Wu (2):
iommu/io-pgtable: Add MTK 4GB mode in Short-descriptor
iommu/mediatek: Add 4GB mode support
drivers/iommu/io-pgtable-arm-v7s.c | 13 ++++++++++++-
drivers/iommu/io-pgtable.h | 6 ++++++
drivers/iommu/mtk_iommu.c | 14 +++++++++++---
3 files changed, 29 insertions(+), 4 deletions(-)
--
1.8.1.1.dirty
next reply other threads:[~2016-03-14 6:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-13 22:01 Yong Wu [this message]
2016-03-13 22:01 ` [PATCH v2 1/2] iommu/io-pgtable: Add MTK 4GB mode in Short-descriptor Yong Wu
2016-03-14 12:37 ` Robin Murphy
2016-03-13 22:01 ` [PATCH v2 2/2] iommu/mediatek: Add 4GB mode support Yong Wu
2016-04-05 13:41 ` [PATCH v2 0/2] MT8173 IOMMU 4GB MODE SUPPORT Joerg Roedel
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=1457906471-31549-1-git-send-email-yong.wu@mediatek.com \
--to=yong.wu@mediatek.com \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=djkurtz@google.com \
--cc=iommu@lists.linux-foundation.org \
--cc=joro@8bytes.org \
--cc=kernel@pengutronix.de \
--cc=l.stach@pengutronix.de \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=milton.chiang@mediatek.com \
--cc=robh+dt@kernel.org \
--cc=robin.murphy@arm.com \
--cc=srv_heupstream@mediatek.com \
--cc=tfiga@google.com \
--cc=will.deacon@arm.com \
--cc=youhua.li@mediatek.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).