Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1013611ybx; Wed, 30 Oct 2019 08:35:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxG/SgIvKHYT5r1cw39raRckEmTtwLwu9OqxqUQg7gaLgRjfzHhC7VpukBne2QXsI2Z5FRX X-Received: by 2002:a17:907:105c:: with SMTP id oy28mr43666ejb.299.1572449704008; Wed, 30 Oct 2019 08:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572449703; cv=none; d=google.com; s=arc-20160816; b=bsjMPj0BzJlQHbot9hkCxfw8+B6Trs6SE98pLMV+FhIzLcrtCLmD3WxeV0601UVizn omw2Tbhg+DGcTbnj3TYIp7izMBPYRo6bD67xdTGo/EfW4A3vDhiFffeWV/vMTN/CJbit 23aToioGizUvkdEh3zHKLUMidAvnwpY9TJ1++nFqc/Q0qc6/jGKo5EP7z8AV/p8PHUtA +IVK3zW7Tm1opVFInbhv6QQ8faajqoTSc6S961az8iBgpQbRUyVAZE+crpQLcXhy36fE 3fBQ+dt7IeKIm1QJ6TY9xxuflF7sFgK2muEorAhUEsK5VAuPfC8xNiWRtVLDUPxpNPZ+ mHOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ipjEKlC4txiW2znx9JzBHcubxW/NkocTihOWFYYhmZo=; b=Y26omi/Xo2MGjE9tBZ2OItLB2NSnIKuWf3ph04c3L1Alf7SfzOQu+KRlmPjpeKT4+n /ycFmGE9xGY8aqUl8CSj9Xtc1mdk4Fu6+OHLlzbnWjBEINpL5kTyHN2KOFJb3+XS40n8 6p5kCxhvnTBf+XBAxhQAmsKwfG3cnmnMFe4gX1uMGnAuKkvjFJUM8+Trek1IyzkMtV2P 3nqnjU/5udVXBWvNdGlzHpT9IXyjfNY3jZ4U/+t+JLdPFMtFrEYgxQv1XRIWWyECFLzb lYruewUS+i0epfIcSvfj2bLnUpovmZDht4bnZiLYAI4176xD5FWKZhzkeRWZAgL3JdTu RkcQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si1857734ede.163.2019.10.30.08.34.40; Wed, 30 Oct 2019 08:35:03 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726963AbfJ3Pd3 (ORCPT + 99 others); Wed, 30 Oct 2019 11:33:29 -0400 Received: from foss.arm.com ([217.140.110.172]:36380 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbfJ3Pd3 (ORCPT ); Wed, 30 Oct 2019 11:33:29 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B6D251FB; Wed, 30 Oct 2019 08:33:28 -0700 (PDT) Received: from [10.1.197.57] (e110467-lin.cambridge.arm.com [10.1.197.57]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CD6F23F6C4; Wed, 30 Oct 2019 08:33:27 -0700 (PDT) Subject: Re: [PATCH 7/7] iommu/arm-smmu: Allow building as a module To: Rob Herring , Will Deacon Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Joerg Roedel , Bjorn Helgaas , Lorenzo Pieralisi References: <20191030145112.19738-1-will@kernel.org> <20191030145112.19738-8-will@kernel.org> <20191030152212.ifzhl2w3knapc367@bogus> From: Robin Murphy Message-ID: <9ffbf469-83a7-4ebb-504c-ac17c2f526cc@arm.com> Date: Wed, 30 Oct 2019 15:33:26 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20191030152212.ifzhl2w3knapc367@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/10/2019 15:22, Rob Herring wrote: > 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. Apparently it's also in the wild on Cavium ThunderX/OcteonTX machines as well :( > 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. FWIW the secure quirk still comes in useful every now and then when people prototype stuff on 32-bit VExpress, where it turns out an SMMU is about the only thing which cares whether you're running Linux in Secure mode or not. Robin.