Skip to content

Commit 1140f1b

Browse files
authored
Merge pull request sonic-net#139 from mssonicbld/sonicbld/202205-merge
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
2 parents bee69b1 + 886e432 commit 1140f1b

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
CONSOLE_PORT=0x2f8
22
CONSOLE_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"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
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"
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
VAR_LOG_SIZE=4096
2-
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="logs_inram=on"

files/Aboot/boot0.j2

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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

platform/marvell-armhf/platform.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)