From patchwork Mon Mar 20 21:14:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 13181860 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8EFBC6FD1C for ; Mon, 20 Mar 2023 21:16:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=UUkOk1v7YWUQjYHx8yf8i7eOqlrAA0XQQjHxCgXLgow=; b=qT0kHqkTbCwSzr pvTvzxLXs9zWTwdXMYpTyKZTD48QpgPIC+ITuStb3HmpdKAx8L3VyzW66qA2G8Boe8u3XYWVauqzN fRew9unq9xkfNBOBvTDANZmbvZ90F5TXzhzh+NDMO64s9hEkStH7PboCXC6dMLb58AdIt732Z4+u5 B45jewcp14VmOa1KWrVOtez71k3cRO83BiB3nurDwxGCAigC03gYyRfG8uJ2AmIpenndC308yWxb4 6k4BpQQAdP+PmxsFD/QZY3Q3Nl+FHNWFoEzpTtS54h52Rqw4uJBEuxfD4jbo4AC6RVMYz7HD/P8H5 43Yd+SDovdqgCo10Os8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1peMqY-00AVno-2D; Mon, 20 Mar 2023 21:15:14 +0000 Received: from gate2.alliedtelesis.co.nz ([2001:df5:b000:5::4]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1peMqU-00AVm1-1o for linux-arm-kernel@lists.infradead.org; Mon, 20 Mar 2023 21:15:12 +0000 Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 991E82C02A8; Tue, 21 Mar 2023 10:15:00 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1679346900; bh=5fbUoPoaf6SIruAr40HkxELYXpDyUBwBU0mIygv7a/Q=; h=From:To:Cc:Subject:Date:From; b=gyE7AosaQVDk1Xjj+wC/8SLZPl+EIj0XpVBPHFZh03efZqJKTr1b62HkYZ/VID36S EFTlMgcfF43pgdOijOv4uH9+Lc96ThWryhrZZyRPBiDGtWnbJExIo0lrkmPo/72JNu xuxDa8Po/8JOPXYbJfw4eHT73s+vl5xcgqLM0suJjVodswZOYyyuhaEhzxsA25vWZY BPokAre/U3K3hbGOjzpzS7Q3WLCbI2cGUZPh7xhlDbcL5tij3jqbmk/brwZmMgae4T I3OSjyMw86521pfN9kTnqt2Daj5hEtv+UY1hpSMVlV7kVLYflwBpw71VPFoMOAQgGl rjj6ayIBqm13g== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Tue, 21 Mar 2023 10:15:00 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 79B5513ED0C; Tue, 21 Mar 2023 10:15:00 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 75BF0282452; Tue, 21 Mar 2023 10:15:00 +1300 (NZDT) From: Chris Packham To: catalin.marinas@arm.com, will@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH] arm64: Support CMDLINE_EXTEND Date: Tue, 21 Mar 2023 10:14:51 +1300 Message-Id: <20230320211451.2512800-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-SEG-SpamProfiler-Analysis: v=2.3 cv=F6spiZpN c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=k__wU0fu6RkA:10 a=Q_Ijp8T_OeaM2KZaP48A:9 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230320_141510_783710_04FA7293 X-CRM114-Status: UNSURE ( 8.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Support extending the bootloader provided command line for arm64 targets. This support is already present via generic DT/EFI code the only thing required is for the architecture to make it selectable. Signed-off-by: Chris Packham Reviewed-by: Anshuman Khandual --- arch/arm64/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 1023e896d46b..3c837b085f21 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -2228,6 +2228,12 @@ config CMDLINE_FROM_BOOTLOADER the boot loader doesn't provide any, the default kernel command string provided in CMDLINE will be used. +config CMDLINE_EXTEND + bool "Extend bootloader kernel arguments" + help + The command-line arguments provided by the boot loader will be + appended to the default kernel command string. + config CMDLINE_FORCE bool "Always use the default kernel command string" help