Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2327155imw; Wed, 6 Jul 2022 04:12:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tGF6o4sp9wi0cpmNashejFMZvhaRZrLzbtdnVQBRpl8J7u35MC/dMjtW9HBKGM/kYGz1K6 X-Received: by 2002:a05:6402:4243:b0:437:618c:695a with SMTP id g3-20020a056402424300b00437618c695amr54602445edb.222.1657105926128; Wed, 06 Jul 2022 04:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657105926; cv=none; d=google.com; s=arc-20160816; b=RD8PaRtol/XAcraOI6IoYO0696YZ6yneCEV8EjJ9LSK7xVi1mpQpeaowhc+8h1m0yE PumDz1jfnkSpPd1akIlM9oHjgaFBzajknvODlJtRUX+eP0PZpKHUohPJK1tVaUw4Md9w yfWT0bsMQXWyXc15fR3aIWbfNh7eMabjeqn+PSlUMe6VQT0riGSb31ziz4QfsIDLzLVJ A5G1WPwFYsKjg7XuNxIZZNb/V23kjggN5ajc94mU30nWuY18zAUw5LYlCuKyk/zSroO7 lgxdEWwcmnDvRgzn87YUbRay0aCD+3vpiTZ6OpCsEc/svVl/F5MBT5nCOFuGRaEJFBkI URjA== 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=a70wHECul9Lh+YoCQqlUazGYrRNYqgdDdiW/qQ+Rs9Y=; b=iCWnBibk+8NxfKuBTCObmlYvaZaBnp+M7RZICnazI2V3f6waCin3Wxp++q8rsOscw9 7DyaOl5HxCQ08oBT5HXtU3bqi9dOKAWzttJjM8gGGF0w9XzXo4luwfCbX7g1LWsvTYC4 K8BTHhuHL9am6/oy12BOnAVaVRS3Bt/FMulslqZyzc+e16y7qFO0axvy6fHYNM1EdhCn tBTkrx+XvvHOP1HA09guCf/poNlAZBVQ4Fn72i/U6WfH0Vt7+Gcwwb+lGHlssum0CBHZ 8lDAPK47uiHwUxCb8de7zDfAgTKSfq8Ss+VJdnoQkYJf7koVZ59EzTwkdj9yRn1Msbth QRvw== 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 hv13-20020a17090760cd00b00726c8cc7471si17915014ejc.92.2022.07.06.04.11.40; Wed, 06 Jul 2022 04:12:06 -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 S233194AbiGFKyq (ORCPT + 99 others); Wed, 6 Jul 2022 06:54:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233245AbiGFKyn (ORCPT ); Wed, 6 Jul 2022 06:54:43 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 61AE027CEB for ; Wed, 6 Jul 2022 03:54:39 -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 68C5E1042; Wed, 6 Jul 2022 03:54:39 -0700 (PDT) Received: from [10.57.86.2] (unknown [10.57.86.2]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CD69B3F66F; Wed, 6 Jul 2022 03:54:36 -0700 (PDT) Message-ID: <8915e679-71b2-eef4-88d5-127bcc6cf990@arm.com> Date: Wed, 6 Jul 2022 11:54:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 09/14] iommu/ipmmu-vmsa: Clean up bus_set_iommu() Content-Language: en-GB To: Alexey Kardashevskiy , joro@8bytes.org, will@kernel.org Cc: jean-philippe@linaro.org, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, thierry.reding@gmail.com, gerald.schaefer@linux.ibm.com, linux-arm-kernel@lists.infradead.org References: <01a58dcc9c70836b7556d54dbdac6a340f206781.1650890638.git.robin.murphy@arm.com> From: Robin Murphy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 2022-07-06 09:38, Alexey Kardashevskiy wrote: > > > On 28/04/2022 23:18, Robin Murphy wrote: >> Stop calling bus_set_iommu() since it's now unnecessary. This also >> leaves the custom initcall effectively doing nothing but register >> the driver, which no longer needs to happen early either, so convert >> it to builtin_platform_driver(). >> >> Signed-off-by: Robin Murphy >> --- >>   drivers/iommu/ipmmu-vmsa.c | 35 +---------------------------------- >>   1 file changed, 1 insertion(+), 34 deletions(-) >> >> diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c >> index 8fdb84b3642b..2549d32f0ddd 100644 >> --- a/drivers/iommu/ipmmu-vmsa.c >> +++ b/drivers/iommu/ipmmu-vmsa.c >> @@ -1090,11 +1090,6 @@ static int ipmmu_probe(struct platform_device >> *pdev) >>           ret = iommu_device_register(&mmu->iommu, &ipmmu_ops, >> &pdev->dev); >>           if (ret) >>               return ret; >> - >> -#if defined(CONFIG_IOMMU_DMA) >> -        if (!iommu_present(&platform_bus_type)) >> -            bus_set_iommu(&platform_bus_type, &ipmmu_ops); >> -#endif >>       } >>       /* > > The comment which starts here did not make it to the patch but it should > have as it mentions bus_set_iommu() which is gone by the end of the series. Heh, busted! In fact I think the whole point of that comment stops being true, but I couldn't be bothered to reason about it since one of the next steps after this is to start ripping all the arm_iommu_* stuff out anyway. > More general question/request - could you please include the exact sha1 > the patchset is based on? It did not apply to any current trees and > while it was trivial, it was slightly annoying to resolve the conflicts > :)  Thanks, v3 is based directly on 5.19-rc3: https://lore.kernel.org/lkml/cover.1657034827.git.robin.murphy@arm.com/ And if it helps I have it on a branch here as well: https://gitlab.arm.com/linux-arm/linux-rm/-/tree/bus-set-iommu-v3 Robin.