Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4634433imm; Mon, 14 May 2018 10:17:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpiJxjOXeHSfRUw0crI320KEbxbkDpiPggNCieaZDJaa24LlPHi9pKpdr5V0xKr6eGApxU7 X-Received: by 2002:a62:1a4e:: with SMTP id a75-v6mr11313428pfa.84.1526318244705; Mon, 14 May 2018 10:17:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526318244; cv=none; d=google.com; s=arc-20160816; b=m9ammwCw2JE+PGpd+oMlwHBhF0OjfoJQfI4pqF/h7gjLQBwfZTxocPz7ryuOR9Zt/p npCJ5sLp2aQ+SyqmGf9HG9jAcSXPxJQ0MxooNxAhwQrmLzBvGS8FbI5q/qRM+jCxqJAz XRFt/AMdFJZHf9cNGfKBxUhuE7nOSJNUT9Ho2BFTvDCGnDYZMGbNpSzfWAgp6PWqCDQy 0LO5WPfKAMhw/LECMTUkWleouo9Q5aRAXR1lPpzsQsmVHU7tGknH79lTMLN46kdoAKJz YiwzN02af4qHABvkoKh1KeRIpFeKlO98uQfb+BsnrRmv1hQKnTrl3J+HglDIY2VeEz5W 3MPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=mSy0FC8fZfDOLCYp5bKA5buW1v8tUB9m0wZyFXjfo+U=; b=DP6xOXThABaXL3Wj+LTxF3zS8EPA79Y0hK7xWEuOOsrCT/2mjJe0462OKjScLsbNOQ 0yHb7U4Z4nvkFEDch/kgs/wmbQVDqpZPWnBaXOvuhgNuPirAJl1L7/vD+sMhwv1TZGNT IPgzADq3nKp96nrJS0RQn7AMZGWFnV1NNFOGSbFXErqnAzf07xJNfuurjryFyx/OcLNS Z5lMzRTyrVp2ipMSlH+WZFva6Ezq2NRYOdEGfjWKt13MFNufh66Np0kL166PFe4E1x+i 7pWPToW+C1qks561NG7lePIbnhJRVnBjVHyk83HTTUNcZNN2jR/5felq0A7vQ0J4Id06 1kdg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w61-v6si9876937plb.155.2018.05.14.10.17.10; Mon, 14 May 2018 10:17:24 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932602AbeENPFM (ORCPT + 99 others); Mon, 14 May 2018 11:05:12 -0400 Received: from foss.arm.com ([217.140.101.70]:44604 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754530AbeENPFD (ORCPT ); Mon, 14 May 2018 11:05:03 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E49CA1596; Mon, 14 May 2018 08:05:02 -0700 (PDT) Received: from localhost (e105922-lin.cambridge.arm.com [10.1.206.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 657663F25D; Mon, 14 May 2018 08:05:02 -0700 (PDT) From: Punit Agrawal To: Laurent Dufour Cc: 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 , benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, Thomas Gleixner , Ingo Molnar , hpa@zytor.com, Will Deacon , Sergey Senozhatsky , Andrea Arcangeli , Alexei Starovoitov , kemi.wang@intel.com, sergey.senozhatsky.work@gmail.com, Daniel Jordan , David Rientjes , Jerome Glisse , Ganesh Mahendran , linux-kernel@vger.kernel.org, linux-mm@kvack.org, haren@linux.vnet.ibm.com, khandual@linux.vnet.ibm.com, npiggin@gmail.com, bsingharora@gmail.com, paulmck@linux.vnet.ibm.com, Tim Chen , linuxppc-dev@lists.ozlabs.org, x86@kernel.org Subject: Re: [PATCH v10 02/25] x86/mm: define ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT References: <1523975611-15978-1-git-send-email-ldufour@linux.vnet.ibm.com> <1523975611-15978-3-git-send-email-ldufour@linux.vnet.ibm.com> <87sh72jtmn.fsf@e105922-lin.cambridge.arm.com> Date: Mon, 14 May 2018 16:05:01 +0100 In-Reply-To: (Laurent Dufour's message of "Mon, 14 May 2018 16:47:39 +0200") Message-ID: <87o9hi46si.fsf@e105922-lin.cambridge.arm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Laurent Dufour writes: > On 08/05/2018 13:04, Punit Agrawal wrote: >> Hi Laurent, >> >> Laurent Dufour writes: >> >>> Set ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT which turns on the >>> Speculative Page Fault handler when building for 64bit. >>> >>> Cc: Thomas Gleixner >>> Signed-off-by: Laurent Dufour >>> --- >>> arch/x86/Kconfig | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig >>> index d8983df5a2bc..ebdeb48e4a4a 100644 >>> --- a/arch/x86/Kconfig >>> +++ b/arch/x86/Kconfig >>> @@ -30,6 +30,7 @@ config X86_64 >>> select MODULES_USE_ELF_RELA >>> select X86_DEV_DMA_OPS >>> select ARCH_HAS_SYSCALL_WRAPPER >>> + select ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT >> >> I'd suggest merging this patch with the one making changes to the >> architectural fault handler towards the end of the series. >> >> The Kconfig change is closely tied to the architectural support for SPF >> and makes sense to be in a single patch. >> >> If there's a good reason to keep them as separate patches, please move >> the architecture Kconfig changes after the patch adding fault handler >> changes. >> >> It's better to enable the feature once the core infrastructure is merged >> rather than at the beginning of the series to avoid potential bad >> fallout from incomplete functionality during bisection. > > Indeed bisection was the reason why Andrew asked me to push the configuration > enablement on top of the series (https://lkml.org/lkml/2017/10/10/1229). The config options have gone through another round of splitting (between core and architecture) since that comment. I agree that it still makes sense to define the core config - CONFIG_SPECULATIVE_PAGE_FAULT early on. Just to clarify, my suggestion was to only move the architecture configs further down. > > I also think it would be better to have the architecture enablement in on patch > but that would mean that the code will not be build when bisecting without the > latest patch adding the per architecture code. I don't see that as a problem. But if I'm in the minority, I am OK with leaving things as they are as well. Thanks, Punit