Skip to content

Commit

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

Signed-off-by: Stepan Blyschak <[email protected]>

* Remove xcvrd delay for SN4700 SKUs

Signed-off-by: Stepan Blyschak <[email protected]>

---------

Signed-off-by: Stepan Blyschak <[email protected]>
  • Loading branch information
stepanblyschak authored Jun 7, 2024
1 parent 85f8039 commit a30cbd4
Show file tree
Hide file tree
Showing 23 changed files with 26 additions and 19 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.
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 @@ -92,13 +92,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 a30cbd4

Please sign in to comment.