From patchwork Wed Dec 14 09:11:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 87995 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp90788qgi; Wed, 14 Dec 2016 01:12:40 -0800 (PST) X-Received: by 10.84.213.150 with SMTP id g22mr205810480pli.11.1481706760834; Wed, 14 Dec 2016 01:12:40 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t90si51965544pfi.85.2016.12.14.01.12.40; Wed, 14 Dec 2016 01:12:40 -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; dkim=pass header.i=@linaro.org; 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=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755288AbcLNJMX (ORCPT + 25 others); Wed, 14 Dec 2016 04:12:23 -0500 Received: from mail-wj0-f171.google.com ([209.85.210.171]:33425 "EHLO mail-wj0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755018AbcLNJMU (ORCPT ); Wed, 14 Dec 2016 04:12:20 -0500 Received: by mail-wj0-f171.google.com with SMTP id xy5so22220016wjc.0 for ; Wed, 14 Dec 2016 01:12:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ptb7DMfl+spx+dFFUnwLJgtubA4ngHgXt4YyodPlFo0=; b=JpnnWlJRrTscER3uYmv8Bf86ZcA/wwcyBD6GsQPH14mMVAsoVJwRZ956GTjBct8LY2 ng1wHaRlIIBNNElAEydVfZ8CgssSmJnuHE4DTFuQcYU1qDed3ShNZSh1LietTSf1fZSO kXoV6l8o44bIUfgvmvsuW88Ko6fGTR/Ap3mW0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ptb7DMfl+spx+dFFUnwLJgtubA4ngHgXt4YyodPlFo0=; b=aZEppH6bNbmviBVI6sC1dgVb6sTR9mwQLlsPsO0A5hrCMJcRPl1KtVrDmGF3Dn9vVg /tMG0lT0qLsRwMbP41xuuNic4rskKjtmfxbscRLLKEJcRGyhdC+phlw9DWqgcL/rWlWf q64DRyT6vXknMDC1HJDB+Sm+O5Fu+WTgXftFHzaRf9UuU1gS8qBI3SVJ2vFBDNKPMiMm xf/81I4R/sIzNSz+z3a7h8dfA3sLRYOPCigTfxBi0GRiulzd05i0dLgG6yOUPG+MGaQ9 jZRpQlY8cKFz1HcKQyWgvzn/B6CvWYOT8O6WQxkARWm4cxKQfNK/x1L+22i4KArQrL/I OAUg== X-Gm-Message-State: AKaTC01Lsm+76jMmJMAEGeVdDBVEmTM0WzJ4DrgDNnZXenbHt9SwysMcyh13Ox5V1myLCRiP X-Received: by 10.28.9.131 with SMTP id 125mr6293075wmj.22.1481706738034; Wed, 14 Dec 2016 01:12:18 -0800 (PST) Received: from localhost.localdomain ([160.169.200.55]) by smtp.gmail.com with ESMTPSA id pd2sm66125652wjb.31.2016.12.14.01.12.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Dec 2016 01:12:17 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, will.deacon@arm.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: catalin.marinas@arm.com, akpm@linux-foundation.org, hanjun.guo@linaro.org, xieyisheng1@huawei.com, rrichter@cavium.com, james.morse@arm.com, Ard Biesheuvel Subject: [PATCH 2/2] arm64: mm: enable CONFIG_HOLES_IN_ZONE for NUMA Date: Wed, 14 Dec 2016 09:11:47 +0000 Message-Id: <1481706707-6211-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481706707-6211-1-git-send-email-ard.biesheuvel@linaro.org> References: <1481706707-6211-1-git-send-email-ard.biesheuvel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The NUMA code may get confused by the presence of NOMAP regions within zones, resulting in spurious BUG() checks where the node id deviates from the containing zone's node id. Since the kernel has no business reasoning about node ids of pages it does not own in the first place, enable CONFIG_HOLES_IN_ZONE to ensure that such pages are disregarded. Signed-off-by: Ard Biesheuvel --- arch/arm64/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4 Acked-by: Robert Richter diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 111742126897..0472afe64d55 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -614,6 +614,10 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK def_bool y depends on NUMA +config HOLES_IN_ZONE + def_bool y + depends on NUMA + source kernel/Kconfig.preempt source kernel/Kconfig.hz