Skip to content

Commit

Permalink
[Mellanox] Remove pmon delay for certain platforms (sonic-net#19190)
Browse files Browse the repository at this point in the history
* [nvidia] Remove pmon delay for certain platforms

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
  • Loading branch information
stepanblyschak authored and mssonicbld committed Jul 31, 2024
1 parent e45c426 commit 93fe016
Show file tree
Hide file tree
Showing 25 changed files with 27 additions and 24 deletions.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"skip_ledd": true,
"skip_fancontrol": true,
"delay_xcvrd": true,
"delay_xcvrd": false,
"skip_xcvrd_cmis_mgr": false
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"skip_ledd": true,
"skip_fancontrol": true,
"delay_xcvrd": true,
"delay_xcvrd": false,
"skip_xcvrd_cmis_mgr": false
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"skip_ledd": true,
"skip_fancontrol": true,
"skip_xcvrd_cmis_mgr": true
}

Empty file.
Empty file.

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"skip_ledd": true,
"skip_fancontrol": true,
"skip_xcvrd_cmis_mgr": true
}

Empty file.
Empty file.
13 changes: 5 additions & 8 deletions files/scripts/syncd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function startplatform() {
platform=$aboot_platform
elif [ -n "$onie_platform" ]; then
platform=$onie_platform
else
else
platform="unknown"
fi
if [[ x"$platform" == x"x86_64-arista_720dt_48s" ]]; then
Expand Down Expand Up @@ -96,13 +96,10 @@ function waitplatform() {

BOOT_TYPE=`getBootType`
if [[ x"$sonic_asic_platform" == x"mellanox" ]]; then
if [[ x"$BOOT_TYPE" = @(x"fast"|x"warm"|x"fastfast") ]]; then
PMON_TIMER_STATUS=$(systemctl is-active pmon.timer)
if [[ x"$PMON_TIMER_STATUS" = x"inactive" ]]; then
systemctl start pmon.timer
else
debug "PMON service is delayed by a timer for better fast/warm boot performance"
fi
PLATFORM=`$SONIC_DB_CLI CONFIG_DB hget 'DEVICE_METADATA|localhost' platform`
PMON_IMMEDIATE_START="/usr/share/sonic/device/$PLATFORM/pmon_immediate_start"
if [[ x"$BOOT_TYPE" = @(x"fast"|x"warm"|x"fastfast") ]] && [[ ! -f $PMON_IMMEDIATE_START ]]; then
debug "PMON service is delayed by for better fast/warm boot performance"
else
debug "Starting pmon service..."
/bin/systemctl start pmon
Expand Down

0 comments on commit 93fe016

Please sign in to comment.