From patchwork Fri Dec 28 03:00:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pingfan Liu X-Patchwork-Id: 10744099 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AF14D14DE for ; Fri, 28 Dec 2018 03:00:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3A1E28DF3 for ; Fri, 28 Dec 2018 03:00:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97BE628DF5; Fri, 28 Dec 2018 03:00:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 377F328DF7 for ; Fri, 28 Dec 2018 03:00:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4DF308E0029; Thu, 27 Dec 2018 22:00:22 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 48E138E0001; Thu, 27 Dec 2018 22:00:22 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 32E478E0029; Thu, 27 Dec 2018 22:00:22 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by kanga.kvack.org (Postfix) with ESMTP id E14918E0001 for ; Thu, 27 Dec 2018 22:00:21 -0500 (EST) Received: by mail-pl1-f197.google.com with SMTP id b24so17455780pls.11 for ; Thu, 27 Dec 2018 19:00:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id; bh=B0KcbdISQxMDURvBYdZRZkDvHnvIz0sadA1OpI96xMs=; b=dlffLmoncHI0LlHacNEfzfmNRRt2jqJL7JVjJB4gEaFih1eGnGOI08JxWfTZ39simr YUOxh2/LyQ38dUUt9d8kOp4P44B7XD8qFkiRKwrD4DnZR4KK/xRkNO2zIR0TnE3a8zR2 uk8BiHolwASEv5ASj+t9CRaRgyx+CSzpkTzqerCuqUhpYs5Yyc+pfL8bdhuTg+xeVc+c B0clGRB43byj+/gsmOep+z4LTDbGjkzaQfc2NU7lFIUmymwy+u0mqy7Ggvy9hu0boVf2 aMIO7AWaAFsiheMXli1JtcQroHrlkQP1irkAtPOCJPzLm2JM5xodGFtlE/tF7KYBBWSb rhlw== X-Gm-Message-State: AA+aEWafx/KiJSJSvoCRL3ie1LFRKhmH085gchYDCu7/24WF3wUD/utp rd2LjEHAFfy0oL4oEvTpy3/BmKECz1bM3BnglwQnjobUGSM1r2WaxkSnhmMBH0wiyWdDRww19// gFN4naHMqLE5WEngMF+LSiBLbCkd0vIxauJhL/1oADCREMwuXUYNJoUwe5/lHpBcZXeOfWJ+9VP jIEbd2oP+gDWu7x1M4762aiBcLqKRnWyutSdyBWEn+q73nbs+W6FYJ4PyYy2xQSirOTnX1FNXS1 auP5jeedQl85wcwR8EDyeP8dT3Ypv1urtPUc+lbVl8RLR9vQ18QogkZh0JPh6q69B+WjW41CW0/ Ja52EnI9qN3i4onLePrdE4bOGfoGFPemrA+Ijgxw5gBIvi187kM0+scl8P9aMipGUeqbrcYy1WJ p X-Received: by 2002:a62:76cc:: with SMTP id r195mr26293485pfc.38.1545966021456; Thu, 27 Dec 2018 19:00:21 -0800 (PST) X-Received: by 2002:a62:76cc:: with SMTP id r195mr26293442pfc.38.1545966020626; Thu, 27 Dec 2018 19:00:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545966020; cv=none; d=google.com; s=arc-20160816; b=jE4S13EbAH8M2HqQJVQh/KE/arjpJnl+wulL2v4+wY+HIv7iE9peIkfx+/tnwj69ZB V5MzCt3aaN24z2FnUb25cUwYZWeeL2PPRDK6AyN0Xxeyvka5rx80355PfRMHhrlUavcw WcMEDHeLQUUM2MtOyvO5FsH/tdDKSP4bWTCKfpnvyvc1hRQGPIZSAhvsw3YPhxEy9Yc/ 9G0QD+VBcgZX0nRVvSefk+OU9aFKPAHXEO6g55XqwIZ2/t/tCvjAJWnPcO3wprtWCgJC 22LAMF63ttr47Peo4zzLkCnvKQvvaMrB0m2b5IlOOqmf2nojDSwfPPw0sQFaaOEBiVQb Ax2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=B0KcbdISQxMDURvBYdZRZkDvHnvIz0sadA1OpI96xMs=; b=mJxMZ6L6fSjW3I6IQBAPmlIR6M2bmjJFcXkMnUYOhnRv9PaGI4RmAhUbdax1qXDgCG sipDB9err9pJOPQQCk+YvXaK/yUiFkM0vqZDOCEIPPpwG19Z57lFLaW6K/QXljzaSHFU SiIvL7x4z+Glq5C75Jta8UVEEGQm5SwQj+pdnfqiN3msPmvGyVx6/SsbG+ZH1uIvXOno pUXTHWmc1eBaGV5/4z1SXIQ3h1jo60JhdC+WCbrWJn3boJIZySG6e6XEeP7KyA6PJ/vw F7bfLhedilrGFmQvLfi7vi6gpsWGeVGRWXosqPXTDHm2bOkwcEy/X/YtNNbRMM9XSfht KCuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DCWAPT+9; spf=pass (google.com: domain of kernelfans@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=kernelfans@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id f15sor1374277pgh.59.2018.12.27.19.00.20 for (Google Transport Security); Thu, 27 Dec 2018 19:00:20 -0800 (PST) Received-SPF: pass (google.com: domain of kernelfans@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DCWAPT+9; spf=pass (google.com: domain of kernelfans@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=kernelfans@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=B0KcbdISQxMDURvBYdZRZkDvHnvIz0sadA1OpI96xMs=; b=DCWAPT+9sUNIpf30LR1rvl0hd6HEsis7Ey4wk/kFqSDG8H3G2Qd/dOnZMu2l9OpH1D O310wuEBr09WVIRURqXHyRPHy+oVzLQdgc4lhAizrvAPDJ68fwEB9vK1Cdcs0s6CNs4N a19xnBzoqaTeVeotMItWysHQX0GwFBbTM4stbbEh37MIxft2PTJRra8mgmxPh0Q04LIC ZJyvV8qe5uCxjwpAQIO9g2x6HWRNcl/scQInjw2oENYvF/pS4N/acmzPcRWaIq7wEdNw RKBX1dMyQPAFPwCJMutSSb0+j61Cl7CspDs2ztSbzvQRuDvJIbf0terudMLt5SFpr17E a0bg== X-Google-Smtp-Source: ALg8bN5strZiiM+X1VTj9znfwwVkjPpFWqClRU3rxHo4lUfVFYdNOidqJnm1eDl93LrNTJfO+oWEjA== X-Received: by 2002:a63:f241:: with SMTP id d1mr24967448pgk.2.1545966020250; Thu, 27 Dec 2018 19:00:20 -0800 (PST) Received: from mylaptop.redhat.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id 202sm80185958pfy.87.2018.12.27.19.00.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Dec 2018 19:00:19 -0800 (PST) From: Pingfan Liu To: linux-acpi@vger.kernel.org, linux-mm@kvack.org, kexec@lists.infradead.org Cc: Pingfan Liu , Tang Chen , "Rafael J. Wysocki" , Len Brown , Andrew Morton , Mike Rapoport , Michal Hocko , Jonathan Corbet , Yaowei Bai , Pavel Tatashin , Nicholas Piggin , Naoya Horiguchi , Daniel Vacek , Mathieu Malaterre , Stefan Agner , Dave Young , Baoquan He , yinghai@kernel.org, vgoyal@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCHv3 0/2] mm/memblock: reuse memblock bottom-up allocation style Date: Fri, 28 Dec 2018 11:00:00 +0800 Message-Id: <1545966002-3075-1-git-send-email-kernelfans@gmail.com> X-Mailer: git-send-email 2.7.4 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP The bottom-up allocation style is introduced to cope with movable_node, where the limit inferior of allocation starts from kernel's end, due to lack of knowledge of memory hotplug info at this early time. Beside this original aim, 'kexec -c' prefers to reuse this style to alloc mem at lower address, since if the reserved region is beyond 4G, then it requires extra mem (default is 16M) for swiotlb. But at this time hotplug info has been got, the limit inferior can be extend to 0, which is done by this series Cc: Tang Chen Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: Andrew Morton Cc: Mike Rapoport Cc: Michal Hocko Cc: Jonathan Corbet Cc: Yaowei Bai Cc: Pavel Tatashin Cc: Nicholas Piggin Cc: Naoya Horiguchi Cc: Daniel Vacek Cc: Mathieu Malaterre Cc: Stefan Agner Cc: Dave Young Cc: Baoquan He Cc: yinghai@kernel.org, Cc: vgoyal@redhat.com Cc: linux-kernel@vger.kernel.org Pingfan Liu (2): mm/memblock: extend the limit inferior of bottom-up after parsing hotplug attr x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr arch/x86/kernel/setup.c | 9 +++++--- drivers/acpi/numa.c | 4 ++++ include/linux/memblock.h | 1 + mm/memblock.c | 58 +++++++++++++++++++++++++++++------------------- 4 files changed, 46 insertions(+), 26 deletions(-)