Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp846439rwd; Thu, 15 Jun 2023 02:57:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7kzi9Fye/pR4q7C6s1rvwUZCa6a4cCbf/o3IlAADwFRw3bsh3uGqw6R1njuNBlUZBM2rky X-Received: by 2002:a17:906:99c4:b0:977:4b64:f5e8 with SMTP id s4-20020a17090699c400b009774b64f5e8mr18975653ejn.57.1686823050306; Thu, 15 Jun 2023 02:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686823050; cv=none; d=google.com; s=arc-20160816; b=Vi5sfPK3Fa0cJTW2X0C8PRXtphJ/DPbNX60Y1VdZbqj1DLwkTmJ8S/KOfKvGt5yhzu j15pIQ1Oc3aJO57VpXBuSiAHJseHI0QrckiPnWnGwcYKabTj2umhUc0s5to5NtwgADtt t9gAyp9XbvbaJwQdN3CDwmZMGpu238ajB/3po0WJYmku/exab2jejBrD0/Ar+vtwlwJL 1wQe5rP80lQeeG2dn8yUy5fJut7vdAxQLS+zronFnjftx3Bt1NiYX6GyaTTAbwtYIGs1 RK/oJUF5TblBmktXcY8+5XbD5LkeMC/R+yt6zO7db2c5aj+CJ+l/r0cn4PfQ7ENJ00I3 Z4NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=jnXxV1GfgsUiYnk5qgQgxY29PHy1M34RIcQTmTWMHMY=; b=fxup+OZhTNLpAQ245bhtLslExxoNbwraJ7kICjbTOxI2xN3qj6XTD21RbUNP6rjuot LpzEVZhJK+sdykL+PPbZou8RxpGWSDk9gljzwJGUEB8r9+PLjRuVW9vciS2UcmlzcLjw uOQR27BvcMcZT8ZPzdvNBtQd36ANGWPfZisoj6yuMoARfQ3Io+iZRbT5Zd+dmDaJEuw/ JJYCZrwOKx1E5Tx44mnRnES3dNxlmZiNl3tJADACL/fzmWGQykHYp+OzdYDikDE4ym7i sxq/OZNJf/dUV99trwq21m7aUDAib0mFOyOFLCVztcHgP0sZcS9G00UrAfEAXQrK+aVO jfvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a1709066ad200b009827b474a38si1836641ejs.1011.2023.06.15.02.57.05; Thu, 15 Jun 2023 02:57:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239850AbjFOJky (ORCPT + 99 others); Thu, 15 Jun 2023 05:40:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343700AbjFOJkI (ORCPT ); Thu, 15 Jun 2023 05:40:08 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2E5563A93 for ; Thu, 15 Jun 2023 02:39:22 -0700 (PDT) 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 BA20B1FB; Thu, 15 Jun 2023 02:39:57 -0700 (PDT) Received: from [10.57.85.251] (unknown [10.57.85.251]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5317E3F71E; Thu, 15 Jun 2023 02:39:12 -0700 (PDT) Message-ID: <685ec543-56d0-7a9c-4a15-3072746c2f91@arm.com> Date: Thu, 15 Jun 2023 10:39:06 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] iommu: export iommu_set_default_translated function Content-Language: en-GB To: Anvesh Jain P , Joerg Roedel , Will Deacon Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Venkata Rao Kakani , Vagdhan Kumar References: <20230615093308.24989-1-quic_ajainp@quicinc.com> From: Robin Murphy In-Reply-To: <20230615093308.24989-1-quic_ajainp@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-06-15 10:33, Anvesh Jain P wrote: > export iommu_set_default_translated function to be used by other modules. Which modules? The only reason these functions are public at all is to support the legacy x86 command-line options. No *new* code outside the core API should have any reason to be messing with core API policy. If an IOMMU driver needs to special-case particular devices we have .def_domain_type for that. Thanks, Robin. > Signed-off-by: Anvesh Jain P > Signed-off-by: Venkata Rao Kakani > Signed-off-by: Vagdhan Kumar > --- > drivers/iommu/iommu.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c > index f1dcfa3f1a1b..1b4a5db58d66 100644 > --- a/drivers/iommu/iommu.c > +++ b/drivers/iommu/iommu.c > @@ -2730,6 +2730,7 @@ void iommu_set_default_translated(bool cmd_line) > iommu_cmd_line |= IOMMU_CMD_LINE_DMA_API; > iommu_def_domain_type = IOMMU_DOMAIN_DMA; > } > +EXPORT_SYMBOL_GPL(iommu_set_default_translated); > > bool iommu_default_passthrough(void) > { > > base-commit: b6dad5178ceaf23f369c3711062ce1f2afc33644