[DellEMC] Z9264f Disable low power modes in 10G ports (#4908)

In Z9264 by default, all the ports have disabled low power mode except the last two 10G ports.
Disabled low power mode in the last two 10G ports.
This commit is contained in:
Santhosh Kumar T 2020-07-11 08:27:37 +05:30 committed by Qi Luo
parent 5a0a466768
commit c9a14f71d0

View File

@ -107,6 +107,18 @@ switch_board_modsel() {
hex=$( printf "0x%x" $port_addr ) hex=$( printf "0x%x" $port_addr )
python /usr/bin/pcisysfs.py --set --offset $hex --val 0x10 --res $resource > /dev/null 2>&1 python /usr/bin/pcisysfs.py --set --offset $hex --val 0x10 --res $resource > /dev/null 2>&1
done done
# Disabling low power mode for last two 10G ports
# From last 6th bit: Disable - 0; Enable - 1
reg_offset=$(python /usr/bin/pcisysfs.py --get --offset 0x4400 --res $resource | cut -d':' -f 2)
reg_offset=$( printf '0x%s' $reg_offset)
reg_offset=$( printf '0x%x' $(( $reg_offset & 0xbf )) )
python /usr/bin/pcisysfs.py --set --offset 0x4400 --val $reg_offset --res $resource > /dev/null 2>&1
reg_offset=$(python /usr/bin/pcisysfs.py --get --offset 0x4410 --res $resource | cut -d':' -f 2)
reg_offset=$( printf '0x%s' $reg_offset)
reg_offset=$( printf '0x%x' $(( $reg_offset & 0xbf )) )
python /usr/bin/pcisysfs.py --set --offset 0x4410 --val $reg_offset --res $resource > /dev/null 2>&1
} }
# Copy led_proc_init.soc file according to the HWSKU # Copy led_proc_init.soc file according to the HWSKU