Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1947123pxu; Fri, 18 Dec 2020 01:39:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqjTEBD7PjKuEjCdCM4/aNYclgEgn5z7ivxLh7/CrA/w68+hgQqa2auB66dilbKZVI0eK2 X-Received: by 2002:a05:6402:17cb:: with SMTP id s11mr3384166edy.119.1608284343514; Fri, 18 Dec 2020 01:39:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608284343; cv=none; d=google.com; s=arc-20160816; b=HluIgNJIbyU9Bhgm/Bw544O5KLutFETSE/XouwZWL6u8Pl1dG6xS/CbY5BaNFsqzdR iXqMkSWGeVCExIoPubgxxSoAIYMXr/8JJH63Lfnc+4pCVDk7wfftarPhdFwCfEBrLOjP 5g1QevVM2T/wxBJdt39THgf/3Cs4jl5HP1W00rffw72QmomX+z/m2dFhTn36hiH6wwsj NX1nwU+/nMOC0HwPBuqudK8sPtcJvtyly9hVLssLZrX7p71Xb4UX4HfWNYUjBv/mkYyF +rlVF3DG/7fDle5AXqBaZJPid457cHZYAoyRSBRilUp7NCIK7d699MmhQohz0BVJ7v7Y pL2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=dkfY2lp9+KKChCrHUbFXM5BctXqX6L3MWxvCP3Yr/14=; b=b/1/uALzjIkUrWTdK8paBbHBIy9csC+GWNSeh+SctXdG71oi2s+P2tc2xmvEiYqAu/ 1j9EXe17w3SmdO0lRqHXKpz1KUblimYtc+ouaINjgFS7vgFHClgtYR0jpWWinR4apd7U FGEBGA4JjJvS+75PeU9Exch5Yy/hjaHSPdQPiD454kSaUeyxOdT4n85bG13s74we377q dUUpxABF3lyl/dzBVax/pOcsRiu0i6Z/5ooFshGZO3Rfnr3Nrh7GGJZJ87PT9H8KB6X9 uFBQeSc8ZqOr2hLI1mS8d03nqEJt9c8QHQseXnxSRsVMwRcA1Acw6HM/o/76ouO7ZOWE NQoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=SjhkAAZi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si6520923edq.432.2020.12.18.01.38.41; Fri, 18 Dec 2020 01:39:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=SjhkAAZi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733086AbgLRIkK (ORCPT + 99 others); Fri, 18 Dec 2020 03:40:10 -0500 Received: from so254-31.mailgun.net ([198.61.254.31]:47805 "EHLO so254-31.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732284AbgLRIkJ (ORCPT ); Fri, 18 Dec 2020 03:40:09 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1608280785; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=dkfY2lp9+KKChCrHUbFXM5BctXqX6L3MWxvCP3Yr/14=; b=SjhkAAZiA1JfOW1i3kRg7mxa5frS7zAXuMjSuC+NJA4uqwnRlIw+sfhGtXvZvkPJd+rGaJ4d LoZvrW02RPfoEJ+INNS6BqkOClzhnoFFCHRrV3y8Q8Mv/kCqfqGlHFoz7Xh1JMX47fqsToG7 T5KVR/VFr+59Q7ZeMtv3Gvx+q4c= X-Mailgun-Sending-Ip: 198.61.254.31 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-east-1.postgun.com with SMTP id 5fdc6aae0564dfefcd5041c7 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 18 Dec 2020 08:39:10 GMT Sender: isaacm=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4244AC43461; Fri, 18 Dec 2020 08:39:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from isaacm-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: isaacm) by smtp.codeaurora.org (Postfix) with ESMTPSA id EEBEEC43464; Fri, 18 Dec 2020 08:39:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EEBEEC43464 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=isaacm@codeaurora.org From: "Isaac J. Manjarres" To: iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: "Isaac J. Manjarres" , will@kernel.org, joro@8bytes.org, robin.murphy@arm.com, pdaly@codeaurora.org, pratikp@codeaurora.org, kernel-team@android.com Subject: [PATCH 3/3] iommu/io-pgtable: Allow building as a module Date: Fri, 18 Dec 2020 00:38:42 -0800 Message-Id: <1608280722-19841-4-git-send-email-isaacm@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1608280722-19841-1-git-send-email-isaacm@codeaurora.org> References: <1608280722-19841-1-git-send-email-isaacm@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that all of the required symbols have been exported, and the io-pgtable code can correctly refer to the io-pgtable init functions when their source files are built as modules, allow the io-pgtable code to be built as a module. The expectation is that the io-pgtable core code, along with the descriptor format (either or both ARM LPAE and ARMV7S) can be built as modules. Signed-off-by: Isaac J. Manjarres --- drivers/iommu/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index 192ef8f..d7de6db 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig @@ -27,10 +27,10 @@ menu "Generic IOMMU Pagetable Support" # Selected by the actual pagetable implementations config IOMMU_IO_PGTABLE - bool + tristate config IOMMU_IO_PGTABLE_LPAE - bool "ARMv7/v8 Long Descriptor Format" + tristate "ARMv7/v8 Long Descriptor Format" select IOMMU_IO_PGTABLE depends on ARM || ARM64 || (COMPILE_TEST && !GENERIC_ATOMIC64) help @@ -49,7 +49,7 @@ config IOMMU_IO_PGTABLE_LPAE_SELFTEST If unsure, say N here. config IOMMU_IO_PGTABLE_ARMV7S - bool "ARMv7/v8 Short Descriptor Format" + tristate "ARMv7/v8 Short Descriptor Format" select IOMMU_IO_PGTABLE depends on ARM || ARM64 || COMPILE_TEST help -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project