Thread (7 messages) flat view 7 messages, 3 authors, 2021-03-11

Re: mlx5 sub function issue

From: ze wang <hidden>
Date: 2021-03-09 03:05:22

Hi David,
      I can see that the variable settings are in effect:
# mlxconfig -d b3:00.0 s PF_BAR2_ENABLE=0 PER_PF_NUM_SF=1 PF_SF_BAR_SIZE=8
# mlxconfig -d b3:00.0 s PER_PF_NUM_SF=1 PF_TOTAL_SF=192 PF_SF_BAR_SIZE=8
# mlxconfig -d b3:00.1 s PER_PF_NUM_SF=1 PF_TOTAL_SF=192 PF_SF_BAR_SIZE=8

after cold reboot:
# mlxconfig -d b3:00.0 q|grep BAR
PF_BAR2_ENABLE                           False(0)
# mlxconfig -d b3:00.0 q|grep SF
Description:    ConnectX-6 Dx EN adapter card; 25GbE; Dual-port SFP28;
PCIe 4.0 x8; Crypto and Secure Boot
         PER_PF_NUM_SF                   True(1)
         PF_TOTAL_SF                         192
         PF_SF_BAR_SIZE                   8
# mlxconfig -d b3:00.1 q|grep SF
Description:    ConnectX-6 Dx EN adapter card; 25GbE; Dual-port SFP28;
PCIe 4.0 x8; Crypto and Secure Boot
         PER_PF_NUM_SF                  True(1)
         PF_TOTAL_SF                        192
         PF_SF_BAR_SIZE                  8

I tried to create as many SF as possible, then I found each PF can
create up to 132 SFs. I want to confirm the maximum number of SFs that
CX6 can create. If the mft version is correct, can I think that CX6
can create up to 132 SFs per PF?

David Ahern [off-list ref] 于2021年3月8日周一 下午11:48写道:
On 3/8/21 12:21 AM, ze wang wrote:
quoted
mlxconfig tool from mft tools version 4.16.52 or higher to set number of SF.

mlxconfig -d b3:00.0  PF_BAR2_ENABLE=0 PER_PF_NUM_SF=1 PF_SF_BAR_SIZE=8
mlxconfig -d b3:00.0  PER_PF_NUM_SF=1 PF_TOTAL_SF=192 PF_SF_BAR_SIZE=8
mlxconfig -d b3:00.1  PER_PF_NUM_SF=1 PF_TOTAL_SF=192 PF_SF_BAR_SIZE=8

Cold reboot power cycle of the system as this changes the BAR size in device
Is that capability going to be added to devlink?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help