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 C76F5C43460 for ; Mon, 17 May 2021 07:08:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A23AB610C9 for ; Mon, 17 May 2021 07:08:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234937AbhEQHJP (ORCPT ); Mon, 17 May 2021 03:09:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:50202 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234049AbhEQHJN (ORCPT ); Mon, 17 May 2021 03:09:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9659D60E09; Mon, 17 May 2021 07:07:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621235278; bh=Rhy5AZY3AtAnv8EyIybDPUwYFHgR5lYLD0wSfwMo8c8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=phv1uxO5JaSxKYmjx7afwME0PIixAQQHYBEOQobeACRe6+bf12M/rIvyPVThVAu31 IG86EAHXAE0wjwplc//mai8yA/XfVJdDNBimXQktFWoBXmDrso9jGZviJgfJ8TID7J Q5a1ExCbUH/PsYMCW90e6YMZ9Q6yXY3bIrP8UVhU= Date: Mon, 17 May 2021 09:07:55 +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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210517034913.3432-1-baolu.lu@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? thanks, greg k-h