Public bug reported:

Hi,

For the Mellanox NIC MT27800 (MCX556M-ECAT-S25 to be precise), the
maximum number of VF per PF can be configured in the firmware, by
running e.g. :

$ sudo mstconfig -d 32:00.1 set NUM_OF_VFS=127

If I set this NUM_OF_VFS to 64 or more, the creation of even a single VF
fails mid-way :

$ echo 1 | sudo tee /sys/class/net/enp50s0f0/device/sriov_numvfs
1

dmesg shows :

[101418.090970] (0000:32:00.0): E-Switch: E-Switch enable SRIOV: nvfs(1) mode 
(1)
[101418.182736] (0000:32:00.0): E-Switch: SRIOV enabled: active vports(2)
[101418.289642] pci 0000:32:00.2: [15b3:1018] type 00 class 0x020000
[101418.290235] pci 0000:32:00.2: Max Payload Size set to 512 (was 128, max 512)
[101418.290261] pci 0000:32:00.2: enabling Extended Tags
[101418.292432] iommu: Adding device 0000:32:00.2 to group 139
[101418.292580] iommu: Using direct mapping for device 0000:32:00.2
[101418.292979] mlx5_core 0000:32:00.2: enabling device (0000 -> 0002)
[101418.293719] mlx5_core 0000:32:00.2: firmware version: 16.24.1000
[101418.550589] mlx5_core 0000:32:00.2: alloc irq vectors failed
[101418.974082] mlx5_core 0000:32:00.2: mlx5_load_one failed with error code -28
[101418.981656] mlx5_core: probe of 0000:32:00.2 failed with error -28

This is a problem with both the Ubuntu kernel driver and the OFED
driver.

Thanks

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-46-generic 4.15.0-46.49
ProcVersionSignature: User Name 4.15.0-46.49-generic 4.15.18
Uname: Linux 4.15.0-46-generic x86_64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116,  1 Mar 21 08:33 seq
 crw-rw---- 1 root audio 116, 33 Mar 21 08:33 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
Date: Fri Mar 22 12:43:26 2019
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
MachineType: Supermicro AS -2023US-TR4
PciMultimedia:
 
ProcEnviron:
 TERM=screen-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
ProcFB: 0 astdrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-46-generic 
root=UUID=52d72a05-517b-4c16-8dcb-486bdebcc695 ro console=ttyS1,115200 nosplash 
iommu=pt amd_iommu=on processor.max_cstate=0 l1tf=full cpuidle.off=1
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-46-generic N/A
 linux-backports-modules-4.15.0-46-generic  N/A
 linux-firmware                             1.173.3
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/04/2018
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1.1c
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: H11DSU-iN
dmi.board.vendor: Supermicro
dmi.board.version: 1.02A
dmi.chassis.asset.tag: To be filled by O.E.M.
dmi.chassis.type: 1
dmi.chassis.vendor: Supermicro
dmi.chassis.version: 0123456789
dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr1.1c:bd10/04/2018:svnSupermicro:pnAS-2023US-TR4:pvr0123456789:rvnSupermicro:rnH11DSU-iN:rvr1.02A:cvnSupermicro:ct1:cvr0123456789:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: AS -2023US-TR4
dmi.product.version: 0123456789
dmi.sys.vendor: Supermicro

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: amd64 apport-bug bionic uec-images

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1821345

Title:
  Mellanox MT27800 / mlx5_core : cannot bring up VFs if the total number
  of VFs is >= 64 : alloc irq vectors failed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1821345/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to