Cannot save SF port when DPU reboot

Hello,

When I create SF port by
/opt/mellanox/iproute2/sbin/mlxdevm port add pci/0000:03:00.0 flavour pcisf pfnum 0 sfnum 4
/opt/mellanox/iproute2/sbin/mlxdevm port function set pci/0000:03:00.0/163841 hw_addr 02:25:f2:8d:a2:4c trust on state active
echo mlx5_core.sf.2 > /sys/bus/auxiliary/drivers/mlx5_core.sf_cfg/unbind
echo mlx5_core.sf.2 > /sys/bus/auxiliary/drivers/mlx5_core.sf/bind

It working fine.

But, when I reboot DPU. The SF ports is missing.
DOCA version is 2.6.0, Ubuntu.
FW version is 24.40.1000

How to save this configuration in DPU?

You can add config to initrd script. sf should not exist after driver reload.

Thanks. I’ll try it.

How can I edit it???

this is a part of initrd.img-5.15.0-1035-bluefield file:

ShÜ­(<86>x<81><8c>^Qæ ¡^G^].)áá ^B^T*ù¹¢<9b>°£Ä^Z^Rð0H
^O^@^Xì^@<82>
ÔÓIoÞt<90>^C^V1Ê^X<80><83>^Qá^T¦!<80>Î<9c>b i^B^DJ<8b>1r%ô1<82>
^KÃ^O^LÆØb<86>6^Qð<85>^Q\|qâÀ¤^G/nº¸BP^UJ®8 <97>Æ<92>^_*,^L?0P¢K^\C\<80>^A<84>^^ Qf|0<82><8e>-ë<8b>^V|^XÍ^P^Y<99>>9*е!^G^S(lyv¸à^L<®PÉ¢vKC<8e>ñÃÂF^O;,<81>Ä^Xp<88 4>h<90>AL<92>,<9e><88><81> ^]4(#É^[$vìAòf¤<80>¬<81><87>×*3Ç^W1½°^LA]J0â<8d>^XÂA4<9f>é<80>^G4Ú<98>,XÉ<8e><< 9f>1°¦p^RE^B>T=YÃ<86>^\ALУ^ZË0^E^A<81>(CÒ^Gk^H<99><9a>Bâq÷^MofCL1ñ¥J^D5.^T±Æ^] E<87>(É<95>^X4-<,adI<91>2ðøÂ^F^@@(£ç8a^M%<94><88><82>^Bí<83><91>^S´x!N^H)^P<99>£ Â^GX<94>9 ^H^]%^DxüQ^CCOª<82><;<90><91>[A<83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>Cä²G^A^OäXò^O¨^Hr§<8e>7~^D¹e;E|áÓ^D^P>mè^Hé<81><8d>^M^Z^D±¤


  1. # ↩︎

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.