From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7CA0CC4320A for ; Wed, 18 Aug 2021 00:13:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6777560EBC for ; Wed, 18 Aug 2021 00:13:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237023AbhHRANp (ORCPT ); Tue, 17 Aug 2021 20:13:45 -0400 Received: from mail-oi1-f170.google.com ([209.85.167.170]:35835 "EHLO mail-oi1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237191AbhHRANo (ORCPT ); Tue, 17 Aug 2021 20:13:44 -0400 Received: by mail-oi1-f170.google.com with SMTP id r26so1923905oij.2; Tue, 17 Aug 2021 17:13:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=++h8bUGhJWF7B6yyYyoh0nKkVdcF8eCL74y7f9GeZ4Y=; b=Esyhn++GGRyGardw9fIXTWifL8fvOZt6fykSP9iSa0raEb9BbTcKdmv5NsNQI0lPns Xv9Y8RWR01erZS5dHw2MV+fJAfgyK91xNoZ7z9icBh+9bwO24I0gw3e2i7oWbKmPh3Ex OveBjXnLV8ori/ReyC2YhPw9wGycyenqXmmbt+hGPnqc4w5jghaNQKtJP47LXDE5uGvm pay1S1s07OJXsTvbhoO6mlvRzI9mPj7bEhjDWN+FLx60W9j9zJXYQ+P+tJdR2vRYkZq0 o5UMMROtPLkIYLdGGPSCugb8eF8hSQedA2312ZBByNie0RJODz9mo6YrlbDcMhrf+Vq5 sYEA== X-Gm-Message-State: AOAM533xuwd9jKOgJeP+qPl5jqhGHTHyjyDQPofJQLij14BtWkWXK3KO VmZLCfCo6IJy2cmt7TYO3g== X-Google-Smtp-Source: ABdhPJyJOifM/j6dYvgpX8URevK/gXq/UxE91n+1ytfa41bf6TcZ7UPHLnQ6y0p94fi4QGOLVqhW9w== X-Received: by 2002:aca:b984:: with SMTP id j126mr4666629oif.32.1629245590250; Tue, 17 Aug 2021 17:13:10 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k16sm738270oor.16.2021.08.17.17.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 17:13:09 -0700 (PDT) Received: (nullmailer pid 1094241 invoked by uid 1000); Wed, 18 Aug 2021 00:13:07 -0000 Date: Tue, 17 Aug 2021 19:13:07 -0500 From: Rob Herring To: Mike Rapoport Cc: Borislav Petkov , linux-mm@kvack.org, linux-mips@vger.kernel.org, "Kirill A . Shutemov" , Marc Zyngier , Thomas Bogendoerfer , Peter Zijlstra , Greg Kroah-Hartman , Paul Walmsley , Will Deacon , x86@kernel.org, "H. Peter Anvin" , "Rafael J. Wysocki" , Andy Lutomirski , Nick Kossifidis , Russell King , Russell King , Len Brown , Palmer Dabbelt , "Kirill A. Shutemov" , Andrew Morton , Albert Ou , Heiko Carstens , Catalin Marinas , Frank Rowand , Vasily Gorbik , Thomas Gleixner , Rob Herring , linux-kernel@vger.kernel.org, Mike Rapoport , Christian Borntraeger , "Rafael J . Wysocki" , linux-acpi@vger.kernel.org, Ingo Molnar , Guenter Roeck , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Dave Hansen , linux-s390@vger.kernel.org, kvmarm@lists.cs.columbia.edu, devicetree@vger.kernel.org Subject: Re: [PATCH v5] memblock: make memblock_find_in_range method private Message-ID: References: <20210816122622.30279-1-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210816122622.30279-1-rppt@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Mon, 16 Aug 2021 15:26:22 +0300, Mike Rapoport wrote: > From: Mike Rapoport > > There are a lot of uses of memblock_find_in_range() along with > memblock_reserve() from the times memblock allocation APIs did not exist. > > memblock_find_in_range() is the very core of memblock allocations, so any > future changes to its internal behaviour would mandate updates of all the > users outside memblock. > > Replace the calls to memblock_find_in_range() with an equivalent calls to > memblock_phys_alloc() and memblock_phys_alloc_range() and make > memblock_find_in_range() private method of memblock. > > This simplifies the callers, ensures that (unlikely) errors in > memblock_reserve() are handled and improves maintainability of > memblock_find_in_range(). > > Signed-off-by: Mike Rapoport > Acked-by: Kirill A. Shutemov > Acked-by: Rafael J. Wysocki # ACPI > Acked-by: Russell King (Oracle) > Acked-by: Nick Kossifidis # riscv > Reviewed-by: Catalin Marinas # arm64 > --- > v5: > * restore the original behaviour on x86 with addition of more elaborate > comment; I will address the issue in memory_map_top_down() in a separate > series. > > v4: https://lore.kernel.org/lkml/20210812065907.20046-1-rppt@kernel.org > * Add patch that prevents the crashes reported by Guenter Roeck on x86/i386 > on QEMU with 256M or 512M of memory and EFI boot enabled. > * Add Acked-by and Reviewed-by, thanks everybidy! > > v3: https://lore.kernel.org/lkml/20210803064218.6611-1-rppt@kernel.org > * simplify check for exact crash kerenl allocation on arm, per Rob > * make crash_max unsigned long long on arm64, per Rob > > v2: https://lore.kernel.org/lkml/20210802063737.22733-1-rppt@kernel.org > * don't change error message in arm::reserve_crashkernel(), per Russell > > v1: https://lore.kernel.org/lkml/20210730104039.7047-1-rppt@kernel.org > > > arch/arm/kernel/setup.c | 20 +++++--------- > arch/arm64/kvm/hyp/reserved_mem.c | 9 +++---- > arch/arm64/mm/init.c | 36 ++++++++----------------- > arch/mips/kernel/setup.c | 14 +++++----- > arch/riscv/mm/init.c | 44 ++++++++++--------------------- > arch/s390/kernel/setup.c | 10 ++++--- > arch/x86/kernel/aperture_64.c | 5 ++-- > arch/x86/mm/init.c | 23 ++++++++++------ > arch/x86/mm/numa.c | 5 ++-- > arch/x86/mm/numa_emulation.c | 5 ++-- > arch/x86/realmode/init.c | 2 +- > drivers/acpi/tables.c | 5 ++-- > drivers/base/arch_numa.c | 5 +--- > drivers/of/of_reserved_mem.c | 12 ++++++--- > include/linux/memblock.h | 2 -- > mm/memblock.c | 2 +- > 16 files changed, 81 insertions(+), 118 deletions(-) > Acked-by: Rob Herring From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 294ADC43214 for ; Wed, 18 Aug 2021 00:13:13 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 962F861058 for ; Wed, 18 Aug 2021 00:13:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 962F861058 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id CB6C48D0001; Tue, 17 Aug 2021 20:13:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C66FD6B0072; Tue, 17 Aug 2021 20:13:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B5F3B8D0001; Tue, 17 Aug 2021 20:13:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0034.hostedemail.com [216.40.44.34]) by kanga.kvack.org (Postfix) with ESMTP id 98CD56B0071 for ; Tue, 17 Aug 2021 20:13:11 -0400 (EDT) Received: from smtpin36.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 40E93250A2 for ; Wed, 18 Aug 2021 00:13:11 +0000 (UTC) X-FDA: 78486276582.36.659AAEB Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) by imf06.hostedemail.com (Postfix) with ESMTP id F0258801CFBD for ; Wed, 18 Aug 2021 00:13:10 +0000 (UTC) Received: by mail-oi1-f170.google.com with SMTP id r5so1878131oiw.7 for ; Tue, 17 Aug 2021 17:13:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=++h8bUGhJWF7B6yyYyoh0nKkVdcF8eCL74y7f9GeZ4Y=; b=WmnaBgTNUyDU1jrl0bKY91lyuXm+FhJI6bLJTfjXuwqD8PAlFZHZyeBTcNcy0QFat5 INLXGSTIjNPw4Rmr/zANhsHLkuheZKwz5M51mn550jH5CkwH+Qp498qLd0igfrgg+9J1 iuFDpooFInXvAi3vsGTroUqEMMXSumL/jXfPn2ZMmeH4jIO60LKKnVhQ6BzX+deVf/Qh 3BBZJO9zy7hQ6S9zB7hb+CWjroxqsV6IjBYbE/JlHalkXyxX/En6Un9PUehtn7mCjAnI TXhYn7Z1zBNAT4imGorchu+xeh1dDqy7X84Jefbfo92w6uSTV/estlyXcJCQvCESCuzB VJhQ== X-Gm-Message-State: AOAM530wvlynDW0tLFoZ81gRLFldUI4o/gYFrcBxZO3PNNWECtZ/aHtS 78zxRLzdttiSWH32XwSwBA== X-Google-Smtp-Source: ABdhPJyJOifM/j6dYvgpX8URevK/gXq/UxE91n+1ytfa41bf6TcZ7UPHLnQ6y0p94fi4QGOLVqhW9w== X-Received: by 2002:aca:b984:: with SMTP id j126mr4666629oif.32.1629245590250; Tue, 17 Aug 2021 17:13:10 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k16sm738270oor.16.2021.08.17.17.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 17:13:09 -0700 (PDT) Received: (nullmailer pid 1094241 invoked by uid 1000); Wed, 18 Aug 2021 00:13:07 -0000 Date: Tue, 17 Aug 2021 19:13:07 -0500 From: Rob Herring To: Mike Rapoport Cc: Borislav Petkov , linux-mm@kvack.org, linux-mips@vger.kernel.org, "Kirill A . Shutemov" , Marc Zyngier , Thomas Bogendoerfer , Peter Zijlstra , Greg Kroah-Hartman , Paul Walmsley , Will Deacon , x86@kernel.org, "H. Peter Anvin" , "Rafael J. Wysocki" , Andy Lutomirski , Nick Kossifidis , Russell King , Russell King , Len Brown , Palmer Dabbelt , "Kirill A. Shutemov" , Andrew Morton , Albert Ou , Heiko Carstens , Catalin Marinas , Frank Rowand , Vasily Gorbik , Thomas Gleixner , Rob Herring , linux-kernel@vger.kernel.org, Mike Rapoport , Christian Borntraeger , "Rafael J . Wysocki" , linux-acpi@vger.kernel.org, Ingo Molnar , Guenter Roeck , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Dave Hansen , linux-s390@vger.kernel.org, kvmarm@lists.cs.columbia.edu, devicetree@vger.kernel.org Subject: Re: [PATCH v5] memblock: make memblock_find_in_range method private Message-ID: References: <20210816122622.30279-1-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210816122622.30279-1-rppt@kernel.org> X-Rspamd-Queue-Id: F0258801CFBD Authentication-Results: imf06.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none); spf=pass (imf06.hostedemail.com: domain of robherring2@gmail.com designates 209.85.167.170 as permitted sender) smtp.mailfrom=robherring2@gmail.com X-Rspamd-Server: rspam04 X-Stat-Signature: mc5u315xp6tkdqunjumkkp63qgfybr7a X-HE-Tag: 1629245590-402404 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: On Mon, 16 Aug 2021 15:26:22 +0300, Mike Rapoport wrote: > From: Mike Rapoport > > There are a lot of uses of memblock_find_in_range() along with > memblock_reserve() from the times memblock allocation APIs did not exist. > > memblock_find_in_range() is the very core of memblock allocations, so any > future changes to its internal behaviour would mandate updates of all the > users outside memblock. > > Replace the calls to memblock_find_in_range() with an equivalent calls to > memblock_phys_alloc() and memblock_phys_alloc_range() and make > memblock_find_in_range() private method of memblock. > > This simplifies the callers, ensures that (unlikely) errors in > memblock_reserve() are handled and improves maintainability of > memblock_find_in_range(). > > Signed-off-by: Mike Rapoport > Acked-by: Kirill A. Shutemov > Acked-by: Rafael J. Wysocki # ACPI > Acked-by: Russell King (Oracle) > Acked-by: Nick Kossifidis # riscv > Reviewed-by: Catalin Marinas # arm64 > --- > v5: > * restore the original behaviour on x86 with addition of more elaborate > comment; I will address the issue in memory_map_top_down() in a separate > series. > > v4: https://lore.kernel.org/lkml/20210812065907.20046-1-rppt@kernel.org > * Add patch that prevents the crashes reported by Guenter Roeck on x86/i386 > on QEMU with 256M or 512M of memory and EFI boot enabled. > * Add Acked-by and Reviewed-by, thanks everybidy! > > v3: https://lore.kernel.org/lkml/20210803064218.6611-1-rppt@kernel.org > * simplify check for exact crash kerenl allocation on arm, per Rob > * make crash_max unsigned long long on arm64, per Rob > > v2: https://lore.kernel.org/lkml/20210802063737.22733-1-rppt@kernel.org > * don't change error message in arm::reserve_crashkernel(), per Russell > > v1: https://lore.kernel.org/lkml/20210730104039.7047-1-rppt@kernel.org > > > arch/arm/kernel/setup.c | 20 +++++--------- > arch/arm64/kvm/hyp/reserved_mem.c | 9 +++---- > arch/arm64/mm/init.c | 36 ++++++++----------------- > arch/mips/kernel/setup.c | 14 +++++----- > arch/riscv/mm/init.c | 44 ++++++++++--------------------- > arch/s390/kernel/setup.c | 10 ++++--- > arch/x86/kernel/aperture_64.c | 5 ++-- > arch/x86/mm/init.c | 23 ++++++++++------ > arch/x86/mm/numa.c | 5 ++-- > arch/x86/mm/numa_emulation.c | 5 ++-- > arch/x86/realmode/init.c | 2 +- > drivers/acpi/tables.c | 5 ++-- > drivers/base/arch_numa.c | 5 +--- > drivers/of/of_reserved_mem.c | 12 ++++++--- > include/linux/memblock.h | 2 -- > mm/memblock.c | 2 +- > 16 files changed, 81 insertions(+), 118 deletions(-) > Acked-by: Rob Herring From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D951C4338F for ; Wed, 18 Aug 2021 00:13:22 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id BFEBD6103A for ; Wed, 18 Aug 2021 00:13:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BFEBD6103A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 2672449F5F; Tue, 17 Aug 2021 20:13:21 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aK1cZz0O2lyK; Tue, 17 Aug 2021 20:13:16 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 88CC949FB0; Tue, 17 Aug 2021 20:13:16 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 6DFEC400D1 for ; Tue, 17 Aug 2021 20:13:15 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RgC2bpq8P7MP for ; Tue, 17 Aug 2021 20:13:10 -0400 (EDT) Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id C933C49FB0 for ; Tue, 17 Aug 2021 20:13:10 -0400 (EDT) Received: by mail-oi1-f179.google.com with SMTP id w6so1843281oiv.11 for ; Tue, 17 Aug 2021 17:13:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=++h8bUGhJWF7B6yyYyoh0nKkVdcF8eCL74y7f9GeZ4Y=; b=j+pwxsZY86cEa3sBW/eW4KXsX77y4Slc8aZR+xzxaGZCORWJI7O2BqQ/qQvB0ZtoSk 6HJR3uChQRII4lzKc2jHhzF2EzPQ3uGR00LCYmTzDHa/CTv0Jw8EDuTz6RP3C2sq7sjE Q3rvZUeMzyomyxy0cFBZe3y/v1b/VBZV2+5vBp5Tx+q9jj42WI88Br9VrWILoUJxFa4K PRp4r3sJtae4ktXmlhOIei8CVUoLVYRj0k24wXX6/KZPbNMX/r5yvJrHclCRAcixxIlY LY7DnlQsKfvUpXPDU1zvN5CmxIw4+9QiYG8GNpw9iE55t+4UztQgiLV1KCc/+vh4Or8N 7/Rg== X-Gm-Message-State: AOAM533e9Ga34XWnBKyAiL0h7tbUQ58pdrtJ5rtn+cTdzDZ8qOZB4/1l 8myyHldPBLjjJzok5aMsIQ== X-Google-Smtp-Source: ABdhPJyJOifM/j6dYvgpX8URevK/gXq/UxE91n+1ytfa41bf6TcZ7UPHLnQ6y0p94fi4QGOLVqhW9w== X-Received: by 2002:aca:b984:: with SMTP id j126mr4666629oif.32.1629245590250; Tue, 17 Aug 2021 17:13:10 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k16sm738270oor.16.2021.08.17.17.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 17:13:09 -0700 (PDT) Received: (nullmailer pid 1094241 invoked by uid 1000); Wed, 18 Aug 2021 00:13:07 -0000 Date: Tue, 17 Aug 2021 19:13:07 -0500 From: Rob Herring To: Mike Rapoport Subject: Re: [PATCH v5] memblock: make memblock_find_in_range method private Message-ID: References: <20210816122622.30279-1-rppt@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210816122622.30279-1-rppt@kernel.org> Cc: "Kirill A . Shutemov" , "Rafael J . Wysocki" , Peter Zijlstra , Catalin Marinas , Dave Hansen , linux-kernel@vger.kernel.org, linux-mm@kvack.org, "H. Peter Anvin" , Nick Kossifidis , linux-riscv@lists.infradead.org, Will Deacon , kvmarm@lists.cs.columbia.edu, linux-s390@vger.kernel.org, Frank Rowand , linux-acpi@vger.kernel.org, Marc Zyngier , x86@kernel.org, Russell King , Mike Rapoport , Christian Borntraeger , Ingo Molnar , Guenter Roeck , Len Brown , devicetree@vger.kernel.org, Albert Ou , Vasily Gorbik , Heiko Carstens , Russell King , Rob Herring , Borislav Petkov , Andy Lutomirski , Paul Walmsley , "Kirill A. Shutemov" , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Thomas Bogendoerfer , Greg Kroah-Hartman , "Rafael J. Wysocki" , linux-mips@vger.kernel.org, Palmer Dabbelt , Andrew Morton X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu On Mon, 16 Aug 2021 15:26:22 +0300, Mike Rapoport wrote: > From: Mike Rapoport > > There are a lot of uses of memblock_find_in_range() along with > memblock_reserve() from the times memblock allocation APIs did not exist. > > memblock_find_in_range() is the very core of memblock allocations, so any > future changes to its internal behaviour would mandate updates of all the > users outside memblock. > > Replace the calls to memblock_find_in_range() with an equivalent calls to > memblock_phys_alloc() and memblock_phys_alloc_range() and make > memblock_find_in_range() private method of memblock. > > This simplifies the callers, ensures that (unlikely) errors in > memblock_reserve() are handled and improves maintainability of > memblock_find_in_range(). > > Signed-off-by: Mike Rapoport > Acked-by: Kirill A. Shutemov > Acked-by: Rafael J. Wysocki # ACPI > Acked-by: Russell King (Oracle) > Acked-by: Nick Kossifidis # riscv > Reviewed-by: Catalin Marinas # arm64 > --- > v5: > * restore the original behaviour on x86 with addition of more elaborate > comment; I will address the issue in memory_map_top_down() in a separate > series. > > v4: https://lore.kernel.org/lkml/20210812065907.20046-1-rppt@kernel.org > * Add patch that prevents the crashes reported by Guenter Roeck on x86/i386 > on QEMU with 256M or 512M of memory and EFI boot enabled. > * Add Acked-by and Reviewed-by, thanks everybidy! > > v3: https://lore.kernel.org/lkml/20210803064218.6611-1-rppt@kernel.org > * simplify check for exact crash kerenl allocation on arm, per Rob > * make crash_max unsigned long long on arm64, per Rob > > v2: https://lore.kernel.org/lkml/20210802063737.22733-1-rppt@kernel.org > * don't change error message in arm::reserve_crashkernel(), per Russell > > v1: https://lore.kernel.org/lkml/20210730104039.7047-1-rppt@kernel.org > > > arch/arm/kernel/setup.c | 20 +++++--------- > arch/arm64/kvm/hyp/reserved_mem.c | 9 +++---- > arch/arm64/mm/init.c | 36 ++++++++----------------- > arch/mips/kernel/setup.c | 14 +++++----- > arch/riscv/mm/init.c | 44 ++++++++++--------------------- > arch/s390/kernel/setup.c | 10 ++++--- > arch/x86/kernel/aperture_64.c | 5 ++-- > arch/x86/mm/init.c | 23 ++++++++++------ > arch/x86/mm/numa.c | 5 ++-- > arch/x86/mm/numa_emulation.c | 5 ++-- > arch/x86/realmode/init.c | 2 +- > drivers/acpi/tables.c | 5 ++-- > drivers/base/arch_numa.c | 5 +--- > drivers/of/of_reserved_mem.c | 12 ++++++--- > include/linux/memblock.h | 2 -- > mm/memblock.c | 2 +- > 16 files changed, 81 insertions(+), 118 deletions(-) > Acked-by: Rob Herring _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD2C9C4338F for ; Wed, 18 Aug 2021 00:15:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 92C7E60EBC for ; Wed, 18 Aug 2021 00:15:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 92C7E60EBC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OgWwG00stTMMB3zCdYQjrPZbhBdAcZ3Bw1GAziC/o0U=; b=EfemzDxBra94fR fxzB5f/Kjhz1ppCG1tnV0zLxubMD2ey1IRQBjqje8Au3VI5TJHveem1CgscKLev6WXa5NzoFtVS3I HH0tHWxRzPbeCsqQgVyHd18/XWgr8SnAMOWlnHumbwVHREYzOpUsRJFs+A6lOxhfs1nSMaNKtvBQ+ TPUZ7eNzfclMHnDkIkxiyUiIG/H8jpYad/RnP7lRrD/wDsrJy/O3CYTdtTFoVKziDXz/0RM8Oc0o6 thaIGn1caDiHOYgreXgYO2/mi0EQpXSSor8OUNL6J/FYXh66rogmbQ4Sae1BaYjpU2OzQMGQotD4E pNZVkNxODZEKT6W/QwbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mG9E9-003lB1-BP; Wed, 18 Aug 2021 00:14:41 +0000 Received: from mail-oi1-f171.google.com ([209.85.167.171]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mG9Ch-003khY-6C; Wed, 18 Aug 2021 00:13:12 +0000 Received: by mail-oi1-f171.google.com with SMTP id bd1so1911035oib.3; Tue, 17 Aug 2021 17:13:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=++h8bUGhJWF7B6yyYyoh0nKkVdcF8eCL74y7f9GeZ4Y=; b=hGdA7FeGe3+Jso4pBOdBQfqJdq3Xu5mzPLEU02n5GcrtIx/Q5B6CAMyOhh5CpTaHu5 RbOxB+bhQw0BgOXHvUqLAwYceNbXEmA8hQUyNVmT9xpaFkg/Zk4JeJfRT45U60HYQc2D 6xno1qx9KMRFG/Jg5x5BSMswjq7ukzYDUuFsbmJTq5wEKP0ZqBu4TO53mpoQR99cKQb4 wiwqoIOwRHv1btcWWB+RSLs9qjnP6wcsE1n4CtBT4dPsoh+2duVR/GjAXIA61ZqGTocm aAgl93TRgatPW01eATN4CPzzh8Wjgea2pEQlT1RfP3FBHzu051lR0rX83E6m1cfNtAD2 MczA== X-Gm-Message-State: AOAM5323t0th+PnewAg3xg8jQCCK6yI0kJWRlYA7ctCH6ynF/a13/QUi qYFxMm9UHeKfPCpSXBNiYA== X-Google-Smtp-Source: ABdhPJyJOifM/j6dYvgpX8URevK/gXq/UxE91n+1ytfa41bf6TcZ7UPHLnQ6y0p94fi4QGOLVqhW9w== X-Received: by 2002:aca:b984:: with SMTP id j126mr4666629oif.32.1629245590250; Tue, 17 Aug 2021 17:13:10 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k16sm738270oor.16.2021.08.17.17.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 17:13:09 -0700 (PDT) Received: (nullmailer pid 1094241 invoked by uid 1000); Wed, 18 Aug 2021 00:13:07 -0000 Date: Tue, 17 Aug 2021 19:13:07 -0500 From: Rob Herring To: Mike Rapoport Cc: Borislav Petkov , linux-mm@kvack.org, linux-mips@vger.kernel.org, "Kirill A . Shutemov" , Marc Zyngier , Thomas Bogendoerfer , Peter Zijlstra , Greg Kroah-Hartman , Paul Walmsley , Will Deacon , x86@kernel.org, "H. Peter Anvin" , "Rafael J. Wysocki" , Andy Lutomirski , Nick Kossifidis , Russell King , Russell King , Len Brown , Palmer Dabbelt , "Kirill A. Shutemov" , Andrew Morton , Albert Ou , Heiko Carstens , Catalin Marinas , Frank Rowand , Vasily Gorbik , Thomas Gleixner , Rob Herring , linux-kernel@vger.kernel.org, Mike Rapoport , Christian Borntraeger , "Rafael J . Wysocki" , linux-acpi@vger.kernel.org, Ingo Molnar , Guenter Roeck , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Dave Hansen , linux-s390@vger.kernel.org, kvmarm@lists.cs.columbia.edu, devicetree@vger.kernel.org Subject: Re: [PATCH v5] memblock: make memblock_find_in_range method private Message-ID: References: <20210816122622.30279-1-rppt@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210816122622.30279-1-rppt@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210817_171311_311936_B01EC009 X-CRM114-Status: GOOD ( 21.87 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Mon, 16 Aug 2021 15:26:22 +0300, Mike Rapoport wrote: > From: Mike Rapoport > > There are a lot of uses of memblock_find_in_range() along with > memblock_reserve() from the times memblock allocation APIs did not exist. > > memblock_find_in_range() is the very core of memblock allocations, so any > future changes to its internal behaviour would mandate updates of all the > users outside memblock. > > Replace the calls to memblock_find_in_range() with an equivalent calls to > memblock_phys_alloc() and memblock_phys_alloc_range() and make > memblock_find_in_range() private method of memblock. > > This simplifies the callers, ensures that (unlikely) errors in > memblock_reserve() are handled and improves maintainability of > memblock_find_in_range(). > > Signed-off-by: Mike Rapoport > Acked-by: Kirill A. Shutemov > Acked-by: Rafael J. Wysocki # ACPI > Acked-by: Russell King (Oracle) > Acked-by: Nick Kossifidis # riscv > Reviewed-by: Catalin Marinas # arm64 > --- > v5: > * restore the original behaviour on x86 with addition of more elaborate > comment; I will address the issue in memory_map_top_down() in a separate > series. > > v4: https://lore.kernel.org/lkml/20210812065907.20046-1-rppt@kernel.org > * Add patch that prevents the crashes reported by Guenter Roeck on x86/i386 > on QEMU with 256M or 512M of memory and EFI boot enabled. > * Add Acked-by and Reviewed-by, thanks everybidy! > > v3: https://lore.kernel.org/lkml/20210803064218.6611-1-rppt@kernel.org > * simplify check for exact crash kerenl allocation on arm, per Rob > * make crash_max unsigned long long on arm64, per Rob > > v2: https://lore.kernel.org/lkml/20210802063737.22733-1-rppt@kernel.org > * don't change error message in arm::reserve_crashkernel(), per Russell > > v1: https://lore.kernel.org/lkml/20210730104039.7047-1-rppt@kernel.org > > > arch/arm/kernel/setup.c | 20 +++++--------- > arch/arm64/kvm/hyp/reserved_mem.c | 9 +++---- > arch/arm64/mm/init.c | 36 ++++++++----------------- > arch/mips/kernel/setup.c | 14 +++++----- > arch/riscv/mm/init.c | 44 ++++++++++--------------------- > arch/s390/kernel/setup.c | 10 ++++--- > arch/x86/kernel/aperture_64.c | 5 ++-- > arch/x86/mm/init.c | 23 ++++++++++------ > arch/x86/mm/numa.c | 5 ++-- > arch/x86/mm/numa_emulation.c | 5 ++-- > arch/x86/realmode/init.c | 2 +- > drivers/acpi/tables.c | 5 ++-- > drivers/base/arch_numa.c | 5 +--- > drivers/of/of_reserved_mem.c | 12 ++++++--- > include/linux/memblock.h | 2 -- > mm/memblock.c | 2 +- > 16 files changed, 81 insertions(+), 118 deletions(-) > Acked-by: Rob Herring _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FAEAC4338F for ; Wed, 18 Aug 2021 00:17:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2860A60240 for ; Wed, 18 Aug 2021 00:17:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2860A60240 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8afx2YHbH93Ryl0E+BnsfphhYiRru2nNmoXRvgeJ9IM=; b=fQpi61C630aygZ lxlpMR3Fvl06JY/ZetIiU2NWnAThVyW9EdSmKSKGU7yKDWNqjwe5GFIilnYlpYV+lUjCmyvthNDm0 RMo1qIFGA5COM681zTRmArJlaxnCxDCr7ztDYUbvZkuO1183G0D1Em1XQCc+DwEfgLqC3I3oX513x Sd86mC+rdv7F/zoRlgR2Up4ZNZNARrF0TFDTs4Ug2AQ7F9Nr9eVKBwT2ga0UDGGM3AdIJkMsXLkJN z+cBTwA2ICA6A4L7Z7OG7SeDAuddsF7yEPVyWrPUY00UEGAdK72hHKsU0NvBvKWwB04JcxOFaODDL zIJ86TQ81WWuNY4091mQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mG9EF-003lOx-My; Wed, 18 Aug 2021 00:14:48 +0000 Received: from mail-oi1-f171.google.com ([209.85.167.171]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mG9Ch-003khY-6C; Wed, 18 Aug 2021 00:13:12 +0000 Received: by mail-oi1-f171.google.com with SMTP id bd1so1911035oib.3; Tue, 17 Aug 2021 17:13:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=++h8bUGhJWF7B6yyYyoh0nKkVdcF8eCL74y7f9GeZ4Y=; b=hGdA7FeGe3+Jso4pBOdBQfqJdq3Xu5mzPLEU02n5GcrtIx/Q5B6CAMyOhh5CpTaHu5 RbOxB+bhQw0BgOXHvUqLAwYceNbXEmA8hQUyNVmT9xpaFkg/Zk4JeJfRT45U60HYQc2D 6xno1qx9KMRFG/Jg5x5BSMswjq7ukzYDUuFsbmJTq5wEKP0ZqBu4TO53mpoQR99cKQb4 wiwqoIOwRHv1btcWWB+RSLs9qjnP6wcsE1n4CtBT4dPsoh+2duVR/GjAXIA61ZqGTocm aAgl93TRgatPW01eATN4CPzzh8Wjgea2pEQlT1RfP3FBHzu051lR0rX83E6m1cfNtAD2 MczA== X-Gm-Message-State: AOAM5323t0th+PnewAg3xg8jQCCK6yI0kJWRlYA7ctCH6ynF/a13/QUi qYFxMm9UHeKfPCpSXBNiYA== X-Google-Smtp-Source: ABdhPJyJOifM/j6dYvgpX8URevK/gXq/UxE91n+1ytfa41bf6TcZ7UPHLnQ6y0p94fi4QGOLVqhW9w== X-Received: by 2002:aca:b984:: with SMTP id j126mr4666629oif.32.1629245590250; Tue, 17 Aug 2021 17:13:10 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k16sm738270oor.16.2021.08.17.17.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 17:13:09 -0700 (PDT) Received: (nullmailer pid 1094241 invoked by uid 1000); Wed, 18 Aug 2021 00:13:07 -0000 Date: Tue, 17 Aug 2021 19:13:07 -0500 From: Rob Herring To: Mike Rapoport Cc: Borislav Petkov , linux-mm@kvack.org, linux-mips@vger.kernel.org, "Kirill A . Shutemov" , Marc Zyngier , Thomas Bogendoerfer , Peter Zijlstra , Greg Kroah-Hartman , Paul Walmsley , Will Deacon , x86@kernel.org, "H. Peter Anvin" , "Rafael J. Wysocki" , Andy Lutomirski , Nick Kossifidis , Russell King , Russell King , Len Brown , Palmer Dabbelt , "Kirill A. Shutemov" , Andrew Morton , Albert Ou , Heiko Carstens , Catalin Marinas , Frank Rowand , Vasily Gorbik , Thomas Gleixner , Rob Herring , linux-kernel@vger.kernel.org, Mike Rapoport , Christian Borntraeger , "Rafael J . Wysocki" , linux-acpi@vger.kernel.org, Ingo Molnar , Guenter Roeck , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Dave Hansen , linux-s390@vger.kernel.org, kvmarm@lists.cs.columbia.edu, devicetree@vger.kernel.org Subject: Re: [PATCH v5] memblock: make memblock_find_in_range method private Message-ID: References: <20210816122622.30279-1-rppt@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210816122622.30279-1-rppt@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210817_171311_311936_B01EC009 X-CRM114-Status: GOOD ( 21.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 16 Aug 2021 15:26:22 +0300, Mike Rapoport wrote: > From: Mike Rapoport > > There are a lot of uses of memblock_find_in_range() along with > memblock_reserve() from the times memblock allocation APIs did not exist. > > memblock_find_in_range() is the very core of memblock allocations, so any > future changes to its internal behaviour would mandate updates of all the > users outside memblock. > > Replace the calls to memblock_find_in_range() with an equivalent calls to > memblock_phys_alloc() and memblock_phys_alloc_range() and make > memblock_find_in_range() private method of memblock. > > This simplifies the callers, ensures that (unlikely) errors in > memblock_reserve() are handled and improves maintainability of > memblock_find_in_range(). > > Signed-off-by: Mike Rapoport > Acked-by: Kirill A. Shutemov > Acked-by: Rafael J. Wysocki # ACPI > Acked-by: Russell King (Oracle) > Acked-by: Nick Kossifidis # riscv > Reviewed-by: Catalin Marinas # arm64 > --- > v5: > * restore the original behaviour on x86 with addition of more elaborate > comment; I will address the issue in memory_map_top_down() in a separate > series. > > v4: https://lore.kernel.org/lkml/20210812065907.20046-1-rppt@kernel.org > * Add patch that prevents the crashes reported by Guenter Roeck on x86/i386 > on QEMU with 256M or 512M of memory and EFI boot enabled. > * Add Acked-by and Reviewed-by, thanks everybidy! > > v3: https://lore.kernel.org/lkml/20210803064218.6611-1-rppt@kernel.org > * simplify check for exact crash kerenl allocation on arm, per Rob > * make crash_max unsigned long long on arm64, per Rob > > v2: https://lore.kernel.org/lkml/20210802063737.22733-1-rppt@kernel.org > * don't change error message in arm::reserve_crashkernel(), per Russell > > v1: https://lore.kernel.org/lkml/20210730104039.7047-1-rppt@kernel.org > > > arch/arm/kernel/setup.c | 20 +++++--------- > arch/arm64/kvm/hyp/reserved_mem.c | 9 +++---- > arch/arm64/mm/init.c | 36 ++++++++----------------- > arch/mips/kernel/setup.c | 14 +++++----- > arch/riscv/mm/init.c | 44 ++++++++++--------------------- > arch/s390/kernel/setup.c | 10 ++++--- > arch/x86/kernel/aperture_64.c | 5 ++-- > arch/x86/mm/init.c | 23 ++++++++++------ > arch/x86/mm/numa.c | 5 ++-- > arch/x86/mm/numa_emulation.c | 5 ++-- > arch/x86/realmode/init.c | 2 +- > drivers/acpi/tables.c | 5 ++-- > drivers/base/arch_numa.c | 5 +--- > drivers/of/of_reserved_mem.c | 12 ++++++--- > include/linux/memblock.h | 2 -- > mm/memblock.c | 2 +- > 16 files changed, 81 insertions(+), 118 deletions(-) > Acked-by: Rob Herring _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel