From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754105AbdBHQgA (ORCPT ); Wed, 8 Feb 2017 11:36:00 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:51170 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752061AbdBHQfp (ORCPT ); Wed, 8 Feb 2017 11:35:45 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2A95160A0C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=timur@codeaurora.org Subject: Re: [PATCH v3 06/10] arm64: efi: add EFI stub To: Ard Biesheuvel Cc: Leif Lindholm , "linux-arm-kernel@lists.infradead.org" , linux-efi@vger.kernel.org, lkml , Mark Salter , Catalin Marinas References: <1396637113-22790-1-git-send-email-leif.lindholm@linaro.org> <1396637113-22790-7-git-send-email-leif.lindholm@linaro.org> From: Timur Tabi Message-ID: <73a460e5-98f5-86c2-142f-a9a084ee0203@codeaurora.org> Date: Wed, 8 Feb 2017 10:35:02 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/08/2017 10:29 AM, Ard Biesheuvel wrote: >>> >> + status = handle_cmdline_files(sys_table, image, cmdline_ptr, >>> >> + "initrd=", dram_base + SZ_512M, >>> >> + (unsigned long *)&initrd_addr, >>> >> + (unsigned long *)&initrd_size); >> > >> > So I know this patch is almost three years old, but why is there a >> > 512M limit on the initrd size? >> > > How do you reckon this constitutes a limit? handle_cmdline_files() calls efi_high_alloc() with that limit. I'm still trying to understand all the details myself, but apparently our firmware and initrd need to fit within the first 512MB because of dram_base + SZ_512M. When we change "dram_base + SZ_512M" to "~0", everything works. -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.