Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp449945imw; Fri, 15 Jul 2022 06:28:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uvb7RRBZJZhGl2ITDpnwwBGOMjO3BQ3WajT97n+Zl8jfVtOTCSJRrHUC+J9wkqOcfG7sHx X-Received: by 2002:a63:141a:0:b0:411:a3b7:bb19 with SMTP id u26-20020a63141a000000b00411a3b7bb19mr12351579pgl.518.1657891723667; Fri, 15 Jul 2022 06:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657891723; cv=none; d=google.com; s=arc-20160816; b=HdGyAZ1OOwE46zdfcTrJivW9+ln1Z04bl97QU5QVVKKos+M+EUkSS6sJQn/u4B2mlo PSUBQ/I8Sf7k7v5iKLzAqafUqyUW4WwYutYBzhrteJd96EeLWm7ipxNdCjMB1CWxdO8x UZL4rofRQ1DGiM3kW3c2TiCfWXNznOyFIbx4KBkcbdAbc57Fe4mjK8bLoaaehujmi7Sl pw+pwKxIePdvwW6lWXPJAm7eIbzAGGVnOLGgwrsU6HK+M22CEPHbVkGciGrdNTnK+Kfi oz5v0Ayducq6gwB6cpuAOJHLGxrk4Crnf3KTQk8SssR2r/jxhXxtGFX4jPvhmw528YtC DT/Q== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id; bh=h2414txU/B1WRGXcWr+oKXLT1MBz2GxhNVVfYRTStA0=; b=bb9WnOfwMaM2xuCVyW//W5A7TGj+UQBo2xSAOAkOvR/FRZKVED8rNqoSVR6uT99YwK kxfeXHR6Gmw9viuwVWx0dFHZAxjsN6XZC5B2l94kYWbBjswwg+BEUn6EeN0O2YW5Jl3z lME8WmYtsPzAuuqkRB3yiRGbI4Fq+fKkCJ/2kHwEQPmvCmjqzGawkcBBB8/r0wNnTvsb vGFbUbjI5C3LwGu8PapLxylptHk2Lu/nks1tC/Rua+hDIObfrkokk8MJzSaS606ZyoQU 6TYOHluT7ZMgDI2hbYaHZCbjijjn7RovwfS7L2p5xlamtjgCwfkYtUKYHGgTT3DD4PUB fJUw== 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 f18-20020a170902ce9200b0016a7114fee1si6586780plg.405.2022.07.15.06.28.28; Fri, 15 Jul 2022 06:28:43 -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 S234458AbiGONMp (ORCPT + 99 others); Fri, 15 Jul 2022 09:12:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiGONMo (ORCPT ); Fri, 15 Jul 2022 09:12:44 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AF9BD71BE3; Fri, 15 Jul 2022 06:12:43 -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 B7E271474; Fri, 15 Jul 2022 06:12:43 -0700 (PDT) Received: from [10.57.86.139] (unknown [10.57.86.139]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 629253F70D; Fri, 15 Jul 2022 06:12:41 -0700 (PDT) Message-ID: Date: Fri, 15 Jul 2022 14:12:36 +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 v3 00/15] iommu: Retire bus_set_iommu() Content-Language: en-GB From: Robin Murphy To: joro@8bytes.org Cc: will@kernel.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, baolu.lu@linux.intel.com, suravee.suthikulpanit@amd.com, vasant.hegde@amd.com, mjrosato@linux.ibm.com, gerald.schaefer@linux.ibm.com, schnelle@linux.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Kevin Tian References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 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-05 18:08, Robin Murphy wrote: > v2: https://lore.kernel.org/linux-iommu/cover.1650890638.git.robin.murphy@arm.com/ > > Hi all, > > Here's v3, now with working x86! Having finally made sense of how I > broke Intel, I've given AMD the same fix by inspection. I'm still not > 100% sure about s390, but it looks like it should probably be OK since > it seems to register an IOMMU instance for each PCI device (?!) before > disappearing into PCI hotplug code, wherein I assume we should never see > a PCI device appear without its IOMMU already registered. > > Otherwise, the only other updates are hooking up the new host1x context > bus (noting that it now takes all of 4 lines to support a whole new bus, > yay!), and a slight tweak to make sure we keep rejecting registration of > conflicting iommu_ops rather than needlessly change that just yet. FWIW I've prepared v4, including Matt's s390 patch and some nice extra cleanups thanks to Kevin's suggestions, but have now decided to wait to rebase and send it after the upcoming merge window. If anyone's interested in the meantime, there's a preliminary branch here: https://gitlab.arm.com/linux-arm/linux-rm/-/commits/bus-set-iommu-v4 (temporarily including the host1x patch from -next to avoid breakage on arm64 as well) Thanks, Robin.