Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1001784rdg; Wed, 11 Oct 2023 11:15:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3QQ/VERzetlDsxiT+3IzEgqMQrz6moYFPhnorBVTO3kfebWsDyJgAJMZGK54sL1CDKUUn X-Received: by 2002:a17:902:db10:b0:1c9:bf02:6643 with SMTP id m16-20020a170902db1000b001c9bf026643mr5490100plx.26.1697048154625; Wed, 11 Oct 2023 11:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697048154; cv=none; d=google.com; s=arc-20160816; b=PGbdfUCSyElM9zt8Lb0hAaxbNxH7YrAF7FAxCckW4ILI8Mv90sk708OSG3OLjIw5gn G1EOoownaUua1g1Dm9rGTkV5hPK5Nk/S+n8+0YYLDBD1pBwcD89U0J28PDErBmHw73u1 NvALEMwOWXuB6DG7ihUfdfXUtwgjJgxe6BcgLJUUbs+RJKdyb42wUheeJX1QBN2u/UdD JsvXh6mcNXDYpReFw02zAATwuSzbjDQB46DyaiDmEUDdD8wmvrfGTx07VyL6oK5UzwEn en+pWtBf4hxv055NtU07EJbEBWuU0w4iCKD7srzgYS/ZKz/8KplzZKZLOlTTgYlapGhb irNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=qrne2yvc7YgLlu0Z4Ky6Z9Izi8VfgD+DHVw8bzsyahc=; fh=3nQM0QufZPSZ94JO+WDmHkrFziuG1/NJr0OD1jy0Wvc=; b=HbpprLRMCECaX2CP13n/JwToNE91Rf70g6QyUkDS+CH7jHhYv26FdzjQGmdD5cOTWQ RfxUWd9MeEhOsLoxkJMLFWug+BxWSZGLNYTxet2BgEq6Xd1HIlKYUqUVkm7gsTY8itau 6TACokn/5WRWg9iGhdBIZ0xWPOxb0YaYcrEkdcpFVV8vOe6LN1trAM0gNnFGty5dQcsj BZYut9tF+YrTFTtZYF8rFpJ1rHfjrC/JB65SQyQytTPVR6fyx4D7AwhuU0+adsQ+sdhx wX6AwAcxZycz2X4/4QEapsoynpHBTWFKfbKBFkc+0rafOyeB+jX8pryDA7BqUo1FkYAE UloA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id bj3-20020a170902850300b001c4660cd474si209085plb.634.2023.10.11.11.15.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 11:15:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 67F0E8068E3F; Wed, 11 Oct 2023 11:15:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233076AbjJKSPD (ORCPT + 99 others); Wed, 11 Oct 2023 14:15:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232919AbjJKSPB (ORCPT ); Wed, 11 Oct 2023 14:15:01 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0D2BA93 for ; Wed, 11 Oct 2023 11:14:59 -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 48EBF14BF; Wed, 11 Oct 2023 11:15:39 -0700 (PDT) Received: from e121345-lin.cambridge.arm.com (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A87B23F5A1; Wed, 11 Oct 2023 11:14:57 -0700 (PDT) From: Robin Murphy To: joro@8bytes.org, will@kernel.org Cc: iommu@lists.linux.dev, jgg@nvidia.com, baolu.lu@linux.intel.com, linux-kernel@vger.kernel.org Subject: [PATCH v5 0/7] iommu: Retire bus ops Date: Wed, 11 Oct 2023 19:14:47 +0100 Message-Id: X-Mailer: git-send-email 2.39.2.101.g768bb238c484.dirty MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 11 Oct 2023 11:15:16 -0700 (PDT) X-Spam-Level: ** v4: https://lore.kernel.org/linux-iommu/cover.1696253096.git.robin.murphy@arm.com/ Hi all, Really really hoping this is done now... same as v4 except I've rewritten patch #4 to be a lot less ambitious and not require any troublesome new reasoning. Cheers, Robin. Robin Murphy (7): iommu: Factor out some helpers iommu: Decouple iommu_present() from bus ops iommu: Validate that devices match domains iommu: Decouple iommu_domain_alloc() from bus ops iommu/arm-smmu: Don't register fwnode for legacy binding iommu: Retire bus ops iommu: Clean up open-coded ownership checks drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 3 - drivers/iommu/arm/arm-smmu/arm-smmu.c | 12 +- drivers/iommu/arm/arm-smmu/qcom_iommu.c | 16 +-- drivers/iommu/iommu.c | 143 +++++++++++++------- drivers/iommu/mtk_iommu.c | 7 +- drivers/iommu/mtk_iommu_v1.c | 3 - drivers/iommu/sprd-iommu.c | 8 +- drivers/iommu/virtio-iommu.c | 3 - include/acpi/acpi_bus.h | 2 + include/linux/device.h | 1 - include/linux/device/bus.h | 5 - include/linux/dma-map-ops.h | 1 + include/linux/iommu.h | 1 + 13 files changed, 108 insertions(+), 97 deletions(-) -- 2.39.2.101.g768bb238c484.dirty