Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp256637ybt; Thu, 25 Jun 2020 21:33:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBfk37VwTo0h7Za1W5/8ouitgi4z/2Q07fleWrxdnncFCfjh1jjgXh6uhqu6L/cuFVQVu/ X-Received: by 2002:a17:906:2bd1:: with SMTP id n17mr912678ejg.147.1593146026496; Thu, 25 Jun 2020 21:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593146026; cv=none; d=google.com; s=arc-20160816; b=w54+t6FjXGXwXys0BxwKbIKCGAS4UMjWSZaiq/JarbbiwLh1W/7X/SwwfiDXlI11zx ge7K2aPw365kGIP9GbF+wWgzLeDWUNQaQYh9S0KUIwuHINBPSK1f/txQ1YvBxn8rEnal qyBJs5K9B0SSdHL5lqTSCfXfjs1m19TeipZdb6/WxUj4EIkZlyY2PcxOhJW4I2smZNSL FhM+BlTNjmGJetN0q9wbqKly5XhofunNn7hdMKbNG0fJ3o7N9xsOXEBw1JP9/bhXf6X3 TxsqIEJX3t7+e5SuX1DjDXBe6LI4hTweokafw+ZqEyHedcBxCalHGaMV2oA1hmlwf5GH ZPyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=uo+JSVhYTDvCZf7XIZ/u95KoeLyqGn7ATOJ0JQcKOAM=; b=dsCVWvJsKfZaHSxAtt6GxbS2X674KVCUsW5XDn6X4aoyYtRkFupfXlEsSIv+fHRLV8 FW9mRQqwDfQLty0QF5AMm9wP49tbzMfu12slUbzj7gVKho82P7Jie2NK6/pqg4FMqRFv oTImMp/+dryksLGKo0wjM3mEl2K/BLM1Na98vXMdjXOm6UCyTiyHA9j7XxgK5HxfJ9Tv bRFLK119t01a3wx3a/1w3xt5R/ghLwYFGkla+tFrQh19BwR4jH8eFlpCCYiRt8OkF5/w c5IlaYacN7KKnfsBnRd4+MRjt0p7VcTQvNGoj6Ow5oHksiNpUvZXkKkA463q9kuRvjer WSgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="X/eFoFsF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h23si10325380edv.18.2020.06.25.21.33.22; Thu, 25 Jun 2020 21:33:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="X/eFoFsF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727903AbgFZBlf (ORCPT + 99 others); Thu, 25 Jun 2020 21:41:35 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:38864 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727876AbgFZBle (ORCPT ); Thu, 25 Jun 2020 21:41:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593135691; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=uo+JSVhYTDvCZf7XIZ/u95KoeLyqGn7ATOJ0JQcKOAM=; b=X/eFoFsFmrSbMLbNmJKeyyAEAHG7l3ofIliReS4d7ekfU1heo0/igwtG+a387YlX7omkws p38azIUcV41Rp852YgHbuY8eI/G9xs2cv9MXEzh57/mHZhnJDM2S4ZnfDTV0CuMz8CJM5Q YYc4h10GBBAPXx+wkfFXgsnzXEo8JYs= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-168-y9irpUA-NJ2xdoE3guc8oA-1; Thu, 25 Jun 2020 21:41:29 -0400 X-MC-Unique: y9irpUA-NJ2xdoE3guc8oA-1 Received: by mail-qt1-f198.google.com with SMTP id c26so5390224qtq.6 for ; Thu, 25 Jun 2020 18:41:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=uo+JSVhYTDvCZf7XIZ/u95KoeLyqGn7ATOJ0JQcKOAM=; b=bMGsLsQNuFjpU05V3bFDZdnMorrTPNMeuNpXa6KXDz5XM1XjzsKUVBd3Cu7Wdez+M5 /fsfwf0X5zZ/zIH4Acl1kL3dmxsPzVBINPutzgHtIbYluVzmZdXbAwOp2qfZ5njasy5Y 38QoyoYV9jB81NXBp66tuA7yVzkYlrJkGcLwavhKGwL8jAMraWP8X4QaiZO+y6QQ53vL KWa+fKJW0EM0nCDDBw788lNFf5t9fF0EMrRfICINZDGqqkhGzzdRgaO1/lkwwyXR7RKb fBeI+FHSeTl9iOTOXucm4/XePLXcsYLMzLCAtwZ30ZMGrotShVdFjzq7CvoXko6gHeuo QxKA== X-Gm-Message-State: AOAM5313YlsLNIhxm9l3iU3qcomGJDo5lgnlxIgBHjbfm8qGqRIzj6lO kcCVsd6bBdooxjRVSVM5ByrBpABfVfwCjAmlI/zcvSgdsCYuj2wSVQEe7mJR0Y1u6PJlGv/xhEW lVHhZ28aZwTNF91BTjD94svzu X-Received: by 2002:ac8:4c88:: with SMTP id j8mr485587qtv.57.1593135689026; Thu, 25 Jun 2020 18:41:29 -0700 (PDT) X-Received: by 2002:ac8:4c88:: with SMTP id j8mr485566qtv.57.1593135688592; Thu, 25 Jun 2020 18:41:28 -0700 (PDT) Received: from localhost (ip70-163-223-149.ph.ph.cox.net. [70.163.223.149]) by smtp.gmail.com with ESMTPSA id 19sm7136347qke.44.2020.06.25.18.41.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 18:41:27 -0700 (PDT) Date: Thu, 25 Jun 2020 18:41:26 -0700 From: Jerry Snitselaar To: Joerg Roedel Cc: iommu@lists.linux-foundation.org, Russell King , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , x86@kernel.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Marek Szyprowski , David Woodhouse , Lu Baolu , Matthias Brugger , Heiko Stuebner , Thierry Reding , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, intel-gfx@lists.freedesktop.org, Joerg Roedel Subject: Re: [PATCH 00/13] iommu: Remove usage of dev->archdata.iommu Message-ID: <20200626014126.vbjw5jh7wqrpm4oc@cantor> Reply-To: Jerry Snitselaar Mail-Followup-To: Joerg Roedel , iommu@lists.linux-foundation.org, Russell King , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , x86@kernel.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Marek Szyprowski , David Woodhouse , Lu Baolu , Matthias Brugger , Heiko Stuebner , Thierry Reding , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, intel-gfx@lists.freedesktop.org, Joerg Roedel References: <20200625130836.1916-1-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <20200625130836.1916-1-joro@8bytes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu Jun 25 20, Joerg Roedel wrote: >From: Joerg Roedel > >Hi, > >here is a patch-set to remove the usage of dev->archdata.iommu from >the IOMMU code in the kernel and replace its uses by the iommu per-device >private data field. The changes also remove the field entirely from >the architectures which no longer need it. > >On PowerPC the field is called dev->archdata.iommu_domain and was only >used by the PAMU IOMMU driver. It gets removed as well. > >The patches have been runtime tested on Intel VT-d and compile tested >with allyesconfig for: > > * x86 (32 and 64 bit) > * arm and arm64 > * ia64 (only drivers/ because build failed for me in > arch/ia64) > * PPC64 > >Besides that the changes also survived my IOMMU tree compile tests. > >Please review. > >Regards, > > Joerg > >Joerg Roedel (13): > iommu/exynos: Use dev_iommu_priv_get/set() > iommu/vt-d: Use dev_iommu_priv_get/set() > iommu/msm: Use dev_iommu_priv_get/set() > iommu/omap: Use dev_iommu_priv_get/set() > iommu/rockchip: Use dev_iommu_priv_get/set() > iommu/tegra: Use dev_iommu_priv_get/set() > iommu/pamu: Use dev_iommu_priv_get/set() > iommu/mediatek: Do no use dev->archdata.iommu > x86: Remove dev->archdata.iommu pointer > ia64: Remove dev->archdata.iommu pointer > arm: Remove dev->archdata.iommu pointer > arm64: Remove dev->archdata.iommu pointer > powerpc/dma: Remove dev->archdata.iommu_domain > > arch/arm/include/asm/device.h | 3 --- > arch/arm64/include/asm/device.h | 3 --- > arch/ia64/include/asm/device.h | 3 --- > arch/powerpc/include/asm/device.h | 3 --- > arch/x86/include/asm/device.h | 3 --- > .../gpu/drm/i915/selftests/mock_gem_device.c | 10 ++++++++-- > drivers/iommu/exynos-iommu.c | 20 +++++++++---------- > drivers/iommu/fsl_pamu_domain.c | 8 ++++---- > drivers/iommu/intel/iommu.c | 18 ++++++++--------- > drivers/iommu/msm_iommu.c | 4 ++-- > drivers/iommu/mtk_iommu.h | 2 ++ > drivers/iommu/mtk_iommu_v1.c | 10 ++++------ > drivers/iommu/omap-iommu.c | 20 +++++++++---------- > drivers/iommu/rockchip-iommu.c | 8 ++++---- > drivers/iommu/tegra-gart.c | 8 ++++---- > drivers/iommu/tegra-smmu.c | 8 ++++---- > .../media/platform/s5p-mfc/s5p_mfc_iommu.h | 4 +++- > 17 files changed, 64 insertions(+), 71 deletions(-) > >-- >2.27.0 > Reviewed-by: Jerry Snitselaar