Project

General

Profile

Bug #9601

Divide by zero in i40e_get_available_resources()

Added by Marcel Telka over 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2018-06-14
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

With the following hardware (the motherboard is Supermicro X11SPM-TF, Version 1.01, with latest BIOS 2.0b):

pci bus 0x00b5 cardnum 0x00 function 0x00: vendor 0x8086 device 0x37d2
 Intel Corporation Ethernet Connection X722 for 10GBASE-T
 CardVendor 0x15d9 card 0x37d2 (Super Micro Computer Inc, Card unknown)
  STATUS    0x0010  COMMAND 0x0046
  CLASS     0x02 0x00 0x00  REVISION 0x08
  BIST      0x00  HEADER 0x80  LATENCY 0x00  CACHE 0x10
  BASE0     0xfa000000 SIZE 16777216  MEM PREFETCHABLE
  BASE3     0xfb008000 SIZE 32768  MEM PREFETCHABLE
  BASEROM   0x00000000  addr 0x00000000
  MAX_LAT   0x00  MIN_GNT 0x00  INT_PIN 0x01  INT_LINE 0x0b

pci bus 0x00b5 cardnum 0x00 function 0x01: vendor 0x8086 device 0x37d2
 Intel Corporation Ethernet Connection X722 for 10GBASE-T
 CardVendor 0x15d9 card 0x37d2 (Super Micro Computer Inc, Card unknown)
  STATUS    0x0010  COMMAND 0x0046
  CLASS     0x02 0x00 0x00  REVISION 0x08
  BIST      0x00  HEADER 0x80  LATENCY 0x00  CACHE 0x10
  BASE0     0xf9000000 SIZE 16777216  MEM PREFETCHABLE
  BASE3     0xfb000000 SIZE 32768  MEM PREFETCHABLE
  BASEROM   0x00000000  addr 0x00000000
  MAX_LAT   0x00  MIN_GNT 0x00  INT_PIN 0x01  INT_LINE 0x0b

the i40e driver panices as follows:

> ::status
debugging crash dump vmcore.0 (64-bit) from
operating system: 5.11 titanic_39.90.2 (i86pc)
image uuid: c2aa9826-72a6-ccbe-b32c-c21a800074df
panic message: BAD TRAP: type=0 (#de Divide error) rp=ffffc1016f5767d0 addr=0
dump content: kernel pages only
> ::stack
i40e_get_available_resources+0x1dd(ffffc133bdb13000)
i40e_common_code_init+0xeb(ffffc133bdb13000, ffffc133bdb13050)
i40e_attach+0xe5(ffffc1338081c000, 0)
devi_attach+0x92(ffffc1338081c000, 0)
attach_node+0xa7(ffffc1338081c000)
i_ndi_config_node+0x7d(ffffc1338081c000, 6, 0)
i_ddi_attachchild+0x48(ffffc1338081c000)
devi_attach_node+0x5e(ffffc1338081c000, 4004048)
config_immediate_children+0xbf(ffffc1338081c2a8, 4004048, ffffffff)
devi_config_common+0xd9(ffffc1338081c2a8, 4004048, ffffffff)
mt_config_thread+0x58(ffffc133c0509de8)
thread_start+8()
>

Related issues

Related to illumos gate - Bug #10176: i40e: driving X722 1GbE cause hangupNew2019-01-05

Actions
Related to illumos gate - Bug #13041: i40e_get_available_resources() broken again for X722 partClosedJohn Levon

Actions
Related to illumos gate - Bug #13046: i40e_device_find() ASSERTs that num_ports and num_partitions are non-zero, but i40e_parse_discover_capabilities() can return with them being zeroNew

Actions

Also available in: Atom PDF