Received: by 10.192.165.148 with SMTP id m20csp4159913imm; Tue, 8 May 2018 04:05:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo0lOOfmjGlPNWf1IEntBPcZAEuBbIte7nzsYUvfm4d2jokb/3XAE/cEefEG9JdQFfVAEuQ X-Received: by 2002:a17:902:564:: with SMTP id 91-v6mr40664295plf.63.1525777536623; Tue, 08 May 2018 04:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525777536; cv=none; d=google.com; s=arc-20160816; b=o3hYVR6xbeWbKh61nzlrw0xaJ2DhEuzFAK0wGD03o8jnfcTw8I9V2D+hFsy4q551gr lckCyVlhHzRgFDpKf86UwPKBKDUGrmEFIeQpHN3NyuqkD7dPxN2usGvYn7BjOXNsoO2P Q2eIjBspyh26vqnVulKAXqOD0uxrKU95TAeMhwq5oAU3cum4iI6U/9nyz91MCnty9S2a kPyOwywQZMBn1d/1/jBReBRWwQplc0rO2nd5Z+mJQfsYzZGvwblF0oEdyOOm1P+K5e6E 5ChPcWKyWe5cZjSgFH5DLF8eoU1PLD+xqZE8a1g/IERj4P9jBbC8B9pja6ac7NFK+8Fy VD3Q== 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=Wvl5l/vTkisjvW+iB68NFSQoKHwFPZMGmqjoWavYU50=; b=01OHNzCe6UH2tphlf5Yh9WVlrlO37peBhYqtbtjumcHeGTtGUG7rUMDq4ERJxfjy/i nQxPhtX5m8EkRBxGj2F/K1OsPtyklcxU6/2hu5wUmWDvt6u7cd29J/G0ddH1cd1LgKHQ /Tza3azCTMrVjkvqUnBAMsKZGoAM+M1PJno8H5Kny4H0LIXFv3VZ3dyj55fyB90QNu5Y /inYH6LxyDZ02QGfunjJJMF5SQbGX0qCEnEhA2tp8+4yrIaEitYcqnEjvyKRs7Gzvgny sz7PFUCjB3voFEpANkaFS5ThTVpzPTMQ2oPhCHLVPW2RK2/gq3qLmcmCA/vecV4ur2NR VuZg== 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 y67-v6si19161553pgb.35.2018.05.08.04.05.22; Tue, 08 May 2018 04:05:36 -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 S1752869AbeEHLEg (ORCPT + 99 others); Tue, 8 May 2018 07:04:36 -0400 Received: from foss.arm.com ([217.140.101.70]:56356 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752239AbeEHLEf (ORCPT ); Tue, 8 May 2018 07:04:35 -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 A3D8C1529; Tue, 8 May 2018 04:04:34 -0700 (PDT) Received: from localhost (e105922-lin.cambridge.arm.com [10.1.207.29]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 24F853F592; Tue, 8 May 2018 04:04:34 -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> Date: Tue, 08 May 2018 12:04:32 +0100 In-Reply-To: <1523975611-15978-3-git-send-email-ldufour@linux.vnet.ibm.com> (Laurent Dufour's message of "Tue, 17 Apr 2018 16:33:08 +0200") Message-ID: <87sh72jtmn.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 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. All the comments here definitely hold for the arm64 patches that you plan to include with the next update. Thanks, Punit > > # > # Arch settings