Skip to content

Commit 1b889d4

Browse files
noaOrMlnxyanjundeng
authored andcommitted
[Mellanox] Update SN5640-simx enabled processes (sonic-net#21478)
- Why I did it Support running hw-management service on SN5640 emulation platform. - How I did it Use physical EEPROM instead of the fake one Do not skip PSUd, PCId, thermal control daemon Adjust PCIe and thermal configuration files - How to verify it Run Nvidia simulation on SN5640 (ASIC and Platform)
1 parent 6b6241b commit 1b889d4

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"skip_ledd": true,
33
"skip_xcvrd": true,
4-
"skip_psud": true,
5-
"skip_pcied": true,
6-
"skip_thermalctld": true
4+
"skip_fancontrol": true
75
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../x86_64-mlnx_msn2700-r0/thermal_policy.json

platform/mellanox/mlnx-platform-api/sonic_platform/device_data.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
3-
# Copyright (c) 2020-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3+
# Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
44
# SPDX-License-Identifier: Apache-2.0
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -162,6 +162,13 @@ class DpuInterfaceEnum(Enum):
162162
'fw_control_ports': [64] # 0 based sfp index list
163163
}
164164
},
165+
'x86_64-nvidia_sn5640_simx-r0': {
166+
'thermal': {
167+
"capability": {
168+
"comex_amb": False,
169+
}
170+
}
171+
},
165172
'x86_64-nvidia_sn4280_simx-r0': {
166173
'thermal': {
167174
"capability": {

platform/mellanox/mlnx-platform-api/sonic_platform/eeprom.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#
2-
# Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES.
2+
# SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
3+
# Copyright (c) 2019-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
34
# Apache-2.0
45
#
56
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -41,7 +42,7 @@
4142
#
4243
EEPROM_SYMLINK = "/var/run/hw-management/eeprom/vpd_info"
4344
platform_name = DeviceDataManager.get_platform_name()
44-
platform_supporting_simx = ['x86_64-nvidia_sn4280_simx-r0', 'x86_64-mlnx_msn4700_simx-r0']
45+
platform_supporting_simx = ['x86_64-nvidia_sn4280_simx-r0', 'x86_64-mlnx_msn4700_simx-r0', 'x86_64-mlnx_msn5640_simx-r0']
4546
if platform_name and 'simx' in platform_name and not platform_name in platform_supporting_simx:
4647
if not os.path.exists(EEPROM_SYMLINK):
4748
if is_host():

0 commit comments

Comments
 (0)