From: Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
To: Shunqian Zheng <zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
Cc: heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
djkurtz-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH v1] iommu/rockchip: reconstruct to support multi slaves
Date: Fri, 29 Jan 2016 12:26:45 +0100 [thread overview]
Message-ID: <20160129112645.GC4204@8bytes.org> (raw)
In-Reply-To: <1453186980-21055-1-git-send-email-zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
On Tue, Jan 19, 2016 at 03:03:00PM +0800, Shunqian Zheng wrote:
> From: ZhengShunQian <zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
>
> There are some IPs, such as video encoder/decoder, contains 2 slave iommus,
> one for reading and the other for writing. They share the same irq and
> clock with master.
>
> This patch reconstructs to support this case by making them share the same
> Page Directory, Page Tables and even the register operations.
> That means every instruction to the reading MMU registers would be
> duplicated to the writing MMU and vice versa.
>
> Signed-off-by: ZhengShunQian <zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
> ---
> drivers/iommu/rockchip-iommu.c | 214 ++++++++++++++++++++++++++---------------
> 1 file changed, 135 insertions(+), 79 deletions(-)
Applied, thanks.
WARNING: multiple messages have this Message-ID (diff)
From: joro@8bytes.org (Joerg Roedel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v1] iommu/rockchip: reconstruct to support multi slaves
Date: Fri, 29 Jan 2016 12:26:45 +0100 [thread overview]
Message-ID: <20160129112645.GC4204@8bytes.org> (raw)
In-Reply-To: <1453186980-21055-1-git-send-email-zhengsq@rock-chips.com>
On Tue, Jan 19, 2016 at 03:03:00PM +0800, Shunqian Zheng wrote:
> From: ZhengShunQian <zhengsq@rock-chips.com>
>
> There are some IPs, such as video encoder/decoder, contains 2 slave iommus,
> one for reading and the other for writing. They share the same irq and
> clock with master.
>
> This patch reconstructs to support this case by making them share the same
> Page Directory, Page Tables and even the register operations.
> That means every instruction to the reading MMU registers would be
> duplicated to the writing MMU and vice versa.
>
> Signed-off-by: ZhengShunQian <zhengsq@rock-chips.com>
> ---
> drivers/iommu/rockchip-iommu.c | 214 ++++++++++++++++++++++++++---------------
> 1 file changed, 135 insertions(+), 79 deletions(-)
Applied, thanks.
WARNING: multiple messages have this Message-ID (diff)
From: Joerg Roedel <joro@8bytes.org>
To: Shunqian Zheng <zhengsq@rock-chips.com>
Cc: heiko@sntech.de, iommu@lists.linux-foundation.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
djkurtz@chromium.org
Subject: Re: [PATCH v1] iommu/rockchip: reconstruct to support multi slaves
Date: Fri, 29 Jan 2016 12:26:45 +0100 [thread overview]
Message-ID: <20160129112645.GC4204@8bytes.org> (raw)
In-Reply-To: <1453186980-21055-1-git-send-email-zhengsq@rock-chips.com>
On Tue, Jan 19, 2016 at 03:03:00PM +0800, Shunqian Zheng wrote:
> From: ZhengShunQian <zhengsq@rock-chips.com>
>
> There are some IPs, such as video encoder/decoder, contains 2 slave iommus,
> one for reading and the other for writing. They share the same irq and
> clock with master.
>
> This patch reconstructs to support this case by making them share the same
> Page Directory, Page Tables and even the register operations.
> That means every instruction to the reading MMU registers would be
> duplicated to the writing MMU and vice versa.
>
> Signed-off-by: ZhengShunQian <zhengsq@rock-chips.com>
> ---
> drivers/iommu/rockchip-iommu.c | 214 ++++++++++++++++++++++++++---------------
> 1 file changed, 135 insertions(+), 79 deletions(-)
Applied, thanks.
next prev parent reply other threads:[~2016-01-29 11:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-19 7:03 [PATCH v1] iommu/rockchip: reconstruct to support multi slaves Shunqian Zheng
2016-01-19 7:03 ` Shunqian Zheng
[not found] ` <1453186980-21055-1-git-send-email-zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-01-29 11:26 ` Joerg Roedel [this message]
2016-01-29 11:26 ` Joerg Roedel
2016-01-29 11:26 ` 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=20160129112645.GC4204@8bytes.org \
--to=joro-zlv9swrftaidnm+yrofe0a@public.gmane.org \
--cc=djkurtz-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
--cc=heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org \
/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.