Received: from list by lists.gnu.org with archive (Exim 4.71) id 1af7Ft-0004IA-OG for mharc-grub-devel@gnu.org; Sun, 13 Mar 2016 10:44:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1af7Fr-0004Ht-4s for grub-devel@gnu.org; Sun, 13 Mar 2016 10:44:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1af7Fp-0001bV-Op for grub-devel@gnu.org; Sun, 13 Mar 2016 10:44:27 -0400 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:36653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1af7Fp-0001bP-GZ for grub-devel@gnu.org; Sun, 13 Mar 2016 10:44:25 -0400 Received: by mail-wm0-x22d.google.com with SMTP id n186so75765912wmn.1 for ; Sun, 13 Mar 2016 07:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=qr/Pl4QjA2E+vsnH4zJeMpGAtzWHtH0m7TFGmmd/5I4=; b=Caqzjx5gFtH8QpJr7QH9GGZqFBCTaNKI5FN/OsE/y34uyn9BGlob28N2Vcm7IHXKCl UU6lVAqQTB55PEqxsoauWckOR/udumYuEBJr862FIdYyIEj0s7wL5HUCBxhsDu+X+vlH mc18UNytNt2I3Z6SweKTeDLBQgaR6bYOyLFDA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qr/Pl4QjA2E+vsnH4zJeMpGAtzWHtH0m7TFGmmd/5I4=; b=SN7Wlf0r/joOVol1HpU2g4QoKszxLjZIvv4mpMNL/RVTWEj9zxFIbSqOeZs4aJWArx TrC1rJNrq414lZiba6auTwSem4ZvDdjQfADJpPo1PZNU2+uxoo7CavAnqRpU1cNzZfPQ Psa4ICspO+C9RdbHVHhoe+1o4wrrjbc2D0ZlbP2YQK2wEwgvET1vAULo4xKl6FFrP9ey mmWYUfmHNVUbPT0YFbbWOrW0GMQAo5K+WahW5b5G0VqvJufWGlmMoRgQeizKtZz7eXM0 0JdLxA9CwZXA1YXaYqP5Qu7VpcugKJXbG4XFUvWAthaeRdGvlK6s63kvLVcQUYaxoQc4 dInQ== X-Gm-Message-State: AD7BkJJx50yoQLTNROrhWnfQTXvF93OdcDDX5rN4zrMjDAnFmhCGZv1l4pW65P4rGbOld/N4 X-Received: by 10.194.189.71 with SMTP id gg7mr19922444wjc.127.1457880264202; Sun, 13 Mar 2016 07:44:24 -0700 (PDT) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id cb2sm18045931wjc.16.2016.03.13.07.44.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Mar 2016 07:44:23 -0700 (PDT) Date: Sun, 13 Mar 2016 14:44:19 +0000 From: Leif Lindholm To: Vladimir 'phcoder' Serbinenko Subject: Re: [PATCH 2/2] arm efi: Use fdt from firmware when available Message-ID: <20160313144419.GT2904@bivouac.eciton.net> References: <1456701744-202295-1-git-send-email-agraf@suse.de> <1456701744-202295-2-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22d Cc: The development of GNU GRUB X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2016 14:44:28 -0000 Apologies for delay, was busy at Linaro Connect during the week, and have been sleeping since I got back home yesterday. This patch could with some stretch of the imagination be considered a bugfix for the arm-efi port. I _should_ hack together an update to arm-efi to use the arm64 Linux loader (booting via the kernel EFI Stub) on kernels supporting it, but since this support only went into v4.5-rc1, there is a use-case for supporting both ways on 32-bit. That's basically a roundabout way of saying "I wish we could just drop the separate arm-efi Linux loader, but I don't think we can, and this improves it to make it work more like the stub loader does". Which is basically a roundabout way of saying "yes". / Leif On Thu, Mar 10, 2016 at 09:00:32PM +0100, Vladimir 'phcoder' Serbinenko wrote: > Is it something relevant for 2.02 or not? > > On Monday, February 29, 2016, Alexander Graf wrote: > > > If EFI is nice enough to pass us an FDT using configuration tables on 32bit > > ARM, we should really try and make use of it. > > > > Signed-off-by: Alexander Graf > > > --- > > include/grub/arm/linux.h | 6 +----- > > 1 file changed, 1 insertion(+), 5 deletions(-) > > > > diff --git a/include/grub/arm/linux.h b/include/grub/arm/linux.h > > index 059dbba..a66caad 100644 > > --- a/include/grub/arm/linux.h > > +++ b/include/grub/arm/linux.h > > @@ -40,11 +40,7 @@ > > # define LINUX_PHYS_OFFSET (0x00008000) > > # define LINUX_INITRD_PHYS_OFFSET (LINUX_PHYS_OFFSET + 0x02000000) > > # define LINUX_FDT_PHYS_OFFSET (LINUX_INITRD_PHYS_OFFSET - 0x10000) > > -static inline grub_addr_t > > -grub_arm_firmware_get_boot_data (void) > > -{ > > - return 0; > > -} > > +# define grub_arm_firmware_get_boot_data > > (grub_addr_t)grub_efi_get_firmware_fdt > > static inline grub_uint32_t > > grub_arm_firmware_get_machine_type (void) > > { > > -- > > 1.8.5.6 > > > > > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > https://lists.gnu.org/mailman/listinfo/grub-devel > > > > > -- > Regards > Vladimir 'phcoder' Serbinenko