Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1097307imm; Tue, 2 Oct 2018 02:40:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV60K1DsY8n87gK/KkEQhfmBk7fT8O/UUXZuPPYq6JeDi/Z0vsnPl2sC836+fLl0Yy6s4W/xv X-Received: by 2002:a17:902:9a98:: with SMTP id w24-v6mr16128754plp.109.1538473213584; Tue, 02 Oct 2018 02:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538473213; cv=none; d=google.com; s=arc-20160816; b=gUVZADYKpoywpjEFr5JrSoF64fhZPnq6jy6Hx3I7uV5mosVmovudL5qC/lNN+IPpKM 297jfs90WHiqf1UyzGvpgZKJgaen3h+DjYIaYRZJMhzgxmK+BVxQRN0DSHgFXTI58UUk 5WcE1oJD0GJ24+PaoIjxMhDeCJcrs7Gd00dIKGWXhgNdP4MXRNVRp3aNMzrkf4/3KY2p vsDv1hJHq6+lGIYUYvSNNqx6X6dw28saZ4k7ikDn0RIklLqnhTeDX6o2Ca0/shYrfW7k LNhBLrDXCADpJyxFGGKYbcO06GZCiaD3ZIX2KMprVsIXgUVT5pYPXMa+IRu7BCmEotLO GJWw== 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:dkim-signature; bh=Wz4zqbhuF7x0PHSfwD1x5xnncNEJYOJ+KJtr+RIT5zY=; b=YapnboW9bCfOi8upV0UpjjnNVuo+i6n7u+sZR/uGyGOCz3aVu650ZAAWjaMwTi4CR5 /L7+raMGqz/RSfsOf2RkH/etvsbLh+tgL1qbPS/EPP9/xcoIe0I9+jthGnXxiZlcxtbD S0TZNHoP5CYfiOX5kVH4VZk6kTwdhdgPVJ40qqpwXiGDin3d94m7jGHZ9I6JzNZ6GXOo 1iARSeVj6uoVk5yH6JLgI4VW98npdi+os2IsSklQXg8l+GQsxkFzZpH2UgHj8ldGvRgk 0Vco69K44No5l3Bf5N67FxW9SnMKyOTNwiF9jQlYueZ/BlZBzxL9R/5lmBkgQJNLHBRX iOOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=gguNK8L1; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h14-v6si8116432plk.130.2018.10.02.02.39.58; Tue, 02 Oct 2018 02:40:13 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=gguNK8L1; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726925AbeJBQWH (ORCPT + 99 others); Tue, 2 Oct 2018 12:22:07 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:40282 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbeJBQWH (ORCPT ); Tue, 2 Oct 2018 12:22:07 -0400 Received: by mail-wm1-f66.google.com with SMTP id z204-v6so651068wmc.5 for ; Tue, 02 Oct 2018 02:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Wz4zqbhuF7x0PHSfwD1x5xnncNEJYOJ+KJtr+RIT5zY=; b=gguNK8L1b/kJ/GiyYaieqU7Cn8Q0cgdK0Lcv+10kUyv+YbBGyrt9kHhi13Q7QSMeDP 36VbYU7PZUEcmDbuAVUF7PCyS+1/CB6E6SCjAvUl/NvvzIaNsZCgzZQxO3G0TFHo25Iv Ez6fCNIimEBYDR++AYhOO+lOJlnCBTTb/FCrlHXM3Nw95evYzaZcl04KPN2t/7A2q2ys PDJ/eGly3fAtjfge8WbdFn+QLFztgoyzq8to1tz9Y5vOn0mdXDT0atVgNWxRByLx+p16 1ZjjyoY6shLGAtX9IN9/Stc348H/vmRZ+UlDIgHsbZEw8jL6sFhRirDxHGCqss5qwtMn zjLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=Wz4zqbhuF7x0PHSfwD1x5xnncNEJYOJ+KJtr+RIT5zY=; b=qo0P+miKJ3OGKwPXiEwtaajzSSLP4oeWCx5Vy6Qh3RM8oz9DWgb8OuWE86Qhbxl3J/ bnpHgDH62AoHqDzerxvJ1OHwQWmw/ZmKZrqYKL60AP3QCW8pA4B9Il13s8srozUnsu3e V4UmCwiDttA/OjSvLDe/xT/Pl4QJqZahOrVM7BUbzVPpz9yd48oPDc3cJrONRbFG9G/A 1/FrE2wYs8EpfyTdKNcWcohtP7F9/IL47U/MAkaw+VUTcmWIXUwiadrfC6JSthN7S+kZ bUiFjynNyQ/lLc1ssY4Ean6PMu0KPmb0x+sjjfJ/TlDnsSpB+6FYb7Hh/NV9jtQCdUua JHdA== X-Gm-Message-State: ABuFfojgU/U6P96P6F+lnKOzgZBtS26TF7GDj5kouj4DE4T9NCZffbYo VAUJZA1OV3N21UEKrqCxZV4= X-Received: by 2002:a1c:5d8c:: with SMTP id r134-v6mr918580wmb.147.1538473183663; Tue, 02 Oct 2018 02:39:43 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id 130-v6sm1602335wmn.7.2018.10.02.02.39.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Oct 2018 02:39:43 -0700 (PDT) Date: Tue, 2 Oct 2018 11:39:40 +0200 From: Ingo Molnar To: Masayoshi Mizuma Cc: linux-mm@kvack.org, Naoya Horiguchi , Pavel Tatashin , Michal Hocko , Masayoshi Mizuma , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v2 1/3] Revert "x86/e820: put !E820_TYPE_RAM regions into memblock.reserved" Message-ID: <20181002093940.GA98058@gmail.com> References: <20180925153532.6206-1-msys.mizuma@gmail.com> <20180925153532.6206-2-msys.mizuma@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180925153532.6206-2-msys.mizuma@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Masayoshi Mizuma wrote: > From: Masayoshi Mizuma > > commit 124049decbb1 ("x86/e820: put !E820_TYPE_RAM regions into > memblock.reserved") breaks movable_node kernel option because it > changed the memory gap range to reserved memblock. So, the node > is marked as Normal zone even if the SRAT has Hot plaggable affinity. > > ===================================================================== > kernel: BIOS-e820: [mem 0x0000180000000000-0x0000180fffffffff] usable > kernel: BIOS-e820: [mem 0x00001c0000000000-0x00001c0fffffffff] usable > ... > kernel: reserved[0x12]#011[0x0000181000000000-0x00001bffffffffff], 0x000003f000000000 bytes flags: 0x0 > ... > kernel: ACPI: SRAT: Node 2 PXM 6 [mem 0x180000000000-0x1bffffffffff] hotplug > kernel: ACPI: SRAT: Node 3 PXM 7 [mem 0x1c0000000000-0x1fffffffffff] hotplug > ... > kernel: Movable zone start for each node > kernel: Node 3: 0x00001c0000000000 > kernel: Early memory node ranges > ... > ===================================================================== > > Naoya's v1 patch [*] fixes the original issue and this movable_node > issue doesn't occur. > Let's revert commit 124049decbb1 ("x86/e820: put !E820_TYPE_RAM > regions into memblock.reserved") and apply the v1 patch. > > [*] https://lkml.org/lkml/2018/6/13/27 > > Signed-off-by: Masayoshi Mizuma > Reviewed-by: Pavel Tatashin > --- > arch/x86/kernel/e820.c | 15 +++------------ > 1 file changed, 3 insertions(+), 12 deletions(-) Bad ordering which introduces the bug and thus breaks bisection of related issues: the fixes should come first, then the revert of the unnecessary or bad fix. Thanks, Ingo