Skip to content

Commit

Permalink
hw-mgmt: events: Add support for SDK OFFLINE event for handling flow …
Browse files Browse the repository at this point in the history
…with in service firmware upgrade

In order to prevent "mlxsw_minimal" driver access to ASIC during in
service firmware upgrade flow, SDK will raise "OFFLINE" 'udev' event
at early beginning of such flow. When this event is received,
hw-managemnet will remove "mlxsw_minimal" driver.
There is no need to implement opposite "ONLINE" event, since this flow
is ended up with "kexec".

Signed-off-by: Vadim Pasternak <[email protected]>
  • Loading branch information
vadimp-nvidia committed Jan 17, 2021
1 parent 3f13473 commit 6c64a72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions usr/lib/udev/rules.d/50-hw-management-events.rules
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,4 @@ SUBSYSTEM=="i2c", DEVPATH=="/devices/platform/mlxplat/i2c_mlxcpld*/i2c-*/i2c-*/*
# SDK
SUBSYSTEM=="pci", DRIVERS=="sx_core", ACTION=="add", RUN+="/usr/bin/hw-management-thermal-events.sh add sxcore add"
SUBSYSTEM=="pci", DRIVERS=="sx_core", ACTION=="remove", RUN+="/usr/bin/hw-management-thermal-events.sh rm sxcore remove"
SUBSYSTEM=="pci", DRIVERS=="sx_core", ACTION=="offline", RUN+="/usr/bin/hw-management-thermal-events.sh rm sxcore remove"

0 comments on commit 6c64a72

Please sign in to comment.