Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753302AbaF0JrF (ORCPT ); Fri, 27 Jun 2014 05:47:05 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:12215 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753059AbaF0JrC (ORCPT ); Fri, 27 Jun 2014 05:47:02 -0400 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Fri, 27 Jun 2014 02:40:47 -0700 Date: Fri, 27 Jun 2014 12:46:38 +0300 From: Hiroshi DOyu To: Thierry Reding CC: Rob Herring , Pawel Moll , "Mark Rutland" , Ian Campbell , Kumar Gala , "Stephen Warren" , Arnd Bergmann , Will Deacon , Joerg Roedel , Cho KyongHo , Grant Grundler , "Dave Martin" , Marc Zyngier , "Hiroshi Doyu" , Olav Haugan , "Paul Walmsley" , Rhyland Klein , "Allen Martin" , "devicetree@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "linux-arm-kernel@lists.infradead.org" , "linux-tegra@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC 04/10] memory: Add Tegra124 memory controller support Message-ID: <20140627124638.7ec150cca163c89727b8953f@nvidia.com> In-Reply-To: <1403815790-8548-5-git-send-email-thierry.reding@gmail.com> References: <1403815790-8548-1-git-send-email-thierry.reding@gmail.com> <1403815790-8548-5-git-send-email-thierry.reding@gmail.com> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thierry Reding writes: > From: Thierry Reding > > The memory controller on NVIDIA Tegra124 exposes various knobs that can > be used to tune the behaviour of the clients attached to it. > > Currently this driver sets up the latency allowance registers to the HW > defaults. Eventually an API should be exported by this driver (via a > custom API or a generic subsystem) to allow clients to register latency > requirements. > > This driver also registers an IOMMU (SMMU) that's implemented by the > memory controller. > > Signed-off-by: Thierry Reding > --- > drivers/memory/Kconfig | 9 + > drivers/memory/Makefile | 1 + > drivers/memory/tegra124-mc.c | 1945 ++++++++++++++++++++++++++++++ > include/dt-bindings/memory/tegra124-mc.h | 30 + > 4 files changed, 1985 insertions(+) > create mode 100644 drivers/memory/tegra124-mc.c > create mode 100644 include/dt-bindings/memory/tegra124-mc.h I prefer reusing the existing SMMU and having MC and SMMU separated since most of SMMU code are not different from functionality POV, and new MC features are quite independent of SMMU. If it's really convenient to combine MC and SMMU into one driver, we could move "drivers/iomm/tegra-smmu.c" here first, and add MC features on the top of it. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/