Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4454259imm; Mon, 14 May 2018 07:48:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrWbSgjE00/ulHd2Uz1jbku+iNOYW3knFzIEHzAhlWBBBkGdbVfHZMloc5Ur4F0JSUx5CWb X-Received: by 2002:a63:9812:: with SMTP id q18-v6mr8642726pgd.170.1526309303344; Mon, 14 May 2018 07:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526309303; cv=none; d=google.com; s=arc-20160816; b=qXabFaafMNWzRuO9q+Ttx8KEHdN0e4szSjfn8OyLWhJRW7ovINws4891GV8FzG28HD FFVuXCyoAoiWV8bqocDYziBo93WCWM2vKC7R63bk1VVmguekh2CJ0WM24udAVST09bsH f3yBtOjZofuNUJZnD2ZTaChl1RvziqIFWXXGrwbUh21VlzxLB2pzxWiIM/1fDuTRSeaX RPRpHA9xuV9+rsYhMrzROyfXwRx3RPqW15otm/sCSW32NoDiLi4rWYTyTGuqLG/eZpqy vrHZh86+JK/nKO0hVaLCTqxIzYpbSPaHNdXzIdQx0C95j2dZtYvfUqq8hQyU/Oa6XXLj a0eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject:arc-authentication-results; bh=snu7szEOabhRmfUWM9unotpXMUcz4G7IFE8tqvM/nOE=; b=Q2baizjy6T+EZcuXUu3IgmLEC8qKYzzNEmQyt8DlC3l02qR0LXEgdXZjrX1+MjBb04 KzGErhu2+kEBnCcM8wmO/TNAx3mOp/0xNvxYZNtoAoZEqvHg6CKR5ES5pIinVYHewJ6b WRRa9ucWFe2489/nwA7ZMQIcJShhh27YdYVnREtMjwa4AzQgXf1CneGQzmwkciBNFxvM 23IgHefFjZN7ooyQK9qEIfevkZkDBnOwVmvIy2XZj5UqtcqIh4LzimgAZKs585Smz1Tx d964qDgUvWwi1wkj04iUAMvxF88HF927wYM54CXjucO2Q9OSkH2FPUv6dxqugenDWVtb j6yg== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x133-v6si9827778pfd.124.2018.05.14.07.48.08; Mon, 14 May 2018 07:48:23 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932475AbeENOrz (ORCPT + 99 others); Mon, 14 May 2018 10:47:55 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:46212 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753760AbeENOrx (ORCPT ); Mon, 14 May 2018 10:47:53 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4EEkcL0002260 for ; Mon, 14 May 2018 10:47:53 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hy9qbgfys-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 14 May 2018 10:47:52 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 14 May 2018 15:47:50 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 14 May 2018 15:47:42 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4EElfSf7274956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 May 2018 14:47:41 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4E33E52041; Mon, 14 May 2018 14:37:52 +0100 (BST) Received: from [9.101.4.33] (unknown [9.101.4.33]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 098BD52045; Mon, 14 May 2018 14:37:51 +0100 (BST) Subject: Re: [PATCH v10 02/25] x86/mm: define ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT To: Punit Agrawal , akpm@linux-foundation.org Cc: 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 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> From: Laurent Dufour Date: Mon, 14 May 2018 16:47:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <87sh72jtmn.fsf@e105922-lin.cambridge.arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18051414-0008-0000-0000-000004F65D93 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18051414-0009-0000-0000-00001E8ABD96 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-14_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805140152 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). 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'm fine with the both options. Andrew, what do you think would be the best here ? Thanks, Laurent. > > All the comments here definitely hold for the arm64 patches that you > plan to include with the next update. > > Thanks, > Punit > >> >> # >> # Arch settings >