Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1444093pxf; Fri, 2 Apr 2021 10:35:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3KAKCW1E2LrztQIt7KA7LTibvAGrk2qOKQ3J0mZx7KFateX0ALaC2wgBBc3JsYafSE842 X-Received: by 2002:a05:6402:17e9:: with SMTP id t9mr16497799edy.211.1617384921603; Fri, 02 Apr 2021 10:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617384921; cv=none; d=google.com; s=arc-20160816; b=MG2cQ4pa7h5vSwiyazkDFqzGJ03ELynBJhIs1r6wzLcdaEqDPTEh1Ni7unMU+OXg9/ oAM3VWSupvGhtK+ym35Y7uHG2ubh07c0XUouY1+RhCCyFxnhk7D1CxzWA7PRc/u7NW98 poaBY+GGvoU7bFcEnI9Z4DxPxdK5NNOHfswIEEfmb3iUovmzrECU/rWQjOZQElHl+yU+ mCR1Szw8Fn9mPbGNf3IHoGjH8CtYTlJnr/o+xXmIEX6QiWqahB7halSsApxebqktrqtf j9wAaxmZGGoC5LCNSVakqK3o0ADCfy/3yTd+SpqDVOQoKeZh7oYIfGxd2dm+phCNXIf8 D3Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=9sivQdiHzb+zV1LLwcXBlt6KrLSJDV5VB+mzhrIw3Pw=; b=CoMvYK5f0KRg0XFBXLTGs3673dpPk9lyAFlYA02sz27QGYjPaYiOSai7sgmyE+tlAW QqvskQj92f+PohtY+mVT7eg/9g6AmH65QzwuNXm0uuoXZnnFMf/0+Gi8S97PYVdCQswb RivnAktjTo/gdSz5pXVcmnBB+MHAnBF8g3RlI3MwhJl2g+4MQapVMRuKp31FHn7be+t9 qVVNcvkdZdrMyCzH0GehjP2v3Yz57WVwCBHk4D7j6herffUlFmKpODPvr9LmyB9kzXdn wLuG3mupZIM4yZvgh9EYxvS/v5HFzbozZ0YFr0NMYiq6xukXIrLSco/z3krHAflkGBdN 8EXw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c20si6792133ejk.730.2021.04.02.10.34.58; Fri, 02 Apr 2021 10:35:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234652AbhDBRe3 (ORCPT + 99 others); Fri, 2 Apr 2021 13:34:29 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:25232 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234759AbhDBRe0 (ORCPT ); Fri, 2 Apr 2021 13:34:26 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4FBnH16mjxz9v3qS; Fri, 2 Apr 2021 19:34:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id YaSiQ0OBnDTQ; Fri, 2 Apr 2021 19:34:21 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4FBnH15YNmz9v3qR; Fri, 2 Apr 2021 19:34:21 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D26368BB77; Fri, 2 Apr 2021 19:34:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 7Ql2iT7YHy-y; Fri, 2 Apr 2021 19:34:23 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id AF2C68BB6F; Fri, 2 Apr 2021 19:34:22 +0200 (CEST) Subject: Re: [PATCH 4/8] CMDLINE: powerpc: convert to generic builtin command line To: Daniel Walker , Will Deacon , ob Herring , Daniel Gimpelevich , Andrew Morton , x86@kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras Cc: xe-linux-external@cisco.com, Ruslan Ruslichenko , Ruslan Bilovol , linux-kernel@vger.kernel.org References: <41021d66db2ab427c14255d2a24bb4517c8b58fd.1617126961.git.danielwa@cisco.com> From: Christophe Leroy Message-ID: <366fd8d3-09c9-8cae-3f10-046c4a643792@csgroup.eu> Date: Fri, 2 Apr 2021 19:34:19 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 30/03/2021 à 19:56, Daniel Walker a écrit : > This updates the powerpc code to use the CONFIG_GENERIC_CMDLINE > option. > > This includes a scripted mass convert of the config files to use > the new generic cmdline. There is a bit of a trim effect here. > It would seems that some of the config haven't been trimmed in > a while. Sorry, this patch is not acceptable as is, the default for powerpc is CMDLINE_FROM_BOOTLOADER, ie builtin-cmdline is taken if and only if none is provided by the bootloader. As far as I understand, that disappear with this patch. > > The bash script used to convert is as follows, > > if [[ -z "$1" || -z "$2" ]]; then > echo "Two arguments are needed." > exit 1 > fi > mkdir $1 > cp $2 $1/.config > sed -i 's/CONFIG_CMDLINE=/CONFIG_CMDLINE_BOOL=y\nCONFIG_CMDLINE_PREPEND=/g' $1/.config > make ARCH=$1 O=$1 olddefconfig > make ARCH=$1 O=$1 savedefconfig > cp $1/defconfig $2 > rm -Rf $1 > > Cc: xe-linux-external@cisco.com > Signed-off-by: Ruslan Ruslichenko > Signed-off-by: Ruslan Bilovol > Signed-off-by: Daniel Walker > --- > arch/powerpc/Kconfig | 38 +------------------ > arch/powerpc/configs/44x/fsp2_defconfig | 32 ++++++++-------- > arch/powerpc/configs/44x/iss476-smp_defconfig | 24 ++++++------ > arch/powerpc/configs/44x/warp_defconfig | 17 ++++----- > arch/powerpc/configs/holly_defconfig | 13 ++++--- > arch/powerpc/configs/mvme5100_defconfig | 23 +++++------ > arch/powerpc/configs/skiroot_defconfig | 12 +++--- > arch/powerpc/configs/storcenter_defconfig | 18 ++++----- > arch/powerpc/kernel/prom_init.c | 10 +++-- > 9 files changed, 74 insertions(+), 113 deletions(-) > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index 386ae12d8523..3a19e5b74177 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -167,6 +167,8 @@ config PPC > select EDAC_SUPPORT > select GENERIC_ATOMIC64 if PPC32 > select GENERIC_CLOCKEVENTS_BROADCAST if SMP > + select GENERIC_CMDLINE > + select GENERIC_CMDLINE_OF > select GENERIC_CMOS_UPDATE > select GENERIC_CPU_AUTOPROBE > select GENERIC_CPU_VULNERABILITIES if PPC_BARRIER_NOSPEC > @@ -886,42 +888,6 @@ config PPC_DENORMALISATION > Add support for handling denormalisation of single precision > values. Useful for bare metal only. If unsure say Y here. > > -config CMDLINE > - string "Initial kernel command string" > - default "" > - help > - On some platforms, there is currently no way for the boot loader to > - pass arguments to the kernel. For these platforms, you can supply > - some command-line options at build time by entering them here. In > - most cases you will need to specify the root device here. > - > -choice > - prompt "Kernel command line type" if CMDLINE != "" > - default CMDLINE_FROM_BOOTLOADER > - > -config CMDLINE_FROM_BOOTLOADER > - bool "Use bootloader kernel arguments if available" > - help > - Uses the command-line options passed by the boot loader. If > - 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 > - Always use the default kernel command string, even if the boot > - loader passes other arguments to the kernel. > - This is useful if you cannot or don't want to change the > - command-line options your boot loader passes to the kernel. > - > -endchoice > - > config EXTRA_TARGETS > string "Additional default image types" > help > diff --git a/arch/powerpc/configs/44x/fsp2_defconfig b/arch/powerpc/configs/44x/fsp2_defconfig > index 8da316e61a08..4993db054589 100644 > --- a/arch/powerpc/configs/44x/fsp2_defconfig > +++ b/arch/powerpc/configs/44x/fsp2_defconfig > @@ -1,8 +1,6 @@ > -CONFIG_44x=y > # CONFIG_SWAP is not set > CONFIG_SYSVIPC=y > # CONFIG_CROSS_MEMORY_ATTACH is not set > -# CONFIG_FHANDLE is not set > CONFIG_NO_HZ=y > CONFIG_HIGH_RES_TIMERS=y > CONFIG_IKCONFIG=y > @@ -13,23 +11,25 @@ CONFIG_BLK_DEV_INITRD=y > # CONFIG_RD_XZ is not set > # CONFIG_RD_LZO is not set > # CONFIG_RD_LZ4 is not set > +# CONFIG_FHANDLE is not set > CONFIG_KALLSYMS_ALL=y > CONFIG_BPF_SYSCALL=y > CONFIG_EMBEDDED=y > CONFIG_PROFILING=y > -CONFIG_MODULES=y > -CONFIG_MODULE_UNLOAD=y > -# CONFIG_BLK_DEV_BSG is not set > +CONFIG_CMDLINE_BOOL=y > +CONFIG_CMDLINE_PREPEND="ip=on rw" > +CONFIG_44x=y > CONFIG_PPC_47x=y > # CONFIG_EBONY is not set > CONFIG_FSP2=y > CONFIG_476FPE_ERR46=y > -CONFIG_SWIOTLB=y > CONFIG_KEXEC=y > CONFIG_CRASH_DUMP=y > -CONFIG_CMDLINE="ip=on rw" > # CONFIG_SUSPEND is not set > -# CONFIG_PCI is not set > +CONFIG_OPROFILE=y > +CONFIG_MODULES=y > +CONFIG_MODULE_UNLOAD=y > +# CONFIG_BLK_DEV_BSG is not set > CONFIG_NET=y > CONFIG_PACKET=y > CONFIG_UNIX=y > @@ -46,14 +46,12 @@ CONFIG_MTD=y > CONFIG_MTD_BLOCK=y > CONFIG_MTD_JEDECPROBE=y > CONFIG_MTD_CFI_AMDSTD=y > -CONFIG_MTD_PHYSMAP_OF=y > CONFIG_BLK_DEV_RAM=y > CONFIG_BLK_DEV_RAM_SIZE=35000 > # CONFIG_SCSI_PROC_FS is not set > CONFIG_BLK_DEV_SD=y > # CONFIG_SCSI_LOWLEVEL is not set > CONFIG_ATA=y > -# CONFIG_SATA_PMP is not set > # CONFIG_ATA_SFF is not set > CONFIG_NETDEVICES=y > CONFIG_BONDING=m > @@ -62,7 +60,6 @@ CONFIG_IBM_EMAC=m > # CONFIG_SERIO is not set > # CONFIG_VT is not set > # CONFIG_LEGACY_PTYS is not set > -# CONFIG_DEVMEM is not set > CONFIG_SERIAL_8250=y > CONFIG_SERIAL_8250_CONSOLE=y > CONFIG_SERIAL_8250_NR_UARTS=32 > @@ -71,6 +68,7 @@ CONFIG_SERIAL_8250_EXTENDED=y > CONFIG_SERIAL_8250_SHARE_IRQ=y > CONFIG_SERIAL_OF_PLATFORM=y > # CONFIG_HW_RANDOM is not set > +# CONFIG_DEVMEM is not set > CONFIG_I2C=y > CONFIG_I2C_IBM_IIC=y > CONFIG_PTP_1588_CLOCK=y > @@ -106,6 +104,12 @@ CONFIG_NFS_V3_ACL=y > CONFIG_NFS_V4=y > CONFIG_ROOT_NFS=y > CONFIG_NLS_DEFAULT="n" > +CONFIG_CRYPTO_CBC=y > +CONFIG_CRYPTO_ECB=y > +CONFIG_CRYPTO_PCBC=y > +CONFIG_CRYPTO_MD5=y > +CONFIG_CRYPTO_DES=y > +# CONFIG_CRYPTO_HW is not set > CONFIG_XZ_DEC=y > CONFIG_PRINTK_TIME=y > CONFIG_MESSAGE_LOGLEVEL_DEFAULT=3 > @@ -113,9 +117,3 @@ CONFIG_DYNAMIC_DEBUG=y > CONFIG_DEBUG_INFO=y > CONFIG_MAGIC_SYSRQ=y > CONFIG_DETECT_HUNG_TASK=y > -CONFIG_CRYPTO_CBC=y > -CONFIG_CRYPTO_ECB=y > -CONFIG_CRYPTO_PCBC=y > -CONFIG_CRYPTO_MD5=y > -CONFIG_CRYPTO_DES=y > -# CONFIG_CRYPTO_HW is not set > diff --git a/arch/powerpc/configs/44x/iss476-smp_defconfig b/arch/powerpc/configs/44x/iss476-smp_defconfig > index c11e777b2f3d..b8d97061517a 100644 > --- a/arch/powerpc/configs/44x/iss476-smp_defconfig > +++ b/arch/powerpc/configs/44x/iss476-smp_defconfig > @@ -1,5 +1,3 @@ > -CONFIG_44x=y > -CONFIG_SMP=y > CONFIG_SYSVIPC=y > CONFIG_POSIX_MQUEUE=y > CONFIG_LOG_BUF_SHIFT=14 > @@ -7,19 +5,22 @@ CONFIG_BLK_DEV_INITRD=y > CONFIG_EXPERT=y > CONFIG_KALLSYMS_ALL=y > CONFIG_PROFILING=y > -CONFIG_MODULES=y > -CONFIG_MODULE_UNLOAD=y > -# CONFIG_BLK_DEV_BSG is not set > +CONFIG_CMDLINE_BOOL=y > +CONFIG_CMDLINE_PREPEND="root=/dev/issblk0" > +CONFIG_44x=y > +CONFIG_SMP=y > CONFIG_PPC_47x=y > # CONFIG_EBONY is not set > CONFIG_ISS4xx=y > CONFIG_HZ_100=y > CONFIG_MATH_EMULATION=y > CONFIG_IRQ_ALL_CPUS=y > -CONFIG_CMDLINE="root=/dev/issblk0" > -# CONFIG_PCI is not set > CONFIG_ADVANCED_OPTIONS=y > CONFIG_DYNAMIC_MEMSTART=y > +CONFIG_OPROFILE=y > +CONFIG_MODULES=y > +CONFIG_MODULE_UNLOAD=y > +# CONFIG_BLK_DEV_BSG is not set > CONFIG_NET=y > CONFIG_PACKET=y > CONFIG_UNIX=y > @@ -33,7 +34,6 @@ CONFIG_MTD=y > CONFIG_MTD_BLOCK=y > CONFIG_MTD_JEDECPROBE=y > CONFIG_MTD_CFI_AMDSTD=y > -CONFIG_MTD_PHYSMAP_OF=y > CONFIG_BLK_DEV_RAM=y > CONFIG_BLK_DEV_RAM_SIZE=35000 > # CONFIG_INPUT is not set > @@ -56,13 +56,13 @@ CONFIG_PROC_KCORE=y > CONFIG_TMPFS=y > CONFIG_CRAMFS=y > # CONFIG_NETWORK_FILESYSTEMS is not set > -CONFIG_DEBUG_INFO=y > -CONFIG_MAGIC_SYSRQ=y > -CONFIG_DETECT_HUNG_TASK=y > -CONFIG_PPC_EARLY_DEBUG=y > CONFIG_CRYPTO_CBC=y > CONFIG_CRYPTO_ECB=y > CONFIG_CRYPTO_PCBC=y > CONFIG_CRYPTO_MD5=y > CONFIG_CRYPTO_DES=y > # CONFIG_CRYPTO_HW is not set > +CONFIG_DEBUG_INFO=y > +CONFIG_MAGIC_SYSRQ=y > +CONFIG_DETECT_HUNG_TASK=y > +CONFIG_PPC_EARLY_DEBUG=y > diff --git a/arch/powerpc/configs/44x/warp_defconfig b/arch/powerpc/configs/44x/warp_defconfig > index 47252c2d7669..d2e4bbe1492c 100644 > --- a/arch/powerpc/configs/44x/warp_defconfig > +++ b/arch/powerpc/configs/44x/warp_defconfig > @@ -1,4 +1,3 @@ > -CONFIG_44x=y > CONFIG_LOCALVERSION="-pika" > # CONFIG_LOCALVERSION_AUTO is not set > CONFIG_SYSVIPC=y > @@ -7,15 +6,16 @@ CONFIG_IKCONFIG_PROC=y > CONFIG_LOG_BUF_SHIFT=14 > CONFIG_BLK_DEV_INITRD=y > CONFIG_EXPERT=y > -CONFIG_MODULES=y > -CONFIG_MODULE_UNLOAD=y > -# CONFIG_BLK_DEV_BSG is not set > +CONFIG_CMDLINE_BOOL=y > +CONFIG_CMDLINE_PREPEND="ip=on" > +CONFIG_44x=y > # CONFIG_EBONY is not set > CONFIG_WARP=y > CONFIG_PPC4xx_GPIO=y > CONFIG_HZ_1000=y > -CONFIG_CMDLINE="ip=on" > -# CONFIG_PCI is not set > +CONFIG_MODULES=y > +CONFIG_MODULE_UNLOAD=y > +# CONFIG_BLK_DEV_BSG is not set > CONFIG_NET=y > CONFIG_PACKET=y > CONFIG_UNIX=y > @@ -31,7 +31,6 @@ CONFIG_MTD_CMDLINE_PARTS=y > CONFIG_MTD_BLOCK=y > CONFIG_MTD_CFI=y > CONFIG_MTD_CFI_AMDSTD=y > -CONFIG_MTD_PHYSMAP_OF=y > CONFIG_MTD_RAW_NAND=y > CONFIG_MTD_NAND_NDFC=y > CONFIG_MTD_UBI=y > @@ -88,9 +87,9 @@ CONFIG_NLS_UTF8=y > CONFIG_CRC_CCITT=y > CONFIG_CRC_T10DIF=y > CONFIG_PRINTK_TIME=y > +# CONFIG_DEBUG_BUGVERBOSE is not set > CONFIG_DEBUG_INFO=y > -CONFIG_DEBUG_FS=y > CONFIG_MAGIC_SYSRQ=y > +CONFIG_DEBUG_FS=y > CONFIG_DETECT_HUNG_TASK=y > # CONFIG_SCHED_DEBUG is not set > -# CONFIG_DEBUG_BUGVERBOSE is not set > diff --git a/arch/powerpc/configs/holly_defconfig b/arch/powerpc/configs/holly_defconfig > index 271daff47d1d..98c0644e80b4 100644 > --- a/arch/powerpc/configs/holly_defconfig > +++ b/arch/powerpc/configs/holly_defconfig > @@ -4,17 +4,18 @@ CONFIG_HIGH_RES_TIMERS=y > CONFIG_LOG_BUF_SHIFT=14 > CONFIG_BLK_DEV_INITRD=y > CONFIG_EXPERT=y > -CONFIG_MODULES=y > -# CONFIG_BLK_DEV_BSG is not set > -CONFIG_PARTITION_ADVANCED=y > +CONFIG_CMDLINE_BOOL=y > +CONFIG_CMDLINE_PREPEND="console=ttyS0,115200" > # CONFIG_PPC_CHRP is not set > # CONFIG_PPC_PMAC is not set > CONFIG_EMBEDDED6xx=y > CONFIG_PPC_HOLLY=y > CONFIG_GEN_RTC=y > -CONFIG_BINFMT_MISC=y > -CONFIG_CMDLINE="console=ttyS0,115200" > # CONFIG_SECCOMP is not set > +CONFIG_MODULES=y > +# CONFIG_BLK_DEV_BSG is not set > +CONFIG_PARTITION_ADVANCED=y > +CONFIG_BINFMT_MISC=y > CONFIG_NET=y > CONFIG_PACKET=y > CONFIG_UNIX=y > @@ -53,8 +54,8 @@ CONFIG_PROC_KCORE=y > CONFIG_TMPFS=y > CONFIG_NFS_FS=y > CONFIG_ROOT_NFS=y > +# CONFIG_DEBUG_BUGVERBOSE is not set > CONFIG_MAGIC_SYSRQ=y > # CONFIG_SCHED_DEBUG is not set > -# CONFIG_DEBUG_BUGVERBOSE is not set > CONFIG_XMON=y > CONFIG_XMON_DEFAULT=y > diff --git a/arch/powerpc/configs/mvme5100_defconfig b/arch/powerpc/configs/mvme5100_defconfig > index 1fed6be95d53..884a3e0defde 100644 > --- a/arch/powerpc/configs/mvme5100_defconfig > +++ b/arch/powerpc/configs/mvme5100_defconfig > @@ -11,16 +11,17 @@ CONFIG_LOG_BUF_SHIFT=14 > # CONFIG_NET_NS is not set > CONFIG_CC_OPTIMIZE_FOR_SIZE=y > # CONFIG_COMPAT_BRK is not set > -CONFIG_MODULES=y > -CONFIG_MODULE_UNLOAD=y > -# CONFIG_BLK_DEV_BSG is not set > +CONFIG_CMDLINE_BOOL=y > +CONFIG_CMDLINE_PREPEND="console=ttyS0,9600 ip=dhcp root=/dev/nfs" > # CONFIG_PPC_CHRP is not set > # CONFIG_PPC_PMAC is not set > CONFIG_EMBEDDED6xx=y > CONFIG_MVME5100=y > CONFIG_KVM_GUEST=y > CONFIG_HZ_100=y > -CONFIG_CMDLINE="console=ttyS0,9600 ip=dhcp root=/dev/nfs" > +CONFIG_MODULES=y > +CONFIG_MODULE_UNLOAD=y > +# CONFIG_BLK_DEV_BSG is not set > # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set > # CONFIG_COMPACTION is not set > CONFIG_NET=y > @@ -108,13 +109,6 @@ CONFIG_NLS_CODEPAGE_437=m > CONFIG_NLS_CODEPAGE_932=m > CONFIG_NLS_ISO8859_1=m > CONFIG_NLS_UTF8=m > -CONFIG_CRC_CCITT=m > -CONFIG_CRC_T10DIF=y > -CONFIG_XZ_DEC=y > -CONFIG_MAGIC_SYSRQ=y > -CONFIG_DEBUG_KERNEL=y > -CONFIG_DETECT_HUNG_TASK=y > -CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=20 > CONFIG_CRYPTO_CBC=y > CONFIG_CRYPTO_PCBC=m > CONFIG_CRYPTO_MD5=y > @@ -125,3 +119,10 @@ CONFIG_CRYPTO_DES=y > CONFIG_CRYPTO_SERPENT=m > CONFIG_CRYPTO_TWOFISH=m > CONFIG_CRYPTO_DEFLATE=m > +CONFIG_CRC_CCITT=m > +CONFIG_CRC_T10DIF=y > +CONFIG_XZ_DEC=y > +CONFIG_MAGIC_SYSRQ=y > +CONFIG_DEBUG_KERNEL=y > +CONFIG_DETECT_HUNG_TASK=y > +CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=20 > diff --git a/arch/powerpc/configs/skiroot_defconfig b/arch/powerpc/configs/skiroot_defconfig > index b806a5d3a695..5e11995508d7 100644 > --- a/arch/powerpc/configs/skiroot_defconfig > +++ b/arch/powerpc/configs/skiroot_defconfig > @@ -26,6 +26,8 @@ CONFIG_PERF_EVENTS=y > # CONFIG_SLAB_MERGE_DEFAULT is not set > CONFIG_SLAB_FREELIST_RANDOM=y > CONFIG_SLAB_FREELIST_HARDENED=y > +CONFIG_CMDLINE_BOOL=y > +CONFIG_CMDLINE_PREPEND="console=tty0 console=hvc0 ipr.fast_reboot=1 quiet" > CONFIG_PPC64=y > CONFIG_ALTIVEC=y > CONFIG_VSX=y > @@ -42,14 +44,11 @@ CONFIG_KEXEC=y > CONFIG_KEXEC_FILE=y > CONFIG_PRESERVE_FA_DUMP=y > CONFIG_IRQ_ALL_CPUS=y > -CONFIG_NUMA=y > CONFIG_PPC_64K_PAGES=y > CONFIG_SCHED_SMT=y > -CONFIG_CMDLINE="console=tty0 console=hvc0 ipr.fast_reboot=1 quiet" > -# CONFIG_SECCOMP is not set > # CONFIG_PPC_MEM_KEYS is not set > CONFIG_JUMP_LABEL=y > -CONFIG_STRICT_KERNEL_RWX=y > +# CONFIG_SECCOMP is not set > CONFIG_MODULES=y > CONFIG_MODULE_UNLOAD=y > CONFIG_MODULE_SIG_FORCE=y > @@ -80,7 +79,6 @@ CONFIG_BLK_DEV_NVME=m > CONFIG_NVME_MULTIPATH=y > CONFIG_EEPROM_AT24=m > # CONFIG_CXL is not set > -# CONFIG_OCXL is not set > CONFIG_BLK_DEV_SD=m > CONFIG_BLK_DEV_SR=m > CONFIG_CHR_DEV_SG=m > @@ -199,7 +197,6 @@ CONFIG_PHYLIB=y > CONFIG_INPUT_EVDEV=y > CONFIG_INPUT_MISC=y > # CONFIG_SERIO_SERPORT is not set > -# CONFIG_DEVMEM is not set > CONFIG_SERIAL_8250=y > CONFIG_SERIAL_8250_CONSOLE=y > CONFIG_IPMI_HANDLER=y > @@ -207,9 +204,10 @@ CONFIG_IPMI_DEVICE_INTERFACE=y > CONFIG_IPMI_POWERNV=y > CONFIG_IPMI_WATCHDOG=y > CONFIG_HW_RANDOM=y > +# CONFIG_DEVMEM is not set > +# CONFIG_DEVPORT is not set > CONFIG_TCG_TPM=y > CONFIG_TCG_TIS_I2C_NUVOTON=y > -# CONFIG_DEVPORT is not set > CONFIG_I2C=y > # CONFIG_I2C_COMPAT is not set > CONFIG_I2C_CHARDEV=y > diff --git a/arch/powerpc/configs/storcenter_defconfig b/arch/powerpc/configs/storcenter_defconfig > index 47dcfaddc1ac..17a17b8ae160 100644 > --- a/arch/powerpc/configs/storcenter_defconfig > +++ b/arch/powerpc/configs/storcenter_defconfig > @@ -2,18 +2,19 @@ CONFIG_SYSVIPC=y > CONFIG_LOG_BUF_SHIFT=14 > CONFIG_EXPERT=y > # CONFIG_KALLSYMS is not set > -CONFIG_MODULES=y > -CONFIG_MODULE_UNLOAD=y > -# CONFIG_BLK_DEV_BSG is not set > -CONFIG_PARTITION_ADVANCED=y > +CONFIG_CMDLINE_BOOL=y > +CONFIG_CMDLINE_PREPEND="console=ttyS0,115200" > # CONFIG_PPC_CHRP is not set > # CONFIG_PPC_PMAC is not set > CONFIG_EMBEDDED6xx=y > CONFIG_STORCENTER=y > CONFIG_HZ_100=y > -CONFIG_BINFMT_MISC=y > -CONFIG_CMDLINE="console=ttyS0,115200" > # CONFIG_SECCOMP is not set > +CONFIG_MODULES=y > +CONFIG_MODULE_UNLOAD=y > +# CONFIG_BLK_DEV_BSG is not set > +CONFIG_PARTITION_ADVANCED=y > +CONFIG_BINFMT_MISC=y > CONFIG_NET=y > CONFIG_PACKET=m > CONFIG_UNIX=y > @@ -35,7 +36,6 @@ CONFIG_BLK_DEV_SD=y > CONFIG_BLK_DEV_SR=y > CONFIG_SCSI_SPI_ATTRS=y > CONFIG_ATA=y > -CONFIG_PATA_VIA=y > CONFIG_MD=y > CONFIG_BLK_DEV_MD=y > CONFIG_MD_LINEAR=y > @@ -44,16 +44,13 @@ CONFIG_MD_RAID1=y > CONFIG_MD_RAID456=y > CONFIG_NETDEVICES=y > CONFIG_DUMMY=m > -CONFIG_R8169=y > # CONFIG_INPUT is not set > # CONFIG_SERIO is not set > # CONFIG_VT is not set > CONFIG_SERIAL_8250=y > CONFIG_SERIAL_8250_CONSOLE=y > -# CONFIG_SERIAL_8250_PCI is not set > CONFIG_SERIAL_8250_NR_UARTS=2 > CONFIG_SERIAL_8250_RUNTIME_UARTS=2 > -CONFIG_NVRAM=y > CONFIG_I2C=y > CONFIG_I2C_CHARDEV=y > CONFIG_I2C_MPC=y > @@ -76,4 +73,3 @@ CONFIG_NLS_CODEPAGE_437=y > CONFIG_NLS_ISO8859_1=y > CONFIG_NLS_UTF8=y > CONFIG_CRC_T10DIF=y > -# CONFIG_ENABLE_MUST_CHECK is not set > diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c > index 2c2f33155317..27fece82ff93 100644 > --- a/arch/powerpc/kernel/prom_init.c > +++ b/arch/powerpc/kernel/prom_init.c > @@ -27,6 +27,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -309,6 +310,7 @@ static char __init *prom_strstr(const char *s1, const char *s2) > return NULL; > } > > +#ifdef GENERIC_CMDLINE_NEED_STRLCAT > static size_t __init prom_strlcat(char *dest, const char *src, size_t count) > { > size_t dsize = prom_strlen(dest); > @@ -328,6 +330,7 @@ static size_t __init prom_strlcat(char *dest, const char *src, size_t count) > return res; > > } > +#endif > > #ifdef CONFIG_PPC_PSERIES > static int __init prom_strtobool(const char *s, bool *res) > @@ -780,12 +783,11 @@ static void __init early_cmdline_parse(void) > prom_cmd_line[0] = 0; > p = prom_cmd_line; > > - if (!IS_ENABLED(CONFIG_CMDLINE_FORCE) && (long)prom.chosen > 0) > + if ((long)prom.chosen > 0) > l = prom_getprop(prom.chosen, "bootargs", p, COMMAND_LINE_SIZE-1); > > - if (IS_ENABLED(CONFIG_CMDLINE_EXTEND) || l <= 0 || p[0] == '\0') > - prom_strlcat(prom_cmd_line, " " CONFIG_CMDLINE, > - sizeof(prom_cmd_line)); > + cmdline_add_builtin_custom(prom_cmd_line, (l > 0 ? p : NULL), sizeof(prom_cmd_line), > + __prombss, prom_strlcpy, prom_strlcat); > > prom_printf("command line: %s\n", prom_cmd_line); > >