Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2639imm; Wed, 5 Sep 2018 12:42:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZHKZ+XAL7NNah9fCxEO5tBG3hQVtALJFUxC1TneVCpkW/XvZ1hG35qUFpF7P1JU6n6R2Xe X-Received: by 2002:a17:902:8c84:: with SMTP id t4-v6mr41099009plo.100.1536176565817; Wed, 05 Sep 2018 12:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176545; cv=none; d=google.com; s=arc-20160816; b=H9u7BTtIva4oqytgKsESnnsLa0VwIQof7dHKIug3r/4GinuWmrUhkHqg0WWIYcq41s nVIvlK6g9aYquW6Z/eyh4pjSjbIQdRcaN0kcHNV9UptEFkuQogbUUHZNNrzLgcBlpmH0 WIg/vEys8PtMEEkqyV9VKYCj15qCHP4DrWsY2frzs4L0/vPy6+ghaHDRO46QPkL9YZsF PPtiwjEzzmNLN+kvIwtfRUp3Dp26vyqThntrt4fZ80ii+LnzWvi+/0OStd4dn4o2Vqg+ b2RiNml/JHExo0xVvGp00Afy7dquiN9vaZCH6XKAH92AkcHqtbzZj/Y7o5CrPWYkk0FE XiJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=QZTnoFJFAarXPFrkqP/iNbctKollHfO7kWdi4pkW1JA=; b=tLLxpRxShiCwxShbUp/WF8NmiemrcIDJK2yFNgZQearLuH5mSkF5p+ECCL++PbsIQ9 KRjgKrmks2StUE3jCB/UZJxuIF6vfkZF08j1zs609OgyCjf9/AjLAiGTXWeA+fBvNXM8 NnY0eZXHcPR7Mwy2bgdQ4Dl3dV8+xkN7njfl6uKTKPUBLVl5wAwLJxp1BX+bySTN+Ems 40mlGagcE6ci4m0a3HsfJWAXQ6T92k0fRab6eX+IRPJbOTtDOrN5zh6hmchOe8Dr6Lgs 5Iv/EZGwFL+0hWilmKNjblpvWgwPBP/g0fwwXKzCQbLDg/qPGw7uU1o46j2EiYZ/M98p 8hwA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5-v6si2815916pgb.234.2018.09.05.12.42.09; Wed, 05 Sep 2018 12:42:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727853AbeIFALg (ORCPT + 99 others); Wed, 5 Sep 2018 20:11:36 -0400 Received: from mx2.suse.de ([195.135.220.15]:60190 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727575AbeIFALf (ORCPT ); Wed, 5 Sep 2018 20:11:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 78FDCAD33; Wed, 5 Sep 2018 19:39:54 +0000 (UTC) Subject: Re: [PATCH] efi_stub: update documentation on dtb= parameter To: Grant Likely , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: olof@lixom.net, scott.branden@broadcom.com, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, leif.lindholm@linaro.org, Ard Biesheuvel , Jonathan Corbet References: <20180905190750.4566-1-grant.likely@arm.com> From: Alexander Graf Openpgp: preference=signencryp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B0qY18F5j7SoUy72e5HnLpNg/zj3CBZFM40df8K+zqwtWfQicOM5IJ g1m5nhiB1rMWywSZ2pYkPHVjPJ68MkvCChsK5vSl4sIEoYkZnkQw5J+K8bwqaZZL0REK9xhH z+1FvVl7zEjCZXvyUm25ZS8iqAnlpk9UBFjXYKX8Ut9Y2iIDz3Pg3/FCLXbJSCQ6mIEe80Ns U2+L0x4LbU/JSxdN7+JC+1K36P66yBsWXk5347UdzPkvq6nlUqHPLpqpl4p+KzxI1TKK8co3 0gebQn/WLY3gqt6vCht2mdJztWPCL+r5kYodiYnpDXY/7SFr0+46QLRF1xG0J5UYGnz4koot 3173uxYy75CNZqYpqpLivEG6NXmGUNFypsbGuEhsAV2GWGyf0uT91XFE0SlRUxOMEHbLwwhP iMLccbHM2Kdf238nBUehU8iIsw/q6BWWw60MXH4Rw/1yya6JYvIyaG8ytoKhv8zZ Message-ID: <8bed0e5b-cfb7-e1dd-199d-9643b964cb9d@suse.de> Date: Wed, 5 Sep 2018 21:39:51 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180905190750.4566-1-grant.likely@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05.09.18 21:07, Grant Likely wrote: > The dtb= parameter is no longer the primary mechanism for providing a > devicetree to the kernel. Now either firmware or the boot selector (ex. > Grub) should provide the devicetree and dtb= should only be used for > debug or when using firmware that doesn't understand DT. > Update the EFI stub documentation to reflect the current usage. > > Signed-off-by: Grant Likely > Cc: Ard Biesheuvel > Cc: Jonathan Corbet Reviewed-by: Alexander Graf Btw, isn't the option missing from kernel-parameters.rst/txt? Alex > --- > Documentation/efi-stub.txt | 17 ++++++++++++++--- > 1 file changed, 14 insertions(+), 3 deletions(-) > > diff --git a/Documentation/efi-stub.txt b/Documentation/efi-stub.txt > index 41df801f9a50..833edb0d0bc4 100644 > --- a/Documentation/efi-stub.txt > +++ b/Documentation/efi-stub.txt > @@ -83,7 +83,18 @@ is passed to bzImage.efi. > The "dtb=" option > ----------------- > > -For the ARM and arm64 architectures, we also need to be able to provide a > -device tree to the kernel. This is done with the "dtb=" command line option, > -and is processed in the same manner as the "initrd=" option that is > +For the ARM and arm64 architectures, a device tree must be provided to > +the kernel. Normally firmware shall supply the device tree via the > +EFI CONFIGURATION TABLE. However, the "dtb=" command line option can > +be used to override the firmware supplied device tree, or to supply > +one when firmware is unable to. > + > +Please note: Firmware adds runtime configuration information to the > +device tree before booting the kernel. If dtb= is used to override > +the device tree, then any runtime data provided by firmware will be > +lost. The dtb= option should only be used either as a debug tool, or > +as a last resort when a device tree is not provided in the EFI > +CONFIGURATION TABLE. > + > +"dtb=" is processed in the same manner as the "initrd=" option that is > described above. > -- > 2.11.0 > > IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. >