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 X-Spam-Level: X-Spam-Status: No, score=-16.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51382C433B4 for ; Mon, 17 May 2021 07:27:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2C7C2611C2 for ; Mon, 17 May 2021 07:27:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233187AbhEQH3M (ORCPT ); Mon, 17 May 2021 03:29:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:55634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229755AbhEQH3H (ORCPT ); Mon, 17 May 2021 03:29:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A72EB61007; Mon, 17 May 2021 07:27:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621236471; bh=wm9rTBwxrFjpfeBtExDxSI5AqdoTtDawv0VDGnK3Cls=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dp0CsjluWTYDyAVHwdGd3zJAFHX/7UYPtXvyJzs+zgkImMOhuLxcjpFk8Nn44MtlF uS+NeE3BIft0xPbitTD2nk5RtmvHcrC0hUV7jHv74AoX7ENwV90sUtX2L15k5ThJ/K AJBnmemRZymb96KYM4Z2+YN/jf78z6ocd3abIiI4= Date: Mon, 17 May 2021 09:27:49 +0200 From: Greg KH To: Lu Baolu Cc: sashal@kernel.org, ashok.raj@intel.com, jroedel@suse.de, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [REWORKED PATCH 1/1] iommu/vt-d: Preset Access/Dirty bits for IOVA over FL Message-ID: References: <20210517034913.3432-1-baolu.lu@linux.intel.com> <726aede1-3d9f-6666-b31d-9db8e4301a0c@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <726aede1-3d9f-6666-b31d-9db8e4301a0c@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 17, 2021 at 03:17:53PM +0800, Lu Baolu wrote: > Hi Greg, > > On 5/17/21 3:07 PM, Greg KH wrote: > > On Mon, May 17, 2021 at 11:49:13AM +0800, Lu Baolu wrote: > > > [ Upstream commit a8ce9ebbecdfda3322bbcece6b3b25888217f8e3 ] > > > > > > The Access/Dirty bits in the first level page table entry will be set > > > whenever a page table entry was used for address translation or write > > > permission was successfully translated. This is always true when using > > > the first-level page table for kernel IOVA. Instead of wasting hardware > > > cycles to update the certain bits, it's better to set them up at the > > > beginning. > > > > > > Suggested-by: Ashok Raj > > > Signed-off-by: Lu Baolu > > > Link: https://lore.kernel.org/r/20210115004202.953965-1-baolu.lu@linux.intel.com > > > Signed-off-by: Joerg Roedel > > > Signed-off-by: Sasha Levin > > > --- > > > drivers/iommu/intel/iommu.c | 14 ++++++++++++-- > > > include/linux/intel-iommu.h | 2 ++ > > > 2 files changed, 14 insertions(+), 2 deletions(-) > > > > > > [Note: > > > - This is a reworked patch of > > > https://lore.kernel.org/stable/20210512144819.664462530@linuxfoundation.org/T/#m65267f0a0091c2fcbde097cea91089775908faad. > > > - It aims to fix a reported issue of > > > https://bugzilla.kernel.org/show_bug.cgi?id=213077. > > > - Please help to review and test.] > > > > What stable tree(s) is this supposed to be for? > > It's for 5.10.37. But the above commit is already in 5.10.y. And what about 5.11 and 5.12, were those backports incorrect? confused, greg k-h