Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4126144imm; Wed, 5 Sep 2018 11:06:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbszUj5n2SUGcnHwf2+/weFyQRb/ZSh0U3JnqZFvo4IJoNyEP6kE9V55v+oISnRKogv5Emt X-Received: by 2002:a62:59d5:: with SMTP id k82-v6mr41421369pfj.143.1536170816867; Wed, 05 Sep 2018 11:06:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536170816; cv=none; d=google.com; s=arc-20160816; b=S7txnaWtBd+W7LJOA91vsMvFS56fKyvVmSe6uQINIofnksHYGX92MC00HdXoJsn3yO S7vgmawO/P61PuHGojTedDdUSPzRBx5SILukksOlm7aOTVjm0Rj3YOiI035fLb8MVX+A SVI+NfpBxtG5db0doZu25aV2KFcQ3+1BDpNKjIR1zYypcSklOqE9nvEPdyHcKvRptM1Z PNtvYiDkskTQaMVY7DgXNvY7wTMMe/lyv5roASLIcUMsmhHBp7imcvMNnjonBHhWDNPX GJx+opnZJsf8NRY5i1VSfcrxXQB3RngdU06sQ3zSQc7FQH46WK3y/+Ww9DJpLC0fUdVP ++2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=zY7IXjywoB2le9tZDt/x17/J7TjYKc60EOvFfhNp+1k=; b=QiO6IHz3X6dzNXeSvGvqJRPM2wXirRTbJg1smGe08KpSWhmQ8Moyjzooa7FwZERQUQ yhxGkF/ROM8H+511BD8SOCicDxdhq9vkhkJeZSycNfEn4vJ8cHV69feCJVk5O9yWjbtz bYlcRlPwLgviPuSkfbv0UBTn1UeIF0y/EWOoATFhwXfkKKI/DGpVKewK5tvPUJR7VpQN vMkXJdlb7fFrNUyxAC6WoecWmRYeZQOF0Z4KKYexi2yNwpeQb2ehm9sX0svQr86iDXd8 rtJ1fIiTJThLDK5Ul5Ak3RQgDtJzBSS6ZCCyKd5tJdnrODcy8BjBGJqGdof4eOReZhMo 4Oyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=f7nCu9VT; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7-v6si2521473pgc.233.2018.09.05.11.06.40; Wed, 05 Sep 2018 11:06:56 -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=@broadcom.com header.s=google header.b=f7nCu9VT; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727692AbeIEWf7 (ORCPT + 99 others); Wed, 5 Sep 2018 18:35:59 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:36329 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727069AbeIEWf6 (ORCPT ); Wed, 5 Sep 2018 18:35:58 -0400 Received: by mail-qt0-f194.google.com with SMTP id t5-v6so9177341qtn.3 for ; Wed, 05 Sep 2018 11:04:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=zY7IXjywoB2le9tZDt/x17/J7TjYKc60EOvFfhNp+1k=; b=f7nCu9VT3zKP+pbKGUQKnFcj8ivD4kPmZ+hFiKkwheZuebe3laanpzYNBr89ndbOOY Gb+s5jc0GHc0GkNdp/5JNX1a/q4O8jR4BBieGzEdQftCaShVfdxvpFAY2NZvDtOqhcz9 z4S0JIY98w8VEljbQyRQ8yEG0q+m7CWERT88o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=zY7IXjywoB2le9tZDt/x17/J7TjYKc60EOvFfhNp+1k=; b=I3A9mdqMIzYM3wQTncSSEEtfb6JbN3TKZIpBtyII/zTY126jpviRMJGOVbq73G7MSW ocqygablZR/TjZwwXZrUKg6Zx8zxILEfZ6G+PINofKJKqHUf0GYFapRdglItEnh+cFd5 Wxy4iuYaK+4jHA2H/JOfw5oNI6JNSxqCasYNddUb64uuG17BhpAyoEyD0CEM9BHK494O EfrjU7QNPuXbzJXTqxB18WGc8MKZeOL+tDhkiqgwqN+eZRuMXjm+fLFTM9laD4oDT4sg wmIOxD8fbMKewoMS4NVY0BP8LlzFmJDnKRL/DzDHtNPNJOXfGWhiZnGo0BAqCLjF8hms gxMw== X-Gm-Message-State: APzg51BiE5UMJzNsiwM8oHfB6VfW8yEoYDuJGBZrgphoawYDqyGuzGX2 BQGfd1dI+xH1mGPFk/4HXaFJkQ== X-Received: by 2002:aed:3e25:: with SMTP id l34-v6mr21694423qtf.62.1536170680759; Wed, 05 Sep 2018 11:04:40 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id z3-v6sm1290064qkc.55.2018.09.05.11.04.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 11:04:39 -0700 (PDT) Subject: Re: [PATCH] arm64: defconfig: enable EFI_ARMSTUB_DTB_LOADER To: Grant Likely Cc: Ard Biesheuvel , Olof Johansson , Catalin Marinas , Will Deacon , Arnd Bergmann , bcm-kernel-feedback-list@broadcom.com, Linux ARM , Linux Kernel Mailing List , Leif Lindholm , Alexander Graf References: <1535563287-24803-1-git-send-email-scott.branden@broadcom.com> <1f8095f1-1f0c-0791-31c4-c7b986c4ce1f@broadcom.com> From: Scott Branden Message-ID: Date: Wed, 5 Sep 2018 11:04:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18-09-05 11:00 AM, Grant Likely wrote: > On Wed, Sep 5, 2018 at 6:27 PM Scott Branden wrote: >> >> >> On 18-09-05 02:40 AM, Ard Biesheuvel wrote: >>> On 4 September 2018 at 19:19, Scott Branden wrote: >>>> Rather than introduce EFI_ARMSTUB_DTB_LOADER, why not have >>>> the efistub use CONFIG_OF to determine whether it supports dtb= or not? >>>> >>>> That way ACPI-only distros disable devicetree support entirely. >>>> >>> Unfortunately, CONFIG_OF cannot be disabled on arm64 even on ACPI-only builds. >> OF shouldn't be automatically selected in the arm64/Kconfig. It should >> have a config >> parmaeter like other archs as mips and arm. I can submit a patch so it >> functions the >> same way as other archs so it is not always selected. It will be good >> to add a USE_OF >> config options like the other archs (or simply remove the select from >> the Kconfig and choose OF directly in the defconfig. >> This will have the added benefit of doing away with OF support when its >> not needed on an ARM64 platform. ACPI is already not automatically >> selected for all ARM64 platforms, nor should devicetree. > We don't do that on Arm because a devicetree is always required at > boot time. Even on ACPI systems a tiny DTB is used containing just a > /chosen node for passing the kernel command line and the initrd > location. Seems bizarre DTB is not needed for x86 to boot from UEFI with ACPI support?  I'll look into it further at some point in order to remove such anomaly.  There should be no need for such devicetree reliance. > > g. > > g. Thanks,  Scott