Message ID | 20200513094416.347394093@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=bVfs=63=vger.kernel.org=stable-owner@kernel.org> 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=-6.9 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT 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 1FC86C2D0FA for <stable@archiver.kernel.org>; Wed, 13 May 2020 10:02:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E00F72176D for <stable@archiver.kernel.org>; Wed, 13 May 2020 10:02:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589364135; bh=uOdmIxsIY5mVo19Rvp98hxeHLUkyCpu6hxH7U1G3Sgg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=N1pcP4eIZT70qqb6fJ0U5L35+hX+KGzRzwixyZh2dtuzg/zPz1iFZblKLXwiT02O5 2zL+uwIZIx4d49OTFxAkFsJ1qKvSkFE53UFFCpyNjCc8bnBC5te8AG4hTCnP6B7p3A uxE9xEY5YU7GRafgxR7YA1R2yNr1AAZSMBQXC/aE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387662AbgEMKCK (ORCPT <rfc822;stable@archiver.kernel.org>); Wed, 13 May 2020 06:02:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:50068 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387474AbgEMJuT (ORCPT <rfc822;stable@vger.kernel.org>); Wed, 13 May 2020 05:50:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ECBFB20575; Wed, 13 May 2020 09:50:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589363419; bh=uOdmIxsIY5mVo19Rvp98hxeHLUkyCpu6hxH7U1G3Sgg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nYLfg0pmfRzJkD5kaZ0+Pn8/SQvk84Jevc1jjfo2maTMfCACnI29396v2AZ9JFymg BSek8ml6jRu6sChe2PCaukpg3FBd3gn9uAoeIz3Zz+zWgqJ1bCyDriFoQkcvtk+mbs SJrs4zVuytn38b7EYP5damRQpuD9lp65ZbUVpGIg= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Vincent Chen <vincent.chen@sifive.com>, Anup Patel <anup@brainfault.org>, Yash Shah <yash.shah@sifive.com>, Palmer Dabbelt <palmerdabbelt@google.com> Subject: [PATCH 5.4 66/90] riscv: set max_pfn to the PFN of the last page Date: Wed, 13 May 2020 11:45:02 +0200 Message-Id: <20200513094416.347394093@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200513094408.810028856@linuxfoundation.org> References: <20200513094408.810028856@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -116,7 +116,8 @@ void __init setup_bootmem(void) memblock_reserve(vmlinux_start, vmlinux_end - vmlinux_start); set_max_mapnr(PFN_DOWN(mem_size)); - max_low_pfn = PFN_DOWN(memblock_end_of_DRAM()); + max_pfn = PFN_DOWN(memblock_end_of_DRAM()); + max_low_pfn = max_pfn; #ifdef CONFIG_BLK_DEV_INITRD setup_initrd();