From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2458BC433E0 for ; Sat, 6 Mar 2021 00:04:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F38A06509A for ; Sat, 6 Mar 2021 00:04:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229631AbhCFAEV (ORCPT ); Fri, 5 Mar 2021 19:04:21 -0500 Received: from mail-ot1-f50.google.com ([209.85.210.50]:46698 "EHLO mail-ot1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbhCFAD7 (ORCPT ); Fri, 5 Mar 2021 19:03:59 -0500 Received: by mail-ot1-f50.google.com with SMTP id 97so3473289otf.13; Fri, 05 Mar 2021 16:03:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FCbBlEEqgxfjPjtQfKvWFaWJOfXoBc2uhQxuYQUH8F0=; b=GO0LtwNWRYb9u4XW25NfkPD3r/RhI52VXi+uLjQZXiRGoxB+UYP/kOBmc04kE4FFYp xQ8TS5N6gQdOD4dDJznuOcZs0SkR1SAqdon/N0PoVEtxASSFJ2iLpH7jvhmmaYFaVAbt nAnLsXtCODcHqzQoDNGsUZUPgFRILYQi29jlfVS5dbIFUOPXGruVY4X5rLIL1tUdaUqs RNk+GeJIAC3wus7jKOFUHHykqyHGAN8tohhg89Ykpg6SBn8AUdHHKl6O2kLXhcm44id3 dD5r3s4fYbhvyADD7OenDthaRClQI63h3MSxhSChP33x6zliEG6nyZ6dV4zBbf0DqTad 7ZPA== X-Gm-Message-State: AOAM532Flxfhqx+QmMTvX64ZHEOPYkiGp3QpkKLpzzPqWCKNLQZzu/Vk xqAIXJJUJQWjNtJ4WUzk36oUbcidzU4uWw== X-Google-Smtp-Source: ABdhPJyXvrdIbaJFHWm44DBCGnI1b4zn6+CHh1kzE5vAHgRbojumfT5/HghxSzgA/e0GigtlZ/hwCg== X-Received: by 2002:a9d:7ac1:: with SMTP id m1mr6652621otn.186.1614989038139; Fri, 05 Mar 2021 16:03:58 -0800 (PST) Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com. [209.85.167.172]) by smtp.gmail.com with ESMTPSA id v3sm847536oix.48.2021.03.05.16.03.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Mar 2021 16:03:57 -0800 (PST) Received: by mail-oi1-f172.google.com with SMTP id y131so1550429oia.8; Fri, 05 Mar 2021 16:03:56 -0800 (PST) X-Received: by 2002:a54:4794:: with SMTP id o20mr9228337oic.51.1614989036851; Fri, 05 Mar 2021 16:03:56 -0800 (PST) MIME-Version: 1.0 References: <20210301084257.945454-1-hch@lst.de> In-Reply-To: <20210301084257.945454-1-hch@lst.de> From: Li Yang Date: Fri, 5 Mar 2021 18:03:45 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: cleanup unused or almost unused IOMMU APIs and the FSL PAMU driver To: Christoph Hellwig Cc: Joerg Roedel , Will Deacon , freedreno@lists.freedesktop.org, kvm@vger.kernel.org, linuxppc-dev , dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, Linux IOMMU , Netdev , linux-arm-msm , David Woodhouse , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Lu Baolu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Mon, Mar 1, 2021 at 2:44 AM Christoph Hellwig wrote: > > Hi all, > > there are a bunch of IOMMU APIs that are entirely unused, or only used as > a private communication channel between the FSL PAMU driver and it's only > consumer, the qbman portal driver. > > So this series drops a huge chunk of entirely unused FSL PAMU > functionality, then drops all kinds of unused IOMMU APIs, and then > replaces what is left of the iommu_attrs with properly typed, smaller > and easier to use specific APIs. It looks like the unused APIs were added for functionality that were never completed later on. So Acked-by: Li Yang > > Diffstat: > arch/powerpc/include/asm/fsl_pamu_stash.h | 12 > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 2 > drivers/iommu/amd/iommu.c | 23 > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 85 --- > drivers/iommu/arm/arm-smmu/arm-smmu.c | 122 +--- > drivers/iommu/dma-iommu.c | 8 > drivers/iommu/fsl_pamu.c | 264 ---------- > drivers/iommu/fsl_pamu.h | 10 > drivers/iommu/fsl_pamu_domain.c | 694 ++-------------------------- > drivers/iommu/fsl_pamu_domain.h | 46 - > drivers/iommu/intel/iommu.c | 55 -- > drivers/iommu/iommu.c | 75 --- > drivers/soc/fsl/qbman/qman_portal.c | 56 -- > drivers/vfio/vfio_iommu_type1.c | 31 - > drivers/vhost/vdpa.c | 10 > include/linux/iommu.h | 81 --- > 16 files changed, 214 insertions(+), 1360 deletions(-) From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E9E7C433DB for ; Sat, 6 Mar 2021 00:04:23 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4DA866509A for ; Sat, 6 Mar 2021 00:04:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4DA866509A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4DslFw5mLdz3dGx for ; Sat, 6 Mar 2021 11:04:20 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=209.85.210.42; helo=mail-ot1-f42.google.com; envelope-from=pku.leo@gmail.com; receiver=) Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4DslFZ1XkZz3cJY for ; Sat, 6 Mar 2021 11:04:01 +1100 (AEDT) Received: by mail-ot1-f42.google.com with SMTP id b8so3506706oti.7 for ; Fri, 05 Mar 2021 16:04:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FCbBlEEqgxfjPjtQfKvWFaWJOfXoBc2uhQxuYQUH8F0=; b=gHJVOu8CHyC4LkOOe2uVi5sOxxPa8+TceETilvrZuw+Lk4v2Z5JIFQpYSfvT63QSKy 0dK/e2OHB8RhZAy1wQsPHwgIS7ZnKPY+pG75Y+qyw+pAS11v33cmxP50xSKuMv5qg/sS musC46Mn12lSWSsAxbRnnnjdn7DyJqkFHnSffNBUUMPLhvb40Dk9Sl5WWX50EevF/fLr mpVB/Y9TgSb2Sy5CVYTocuJt609zCSVbzf12ziKXc6AbNomxVz8//g/itdqOb+s+Lgsk srFWUF93Q5XZdKdNLSVeT4C8lVflrfMV2j34AbLUNc/1zG3hOs+3JSlE+ItfU/Yi24gp cvQg== X-Gm-Message-State: AOAM533EO9+MLogJDbESgg1XdevqfcuQao3FFsYbC6sc0K/YoaQSBiHJ G+O4bT86esb+G3Zj9TFDsP9iVAlClEjVbw== X-Google-Smtp-Source: ABdhPJziiRF0LUOXdpdJ44wHL0ncfsnx4e5XOstUc1IkzuGT7GN7TGFhYs3mAjHGOF1FNc1xB+Z7bQ== X-Received: by 2002:a05:6830:22c5:: with SMTP id q5mr2804262otc.359.1614989038261; Fri, 05 Mar 2021 16:03:58 -0800 (PST) Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com. [209.85.167.180]) by smtp.gmail.com with ESMTPSA id v22sm930852otj.57.2021.03.05.16.03.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Mar 2021 16:03:57 -0800 (PST) Received: by mail-oi1-f180.google.com with SMTP id d20so4420450oiw.10 for ; Fri, 05 Mar 2021 16:03:56 -0800 (PST) X-Received: by 2002:a54:4794:: with SMTP id o20mr9228337oic.51.1614989036851; Fri, 05 Mar 2021 16:03:56 -0800 (PST) MIME-Version: 1.0 References: <20210301084257.945454-1-hch@lst.de> In-Reply-To: <20210301084257.945454-1-hch@lst.de> From: Li Yang Date: Fri, 5 Mar 2021 18:03:45 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: cleanup unused or almost unused IOMMU APIs and the FSL PAMU driver To: Christoph Hellwig Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kvm@vger.kernel.org, Will Deacon , Joerg Roedel , linuxppc-dev , dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, Linux IOMMU , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Netdev , freedreno@lists.freedesktop.org, David Woodhouse , linux-arm-msm , Lu Baolu Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Mon, Mar 1, 2021 at 2:44 AM Christoph Hellwig wrote: > > Hi all, > > there are a bunch of IOMMU APIs that are entirely unused, or only used as > a private communication channel between the FSL PAMU driver and it's only > consumer, the qbman portal driver. > > So this series drops a huge chunk of entirely unused FSL PAMU > functionality, then drops all kinds of unused IOMMU APIs, and then > replaces what is left of the iommu_attrs with properly typed, smaller > and easier to use specific APIs. It looks like the unused APIs were added for functionality that were never completed later on. So Acked-by: Li Yang > > Diffstat: > arch/powerpc/include/asm/fsl_pamu_stash.h | 12 > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 2 > drivers/iommu/amd/iommu.c | 23 > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 85 --- > drivers/iommu/arm/arm-smmu/arm-smmu.c | 122 +--- > drivers/iommu/dma-iommu.c | 8 > drivers/iommu/fsl_pamu.c | 264 ---------- > drivers/iommu/fsl_pamu.h | 10 > drivers/iommu/fsl_pamu_domain.c | 694 ++-------------------------- > drivers/iommu/fsl_pamu_domain.h | 46 - > drivers/iommu/intel/iommu.c | 55 -- > drivers/iommu/iommu.c | 75 --- > drivers/soc/fsl/qbman/qman_portal.c | 56 -- > drivers/vfio/vfio_iommu_type1.c | 31 - > drivers/vhost/vdpa.c | 10 > include/linux/iommu.h | 81 --- > 16 files changed, 214 insertions(+), 1360 deletions(-) From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5307FC433E0 for ; Sat, 6 Mar 2021 00:04:04 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BF0E5650AC for ; Sat, 6 Mar 2021 00:04:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BF0E5650AC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 78F0B6FB9C; Sat, 6 Mar 2021 00:04:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oU6Q5nhaNiAB; Sat, 6 Mar 2021 00:04:02 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTP id 6A864605ED; Sat, 6 Mar 2021 00:04:02 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 37BC8C000A; Sat, 6 Mar 2021 00:04:02 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 6B421C0001; Sat, 6 Mar 2021 00:04:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5744F60596; Sat, 6 Mar 2021 00:04:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e1aKdaDFiRBo; Sat, 6 Mar 2021 00:03:59 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) by smtp3.osuosl.org (Postfix) with ESMTPS id A7E9360017; Sat, 6 Mar 2021 00:03:59 +0000 (UTC) Received: by mail-ot1-f41.google.com with SMTP id j8so3546427otc.0; Fri, 05 Mar 2021 16:03:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FCbBlEEqgxfjPjtQfKvWFaWJOfXoBc2uhQxuYQUH8F0=; b=bzcfT0peu5CTKW+UHdJvcXy1IW420ImswRbHwIN8TnkeEhNARI9B01ljtZ6hCqfY6s XgPY38UTKR7Fi0QK8WAsHNxOPEiRvcq5HGrPy1efOShAu8S4xyHeY1hcPFju1wRAVhsK IjnDYXq0YBTNldOZxEHHaEDlFEtKThHZwxt0n0T0FZZfufGgDbhaWp5aKT16CEGMW5Tr kpRVMAtYXgRSxEO1phY4ZPoyk7LWf2KcDPHku2Pcng0J++Wf1iNUAYMnoI3i5FRGlIpV HkIdUsSgcI7m1/ZjXLo3LH7CGmA0pejMkxj4irxzYwgK+N/jAV0ah4EgbyXcKECmSVWA DPzg== X-Gm-Message-State: AOAM532nEpnR5OAWEyLEVWJJu04TKYGMJMe5WL7Eu5ogH5GSbq8u4MCA izhDOPCTGl14CVuE8bBTRlNqZMp3St6AGg== X-Google-Smtp-Source: ABdhPJwJsbz6pcu6ZxpziZ0YYH4K9ex/xGljDIUiWdx64IOuv0RM6RnGCd4e5oQu1lPV0gziK0b+eQ== X-Received: by 2002:a9d:80e:: with SMTP id 14mr10184078oty.211.1614989038181; Fri, 05 Mar 2021 16:03:58 -0800 (PST) Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com. [209.85.167.178]) by smtp.gmail.com with ESMTPSA id m14sm340814otn.69.2021.03.05.16.03.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Mar 2021 16:03:57 -0800 (PST) Received: by mail-oi1-f178.google.com with SMTP id a13so4490496oid.0; Fri, 05 Mar 2021 16:03:56 -0800 (PST) X-Received: by 2002:a54:4794:: with SMTP id o20mr9228337oic.51.1614989036851; Fri, 05 Mar 2021 16:03:56 -0800 (PST) MIME-Version: 1.0 References: <20210301084257.945454-1-hch@lst.de> In-Reply-To: <20210301084257.945454-1-hch@lst.de> From: Li Yang Date: Fri, 5 Mar 2021 18:03:45 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: cleanup unused or almost unused IOMMU APIs and the FSL PAMU driver To: Christoph Hellwig Cc: kvm@vger.kernel.org, Will Deacon , linuxppc-dev , dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, Linux IOMMU , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Netdev , freedreno@lists.freedesktop.org, David Woodhouse , linux-arm-msm X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Mon, Mar 1, 2021 at 2:44 AM Christoph Hellwig wrote: > > Hi all, > > there are a bunch of IOMMU APIs that are entirely unused, or only used as > a private communication channel between the FSL PAMU driver and it's only > consumer, the qbman portal driver. > > So this series drops a huge chunk of entirely unused FSL PAMU > functionality, then drops all kinds of unused IOMMU APIs, and then > replaces what is left of the iommu_attrs with properly typed, smaller > and easier to use specific APIs. It looks like the unused APIs were added for functionality that were never completed later on. So Acked-by: Li Yang > > Diffstat: > arch/powerpc/include/asm/fsl_pamu_stash.h | 12 > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 2 > drivers/iommu/amd/iommu.c | 23 > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 85 --- > drivers/iommu/arm/arm-smmu/arm-smmu.c | 122 +--- > drivers/iommu/dma-iommu.c | 8 > drivers/iommu/fsl_pamu.c | 264 ---------- > drivers/iommu/fsl_pamu.h | 10 > drivers/iommu/fsl_pamu_domain.c | 694 ++-------------------------- > drivers/iommu/fsl_pamu_domain.h | 46 - > drivers/iommu/intel/iommu.c | 55 -- > drivers/iommu/iommu.c | 75 --- > drivers/soc/fsl/qbman/qman_portal.c | 56 -- > drivers/vfio/vfio_iommu_type1.c | 31 - > drivers/vhost/vdpa.c | 10 > include/linux/iommu.h | 81 --- > 16 files changed, 214 insertions(+), 1360 deletions(-) _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCACDC433E0 for ; Sat, 6 Mar 2021 00:05:47 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 55BC1650AA for ; Sat, 6 Mar 2021 00:05:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 55BC1650AA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5j0uKOkCuU1wWq6V3EE92ENWh2lm0nn1qdFQZd5Wkeo=; b=VHDO7ws6zHBk3igxLueS6fUN9 hcWTnPGGd7f4X3GWMptXDm/cCXRNTTnhU8jPZS/hsWUp6eCL8msQK6PlFW3SBQ2ZiCgYISwq9aDQp 7tnfgD8yYfBbOerouv5XCFqcHhqLjlAGRnHVcK1J7YwQB/boPOxsQzJXluw55hUjw2nzax3K2fSd1 +iN+ICFDUvyTHFwNtfbeNyHaIg4A50OOZ8UvPgP3EyeD/Spz5NJGzdMOzUNqmsyTuwrhFG+bxLMLR Vp7o55FOsNOFpUhdcNKQZQ90/nFLcL30vNvLFs+o1ozl/cODdSFBBpp5Uc0VPbjaEH6E8JqkNQvul TCAtKEv0A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lIKQO-00HGUJ-Vd; Sat, 06 Mar 2021 00:04:05 +0000 Received: from mail-oi1-f169.google.com ([209.85.167.169]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lIKQK-00HGSt-OH for linux-arm-kernel@lists.infradead.org; Sat, 06 Mar 2021 00:04:02 +0000 Received: by mail-oi1-f169.google.com with SMTP id y131so1550532oia.8 for ; Fri, 05 Mar 2021 16:03:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FCbBlEEqgxfjPjtQfKvWFaWJOfXoBc2uhQxuYQUH8F0=; b=trjLsOaeHfaCkYBVSAZmRSoxFsno+q+uWweESXiHjQkm9U3iENQfyXgs4tUdre3RaR Cu+Rg1JbedJeI1ZCq6cNu91Dd0JPHH0Z8AcUC2JZlZMTBI8q8bFvwzgtT2ORfiC2DjUy 1i7YOo0VhPt6EuUVhSdB6UEwG3IvFca99iVvaclx5SEhD6Dtsn4GuYK3hlQqZj+YtO/A vEO21MSn/SF2Dps/0E8F/UT0dEKTiusoAbx1l1DCKGBho1PVj/LG8D/5pRcnLAhe3duO 2yTuhQmSFowlzGA7MO9Z9wpCNBMiiIKJODENRhqS8wNIQeaf1kr3Oo2K5L9AxOiqJATj oCIg== X-Gm-Message-State: AOAM530BJL97IPuJlXV9et5tvB3GGnaru8eTqfO4xu0juQjMPbdlVUGC hYCoTk3ZpUGa3qeVsNMZ6k6zz22q+0HJ5w== X-Google-Smtp-Source: ABdhPJyjyq8n7DGeoJyDa/FXk3pfktVwz8EdY6uSMHaH3SYYpW2L+EmSmLCXSFivO8ka2M1tkE0GQg== X-Received: by 2002:a05:6808:24d:: with SMTP id m13mr8818655oie.165.1614989038425; Fri, 05 Mar 2021 16:03:58 -0800 (PST) Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com. [209.85.167.173]) by smtp.gmail.com with ESMTPSA id s33sm870003ooi.39.2021.03.05.16.03.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Mar 2021 16:03:57 -0800 (PST) Received: by mail-oi1-f173.google.com with SMTP id i21so4465322oii.2 for ; Fri, 05 Mar 2021 16:03:56 -0800 (PST) X-Received: by 2002:a54:4794:: with SMTP id o20mr9228337oic.51.1614989036851; Fri, 05 Mar 2021 16:03:56 -0800 (PST) MIME-Version: 1.0 References: <20210301084257.945454-1-hch@lst.de> In-Reply-To: <20210301084257.945454-1-hch@lst.de> From: Li Yang Date: Fri, 5 Mar 2021 18:03:45 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: cleanup unused or almost unused IOMMU APIs and the FSL PAMU driver To: Christoph Hellwig Cc: Joerg Roedel , Will Deacon , freedreno@lists.freedesktop.org, kvm@vger.kernel.org, linuxppc-dev , dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, Linux IOMMU , Netdev , linux-arm-msm , David Woodhouse , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Lu Baolu X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210306_000400_965764_F9229B80 X-CRM114-Status: GOOD ( 18.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Mar 1, 2021 at 2:44 AM Christoph Hellwig wrote: > > Hi all, > > there are a bunch of IOMMU APIs that are entirely unused, or only used as > a private communication channel between the FSL PAMU driver and it's only > consumer, the qbman portal driver. > > So this series drops a huge chunk of entirely unused FSL PAMU > functionality, then drops all kinds of unused IOMMU APIs, and then > replaces what is left of the iommu_attrs with properly typed, smaller > and easier to use specific APIs. It looks like the unused APIs were added for functionality that were never completed later on. So Acked-by: Li Yang > > Diffstat: > arch/powerpc/include/asm/fsl_pamu_stash.h | 12 > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 2 > drivers/iommu/amd/iommu.c | 23 > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 85 --- > drivers/iommu/arm/arm-smmu/arm-smmu.c | 122 +--- > drivers/iommu/dma-iommu.c | 8 > drivers/iommu/fsl_pamu.c | 264 ---------- > drivers/iommu/fsl_pamu.h | 10 > drivers/iommu/fsl_pamu_domain.c | 694 ++-------------------------- > drivers/iommu/fsl_pamu_domain.h | 46 - > drivers/iommu/intel/iommu.c | 55 -- > drivers/iommu/iommu.c | 75 --- > drivers/soc/fsl/qbman/qman_portal.c | 56 -- > drivers/vfio/vfio_iommu_type1.c | 31 - > drivers/vhost/vdpa.c | 10 > include/linux/iommu.h | 81 --- > 16 files changed, 214 insertions(+), 1360 deletions(-) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E6DEC433DB for ; Sat, 6 Mar 2021 10:04:59 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D722D65018 for ; Sat, 6 Mar 2021 10:04:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D722D65018 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 95D816E4E8; Sat, 6 Mar 2021 10:04:48 +0000 (UTC) Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) by gabe.freedesktop.org (Postfix) with ESMTPS id A714D6ECAA; Sat, 6 Mar 2021 00:03:59 +0000 (UTC) Received: by mail-ot1-f54.google.com with SMTP id h22so3509920otr.6; Fri, 05 Mar 2021 16:03:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FCbBlEEqgxfjPjtQfKvWFaWJOfXoBc2uhQxuYQUH8F0=; b=UEPylbni3xQLvOVRt8gQRymTS37ytSahh4ebfQy+BGX/tOBXPJgHEgAJx/B13HMSFP b2ZrDeF1fzfUB4cgxwIhwABKQkKIkW+TBxoKZrAnqhUlimp3Ms/gMEadfD+KdRzXSx1n exMIbZQ3epR+nt+eDIB2iAFnygFB5gdHv/IPjZmI1sEd8got7yhzuocEQOFleEE9kk1u 7Xe6I9Lo1YEHfXlE/90JL9SVLXV64rxVSDMcq+G89CxaC8dDPQuU3EqLvS8soJZvknlK YFO6XBHpvtO4jCgg51N6wBFonFQ8hw6OffNeJwiwPLFQJOjeN5XQ4u7TPC1NA7xECLjk zWOw== X-Gm-Message-State: AOAM531SHO2Tdp++EOKuXCLVUt4lFICYHCJJcKKDUsGqbroEMYwFpvWR 9HkEnd0r34iVzIhwwP3Ul9IP8buMmjYECA== X-Google-Smtp-Source: ABdhPJzRKzsBPykuIWvPs6D0/mVp6QfrzfuTLzcU4fKlvNZ/0BrLG9XMzEOrDTHlSF1F9IcBXVzQDQ== X-Received: by 2002:a05:6830:1057:: with SMTP id b23mr10458873otp.206.1614989038345; Fri, 05 Mar 2021 16:03:58 -0800 (PST) Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com. [209.85.167.182]) by smtp.gmail.com with ESMTPSA id n11sm859656oij.51.2021.03.05.16.03.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Mar 2021 16:03:57 -0800 (PST) Received: by mail-oi1-f182.google.com with SMTP id m25so4396696oie.12; Fri, 05 Mar 2021 16:03:56 -0800 (PST) X-Received: by 2002:a54:4794:: with SMTP id o20mr9228337oic.51.1614989036851; Fri, 05 Mar 2021 16:03:56 -0800 (PST) MIME-Version: 1.0 References: <20210301084257.945454-1-hch@lst.de> In-Reply-To: <20210301084257.945454-1-hch@lst.de> From: Li Yang Date: Fri, 5 Mar 2021 18:03:45 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: cleanup unused or almost unused IOMMU APIs and the FSL PAMU driver To: Christoph Hellwig X-Mailman-Approved-At: Sat, 06 Mar 2021 10:04:47 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kvm@vger.kernel.org, Will Deacon , Joerg Roedel , linuxppc-dev , dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, Linux IOMMU , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Netdev , freedreno@lists.freedesktop.org, David Woodhouse , linux-arm-msm , Lu Baolu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Mon, Mar 1, 2021 at 2:44 AM Christoph Hellwig wrote: > > Hi all, > > there are a bunch of IOMMU APIs that are entirely unused, or only used as > a private communication channel between the FSL PAMU driver and it's only > consumer, the qbman portal driver. > > So this series drops a huge chunk of entirely unused FSL PAMU > functionality, then drops all kinds of unused IOMMU APIs, and then > replaces what is left of the iommu_attrs with properly typed, smaller > and easier to use specific APIs. It looks like the unused APIs were added for functionality that were never completed later on. So Acked-by: Li Yang > > Diffstat: > arch/powerpc/include/asm/fsl_pamu_stash.h | 12 > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 2 > drivers/iommu/amd/iommu.c | 23 > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 85 --- > drivers/iommu/arm/arm-smmu/arm-smmu.c | 122 +--- > drivers/iommu/dma-iommu.c | 8 > drivers/iommu/fsl_pamu.c | 264 ---------- > drivers/iommu/fsl_pamu.h | 10 > drivers/iommu/fsl_pamu_domain.c | 694 ++-------------------------- > drivers/iommu/fsl_pamu_domain.h | 46 - > drivers/iommu/intel/iommu.c | 55 -- > drivers/iommu/iommu.c | 75 --- > drivers/soc/fsl/qbman/qman_portal.c | 56 -- > drivers/vfio/vfio_iommu_type1.c | 31 - > drivers/vhost/vdpa.c | 10 > include/linux/iommu.h | 81 --- > 16 files changed, 214 insertions(+), 1360 deletions(-) _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel