Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp322188imm; Wed, 29 Aug 2018 22:57:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZVg1RAHNTbnLoKv4bhQi+8nzZZVWOEGtZtz0DhLkLEbUIx6z4yAXt5V8+mEOYNCjk0PRq0 X-Received: by 2002:a17:902:8495:: with SMTP id c21-v6mr8814250plo.241.1535608627174; Wed, 29 Aug 2018 22:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535608627; cv=none; d=google.com; s=arc-20160816; b=j9pwlcLWBmP3sZW6qgZB043V97WOExrbkxu7lWiyoQ7R1zxYJkVj0EF11E88OJXPkB yktWq+qNY8+kdxQBhVx3okmFdgkIVw1gqSBqvaS4Pw+KM/JqT+EBqVlEJMD33CNMYHQY zehX8hVSCx28lGU6hJGfae4fuxdaSfasfAWyhSkJDY6/5/8xodJQ1YZ4x6Q+ZIOp0b88 NviJNVBm4N/9LwUsopyKTWG9xkEuzCqcqizYHL50RioO19rdMUokUVWdKNds9UB0yEd/ C/t2r7eLhfKjciD7t4J/xCPk2DIo/4tAF8q81zwYXrb8AmFQ8lHTDweCm/THVqXt/AIr 1RTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=oUDvcb9Exnk+DwTggIYkNboKl4VpBN2wI96GH9WdNGs=; b=FSQvmUB5/hY39HU99T1tEB3+F4ct7cRhjB1WhMSNUhVCIX02H+8bqE3yI2rNtP13Sg IUbzDG4OBABMBuWj5a9uJakunfHe3tRKC01SpLO+SRPkt6mnJNebK+mbilLa+o27V2W0 ZJJ7/jSUNpJnB5NVKvbebwcBpaG6tKtq8tN9n6f8Cqpw0naK1pmij14D9B4UfQCBHEmv +ZBvoxGn7F8VoLfjCVW+mo8qDcixt3NFoJzjn/9BaMYsujZeSfPzp/aeeH+pUtirRUi4 2Xy8YsSEXrUtO+lbdRax0sfEeERfeoXGr6yZYCn8zvsXzKf52V8b8V8sbiKs9Wvse8ZR pvQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fYmoyOQR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3-v6si5794585pgo.542.2018.08.29.22.56.52; Wed, 29 Aug 2018 22:57:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fYmoyOQR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727474AbeH3JzV (ORCPT + 99 others); Thu, 30 Aug 2018 05:55:21 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:53373 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbeH3JzV (ORCPT ); Thu, 30 Aug 2018 05:55:21 -0400 Received: by mail-it0-f68.google.com with SMTP id p79-v6so1050923itp.3 for ; Wed, 29 Aug 2018 22:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oUDvcb9Exnk+DwTggIYkNboKl4VpBN2wI96GH9WdNGs=; b=fYmoyOQRVztHwlDZQ0w5IDSTjRgsPaIgikg0Y9zFCwbsYmPL/WlmW29ZEBxOqk+R3L 7gJuc8P/9C/QY0HHO6o5Q4pjy2ax6tyDypv8z99FP+r0a8HZZoiS4Rg+IDe3rE6FRgh/ El5MWjfK1Exws/LxF77hD4CAzSLiduPu7HvCk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oUDvcb9Exnk+DwTggIYkNboKl4VpBN2wI96GH9WdNGs=; b=P12lPkYllVK0SL6evpqMgSNgOPSKVUJUOnL/QHNVhtXuVEkx1HJE9APXy7NTqy54Hz uj+Dp53MD7hcQx28F3r2N/eMBzU2A13e7sudNSyJxGQUEVEzirAe2VXYBYOEQB8Pd8uU X+VOSzP6JVEyYQhn14OANyRGIeP6gNl8BQ1e3Uj9+EDnjGlJJiKSwZ2y+NNAXoVpoWBX py4T9S/iLVQxgAUKtY0eqrTJNnNCNK9R+mGtxTlV9Yq+hBLv3kFELBF9GN5ckSIjnaVS HVUgKT2sNGmze6SFFJ4bfpx9EQ5Npjv+4ql6bE/1/eUEk7veuivlQRZjO5DbpMcUKuYG +IJw== X-Gm-Message-State: APzg51BE6V2HeAprf1bHSdaW94808oLQXRn7XUh5rSRIFfCQF5iphsfq o1/8MqT8ejXWdDBIevU05zkcURRIzayoo6gDM0zZJQ== X-Received: by 2002:a24:57cb:: with SMTP id u194-v6mr939033ita.148.1535608492784; Wed, 29 Aug 2018 22:54:52 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:ac05:0:0:0:0:0 with HTTP; Wed, 29 Aug 2018 22:54:52 -0700 (PDT) In-Reply-To: References: <1535563287-24803-1-git-send-email-scott.branden@broadcom.com> From: Ard Biesheuvel Date: Thu, 30 Aug 2018 07:54:52 +0200 Message-ID: Subject: Re: [PATCH] arm64: defconfig: enable EFI_ARMSTUB_DTB_LOADER To: Scott Branden Cc: Olof Johansson , Catalin Marinas , Will Deacon , Arnd Bergmann , BCM Kernel Feedback , Linux ARM Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29 August 2018 at 20:59, Scott Branden wrote: > Hi Olof, > > > On 18-08-29 11:44 AM, Olof Johansson wrote: >> >> Hi, >> >> On Wed, Aug 29, 2018 at 10:21 AM, Scott Branden >> wrote: >>> >>> Enable EFI_ARMSTUB_DTB_LOADER to add support for the dtb= command line >>> parameter to function with efi loader. >>> >>> Required to boot on existing bootloaders that do not support devicetree >>> provided by the platform or by the bootloader. >>> >>> Fixes: 3d7ee348aa41 ("efi/libstub/arm: Add opt-in Kconfig option for the >>> DTB loader") >>> Signed-off-by: Scott Branden >> >> Why did Ard create an option for this if it's just going be turned on >> in default configs? Doesn't make sense to me. >> >> It would help to know what firmware still is crippled and how common >> it is, since it's been a few years that this has been a requirement by >> now. > > Broadcom NS2 and Stingray in current development and production need this > option in the kernel enabled in order to boot. And these production systems run mainline kernels in a defconfig configuration? The simply reality is that the DTB loader has been deprecated for a good reason: it was only ever intended as a development hack anyway, and if we need to treat the EFI stub provided DTB as a first class citizen, there are things we need to fix to make things works as expected. For instance, GRUB will put a property in the /chosen node for the initramfs which will get dropped if you boot with dtb=. Don't be surprised if some future enhancements of the EFI stub code depend on !EFI_ARMSTUB_DTB_LOADER. On UEFI systems, DTBs [or ACPI tables] are used by the firmware to describe itself and the underlying platform to the OS, and the practice of booting with DTB file images (taken from the kernel build as well) conflicts with that view. Note that GRUB still permits you to load DTBs from files (and supports more sources than just the file system the kernel Image was loaded from).