Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1777650imm; Sun, 9 Sep 2018 08:57:52 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda5sg5Arfy5iveBGrBSxon/elLHHyj2oTRz9s4K97G7SJWLr6PUVP5meqH926m/vhR0WBjL X-Received: by 2002:a17:902:e088:: with SMTP id cb8-v6mr17510611plb.189.1536508672836; Sun, 09 Sep 2018 08:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536508672; cv=none; d=google.com; s=arc-20160816; b=U6o1LJqHzSPpzuQbfoFXlu1tiLwXI+HeV21DLSOf6i9iibCPP9BS9WzdzKmdZQFMiv +vmYio4/Fi2YelAkMMQ7tHWX6AOpZdUpAFu4LVRi45AmlEwe93fGLTmOMZlOIytO6/q4 2ogJh3nXQRouMO9i9rm6Qttt9dg8paqrWKsNVtOcUSZKxkB5WnDhjdDl/KeYN74rRzoA IvU1G0BNhZ+k8mKQdkwmC23/f/6iPGzvKhugIar3XVhMuoo5SACV9ioImngbFQNCcKFu gXHJaibE7Gtv3091s8h3U5KJ7lyKMsd4rAOmPDxOET9i7GD2qDNASGRZOdFzXLNj39My 0uCg== 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; bh=fZKF5r8urd2yVRiHJG51pNBja/4zKr/DhfLHNDlE0Us=; b=Smg+D7wmFlSpAgxFH+EOUD/NKcGu4KiuRFhBMPDmXMjwHB6FZ3yfWMreIUv94BCf9n S0joDFcqpKItfgQ5ITDecPHMYfFL+rqavnAiAeUhpDXnMe/khlHFbN6SrDvO3cXauGGi eURr9b/CYhk2l8JEIPO2CzEWBsNFzARLOZWlq2izflWVaAmANjs6j9Hso4Lps4rnClC9 1CviFdySRBYC++vup2JUepIDWoMjDUkR7I7HybybdbBvxyYXrj70pWyuXoHdrh5KbT25 FzF96l9XhzpK0TP8SmZolyNSoffad0/WbwN05fM8YhTJEzKjumgAIdpl5LmG/GHgmTNc z9XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ODpDdDFm; 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 b15-v6si13718467plk.111.2018.09.09.08.57.37; Sun, 09 Sep 2018 08:57:52 -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=ODpDdDFm; 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 S1726718AbeIIUqC (ORCPT + 99 others); Sun, 9 Sep 2018 16:46:02 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:32833 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726598AbeIIUqC (ORCPT ); Sun, 9 Sep 2018 16:46:02 -0400 Received: by mail-io1-f66.google.com with SMTP id r196-v6so5082329iod.0 for ; Sun, 09 Sep 2018 08:55:56 -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=fZKF5r8urd2yVRiHJG51pNBja/4zKr/DhfLHNDlE0Us=; b=ODpDdDFmvRYLDnnkS0F8MmTQ+Riq/h24Fhky2ybrKZfVFZNsV6vdLQ1B3VsRGk9c9N N1eR7jO2JEw0+ahKMmh4PW6/YEqLlk75vlCP1Cy1uh+Q5V8xdtkRol3z7hedybsmDSUD CHW3C5SK7A2Q4h1I6Zcp1XrY7j7i6n/j046S4= 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=fZKF5r8urd2yVRiHJG51pNBja/4zKr/DhfLHNDlE0Us=; b=XWBRS7pmCpcJwVXP8zfFNNmtpybMaTsv7QjCyCr3E+yW7i3DKqxFKIjXHXfolm3O6A LvFGYRxgBvJtY/G4QIj7fcILcqZ4MYO+hSWNwVcYmu4leCmqRC/g6EUJ91tkTInUmkE/ kmgYbDendjxcClJvEI7DmtmHVlBh4YviLVgRRpAZVCGHK/x3S4dBbcdl6wk0PfCORPxP fJBE0Rj+rlFMICpns1M/Ahjmbu/4Ac9P4DTn3QFTNcDXt4ZMGMkWB9zbaCmlVAxS0MII vG9H8IGeWhIN0aWbaMfG2Md4Ws1CbRUCL6FI5tFnef4gnBMoiywZ/qdO+cBZFKkOUnJc xK7Q== X-Gm-Message-State: APzg51AoJwBVQLpDaS8pbIshxCJwIP9eKUQC2dNRJziVc8GLQsMz0XMy zt1w5zNhn2ctw5nikJfkl8spboaGvWDbDn8btkWfOw== X-Received: by 2002:a6b:4516:: with SMTP id s22-v6mr14360138ioa.60.1536508556327; Sun, 09 Sep 2018 08:55:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:2848:0:0:0:0:0 with HTTP; Sun, 9 Sep 2018 08:55:55 -0700 (PDT) In-Reply-To: <20180909110732.GA63296@iMac.local> References: <1f8095f1-1f0c-0791-31c4-c7b986c4ce1f@broadcom.com> <20180909110732.GA63296@iMac.local> From: Ard Biesheuvel Date: Sun, 9 Sep 2018 17:55:55 +0200 Message-ID: Subject: Re: [PATCH] arm64: defconfig: enable EFI_ARMSTUB_DTB_LOADER To: Catalin Marinas Cc: Scott Branden , Grant Likely , Arnd Bergmann , Will Deacon , Linux Kernel Mailing List , Leif Lindholm , Alexander Graf , BCM Kernel Feedback , Olof Johansson , Linux ARM 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 9 September 2018 at 13:07, Catalin Marinas wrote: > On Wed, Sep 05, 2018 at 11:04:36AM -0700, Scott Branden wrote: >> 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. > > I'd say don't waste time on this, the patch would not get merged ;). As > Grant said, we use a tiny dtb to pass the command line, initrd to the > kernel. You'd have to invent an alternative (setup_header, ATAGs) and I > really don't see the point of increased complexity just because of some > philosophical arguments against OF. > Not just that: we also need of_match_table support for ACPI's PRP0001 device (which is a horrible hack in itself, but currently supported in Linux/arm64 *and* Linux/x86 nonetheless)