From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751848AbdIAJbL (ORCPT ); Fri, 1 Sep 2017 05:31:11 -0400 Received: from 8bytes.org ([81.169.241.247]:55148 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751511AbdIAJbK (ORCPT ); Fri, 1 Sep 2017 05:31:10 -0400 Date: Fri, 1 Sep 2017 11:31:07 +0200 From: Joerg Roedel To: Filippo Sironi Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, David Woodhouse , David Woodhouse , Jacob Pan Subject: Re: [PATCH v2] iommu/vt-d: Don't be too aggressive when clearing one context entry Message-ID: <20170901093107.dk5tt7jcgvbrbjpm@8bytes.org> References: <1503929789-26698-1-git-send-email-sironi@amazon.de> <1504169891-9480-1-git-send-email-sironi@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1504169891-9480-1-git-send-email-sironi@amazon.de> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 31, 2017 at 10:58:11AM +0200, Filippo Sironi wrote: > Previously, we were invalidating context cache and IOTLB globally when > clearing one context entry. This is a tad too aggressive. > Invalidate the context cache and IOTLB for the interested device only. > > Signed-off-by: Filippo Sironi > Cc: David Woodhouse > Cc: David Woodhouse > Cc: Joerg Roedel > Cc: Jacob Pan > Cc: iommu@lists.linux-foundation.org > Cc: linux-kernel@vger.kernel.org > --- > drivers/iommu/intel-iommu.c | 42 ++++++++++++++++++++++++------------------ > 1 file changed, 24 insertions(+), 18 deletions(-) Applied, thanks.