Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1000844ybx; Wed, 30 Oct 2019 08:24:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYW9etcyoaH4OJ0F4/bugAQ6754nb6H03JP8w19J1qckx0qatLo/TaGN75RlbKbV6JHrDv X-Received: by 2002:a50:f010:: with SMTP id r16mr185912edl.187.1572449062438; Wed, 30 Oct 2019 08:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572449062; cv=none; d=google.com; s=arc-20160816; b=y5VnqW95VDSeu/6CiLoUG5EXQ36JKfR6W6H+T/gEpJgZr8PMZSpzmHbtctb/w2ToaB fvb3kGwkcDO+wJqxQ4lFMcyr4Fw2O8IUCYzOM85LAWoaRvIpo/0SsCcC9RnuLSPwAU9S sv1TDA0OP5jXd8cQxKnFNTZTrtgbtZa0wPSkfIhBjk3G+wnWclvpesLOzDdXQrLMo/6K eF6bJhrvK/fpGGjIXHykV9T8/v8+uifLvbxysKwdKcL/2YmxFFj18xU13v+CFMg62AyD 5dFRFSbM5qbPHzABszDtjt8PpJ+09avxBU+7K3q+Zg/0spQbYMsftLfxaSMlXpSviK25 ++/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Ks/aDXETKL7/ewjtlGzGE6lh24DrchMHRBDEy0Btj3E=; b=dKcD3dWmQ5ms6chhi42Iw+H0BQpuFZaaiTeOrOmwwhKmp9q+gPXGAGs3qSN93mm7HO htCTus6wlXRMWc4WukQn14nCpkHch4hSVThDlMOsclUhRFc9LOCqpN7yRjIibzfy9hXU Jh5C7npuj3KlNS4nCr0Z3aZKwwKZcHs00n3YA9FlJVSavTaWSbvR+pfnmDuFq3fOPo9M 5hbej9kfzdmGR5vn/zRgUfdKQl1hEXvdqgv7xNDviFKy1AqroNjU8UoM8UUkG6qNMuJI l2T0V8F+1XC1RiHKW0bqLGXvsouczQSEqgARqAiggdIjfSWRpYShWP+VT0ozAEq3DtBp NfqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oq14si1417100ejb.76.2019.10.30.08.23.58; Wed, 30 Oct 2019 08:24:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727127AbfJ3PWP (ORCPT + 99 others); Wed, 30 Oct 2019 11:22:15 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:43495 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726175AbfJ3PWP (ORCPT ); Wed, 30 Oct 2019 11:22:15 -0400 Received: by mail-oi1-f195.google.com with SMTP id s5so2275145oie.10 for ; Wed, 30 Oct 2019 08:22:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Ks/aDXETKL7/ewjtlGzGE6lh24DrchMHRBDEy0Btj3E=; b=MEBcvyV4k0zHNPrHcCfBZVu8dffcZ5lyV7v9TliFMtYbGNjLg9OQiZsBmMyVjUAhLt IkuUjQ8WHHz7JCTENZBwUrIpYpyDJbc14NPaC0STFtdO5spgUtQYJHXD2X6VMaLE13rJ O13vLjCU3XLXfoRP241gRYO2qi90z8PqnLphebtZboHo6NNwUpvDpN8X3wpEQA6CczDD b+C0oC3ZKuAlPP8o7Qv9JcgRmrDg/0jhrCh5iq0DAJziDwn3e3G+Ru+vJqa+9v4Plh07 HEOipSRwwguryf9Q4wlsG6BzMg7c0/W7FTKs5+JXLwVODcU4lTJyjbSfQed5uAmaz2BB /+3g== X-Gm-Message-State: APjAAAWafK4ONMPfKYTxDmilQ0R18gQgdtWhD0VvJIssj/6C9OCQdY2y mye5qu4LLX7P32BmrNEGH1xaioKGLw== X-Received: by 2002:aca:904:: with SMTP id 4mr9507441oij.25.1572448933984; Wed, 30 Oct 2019 08:22:13 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id m50sm115746otc.80.2019.10.30.08.22.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2019 08:22:13 -0700 (PDT) Date: Wed, 30 Oct 2019 10:22:12 -0500 From: Rob Herring To: Will Deacon Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Robin Murphy , Joerg Roedel , Bjorn Helgaas , Lorenzo Pieralisi Subject: Re: [PATCH 7/7] iommu/arm-smmu: Allow building as a module Message-ID: <20191030152212.ifzhl2w3knapc367@bogus> References: <20191030145112.19738-1-will@kernel.org> <20191030145112.19738-8-will@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191030145112.19738-8-will@kernel.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 30, 2019 at 02:51:12PM +0000, Will Deacon wrote: > By conditionally dropping support for the legacy binding and exporting > the newly introduced 'arm_smmu_impl_init()' function we can allow the > ARM SMMU driver to be built as a module. > > Signed-off-by: Will Deacon > --- > drivers/iommu/Kconfig | 14 ++++++++- > drivers/iommu/arm-smmu-impl.c | 6 ++++ > drivers/iommu/arm-smmu.c | 54 +++++++++++++++++++++-------------- > 3 files changed, 51 insertions(+), 23 deletions(-) > > diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig > index 7583d47fc4d5..02703f51e533 100644 > --- a/drivers/iommu/Kconfig > +++ b/drivers/iommu/Kconfig > @@ -350,7 +350,7 @@ config SPAPR_TCE_IOMMU > > # ARM IOMMU support > config ARM_SMMU > - bool "ARM Ltd. System MMU (SMMU) Support" > + tristate "ARM Ltd. System MMU (SMMU) Support" > depends on (ARM64 || ARM) && MMU > select IOMMU_API > select IOMMU_IO_PGTABLE_LPAE > @@ -362,6 +362,18 @@ config ARM_SMMU > Say Y here if your SoC includes an IOMMU device implementing > the ARM SMMU architecture. > > +config ARM_SMMU_LEGACY_DT_BINDINGS > + bool "Support the legacy \"mmu-masters\" devicetree bindings" Can't we just remove this now? The only user is Seattle. Is anyone still using Seattle AND DT? There's been no real dts change since Feb '16. There's a bit of clean-up needed in the Seattle dts files, so I'd like to remove them if there's not users. If there are users, can't we just make them move to the new binding? Yes compatibility, but that really depends on the users caring. I though Calxeda was using this too, but I guess we didn't get that finished. We should probably remove that secure mode flag as well. Rob