Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp576373rdf; Tue, 21 Nov 2023 10:07:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IG1diIV1K0sMXrGZJHn3go08vTdf17mPtaNoioYCGhVi6wiGi1+z0LpnLjcBCToi5YdIpBX X-Received: by 2002:a05:6a00:1d8e:b0:6cb:bc92:c73f with SMTP id z14-20020a056a001d8e00b006cbbc92c73fmr2924320pfw.2.1700590041559; Tue, 21 Nov 2023 10:07:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700590041; cv=none; d=google.com; s=arc-20160816; b=EGX+v6hmK8r7sJTNrYtIoDMEVqI9XgIXjyih8v0vqAEUOrHyMIzqHdYoZgTBHqTfDX BdKEVkJ6iRc+D4hRupSJIBp0q3XrnGzKO3PfnGiaqAn0JjckcSFYHW2cithAMLQIa7gC E7A9rY3JUddeYpWClOBHcAc+S/Nr4Dlb9SLSgH8G7FJMZAGYDqEGCwYrYXzAvXbEPiJ+ itP8vqR1s46dkZuiFunREH0MaBF7qRvnaH1Jt0VAvN6lPBk8EaJqR4KmwvxzrVPTARBo IXjXT8VQ/X9gHn9MHSn6afio8KSFEnp0JlqZ+FQMVB45LsWYa/Q3Sn8dItCv/1enAVsI 7Eqw== 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=lCoXfiE8XCHMoZ6VdfkX3CV6SU0nlIOM79vRzcDCrl4=; fh=/LWf6GZq+5MWEfaJ8k2uZ3r5PX06byd5VRVQaY04470=; b=JU0D3xfGXL9iCJJgDUwAKDMfO++Rt5HBh5Mn2RAqCog5ke9U6T9AKI0jiUJChSsLBN IXQUhrGRQaVWvXQ4QlY+H38D1zmz/Hwu/j6jzP289Pe2XOGiNCAR/UopaVaGI4OERFi+ 7flCOkzckZ++Rgt8eoBdsG+ydwMQYmn8DJ7d2E+oSzipuLzs6+zFf33fx5gXSPhwMUcj r8s9o46XlvvmPITZl1cE3xIE+gj1dthvgbSRnBPBa2nT8VBxa1lGPGTgXB+OD5u4JggS pjLyat/D6tlYD5tf9qLViDde3fGzOEImcXRwbooSmivZa/7xGuaoIaCvMrD7iGoMhsYI c57Q== 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:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id g5-20020a056a0023c500b00690228b1d45si11389201pfc.342.2023.11.21.10.07.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 10:07:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 2FF3F80417FC; Tue, 21 Nov 2023 10:06:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234754AbjKUSFY (ORCPT + 99 others); Tue, 21 Nov 2023 13:05:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234382AbjKUSEz (ORCPT ); Tue, 21 Nov 2023 13:04:55 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BE89210E9 for ; Tue, 21 Nov 2023 10:04:12 -0800 (PST) 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 481BF1042; Tue, 21 Nov 2023 10:04:58 -0800 (PST) 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 7B08A3F6C4; Tue, 21 Nov 2023 10:04:10 -0800 (PST) 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, jsnitsel@redhat.com Subject: [PATCH v6 0/7] iommu: Retire bus ops Date: Tue, 21 Nov 2023 18:03:56 +0000 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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 10:06:33 -0800 (PST) v5: https://lore.kernel.org/linux-iommu/cover.1697047261.git.robin.murphy@arm.com/ Yet another rebase, this time just tweaking patch #3 for the new domain_alloc_user() sites, and picking up reviews/acks. Thanks, 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/iommufd/hw_pagetable.c | 2 + 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 | 2 +- 14 files changed, 110 insertions(+), 98 deletions(-) -- 2.39.2.101.g768bb238c484.dirty