Project

General

Profile

Bug #7513

sudden reboot when accessing bge2 on HP Gen9

Added by Hans Rosenfeld about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
driver - device drivers
Start date:
2016-10-26
Due date:
% Done:

100%

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

Description

I'm seeing a really weird issue with bge on a HP DL360 Gen9:

The system has 4 onboard bge NICs. When accessing bge2, the system resets. There is no message from the kernel or anything, it just resets. It does not happen with bge0, bge1, or bge3.

The reset is caused by this register write:
http://src.illumos.org/source/xref/illumos-gate/usr/src/uts/common/io/bge/bge_chip2.c#2447

I tested this hardware with FreeBSD, and it turned out FreeBSD didn't suffer from this problem despite their driver also interacting with the APE. After comparing the FreeBSD driver to our driver I noticed that there were lots of minor differences in how the APE stuff is used, but none turned out to be functionally different.

There is however one big difference: when APE is supported FreeBSD does not use another functional unit of bge called ASF. I don't know why and the code doesn't tell me either. Changing our driver to behave the same way makes the sudden reboot problem go away, though.


Related issues

Related to illumos gate - Bug #12497: bge ape locking left always disabled after 7513ClosedRobert Mustacchi

Actions
#1

Updated by Electric Monk about 4 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 67150631bf9ca4bc6c5535394eb0968ad069b6ab

commit  67150631bf9ca4bc6c5535394eb0968ad069b6ab
Author: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Date:   2016-10-28T22:10:22.000Z

    7513 sudden reboot when accessing bge2 on HP Gen9
    Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
    Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

#2

Updated by Marcel Telka 8 months ago

  • Related to Bug #12497: bge ape locking left always disabled after 7513 added

Also available in: Atom PDF