Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1076259yba; Thu, 18 Apr 2019 14:52:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7UvwmOE1WsbOjVsEdnD+r2MJAKrVwkCAyESEoNSrT2qnWbjV9yqPAscp7E/TZxA5OGCXf X-Received: by 2002:a63:3e4b:: with SMTP id l72mr264417pga.332.1555624351402; Thu, 18 Apr 2019 14:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555624351; cv=none; d=google.com; s=arc-20160816; b=qrLrqwOGYI+lL4d2piYCamI6tz4yva0rnItKeoQeXytepNVCh9QC1YF6HODDRbBr76 a5+42zZvyeBxW+vMTSo/QHXARvD4KzJQY/ohxviejBgXAqMicEEvLWyS2RCKaTRedk38 Y1LXH1Xwv6Qd5xSNxUBWrBtvAWN6+e78Gph9Bmfv9VjZUcobrklOgZBo0NOv6bMUK3JU 5GSeuV5HyvZASPTjUnqoSpJr1am07FQfKNADcMg3epmYv74rOeKxzA7EAxf3odsXDb8V qeJqWETCMKgpTf9hRQ2O1pkL0pL9sNAm1TkIJcPArA71i5fs2SH4lLh5rOlMRAC3RgMk fU2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=EtVaK/ICxtbARtdMEhaPEO0EcVbxquWtM8HlIo2WXps=; b=iVmgFEZhEeDd2J0AC+oJxOTCz/5pakbMWIDTSQlno8tMQFb0HCXjvhYVXf7dRXYTzd KRA2SSnsM5bmOu/XfxyEAp/GncRmxPaAVVYUiw7aC1mRzdpdbINl5Hnue/lNBVPja+W1 C02fgdc/lpeIhJjAFg+OZpu9/VX/VE5A9LYqYxhUv3HWwxyqN46GQQe1dZtp18Rs9WVd smC8lLTpBhlns7rFDu6ZFIAdRzRa0K9fICqc/pdwXyHUMdLWc1M1btAsxXeVX5zE71BR LuEGvyq5eRu99FtqO1/PcIuPR5uKahwmXYHLiIBSjgyjOnWKOPK4epFoImrFMYz5RL+o o1EA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w19si3215019ply.103.2019.04.18.14.52.16; Thu, 18 Apr 2019 14:52:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726249AbfDRVvU (ORCPT + 99 others); Thu, 18 Apr 2019 17:51:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49048 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbfDRVvU (ORCPT ); Thu, 18 Apr 2019 17:51:20 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 40F2E30B96D2; Thu, 18 Apr 2019 21:51:19 +0000 (UTC) Received: from redhat.com (unknown [10.20.6.236]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 939A45C21F; Thu, 18 Apr 2019 21:51:15 +0000 (UTC) Date: Thu, 18 Apr 2019 17:51:13 -0400 From: Jerome Glisse To: Mark Rutland Cc: Laurent Dufour , akpm@linux-foundation.org, mhocko@kernel.org, peterz@infradead.org, kirill@shutemov.name, ak@linux.intel.com, dave@stgolabs.net, jack@suse.cz, Matthew Wilcox , aneesh.kumar@linux.ibm.com, benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, Thomas Gleixner , Ingo Molnar , hpa@zytor.com, Will Deacon , Sergey Senozhatsky , sergey.senozhatsky.work@gmail.com, Andrea Arcangeli , Alexei Starovoitov , kemi.wang@intel.com, Daniel Jordan , David Rientjes , Ganesh Mahendran , Minchan Kim , Punit Agrawal , vinayak menon , Yang Shi , zhong jiang , Haiyan Song , Balbir Singh , sj38.park@gmail.com, Michel Lespinasse , Mike Rapoport , linux-kernel@vger.kernel.org, linux-mm@kvack.org, haren@linux.vnet.ibm.com, npiggin@gmail.com, paulmck@linux.vnet.ibm.com, Tim Chen , linuxppc-dev@lists.ozlabs.org, x86@kernel.org Subject: Re: [PATCH v12 04/31] arm64/mm: define ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT Message-ID: <20190418215113.GD11645@redhat.com> References: <20190416134522.17540-1-ldufour@linux.ibm.com> <20190416134522.17540-5-ldufour@linux.ibm.com> <20190416142710.GA54515@lakrids.cambridge.arm.com> <4ef9ff4b-2230-0644-2254-c1de22d41e6c@linux.ibm.com> <20190416144156.GB54708@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190416144156.GB54708@lakrids.cambridge.arm.com> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Thu, 18 Apr 2019 21:51:19 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 16, 2019 at 03:41:56PM +0100, Mark Rutland wrote: > On Tue, Apr 16, 2019 at 04:31:27PM +0200, Laurent Dufour wrote: > > Le 16/04/2019 ? 16:27, Mark Rutland a ?crit?: > > > On Tue, Apr 16, 2019 at 03:44:55PM +0200, Laurent Dufour wrote: > > > > From: Mahendran Ganesh > > > > > > > > Set ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT for arm64. This > > > > enables Speculative Page Fault handler. > > > > > > > > Signed-off-by: Ganesh Mahendran > > > > > > This is missing your S-o-B. > > > > You're right, I missed that... > > > > > The first patch noted that the ARCH_SUPPORTS_* option was there because > > > the arch code had to make an explicit call to try to handle the fault > > > speculatively, but that isn't addeed until patch 30. > > > > > > Why is this separate from that code? > > > > Andrew was recommended this a long time ago for bisection purpose. This > > allows to build the code with CONFIG_SPECULATIVE_PAGE_FAULT before the code > > that trigger the spf handler is added to the per architecture's code. > > Ok. I think it would be worth noting that in the commit message, to > avoid anyone else asking the same question. :) Should have read this thread before looking at x86 and ppc :) In any case the patch is: Reviewed-by: J?r?me Glisse