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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 708F7C433F5 for ; Fri, 6 May 2022 14:52:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442337AbiEFO4J (ORCPT ); Fri, 6 May 2022 10:56:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442312AbiEFO4I (ORCPT ); Fri, 6 May 2022 10:56:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 139666972C for ; Fri, 6 May 2022 07:52:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C3A8BB83664 for ; Fri, 6 May 2022 14:52:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D84FDC385A9; Fri, 6 May 2022 14:52:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651848742; bh=Y5OJkmX4Dd/00D5HJSHYgMobdVRsD6CVk0in6an+2a8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iEYiNf43BBANELzqyiAH4BYkPvpvn5Fs8KGb7ijrtAKC6f1OzkQw4x+0C8/EUveMT WotHObj+Lxe7y+I+H9rHCJ2ehW4Ezua6hhBfUAd1b60FsLRRl8c5ea3ASYX9fvQ+td ahB4qyzB6A42p5VQK2SNh46fY5DsHgFDlfuUVvhE= Date: Fri, 6 May 2022 16:52:18 +0200 From: Greg KH To: "Kun(llfl)" Cc: Jiangbo Wu , Xu Yu , Sanjay Kumar , stable@vger.kernel.org, Lu Baolu Subject: Re: [PATCH 05/19] iommu/vt-d: Global devTLB flush when present context entry changed Message-ID: References: <20220506120057.77320-1-llfl@linux.alibaba.com> <20220506120057.77320-5-llfl@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220506120057.77320-5-llfl@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Fri, May 06, 2022 at 08:00:43PM +0800, Kun(llfl) wrote: > From: Sanjay Kumar > > ANBZ: #1105 What is this? > commit 37764b952e1b39053defc7ebe5dcd8c4e3e78de9 upstream. > > This fixes a bug in context cache clear operation. The code was not > following the correct invalidation flow. A global device TLB invalidation > should be added after the IOTLB invalidation. At the same time, it > uses the domain ID from the context entry. But in scalable mode, the > domain ID is in PASID table entry, not context entry. > > Fixes: 7373a8cc38197 ("iommu/vt-d: Setup context and enable RID2PASID support") > Cc: stable@vger.kernel.org # v5.0+ Is this a 5.10 backport for us to pick up? What about 5.4? thanks, greg k-h