Received: by 10.223.185.116 with SMTP id b49csp5363072wrg; Tue, 27 Feb 2018 12:00:13 -0800 (PST) X-Google-Smtp-Source: AH8x224aRbFuRivCHxevQM491q33jirSMx6hTthvElC2L5y24KdK2lIYAZyOREyIe++TFi/MG8+c X-Received: by 2002:a17:902:9a8a:: with SMTP id w10-v6mr15215705plp.201.1519761612930; Tue, 27 Feb 2018 12:00:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519761612; cv=none; d=google.com; s=arc-20160816; b=vzm7ziGcmZ83Ex5Qaj68yOoAbwTlBHBRo2DtHm1DurqSy9jWxzTcBvxSNZ4ZftdtOo W0MCBh3tvT+l67r5lr7dEomnCkaMn8y2FQdeF0MKJKmpURu5Je59HAFRERwHwtwMh5xg toGhwJrhtZj3X5smpdq/f7swqZEg82QR/5WSq0fZRVDmr9hWetd3ErZCT6KtlWelgIfX IsLIfUD34by08cfUx8iQ1ADj2Di3DqIwMcsL7IpZ2bdbpJkbcJtlpHpPT7NflC18re2O zFSSOjfVJDXVGEn3j8hk2tNZ4US61Mc/KUDnX64lFCO2Y2fJ/If1HATZ5REt9MLkW63I lKIA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=IxhL00dGVWR7V+2yZ6rpvp9xgiJr4qNzErBKjD3t434=; b=xn5m0l07lywvrlhIhJbSpHZ6XX4J8OvBvt0o4hh76yR8Edzmn2T0npl7SE28gZrUfy Mp/jw8/+dN3PvCgxUWmdYkMnA3gZ7JI69E9oeigVVoJC6NfNPIObYjEYydZp7nLYJuLp dUSuxbYwlQb4/aa/rqPN0b9NC0D2LJS3RfxG+v847qFt583qQO3ZGqEYerDwr5xokBdT JVn74HKOLRJfhLAvxr2GAjJ2XaIJ7m6BItf5WEGZFfUtftZXogRHzY+hOQNS0MSwNc3x jDKOue1K4bE5uPGclQHOtLxLUGx0vpQUYZvv5NlXrRSHsYDlwb0cIwTBydnA6cSxSPPv 49HQ== 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 j91-v6si8953961pld.353.2018.02.27.11.59.57; Tue, 27 Feb 2018 12:00:12 -0800 (PST) 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 S1751964AbeB0T7T (ORCPT + 99 others); Tue, 27 Feb 2018 14:59:19 -0500 Received: from foss.arm.com ([217.140.101.70]:40294 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751788AbeB0T7S (ORCPT ); Tue, 27 Feb 2018 14:59:18 -0500 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 BEAD215AD; Tue, 27 Feb 2018 11:59:17 -0800 (PST) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8F0523F25C; Tue, 27 Feb 2018 11:59:17 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 7E2D01AE53B7; Tue, 27 Feb 2018 19:59:19 +0000 (GMT) Date: Tue, 27 Feb 2018 19:59:19 +0000 From: Will Deacon To: "Kani, Toshi" Cc: "guohanjun@huawei.com" , "linux-kernel@vger.kernel.org" , "linuxarm@huawei.com" , "linux-mm@kvack.org" , "wxf.wang@hisilicon.com" , "akpm@linux-foundation.org" , "mark.rutland@arm.com" , "catalin.marinas@arm.com" , "linux-arm-kernel@lists.infradead.org" , "cpandya@codeaurora.org" , "Hocko, Michal" , "hanjun.guo@linaro.org" Subject: Re: =?utf-8?B?562U5aSNOiBbUkZDIHBhdGNoXSBp?= =?utf-8?Q?oremap?= =?utf-8?Q?=3A?= don't set up huge I/O mappings when p4d/pud/pmd is zero Message-ID: <20180227195919.GA5348@arm.com> References: <1514460261-65222-1-git-send-email-guohanjun@huawei.com> <861128ce-966f-7006-45ba-6a7298918686@codeaurora.org> <1519175992.16384.121.camel@hpe.com> <20180221115758.GA7614@arm.com> <32c9b1c3-086b-ba54-f9e9-aefa50066730@huawei.com> <20180226110422.GD8736@arm.com> <1519763686.2693.2.camel@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519763686.2693.2.camel@hpe.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 27, 2018 at 07:49:42PM +0000, Kani, Toshi wrote: > On Mon, 2018-02-26 at 20:53 +0800, Hanjun Guo wrote: > > On 2018/2/26 19:04, Will Deacon wrote: > > > On Mon, Feb 26, 2018 at 06:57:20PM +0800, Hanjun Guo wrote: > > > > Simply do something below at now (before the broken code is fixed)? > > > > > > > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > > > > index b2b95f7..a86148c 100644 > > > > --- a/arch/arm64/Kconfig > > > > +++ b/arch/arm64/Kconfig > > > > @@ -84,7 +84,6 @@ config ARM64 > > > > select HAVE_ALIGNED_STRUCT_PAGE if SLUB > > > > select HAVE_ARCH_AUDITSYSCALL > > > > select HAVE_ARCH_BITREVERSE > > > > - select HAVE_ARCH_HUGE_VMAP > > > > select HAVE_ARCH_JUMP_LABEL > > > > select HAVE_ARCH_KASAN if !(ARM64_16K_PAGES && ARM64_VA_BITS_48) > > > > select HAVE_ARCH_KGDB > > > > > > No, that actually breaks with the use of block mappings for the kernel > > > text. Anyway, see: > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=15122ee2c515a253b0c66a3e618bc7ebe35105eb > > > > Sorry, just back from holidays and didn't catch up with all the emails, > > thanks for taking care of this. > > I will work on a fix for the common/x86 code. Ace, thanks. I'm more than happy to review any changes you make to the core code from a break-before-make perspective. Just stick me on cc. Cheers, Will