From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH v1] iommu/rockchip: reconstruct to support multi slaves Date: Fri, 29 Jan 2016 12:26:45 +0100 Message-ID: <20160129112645.GC4204@8bytes.org> References: <1453186980-21055-1-git-send-email-zhengsq@rock-chips.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1453186980-21055-1-git-send-email-zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Shunqian Zheng 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 List-Id: linux-rockchip.vger.kernel.org On Tue, Jan 19, 2016 at 03:03:00PM +0800, Shunqian Zheng wrote: > From: ZhengShunQian > > 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 > --- > drivers/iommu/rockchip-iommu.c | 214 ++++++++++++++++++++++++++--------------- > 1 file changed, 135 insertions(+), 79 deletions(-) Applied, thanks.