Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2969076lqt; Tue, 23 Apr 2024 07:08:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXh5NP0GaBx/asBmp88zxpPK2B1MA53sUa4kNaoLFVroRDJ9CDGtqNFiTCzHXnzbbkdhV5r9o9mlz7RWRMZgtVUeBCMwkpJd+arMbuuCg== X-Google-Smtp-Source: AGHT+IFcuEIB0Hyv2mBON03zzczIqHtUrjtC7IEIKE2uK2rPtsGZQfaM/qtqUUSF944ClIa9iGKV X-Received: by 2002:a19:f80b:0:b0:51a:b9f5:3416 with SMTP id a11-20020a19f80b000000b0051ab9f53416mr8067133lff.39.1713881286038; Tue, 23 Apr 2024 07:08:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713881286; cv=pass; d=google.com; s=arc-20160816; b=E62Bq2EQ+1J3xjrTQHOXWxhupt5/TGCtCS0Xriuwa4B5phHzNelr6ceeXWDVdXvWuO Ir0u/L5SJ2YcwjRIuhcg7qCGU49wDJA6fpnX5p0qW4Roh5YySIqEwEfySMpwLAhWK6Fc uTd9LaoKE+fClx073oJTFRLAoGo8cgf3kpo77hpnJjmwnN76Mv1K39lQNGvroBOuuKxb I0lAE05oTx2oGKg6Yb3CtZeXy+zPvq1WoFJ2DNzYpV5KczLTPp2HEB0kQp90iCdyBbWh WTbRwQ4NU0Arw68qIBHkoULUxpKIwpmd3SkKdltMEIeHYZV0QrVAC/UrjVUXV9VSeE09 brBQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ivZL1KMf5HVtw/Oo+a4INAZ/yDs5tBPuPTBsYEgRcbc=; fh=gglATabEoNcnrktiLhogqvB7wPkWWJiWXq0X1MYO/OY=; b=ImQXtoQn2iqnQp0J0qQqW3PDaYC4N3z+keQ/1F5NY4cUYgpWK9YMPZ+1d5kEZABapU yv4fOGE3MlAUeO/2XRKXtOu1cZdmmeNfAw9KF8UMGQvv4OGCaMabCr0vRds1ytbh34JC N/uToehxnGGwRLNHVH271cMeiDEGSPffxL8VCI0MCheN5/LeoWelkEsKRYrboXsPLU+/ 35H0eRkpOWFLsG7OFbhvPBSL+/rPATpFKYz1A2W0Aw9cAbTBNYvagrKC/HHKU17cXwac 4on9aQZwV1UUriIWYONB9P+F4UDVgwoyTZMLs+URaaBleeKO7dkOAiZBtaFphxiN1ibh viDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pxI8wOD4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-155339-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155339-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lg9-20020a170906f88900b00a5883bb2570si476853ejb.756.2024.04.23.07.08.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 07:08:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155339-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pxI8wOD4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-155339-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155339-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 30B241F236E1 for ; Tue, 23 Apr 2024 14:08:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D2E113793C; Tue, 23 Apr 2024 14:07:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pxI8wOD4" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9340813774F for ; Tue, 23 Apr 2024 14:07:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713881275; cv=none; b=FsvNkaVmpvSCuumlp+RRdfc9NfGsbpUVWQ0xlwE88VZsE+Q9eJkosnWGAqq56j1uw00b9suY6JWuVM6lYn04aS7kv6RZmLDL63htLQYrEsN1oo5vXKvl2PI1xow/qIjaKZtaR9Qg80yCmLGaTuSf+Hx1pbHmtKTss7UdbtSOsGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713881275; c=relaxed/simple; bh=SCCRcYBSUWi6YZAeBOgGaAFk9sSP20YVxD8KQauNigo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=d86KhV6sXDEyo/V4QKwG7RlXlUmeRrtEZ0MtMEbxvwfLW3qE0BJzMW4vS6HDUKOsUX16Qq0BI9wJ4Bo+1TY2x12vhwrnOIfDSPK8ApSpZURB+zK7rnplc8GkTqvuBgB0iDwwPq4Rbi2+1umUlT88ELpBe7JWXdREFnJZ878a+n8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=pxI8wOD4; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-41a523e2888so16746995e9.1 for ; Tue, 23 Apr 2024 07:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713881271; x=1714486071; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ivZL1KMf5HVtw/Oo+a4INAZ/yDs5tBPuPTBsYEgRcbc=; b=pxI8wOD4CgCSFvS/2oXD5Wa0VC2b9Z+SImYYKaDd4Hkat8Zs98WqkstnCJjYktLCBF Xzyt9HF6RpvmJFNIrIJ9x9s5YQQl+R+LoQFRbfmu4SbP9zAJuZo5393mF+H2cvsF2W9D 0/pvcFO/ucwlqPdAiiE5SzsPoqI0VsPJeGbjklVxjFV3r+Jmp01+T9JkMw1mH0SkNr72 nvgbX2sN7+pRa+Mqc8m1ecW9o1Yu9NKCHHYqrHavsqjwnI/Hz/45bwqyhxVLediTwt+s F1vHN4pNOVWD1TaeBUeW8/8Yiw86g++tjKrkxAtn8yo6Jepf7gzjdQWgC1/RNCJ+BwAR 4asg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713881271; x=1714486071; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ivZL1KMf5HVtw/Oo+a4INAZ/yDs5tBPuPTBsYEgRcbc=; b=lGH+EEFxnZtTzqtQdfDL1MaCRHOORyYdUPkRC7hAplrTkSAklXstyReJrkuw80sgFn yiHyTvUnF+lZc+7OdaOPT4vYKoekQeHwJcsbJFB0wIC/oXoD+r+Zp3q8I2+Nhx8Kdli1 1TEnSTsJLAN2HVkF5qagT1k4UHYhOd1EcafHB3yUWjW5uTHnEbw28UFuu0eWVP9uztEQ 2HjtoYGvrNpiNpxb0Y2/9hUHfWvmtm5qII0Qnd3PAlyARR3JqfqjJ+CsJ8fHMK/jawhr wgwPp0IITHAsyM6WUwXcXaQWBhFhs0leCPa3Kd/2rfH0CtCISjMqSBNJLT4HV6Y22tNZ UfXQ== X-Forwarded-Encrypted: i=1; AJvYcCWEXnKDfJye4nmIMkM2pL8vnige0g0+IMA2tRViyPMSeERVDcFnsmcqM42vLUd6ThVX8CYmc/pA95MjrCPXc3oc5U3KfoZXwiIzEnxu X-Gm-Message-State: AOJu0Yx6zNLYNP0X7gelwnzbFQ7CZf3laDgVZVcRYiLV2aSOrploXwPv IfhQ65QTUxn87LrNLP1rDujFO0XTKvfc7JtuwPSl2I799KlyE4AxSRP1WSOvA3Y= X-Received: by 2002:a05:600c:1e1b:b0:41a:7370:85ab with SMTP id ay27-20020a05600c1e1b00b0041a737085abmr4113391wmb.33.1713881270854; Tue, 23 Apr 2024 07:07:50 -0700 (PDT) Received: from myrica ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id o3-20020a05600c4fc300b00418f7605249sm18226069wmq.24.2024.04.23.07.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 07:07:50 -0700 (PDT) Date: Tue, 23 Apr 2024 15:08:03 +0100 From: Jean-Philippe Brucker To: Robin Murphy Cc: Will Deacon , Joerg Roedel , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, Rob Herring , Saravana Kannan , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , "Rafael J. Wysocki" , Len Brown Subject: Re: [PATCH 0/4] iommu: Remove iommu_fwspec ops Message-ID: <20240423140803.GA931103@myrica> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Apr 19, 2024 at 05:55:58PM +0100, Robin Murphy wrote: > Hi All, > > Building on top of the arch_setup_dma_ops() cleanup[1], the next step > down the chain is {acpi,of}_dma_configure()... There's plenty to do > here, but it may as well start with this fairly self-contained little > cleanup, pruning yet more redundancy and exposed API surface. Tested with QEMU: SMMUv3 DT/IORT, virtio-iommu builtin/module DT/VIOT arm64/x86 Tested-by: Jean-Philippe Brucker > > Thanks, > Robin. > > [1] https://lore.kernel.org/linux-iommu/cover.1713523152.git.robin.murphy@arm.com > > > Robin Murphy (4): > iommu: Resolve fwspec ops automatically > ACPI: Retire acpi_iommu_fwspec_ops() > OF: Simplify of_iommu_configure() > iommu: Remove iommu_fwspec ops > > drivers/acpi/arm64/iort.c | 19 +++------- > drivers/acpi/scan.c | 38 +++++--------------- > drivers/acpi/viot.c | 11 ++---- > drivers/iommu/arm/arm-smmu/arm-smmu.c | 3 +- > drivers/iommu/iommu-priv.h | 7 ++++ > drivers/iommu/iommu.c | 20 +++++------ > drivers/iommu/mtk_iommu_v1.c | 2 +- > drivers/iommu/of_iommu.c | 50 ++++++++++----------------- > drivers/iommu/tegra-smmu.c | 2 +- > drivers/of/device.c | 30 ++++++---------- > include/acpi/acpi_bus.h | 3 +- > include/linux/iommu.h | 15 ++------ > 12 files changed, 66 insertions(+), 134 deletions(-) > > -- > 2.39.2.101.g768bb238c484.dirty >