Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oPQLL-0007TM-GK for mharc-grub-devel@gnu.org; Sat, 20 Aug 2022 11:24:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPQLJ-0007SR-Q6 for grub-devel@gnu.org; Sat, 20 Aug 2022 11:24:57 -0400 Received: from marcansoft.com ([212.63.210.85]:45636 helo=mail.marcansoft.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPQLH-0003hW-FC for grub-devel@gnu.org; Sat, 20 Aug 2022 11:24:57 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hector@marcansoft.com) by mail.marcansoft.com (Postfix) with ESMTPSA id C4B9F42690; Sat, 20 Aug 2022 15:24:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=marcan.st; s=default; t=1661009089; bh=VYEgxqQg2JjXaoqf4PjWmWpMvvNW6NE2E25Oyednw0E=; h=From:To:Cc:Subject:Date; b=R8Te5l8yYRbEvrylbxXtxlhKmDrGbvvyGKuZP8a6cVk2VN9prS0sf1Ed0E16z2VD5 ND6H0JMrrT37ERg4zCvPEU43lwJB0GxnTtVF8DyNcm2XqKtoUOUppulWo3xQVA7Yh+ LBCngiy3K6YgjD2/stE42MKnCROGFduuAhlO9ifpklwXCUp0pSjm3yEhsH3hrmT+Wn TTJtCx+trkYv1ppxcKIF5hNjC7jn1ARBj3IIA19c2kpFiMkxtWXOa6gOvO8jXwUw96 uTJk5MmKryceN3fXNcKjRQdfA1cRRU4T+Guq9NkLagu9SGtZacihHRB1pHilgU7NkU fBxiMfxQ1Ud1w== From: Hector Martin To: grub-devel@gnu.org Cc: Hector Martin Subject: [PATCH] kern/efi/mm: Double the default heap size Date: Sun, 21 Aug 2022 00:24:13 +0900 Message-Id: <20220820152412.158952-1-marcan@marcan.st> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.63.210.85; envelope-from=marcan@marcan.st; helo=mail.marcansoft.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2022 15:24:58 -0000 GRUB is already running out of memory on Apple M1 systems, causing graphics init to fail, as of the latest Git changes. Since dynamic growing of the heap isn't done yet, double the default heap size for now. Signed-off-by: Hector Martin --- grub-core/kern/efi/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/kern/efi/mm.c b/grub-core/kern/efi/mm.c index d290c9a76270..377d8d3a1c1b 100644 --- a/grub-core/kern/efi/mm.c +++ b/grub-core/kern/efi/mm.c @@ -39,7 +39,7 @@ #define MEMORY_MAP_SIZE 0x3000 /* The default heap size for GRUB itself in bytes. */ -#define DEFAULT_HEAP_SIZE 0x100000 +#define DEFAULT_HEAP_SIZE 0x200000 static void *finish_mmap_buf = 0; static grub_efi_uintn_t finish_mmap_size = 0; -- 2.35.1