Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2490851pxb; Sun, 8 Nov 2020 02:32:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZFClv1oS0iIgo171YRV99pjSWGkEewcdwW5DUDF75kPSBzLwVAOhF8pqxUdgsjkfvLgY3 X-Received: by 2002:aa7:c617:: with SMTP id h23mr10067266edq.154.1604831539974; Sun, 08 Nov 2020 02:32:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604831539; cv=none; d=google.com; s=arc-20160816; b=Sqtva0LpHYiJ0KkXlRUpwsh9tppChPXKLSCdbgfjH2pc9CnC8SSBv5jGlh+RB28sRV /JB8nnJYGoxnyL2ccS6MWrT9LuCufQYe35Ie9Hma3PtPQcFmFB4uXL97jy/arrJDMOlC 3qYLU59Vkfpk9CjMF4fUvHHstrXo8lgY2Hgvi8LhxVVxG056rI/sULxVpl4xBxQ4ZjA9 OB3JZjLVdbuXTHf1LMZangWVogCdfOTs5mGGsfcSLaiwsh6v3wi+HqG/Mn3SbCTtCxUj usf64G23uXaUGfAS8AofgCobCfMuL5k9PTyyx5ubUUv0For8tfo0A7jxO1nRYTKww54U tu2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:subject:references:in-reply-to :cc:to:from; bh=CnDlfHhq6gyjnnMYQqnRTGzLMioLBUUtS4OTkDUixtg=; b=Qkz9fBjvaG4tQb9OLCUx1POFY6RqWT4pV9dAlLFB7KgBFvaE9ZhtTCM+mZRDgnLCIl Y/O2xsSkLulYnBi69qzaXoTsdl32DXQt8iLZcnkOZcfULhoiA9IiO9rLLBXxVlw0zmD/ RVCPtzntW7v4zJo8qh+pNKp0u/cesOJW0TmwE118miCz+XPDEML4aHxKCSMyBQHFME63 ya9kiLHPYkrZRpbhPezt0oNF7MHzuzSD0+Q7yTEnICd+bFaxeiHxvTbOJX0tUs34yIsx XAqxlqGKUd7ChpGE5i/MpIHilQi5fdbUQwZlY9tG7WjVVKNINhHgfiGBpeTrauBk3202 pnag== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l19si4836716edr.128.2020.11.08.02.31.57; Sun, 08 Nov 2020 02:32:19 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728411AbgKHK3m (ORCPT + 99 others); Sun, 8 Nov 2020 05:29:42 -0500 Received: from bilbo.ozlabs.org ([203.11.71.1]:52023 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727844AbgKHK3m (ORCPT ); Sun, 8 Nov 2020 05:29:42 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 4CTVjv5lwvz9sTv; Sun, 8 Nov 2020 21:29:39 +1100 (AEDT) From: Michael Ellerman To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Christophe Leroy Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org In-Reply-To: References: Subject: Re: [PATCH v2 1/2] powerpc/8xx: Always fault when _PAGE_ACCESSED is not set Message-Id: <160483134413.1400561.8432797439436517862.b4-ty@ellerman.id.au> Date: Sun, 8 Nov 2020 21:29:39 +1100 (AEDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Oct 2020 08:54:31 +0000 (UTC), Christophe Leroy wrote: > The kernel expects pte_young() to work regardless of CONFIG_SWAP. > > Make sure a minor fault is taken to set _PAGE_ACCESSED when it > is not already set, regardless of the selection of CONFIG_SWAP. > > This adds at least 3 instructions to the TLB miss exception > handlers fast path. Following patch will reduce this overhead. > > [...] Applied to powerpc/fixes. [1/2] powerpc/8xx: Always fault when _PAGE_ACCESSED is not set https://git.kernel.org/powerpc/c/29daf869cbab69088fe1755d9dd224e99ba78b56 [2/2] powerpc/8xx: Manage _PAGE_ACCESSED through APG bits in L1 entry https://git.kernel.org/powerpc/c/33fe43cfd9b1c20f6f9899b44bf04e91823ff1c9 cheers