File tree Expand file tree Collapse file tree
dell/x86_64-dell_s6100_c2538-r0
mellanox/x86_64-mlnx_msn2700-r0
nokia/armhf-nokia_ixs7215_52x-r0 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11CONSOLE_PORT=0x2f8
22CONSOLE_DEV=1
3- ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="module_blacklist=gpio_ich,wdat_wdt acpi_no_watchdog=1 nos-config-part=/dev/sda12 logs_inram=on i2c-i801.disable_features=0x10"
3+ ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="module_blacklist=gpio_ich,wdat_wdt acpi_no_watchdog=1 nos-config-part=/dev/sda12 i2c-i801.disable_features=0x10"
Original file line number Diff line number Diff line change 1- ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="acpi_enforce_resources=lax acpi=noirq logs_inram=on "
1+ ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="acpi_enforce_resources=lax acpi=noirq"
Original file line number Diff line number Diff line change 11VAR_LOG_SIZE=4096
2- ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="logs_inram=on"
Original file line number Diff line number Diff line change @@ -607,6 +607,14 @@ write_platform_specific_cmdline() {
607607 aboot_machine=arista_7280cr3mk_32p4
608608 flash_size=7382
609609 fi
610+
611+ # disable cpu c-state other than C1
612+ local cpuvendor=" $( sed -nr ' s/vendor_id[\t ]*: (.*)/\1/p' /proc/cpuinfo | head -n 1) "
613+ cmdline_add processor.max_cstate=1
614+ if [ " $cpuvendor " = " GenuineIntel" ]; then
615+ cmdline_add intel_idle.max_cstate=0
616+ fi
617+
610618 if in_array " $platform " " rook" " magpie" " woodpecker" " sprucefish" ; then
611619 cmdline_add tsc=reliable
612620 cmdline_add pcie_ports=native
@@ -617,7 +625,6 @@ write_platform_specific_cmdline() {
617625 if in_array " $platform " " rook" " sprucefish" ; then
618626 cmdline_add iommu=on
619627 cmdline_add intel_iommu=on
620- cmdline_add intel_idle.max_cstate=0
621628 read_system_eeprom
622629 fi
623630 if in_array " $platform " " rook" ; then
@@ -635,7 +642,6 @@ write_platform_specific_cmdline() {
635642 read_system_eeprom
636643 fi
637644 if in_array " $platform " " lorikeet" " hedgehog" ; then
638- cmdline_add processor.max_cstate=1
639645 cmdline_add reassign_prefmem
640646 read_system_eeprom
641647 fi
Original file line number Diff line number Diff line change @@ -176,7 +176,8 @@ prepare_boot_menu() {
176176 fi
177177 BORDER='echo "---------------------------------------------------";echo;'
178178 fw_setenv ${FW_ARG} print_menu "$BORDER $BOOT1 $BOOT2 $BOOT3 $BORDER" > /dev/null
179- fw_setenv ${FW_ARG} linuxargs "net.ifnames=0 loopfstype=squashfs loop=$image_dir/$FILESYSTEM_SQUASHFS systemd.unified_cgroup_hierarchy=0 varlog_size=$VAR_LOG_SIZE loglevel=4 ${extra_cmdline_linux} ${ONIE_PLATFORM_EXTRA_CMDLINE_LINUX}" > /dev/null
179+
180+ fw_setenv ${FW_ARG} linuxargs "net.ifnames=0 loopfstype=squashfs loop=$image_dir/$FILESYSTEM_SQUASHFS systemd.unified_cgroup_hierarchy=0 varlog_size=$VAR_LOG_SIZE loglevel=4 ${extra_cmdline_linux}" > /dev/null
180181 fw_setenv ${FW_ARG} linuxargs_old "net.ifnames=0 loopfstype=squashfs loop=$image_dir_old/$FILESYSTEM_SQUASHFS systemd.unified_cgroup_hierarchy=0 varlog_size=$VAR_LOG_SIZE loglevel=4" > /dev/null
181182
182183 # Set boot configs
You can’t perform that action at this time.
0 commit comments