Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp813552pxb; Thu, 15 Apr 2021 07:14:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS9nn36XVMBgr2TWEcJgXfCZYxrwqZNcaoeVz3KGhhetjW1uegxqquB23Tel0ZHDYJtO6T X-Received: by 2002:a17:90a:5311:: with SMTP id x17mr4051734pjh.25.1618496061889; Thu, 15 Apr 2021 07:14:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618496061; cv=none; d=google.com; s=arc-20160816; b=fN84O22zQYLZwSJDG2S6wXN/bWx4cfLshHd7hXG/Mq576C+p37f5gVZ0RLPdUEzM0U +PtKgIf5U2bsdQs3UopFoFp5IZMr/xqBRVL/pJ7v5w9jyG9HRNPSDh8HIf5ilpjed4Vh cYVV0XcG+N2I1hhfRY7UF42ILy64nny8dkTdT4oZ9qD59z3wrVIGTdCdTTDimIxSO8UK IqLdYGMEQW9Wvf8Y2of8iNwUID06JN++HD5u1hBai6+dXZcQ8Yqeq8CE8RYMugfFnS0I pij6MiWFZQf9GVtJs46yHtwFgBUCtjmJia3TJ0Fdtdfz15pIl5iTFBE+fkARYqqYUlp5 Abgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Qg9jeqhNdZTyJ1HVYHVxggi/EF/QGTJyNFIx19uVzjc=; b=bFJwNx4+NVAZd71OjE/7FQm7Xr3Xy8Rux/WAzMiu8M9MzuuUSina4Oky7XvRc7ljT8 yS4YNrZ9LBVeBPjzLeBjFjEiJFAgTi8OJhsOaDEQrwA+oQndkukkENVW9L3ajkqKG82/ pGwycI5vnzBXi+77l+BKEIncC9ImlegX1TnknzbA+295o9NiaFlFkQNyv7ET7QbDqx46 rpBZSyirMhCJSc1VYtF6Ypni1HL35YjO7PB7AAq0xe1oPjFVnsnlohGbyJ21q5jJYsP+ 2qECm+YoL5BqmH0CXN0Kll77rSO7tiBPWb+sV+4Cr3ejjU0cGmtG6DBHqicdjWijqZHG QtMQ== 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 gp12si3266049pjb.169.2021.04.15.07.14.09; Thu, 15 Apr 2021 07:14:21 -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 S233247AbhDOONq (ORCPT + 99 others); Thu, 15 Apr 2021 10:13:46 -0400 Received: from 8bytes.org ([81.169.241.247]:35078 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231391AbhDOONo (ORCPT ); Thu, 15 Apr 2021 10:13:44 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id C1A0F386; Thu, 15 Apr 2021 16:13:20 +0200 (CEST) Date: Thu, 15 Apr 2021 16:13:19 +0200 From: Joerg Roedel To: "Longpeng(Mike)" Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, David Woodhouse , Lu Baolu , Nadav Amit , Alex Williamson , Kevin Tian , Gonglei , stable@vger.kernel.org Subject: Re: [PATCH v2] iommu/vt-d: Force to flush iotlb before creating superpage Message-ID: References: <20210415004628.1779-1-longpeng2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210415004628.1779-1-longpeng2@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 15, 2021 at 08:46:28AM +0800, Longpeng(Mike) wrote: > Fixes: 6491d4d02893 ("intel-iommu: Free old page tables before creating superpage") > Cc: # v3.0+ > Link: https://lore.kernel.org/linux-iommu/670baaf8-4ff8-4e84-4be3-030b95ab5a5e@huawei.com/ > Suggested-by: Lu Baolu > Signed-off-by: Longpeng(Mike) > --- > v1 -> v2: > - add Joerg > - reconstruct the solution base on the Baolu's suggestion > --- > drivers/iommu/intel/iommu.c | 52 +++++++++++++++++++++++++++++++++------------ > 1 file changed, 38 insertions(+), 14 deletions(-) Applied, thanks.