{"id":1460188,"url":"http://patchwork.ozlabs.org/api/patches/1460188/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/19776ce76932e1957faa21250f303481db39fb32.1617126961.git.danielwa@cisco.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/","list_archive_url":"https://lore.kernel.org/linuxppc-dev/","list_archive_url_format":"https://lore.kernel.org/linuxppc-dev/{}/","commit_url_format":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"},"msgid":"<19776ce76932e1957faa21250f303481db39fb32.1617126961.git.danielwa@cisco.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/19776ce76932e1957faa21250f303481db39fb32.1617126961.git.danielwa@cisco.com/","date":"2021-03-30T17:57:02","name":"[7/8] CMDLINE: x86: convert to generic builtin command line","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":false,"hash":"505138c2f377a8e423be778fb49807103d0e25f8","submitter":{"id":67374,"url":"http://patchwork.ozlabs.org/api/people/67374/?format=json","name":"Daniel Walker (danielwa)","email":"danielwa@cisco.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/19776ce76932e1957faa21250f303481db39fb32.1617126961.git.danielwa@cisco.com/mbox/","series":[{"id":236583,"url":"http://patchwork.ozlabs.org/api/series/236583/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=236583","date":"2021-03-30T17:56:56","name":"[1/8] CMDLINE: add generic builtin command line","version":1,"mbox":"http://patchwork.ozlabs.org/series/236583/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/1460188/comments/","check":"success","checks":"http://patchwork.ozlabs.org/api/patches/1460188/checks/","tags":{},"related":[{"id":1449488,"url":"http://patchwork.ozlabs.org/api/patches/1449488/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20210309000247.2989531-8-danielwa@cisco.com/","msgid":"<20210309000247.2989531-8-danielwa@cisco.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/20210309000247.2989531-8-danielwa@cisco.com/","date":"2021-03-09T00:02:43","name":"[v2,7/7] CMDLINE: x86: convert to generic builtin command line","mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20210309000247.2989531-8-danielwa@cisco.com/mbox/"},{"id":1466839,"url":"http://patchwork.ozlabs.org/api/patches/1466839/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20210416040924.2882771-7-danielwa@cisco.com/","msgid":"<20210416040924.2882771-7-danielwa@cisco.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/20210416040924.2882771-7-danielwa@cisco.com/","date":"2021-04-16T04:09:17","name":"[6/8] CMDLINE: x86: convert to generic builtin command line","mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20210416040924.2882771-7-danielwa@cisco.com/mbox/"}],"headers":{"Return-Path":"\n <linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Authentication-Results":["ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org;\n receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=cisco.com header.i=@cisco.com header.a=rsa-sha256\n header.s=iport header.b=TqGQ1sp+;\n\tdkim-atps=neutral","lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=cisco.com header.i=@cisco.com header.a=rsa-sha256\n header.s=iport header.b=TqGQ1sp+;\n\tdkim-atps=neutral","lists.ozlabs.org; spf=pass (sender SPF authorized)\n smtp.mailfrom=cisco.com (client-ip=173.37.142.94;\n helo=alln-iport-7.cisco.com;\n envelope-from=danielwa@cisco.com; receiver=<UNKNOWN>)","lists.ozlabs.org; dkim=pass (1024-bit key;\n unprotected) header.d=cisco.com header.i=@cisco.com header.a=rsa-sha256\n header.s=iport header.b=TqGQ1sp+; dkim-atps=neutral"],"Received":["from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4F8y0Z60jxz9sVm\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 31 Mar 2021 05:00:30 +1100 (AEDT)","from boromir.ozlabs.org (localhost [IPv6:::1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4F8y0Z4rMyz3c11\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 31 Mar 2021 05:00:30 +1100 (AEDT)","from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n bits)) (No client certificate requested)\n by lists.ozlabs.org (Postfix) with ESMTPS id 4F8xx16M9Fz3c19\n for <linuxppc-dev@lists.ozlabs.org>; Wed, 31 Mar 2021 04:57:25 +1100 (AEDT)","from rcdn-core-2.cisco.com ([173.37.93.153])\n by alln-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA;\n 30 Mar 2021 17:57:22 +0000","from zorba.cisco.com ([10.24.8.123])\n by rcdn-core-2.cisco.com (8.15.2/8.15.2) with ESMTP id 12UHv6CK024502;\n Tue, 30 Mar 2021 17:57:20 GMT"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple;\n d=cisco.com; i=@cisco.com; l=4151; q=dns/txt; s=iport;\n t=1617127046; x=1618336646;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=EjJugBDCAD3rUkTSbtxc1b6KQ4ZbfCBpeFGgVbm8wnQ=;\n b=TqGQ1sp+LcmrI12TPJ77sFH09pIIuj9xHD3uI2ZT5sZLzStaYMiI3Mqo\n WjSe69IPJqFl164Oa+97M9ot7J+4MlOz2ApyWm/6pEnZRfngwnX8logyx\n kHcVRpVROy/Gg2g6p0/SqMJGKBV3Y0F3VTVnW/e7IyyQayMa4JVssMGM5 Y=;","X-IPAS-Result":"\n A0ABAACmZWNgmJldJa1aGgEBAQEBAQEBAQEDAQEBARIBAQEBAgIBAQEBgXwFAQEBAQsBg3YBOTGMZYksii6QOIF8CwEBAQ80BAEBhFACgXoCJTQJDgIDAQEBAwIDAQEBAQEFAQEBAgEGBBQBAQEBAQEBAYZDhkUDAzIBOA4QUSE2BgESgnCCVgMvqzKCKYgbDWOBRBSBJQGIY3SDciYcgUlCgRIzgyeCHogYBIJGAXUZAQolAYFUgRuQS4Jxik2bR1uDEYEjlhOFMiKkUpUHjnSUQIFUOIFbMxoIGxWDJFAZDY4rDQmNagFbIQMvOAIGCgEBAwmJHwEB","IronPort-HdrOrdr":"A9a23:PcVGDqAnpbaMxZHlHejxsceALOonbusQ8zAX/mp6ICY4TuWzkc\n eykPMHkSLugDEKV3063fyGMq+MQXTTnKQFhbU5EL++UGDd1leAA5pl6eLZqQHIOyq7zeJF0L\n clTq4WMqySMXFfreLXpDa1CMwhxt7vytHMuc77w212RQ9nL4Fshj0ZNi+hHkd7RBZLCPMCff\n L22uN9qzWtYngRZMigb0N1PdTrncHBl57tfHc9aCIP1Q/mt16VwY+/OwSE2FMkXylXx7A5/S\n z+jxXh/am4qZiAu3jh/l6Wy5xXndf7o+EiOOW8zu4INz7rlgGkIKNmVrHqhkFNnMifrHA3jd\n LLvxAse/5W1kqUVGS0rRzxsjOQtgoT1w==","X-IronPort-Anti-Spam-Filtered":"true","X-IronPort-AV":"E=Sophos;i=\"5.81,291,1610409600\"; d=\"scan'208\";a=\"670280382\"","From":"Daniel Walker <danielwa@cisco.com>","To":"Will Deacon <will@kernel.org>,\n Christophe Leroy <christophe.leroy@csgroup.eu>,\n ob Herring <robh@kernel.org>,\n Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>,\n Andrew Morton <akpm@linux-foundation.org>, x86@kernel.org,\n linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,\n Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>,\n Borislav Petkov <bp@alien8.de>, \"H. Peter Anvin\" <hpa@zytor.com>","Subject":"[PATCH 7/8] CMDLINE: x86: convert to generic builtin command line","Date":"Tue, 30 Mar 2021 10:57:02 -0700","Message-Id":"\n <19776ce76932e1957faa21250f303481db39fb32.1617126961.git.danielwa@cisco.com>","X-Mailer":"git-send-email 2.25.1","In-Reply-To":"\n <41021d66db2ab427c14255d2a24bb4517c8b58fd.1617126961.git.danielwa@cisco.com>","References":"\n <41021d66db2ab427c14255d2a24bb4517c8b58fd.1617126961.git.danielwa@cisco.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-Auto-Response-Suppress":"DR, OOF, AutoReply","X-Outbound-SMTP-Client":"10.24.8.123, [10.24.8.123]","X-Outbound-Node":"rcdn-core-2.cisco.com","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List <linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"linux-kernel@vger.kernel.org, Ruslan Ruslichenko <rruslich@cisco.com>,\n Ruslan Bilovol <ruslan.bilovol@gmail.com>, xe-linux-external@cisco.com","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n <linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"},"content":"This updates the x86 code to use the CONFIG_GENERIC_CMDLINE\noption.\n\nCc: xe-linux-external@cisco.com\nSigned-off-by: Ruslan Ruslichenko <rruslich@cisco.com>\nSigned-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>\nSigned-off-by: Daniel Walker <danielwa@cisco.com>\n---\n arch/x86/Kconfig        | 44 +----------------------------------------\n arch/x86/kernel/setup.c | 18 ++---------------\n 2 files changed, 3 insertions(+), 59 deletions(-)","diff":"diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig\nindex 2792879d398e..73ea9589e50d 100644\n--- a/arch/x86/Kconfig\n+++ b/arch/x86/Kconfig\n@@ -118,6 +118,7 @@ config X86\n \tselect EDAC_SUPPORT\n \tselect GENERIC_CLOCKEVENTS_BROADCAST\tif X86_64 || (X86_32 && X86_LOCAL_APIC)\n \tselect GENERIC_CLOCKEVENTS_MIN_ADJUST\n+\tselect GENERIC_CMDLINE\n \tselect GENERIC_CMOS_UPDATE\n \tselect GENERIC_CPU_AUTOPROBE\n \tselect GENERIC_CPU_VULNERABILITIES\n@@ -2358,49 +2359,6 @@ choice\n \n endchoice\n \n-config CMDLINE_BOOL\n-\tbool \"Built-in kernel command line\"\n-\thelp\n-\t  Allow for specifying boot arguments to the kernel at\n-\t  build time.  On some systems (e.g. embedded ones), it is\n-\t  necessary or convenient to provide some or all of the\n-\t  kernel boot arguments with the kernel itself (that is,\n-\t  to not rely on the boot loader to provide them.)\n-\n-\t  To compile command line arguments into the kernel,\n-\t  set this option to 'Y', then fill in the\n-\t  boot arguments in CONFIG_CMDLINE.\n-\n-\t  Systems with fully functional boot loaders (i.e. non-embedded)\n-\t  should leave this option set to 'N'.\n-\n-config CMDLINE\n-\tstring \"Built-in kernel command string\"\n-\tdepends on CMDLINE_BOOL\n-\tdefault \"\"\n-\thelp\n-\t  Enter arguments here that should be compiled into the kernel\n-\t  image and used at boot time.  If the boot loader provides a\n-\t  command line at boot time, it is appended to this string to\n-\t  form the full kernel command line, when the system boots.\n-\n-\t  However, you can use the CONFIG_CMDLINE_OVERRIDE option to\n-\t  change this behavior.\n-\n-\t  In most cases, the command line (whether built-in or provided\n-\t  by the boot loader) should specify the device for the root\n-\t  file system.\n-\n-config CMDLINE_OVERRIDE\n-\tbool \"Built-in command line overrides boot loader arguments\"\n-\tdepends on CMDLINE_BOOL && CMDLINE != \"\"\n-\thelp\n-\t  Set this option to 'Y' to have the kernel ignore the boot loader\n-\t  command line, and use ONLY the built-in command line.\n-\n-\t  This is used to work around broken boot loaders.  This should\n-\t  be set to 'N' under normal conditions.\n-\n config MODIFY_LDT_SYSCALL\n \tbool \"Enable the LDT (local descriptor table)\" if EXPERT\n \tdefault y\ndiff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c\nindex d883176ef2ce..6444a5f1fabf 100644\n--- a/arch/x86/kernel/setup.c\n+++ b/arch/x86/kernel/setup.c\n@@ -47,6 +47,7 @@\n #include <asm/unwind.h>\n #include <asm/vsyscall.h>\n #include <linux/vmalloc.h>\n+#include <linux/cmdline.h>\n \n /*\n  * max_low_pfn_mapped: highest directly mapped pfn < 4 GB\n@@ -161,9 +162,6 @@ unsigned long saved_video_mode;\n #define RAMDISK_LOAD_FLAG\t\t0x4000\n \n static char __initdata command_line[COMMAND_LINE_SIZE];\n-#ifdef CONFIG_CMDLINE_BOOL\n-static char __initdata builtin_cmdline[COMMAND_LINE_SIZE] = CONFIG_CMDLINE;\n-#endif\n \n #if defined(CONFIG_EDD) || defined(CONFIG_EDD_MODULE)\n struct edd edd;\n@@ -883,19 +881,7 @@ void __init setup_arch(char **cmdline_p)\n \tbss_resource.start = __pa_symbol(__bss_start);\n \tbss_resource.end = __pa_symbol(__bss_stop)-1;\n \n-#ifdef CONFIG_CMDLINE_BOOL\n-#ifdef CONFIG_CMDLINE_OVERRIDE\n-\tstrlcpy(boot_command_line, builtin_cmdline, COMMAND_LINE_SIZE);\n-#else\n-\tif (builtin_cmdline[0]) {\n-\t\t/* append boot loader cmdline to builtin */\n-\t\tstrlcat(builtin_cmdline, \" \", COMMAND_LINE_SIZE);\n-\t\tstrlcat(builtin_cmdline, boot_command_line, COMMAND_LINE_SIZE);\n-\t\tstrlcpy(boot_command_line, builtin_cmdline, COMMAND_LINE_SIZE);\n-\t}\n-#endif\n-#endif\n-\n+\tcmdline_add_builtin(boot_command_line, NULL, COMMAND_LINE_SIZE);\n \tstrlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE);\n \t*cmdline_p = command_line;\n \n","prefixes":["7/8"]}