Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5242882pxu; Tue, 22 Dec 2020 11:52:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDrs93C8c2AKiY5TgBxYIidyFooQ9U64GIIM5YgPyviIyBtLVXMdSSR3/Zr+N+D5sGOr7y X-Received: by 2002:a17:906:1955:: with SMTP id b21mr21191981eje.236.1608666759358; Tue, 22 Dec 2020 11:52:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608666759; cv=none; d=google.com; s=arc-20160816; b=F/yUU0gd74ZuQfGjPJhJVcw3LIwTmQ4yhBOWDY3spkGGZ+rMyFwKYX9R8qK1YD1Cd0 ncKVHZa+ZAi+CX6OfXWRmHLiynkQwzPYJab3YX7cZrnADLewQXQUzBXSeBB5Rk7Xvu5B QEaFiS+oGRMODOS7VpkcrFssTA9jn8H2n//NO4iW43HTVY2LonmEbjlY/FC/lvwGiBRH /kYNBI0nF+Nyivcn8c+rG6C1tq2MMNCQ5YDPl09OKic7xBQhDlHnVaEVLO+CChiJ0JMq vZHj30HH+1f8cTTao8HTUhjh6YqOzqN1U2hHdvWWw1kwFe86FFGfOgTna90OdXRMibcQ vR+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=1/n4spgUgB5z8HHtSAnD/C3uM02O7wS2g73gRhhMe3Y=; b=c0D+GHSi2S7AP9DBEZOvURGvDGOThl2fXKm+zo2KFqzo3WuSP0b58Q2li1U99DfWQK qLQ7VJFxxmJYDWMuG4iw4U7kee/JKUqRr11uD1/ECU0dtY8Go8O3s/b2R7iQhh2Is6sD zDIBgic1zlIHVxB4cnVVov5kS+I9q5xBAfp6NMh0T6VH41fP11hFkW2PdX1sjT3nqO2T L9bzkPmGWIXtAW3VtcrS3G8N0QE5vtADEsG/zS0QUEPduhxLdsiTLolqhR5kN3dAFKkw PD6oWIQ7DgC20iKaPa1otf/LwkYxMRbcVFMiEm/aJ16QfAMgk6yWvK5vUXVVF1E9SK3l xxcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="Z2P/8SeQ"; 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 c23si12842548edj.524.2020.12.22.11.52.15; Tue, 22 Dec 2020 11:52:39 -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="Z2P/8SeQ"; 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 S1726275AbgLVTuW (ORCPT + 99 others); Tue, 22 Dec 2020 14:50:22 -0500 Received: from m43-15.mailgun.net ([69.72.43.15]:35396 "EHLO m43-15.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725931AbgLVTuW (ORCPT ); Tue, 22 Dec 2020 14:50:22 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1608666602; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=1/n4spgUgB5z8HHtSAnD/C3uM02O7wS2g73gRhhMe3Y=; b=Z2P/8SeQtisXnK1YkQdZD3/t0JjWaSOkGBs/ONtEZ2fPbVHv4YRh0yRQ35Mp3Kt77q+17SbG 5Q6M5zqf1AJfh3fjYqsUWJH+lo9Ht29nCbbcrtxGZWMqosb+F99/UPS/Y/76YTdxYqeirbjw akmXVNF2XQOqPaRE1TqyF8Z6UWI= X-Mailgun-Sending-Ip: 69.72.43.15 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-n04.prod.us-east-1.postgun.com with SMTP id 5fe24dcd7036173f4f7d6267 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 22 Dec 2020 19:49:33 GMT Sender: isaacm=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 27C43C43462; Tue, 22 Dec 2020 19:49:33 +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, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: isaacm) by smtp.codeaurora.org (Postfix) with ESMTPSA id 43125C433CA; Tue, 22 Dec 2020 19:49:32 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 22 Dec 2020 11:49:32 -0800 From: isaacm@codeaurora.org To: Robin Murphy Cc: iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, pratikp@codeaurora.org, joro@8bytes.org, kernel-team@android.com, will@kernel.org, pdaly@codeaurora.org Subject: Re: [PATCH v2 3/7] iommu/arm-smmu: Add dependency on io-pgtable format modules In-Reply-To: <3b0c191d-3fd0-73db-c1e3-4a80aa7953d7@arm.com> References: <1608597876-32367-1-git-send-email-isaacm@codeaurora.org> <1608597876-32367-4-git-send-email-isaacm@codeaurora.org> <3b0c191d-3fd0-73db-c1e3-4a80aa7953d7@arm.com> Message-ID: X-Sender: isaacm@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-12-22 11:27, Robin Murphy wrote: > On 2020-12-22 00:44, Isaac J. Manjarres wrote: >> The SMMU driver depends on the availability of the ARM LPAE and >> ARM V7S io-pgtable format code to work properly. In preparation > > Nit: we don't really depend on v7s - we *can* use it if it's > available, address constraints are suitable, and the SMMU > implementation actually supports it (many don't), but we can still > quite happily not use it even so. LPAE is mandatory in the > architecture so that's our only hard requirement, embodied in the > kconfig select. > > This does mean there may technically still be a corner case involving > ARM_SMMU=y and IO_PGTABLE_ARM_V7S=m, but at worst it's now a runtime > failure rather than a build error, so unless and until anyone > demonstrates that it actually matters I don't feel particularly > inclined to give it much thought. > > Robin. > Okay, I'll fix up the commit message, as well as the code, so that it only depends on io-pgtable-arm. Thanks, Isaac >> for having the io-pgtable formats as modules, add a "pre" >> dependency with MODULE_SOFTDEP() to ensure that the io-pgtable >> format modules are loaded before loading the ARM SMMU driver module. >> >> Signed-off-by: Isaac J. Manjarres >> --- >> drivers/iommu/arm/arm-smmu/arm-smmu.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu.c >> b/drivers/iommu/arm/arm-smmu/arm-smmu.c >> index d8c6bfd..a72649f 100644 >> --- a/drivers/iommu/arm/arm-smmu/arm-smmu.c >> +++ b/drivers/iommu/arm/arm-smmu/arm-smmu.c >> @@ -2351,3 +2351,4 @@ MODULE_DESCRIPTION("IOMMU API for ARM >> architected SMMU implementations"); >> MODULE_AUTHOR("Will Deacon "); >> MODULE_ALIAS("platform:arm-smmu"); >> MODULE_LICENSE("GPL v2"); >> +MODULE_SOFTDEP("pre: io-pgtable-arm io-pgtable-arm-v7s"); >> > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel