Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3056153ybt; Mon, 22 Jun 2020 13:53:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8zBcE0MDhsAM+dfuh4c49IFvN+te8EltTE8M8I5xN9+xcPPya3Zh45KVubnIeY5NDVZIz X-Received: by 2002:a50:a687:: with SMTP id e7mr17971777edc.62.1592859186186; Mon, 22 Jun 2020 13:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592859186; cv=none; d=google.com; s=arc-20160816; b=Bf8JcPKkuAu7qvjKPdUu9LhrQQu0JT5aVQoNvZWI4Au2TG6wmDxbax1Tm4T8yB4CCv Aeg6c/1F57XUNhBZ3E+3T6wdCJALR3X3GeZoNKilayWxC/5AGqUNPhKGQGJDP/fR7Ntb SnHLkewJKqsK+qGJ7ZVsFGwNtJMWN6i9sVPmHGWoy4FSpP97kxLzu3U2EOADF0eUFN/v Z0QfEmIZn8XTdnpZ7TtfvYg8gbhFYLLOQgpWDP43oAyoCzXMeNFmUDdfz69/I9GAWyJN 0qoAXf2P4cE1hBxRhI07Ow+z7+xHMt8MtYZ5wzWPVq6lbyGU0/t4ZOHWP6q8QU17a/RA JAZg== 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:from:references:cc:to:subject:dkim-signature:dkim-filter; bh=qK1GQ3W6Pi4xX9Ea+1auBCAyZ/O5uuSxujhiAeKID9g=; b=dDBZ/2etec+mAtyrS36gvMkqncl4L+dJ2gVt2xlBiyODHxiLbGdsvPToZ/j7+yO6G4 Vnb+SMoWvFiliV2quDW/q/tL12HYFhLLL0pmR2XXR72QnqCmBkO3n7Gu3jb9olK6ofZL 9ZonPdDaAthyD76vDB97wt6XfXvvqkqvc1OZIFraX3TlzFfUqAkgOMix3EE4qX+1D08a B2tdsrk2Ss3t/saczicosusIA4nw/kzM9QRIc0ppAwoJzNYUsblCoxtWkq6SDZRbCIwB 22IkEjMOJOF+plT8rMo/maFeVuSAopaUb8LL++R9+wPjHStRKxkNVwoAFZotKgNdYhra axvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2020052301 header.b=SSPivWN2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gr2si9972602ejb.454.2020.06.22.13.52.43; Mon, 22 Jun 2020 13:53:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2020052301 header.b=SSPivWN2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728739AbgFVUs4 (ORCPT + 99 others); Mon, 22 Jun 2020 16:48:56 -0400 Received: from terminus.zytor.com ([198.137.202.136]:47053 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728512AbgFVUsz (ORCPT ); Mon, 22 Jun 2020 16:48:55 -0400 Received: from hanvin-mobl2.amr.corp.intel.com (fmdmzpr03-ext.fm.intel.com [192.55.54.38]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id 05MKmkhO2220693 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Mon, 22 Jun 2020 13:48:47 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 05MKmkhO2220693 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2020052301; t=1592858928; bh=qK1GQ3W6Pi4xX9Ea+1auBCAyZ/O5uuSxujhiAeKID9g=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=SSPivWN2sEZECwBqhIcK0Id+FBFe9duWrX+JwbRCl8+i0wETIkqO+54ZgWB/+xSKQ ZRIW+pNAjeUyplLl6g8KlaINBJXk/5rP91u69nUTDS8EHvoCOjaB3yHqvccXrRsLre 7EmzGWRxKaPzoh/Vd5PTea0r/nIs2/VBCZ4oBN2RppsW+9lHqWA7m3WGDVZuT47ki1 fGMxKSZ1RtA++vx1Q2SVvXy2EsNOPbN342ZJ4iGhiBD2mZ7FSamq2TrGGmNOpyh6zc EWv93EIQqORSWFKagwG5uYcAl/mShXyTE5yw2qiH6PPR7rL9QK9HYTdKjvzk9GmMs3 AtOTLg6VhIbRw== Subject: Re: [PATCH] initrd: Remove erroneous comment To: Tom Rini , ron minnich Cc: lkml - Kernel Mailing List , Andrew Morton , Borislav Petkov , Dominik Brodowski References: <20200619143056.24538-1-trini@konsulko.com> <20200622204034.GL27801@bill-the-cat> From: "H. Peter Anvin" Message-ID: <2455d1e8-d6b4-760b-9a4c-0071c5ae986d@zytor.com> Date: Mon, 22 Jun 2020 13:48:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200622204034.GL27801@bill-the-cat> 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 2020-06-22 13:40, Tom Rini wrote: > On Mon, Jun 22, 2020 at 01:02:16PM -0700, ron minnich wrote: > >> The other thing you ought to consider fixing: >> initrd is documented as follows: >> >> initrd= [BOOT] Specify the location of the initial ramdisk >> >> for bootloaders only. >> >> UEFI consumes initrd from the command line as well. As ARM servers >> increasingly use UEFI, there may be situations in which the initrd >> option doesn't make its way to the kernel? I don't know, UEFI is such >> a black box to me. But I've seen this "initrd consumption" happen. >> >> Based on docs, and the growing use of bootloaders that are happy to >> consume initrd= and not pass it to the kernel, you might be better off >> trying to move to the new command line option anyway. >> >> IOW, this comment may not be what people want to see, but ... it might >> also be right. Or possibly changed to: >> >> /* >> * The initrd keyword is in use today on ARM, PowerPC, and MIPS. >> * It is also reserved for use by bootloaders such as UEFI and may >> * be consumed by them and not passed on to the kernel. >> * The documentation also shows it as reserved for bootloaders. >> * It is advised to move to the initrdmem= option whereever possible. >> */ > > Fair warning, one of the other hats I wear is the chief custodian of the > U-Boot project. > > Note that on most architectures in modern times the device tree is used > to pass in initrd type information and "initrd=" on the command line is > quite legacy. > > But what do you mean UEFI "consumes" initrd= ? It's quite expected that > when you configure grub/syslinux/systemd-boot/whatever via extlinux.conf > or similar with "initrd /some/file" something reasonable happens to > read that in to memory and pass along the location to Linux (which can > vary from arch to arch, when not using device tree). I guess looking at > Documentation/x86/boot.rst is where treating initrd= as a file that > should be handled and ramdisk_image / ramdisk_size set came from. I do > wonder what happens in the case of ARM/ARM64 + UEFI without device tree. > UEFI plus the in-kernel UEFI stub is, in some ways, a "bootloader" in the traditional sense. It is totally fair that we should update the documentation with this as a different case, though, because it is part of the kernel tree and so the kernel now has partial ownership of the namespace. I suggest "STUB" for "in-kernel firmware stub" for this purpose; no need to restrict it to a specific firmware for the purpose of namespace reservation. -hpa