Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp820326ybm; Wed, 27 May 2020 08:47:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiZco6ii8gVMc1cGabPTgLY38IfjDhSvTy5WswwQQ27jd0NiEDpacsJx5s1XF4d3+qXz+V X-Received: by 2002:a17:906:195a:: with SMTP id b26mr6632405eje.534.1590594430614; Wed, 27 May 2020 08:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590594430; cv=none; d=google.com; s=arc-20160816; b=DkmkJFj+aQMhNlImzRcthNuXiZvtFcB552/5XK+vORZTGJ/A0kLi2pqigYdhwUM/+I ksDkvTJK3HaMhAVcvoUQDN7/lCM6V5p/zkt9vqO/cwDJS23nF4HOOKIkq5KFdKKLJgti ASH6+r31a14lR0barBlxbfRnYq8WqhrwfvpDKfQ7/xUnyhQRM+6rxxoWwy3Noux2ZfAn NrvBhtTs/of237C8fPHtrNi0CByWkX6SMLDRguI4z2iS2vuDdP3SaEAiIegLT23TcZ/U dsEWp7QWQPXbQ7KWr6KT1GsYc2pjBYtMcRPiK//EEpGhiF+P/CRpgRzBPyPZdKoZa+eV HbRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=UtYDHSi6xX2PFVL5XFmOMA7T+a5k7n8tmGbdjQpfbXA=; b=Hss5ukM7+HkqzVEzqSBm5oeAkHSRUZzexzkQXdAt5IA7netTBqdSf/B/X7dXIKAL+p Z6hw/j1sAcYRF+qLZ9rAdDZLUwhAW8ywBhCjubVW3gu/MJYU4enx7iLEpDv//BoPFx4Z xJFAX2JdFKGOjzByezliePHuDV9aM3me2pTxlMab2jAWOiMFwDm0WjmNNUBeZXaTucZ2 2fOic8jvJg2YSRkqhekzrBrllAa+1dZDhGCyTc3JOCYOc6g8ZJuOwaXsLhvWlxHSNaRe o8WD35/Nq/3uRaz0i5cpjKWSpTiKR/tVxGj/KoIE1+ZuRPvVabXiWql+vI8sneyLzDXe 4hoQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn4si1525114ejb.124.2020.05.27.08.46.46; Wed, 27 May 2020 08:47:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728872AbgE0Lxa (ORCPT + 99 others); Wed, 27 May 2020 07:53:30 -0400 Received: from 8bytes.org ([81.169.241.247]:44868 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728669AbgE0Lx1 (ORCPT ); Wed, 27 May 2020 07:53:27 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 4D05D374; Wed, 27 May 2020 13:53:23 +0200 (CEST) From: Joerg Roedel To: Joerg Roedel Cc: linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Suravee Suthikulpanit , jroedel@suse.de Subject: [PATCH 00/10] iommu/amd: Updates and Cleanups Date: Wed, 27 May 2020 13:53:03 +0200 Message-Id: <20200527115313.7426-1-joro@8bytes.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, here is a collection of patches that clean up a few things in the AMD IOMMU driver. Foremost, it moves all related files of the driver into a separate subdirectory. But the patches also remove usage of dev->archdata.iommu and clean up dev_data handling and domain allocation. Patches are runtime-tested, including device-assignment. Please review. Regards, Joerg Joerg Roedel (10): iommu/amd: Move AMD IOMMU driver to a subdirectory iommu/amd: Unexport get_dev_data() iommu/amd: Let free_pagetable() not rely on domain->pt_root iommu/amd: Allocate page-table in protection_domain_init() iommu/amd: Free page-table in protection_domain_free() iommu/amd: Consolidate domain allocation/freeing iommu/amd: Remove PD_DMA_OPS_MASK iommu/amd: Merge private header files iommu/amd: Store dev_data as device iommu private data iommu/amd: Remove redundant devid checks MAINTAINERS | 2 +- drivers/iommu/Makefile | 6 +- .../{amd_iommu_proto.h => amd/amd_iommu.h} | 20 +- drivers/iommu/{ => amd}/amd_iommu_types.h | 0 .../{amd_iommu_debugfs.c => amd/debugfs.c} | 5 +- .../iommu/{amd_iommu_init.c => amd/init.c} | 6 +- drivers/iommu/{amd_iommu.c => amd/iommu.c} | 265 ++++++------------ .../iommu/{amd_iommu_v2.c => amd/iommu_v2.c} | 14 +- .../{amd_iommu_quirks.c => amd/quirks.c} | 0 drivers/iommu/amd_iommu.h | 14 - 10 files changed, 117 insertions(+), 215 deletions(-) rename drivers/iommu/{amd_iommu_proto.h => amd/amd_iommu.h} (88%) rename drivers/iommu/{ => amd}/amd_iommu_types.h (100%) rename drivers/iommu/{amd_iommu_debugfs.c => amd/debugfs.c} (89%) rename drivers/iommu/{amd_iommu_init.c => amd/init.c} (99%) rename drivers/iommu/{amd_iommu.c => amd/iommu.c} (95%) rename drivers/iommu/{amd_iommu_v2.c => amd/iommu_v2.c} (98%) rename drivers/iommu/{amd_iommu_quirks.c => amd/quirks.c} (100%) delete mode 100644 drivers/iommu/amd_iommu.h -- 2.17.1