Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751858AbdIAKBq (ORCPT ); Fri, 1 Sep 2017 06:01:46 -0400 Received: from 8bytes.org ([81.169.241.247]:55466 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751687AbdIAKBo (ORCPT ); Fri, 1 Sep 2017 06:01:44 -0400 Date: Fri, 1 Sep 2017 12:01:41 +0200 From: Joerg Roedel To: Suman Anna Cc: iommu@lists.linux-foundation.org, Tony Lindgren , Tero Kristo , Laurent Pinchart , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] iommu/omap: Add support to program multiple iommus Message-ID: <20170901100141.2ooccy7ns2fwxceg@8bytes.org> References: <20170831131402.29502-1-s-anna@ti.com> <20170831131402.29502-3-s-anna@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170831131402.29502-3-s-anna@ti.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1046 Lines: 25 Hi Suman, On Thu, Aug 31, 2017 at 08:14:02AM -0500, Suman Anna wrote: > The OMAP IOMMU driver has been enhanced to support allowing > multiple IOMMUs to be programmed by a single client user. This > support is being added mainly to handle the DSP subsystems on > the DRA7xx SoCs, which have two MMUs within the same subsystem. > These MMUs provide translations to a processor core port and > an internal EDMA port. This support allows both the MMUs to > be programmed together, but with each one retaining it's own > internal state objects. The internal EDMA is managed by the > software running on the DSPs, and this design provides on-par > functionality with previous generation OMAP DSPs where the > EDMA and the DSP core shared the same MMU. I didn't get that from the review, so a question here: Do both MMUs show show up in sysfs, means, do you register both of them the the core code? Because I think with the solution implemented here, only a single, combined MMU should be visible to iommu core code and in sysfs. Regards, Joerg