Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp343155pxf; Thu, 25 Mar 2021 05:35:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGAL98K9mmGwaX/GNVyxyDc5MIXP6S4i5ZEM6h2vWrCOhEFoFKAq5vJ03cWBzU0QGfHsd0 X-Received: by 2002:a17:906:4a50:: with SMTP id a16mr9396882ejv.256.1616675744335; Thu, 25 Mar 2021 05:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616675744; cv=none; d=google.com; s=arc-20160816; b=NJFN+vlqfVedv4aoArX82ym0xcvMUUsmvrnRpsenBECOCVPqFeKXafoAGh4EdqaIgY n+56CI9RMOjmWz1d3uQE9LCB0zDLiTvy5SLIQw4Rgo5VbfM2DNMiwDDHAaXErUSrdIC6 5WAyosCNUvAAZ7mcbZVlBsaezqGSd88uJlrnL5PsSOl/8jmQcV2DlMHE5eG+N2zWPhp/ +8+AzCsAWtbYLZ5PYacx67xCCQOSgYG4pQbcn6Vv/rWlLbGmNrn2fUaVWAyUB3QLe6Yr KyD8xJCFZplfxqTW+wOwftCB7pJlv1UOvwONKI36cTt9kZpb2ecThudaNwL8NTR2tkHD 044Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Jwc1GavMTRPKlZrNX+HVHiPFEYN37IDNhgAAiMicEY0=; b=08xf26oBCWAnMNeQdqvPWow0c2ImRe9L2lm1RpoAS0ZIgQKB9Nz9QLcdNMFW5s42fV Vyq+3RNfi78lN+RJ+Hsy0YcM8Pb9B2H4LWg1A2pQDZJDSiyY03eohSbNNx+BwbeLhQhb VTTVdZwMbPSSZbph7CW3UNgG1u/PMhjf6CurRmQKyjXxQLj/SIeBXvStaQkoylwLKSGu itQ018BpvpV90GenRFi4c/eaOOaSpNIuGj8id18c1pdWwD6zBn3EMUVs/y5VWFNsKOmP 5yd7L6ugGSI6zBDEprwBDsHpxFuPMjuVgp4NJXyznkDLmTwVyTwZx1xAOI2Ynur/k+oc 3RQg== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si4241652edx.180.2021.03.25.05.35.20; Thu, 25 Mar 2021 05:35:44 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230347AbhCYMe3 (ORCPT + 99 others); Thu, 25 Mar 2021 08:34:29 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14536 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229764AbhCYMeR (ORCPT ); Thu, 25 Mar 2021 08:34:17 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F5kxW07yFzPlr5; Thu, 25 Mar 2021 20:31:43 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Thu, 25 Mar 2021 20:34:07 +0800 From: John Garry To: , , , , CC: , , , John Garry Subject: [PATCH v2 0/4] iommu/iova: Add CPU hotplug handler to flush rcaches to core code Date: Thu, 25 Mar 2021 20:29:57 +0800 Message-ID: <1616675401-151997-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Intel IOMMU driver supports flushing the per-CPU rcaches when a CPU is offlined. Let's move it to core code, so everyone can take advantage. Also throw in a patch to stop exporting free_iova_fast(). Differences to v1: - Add RB tags (thanks!) - Add patch to stop exporting free_iova_fast() - Drop patch to correct comment - Add patch to delete iommu_dma_free_cpu_cached_iovas() and associated changes John Garry (4): iova: Add CPU hotplug handler to flush rcaches iommu/vt-d: Remove IOVA domain rcache flushing for CPU offlining iommu: Delete iommu_dma_free_cpu_cached_iovas() iommu: Stop exporting free_iova_fast() drivers/iommu/dma-iommu.c | 9 --------- drivers/iommu/intel/iommu.c | 31 ------------------------------- drivers/iommu/iova.c | 34 +++++++++++++++++++++++++++++++--- include/linux/cpuhotplug.h | 2 +- include/linux/dma-iommu.h | 8 -------- include/linux/iova.h | 6 +----- 6 files changed, 33 insertions(+), 57 deletions(-) -- 2.26.2