# US 2014/0372795 A1 · Implementing distributed debug data collection and analysis for a shared adapter in a virtualized system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0372795 A1
- Document ID: US20140372795A1
- Status: Published application
- Kind: A1
- Application number: 13/915,887
- Filed: 2013-06-12
- Published: 2014-12-18
- Earliest claimed: 2013-06-12
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Charles S. Graham; Robert J. Manulik; John R. Oberly, III; Timothy J. Schimke
- Web page: https://patentgrep.com/patent/US20140372795A1

## CPC

- G06F 11/0712: {in a virtual computing platform, e.g. logically partitioned systems}
- G06F 11/0778: {Dumping, i.e. gathering error/state information after a fault for later diagnosis}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, system and computer program product are provided for implementing distributed debug data collection and analysis for a hardware I/O adapter, such as, a Single Root Input/Output Virtualization (SRIOV) adapter in a virtualized system. A predetermined event triggers a base error collection sequence. Adapter driver data is collected and virtual function (VF) device drivers are locked out responsive to triggering the base error collection sequence. Adapter debug data is collected and the adapter is reinitialized including an indication to VF drivers if VF error data is to be collected. The virtual function (VF) device drivers are unlocked allowing the VF device drivers to commence recovery of a respective virtual function (VF).

## Claims

### Claim 1

A method for distributed debug data collection and analysis for an input/output (I/O) adapter in a computer system comprising:
triggering a base error collection sequence responsive to a predetermined triggering event;
collecting adapter driver data and locking out virtual function (VF) device drivers responsive to triggering the base error collection sequence;
collecting adapter debug data and reinitializing the adapter including providing an indication to said VF device drivers if VF error data is to be collected; and
unlocking the virtual function (VF) device drivers, allowing the VF device drivers to commence recovery of a respective virtual function (VF).

### Claim 2 (depends on 1)

The method as recited in claim 1, wherein the adapter includes a Single Root Input/Output Virtualization (SRIOV) adapter.

### Claim 3 (depends on 1)

The method as recited in claim 1, wherein the base error collection sequence includes collecting an adapter dump responsive to locking out said virtual function (VF) device drivers, the adapter dump including information on virtual functions (VFs).

### Claim 4 (depends on 1)

The method as recited in claim 1, wherein locking out said virtual function (VF) device drivers includes utilizing an error handling recovery function, and further includes collecting I/O host bridge debug data responsive to locking out said virtual function (VF) device drivers.

### Claim 5 (depends on 1)

The method as recited in claim 1, wherein said VF device driver detects an error responsive to the virtual function (VF) device drivers being locked, and commences an error handling recovery process; and further includes said VF device driver polling device state until the VF device is unlocked.

### Claim 6 (depends on 1)

The method as recited in claim 1, wherein said predetermined triggering event includes said VF device driver initiating an adapter dump on the adapter.

### Claim 7 (depends on 6)

The method as recited in claim 6, includes said VF device driver collecting error data responsive to said indication provided to said VF device driver of said VF error data to be collected.

### Claim 8 (depends on 1)

The method as recited in claim 1, wherein said predetermined triggering event includes an adapter driver provided with a system hypervisor receiving a request from a hardware management console (HMC).

### Claim 9 (depends on 1)

The method as recited in claim 1, wherein said predetermined triggering event includes an adapter driver provided with a system hypervisor detecting an internal adapter driver error.

### Claim 10 (depends on 1)

The method as recited in claim 1, wherein said predetermined triggering event includes an adapter driver provided with a system hypervisor detecting an adapter dump present on the adapter.

### Claim 11 (depends on 10)

The method as recited in claim 10, wherein said predetermined triggering event includes an adapter driver provided with a system hypervisor detecting one of an adapter error and a platform error.

### Claim 12

A system for implementing distributed debug data collection and analysis for a hardware I/O adapter in a computer system comprising:
a processor;
a hypervisor managing functions associated with the hardware I/O adapter;
said processor using said hypervisor to perform the steps of:
triggering a base error collection sequence responsive to a predetermined triggering event;
collecting adapter driver data and locking out virtual function (VF) device drivers responsive to triggering the base error collection sequence;
collecting adapter debug data and reinitializing the adapter including providing an indication to said VF device drivers if VF error data is to be collected; and
unlocking the virtual function (VF) device drivers, allowing the VF device drivers to commence recovery of a respective virtual function (VF).

### Claim 13 (depends on 12)

The system as recited in claim 12, wherein the adapter includes a Single Root Input/Output Virtualization (SRIOV) adapter.

### Claim 14 (depends on 12)

The system as recited in claim 12, wherein the base error collection sequence includes collecting an adapter dump responsive to locking out said virtual function (VF) device drivers.

### Claim 15 (depends on 12)

The system as recited in claim 12, wherein locking out said virtual function (VF) device drivers includes utilizing an error handling recovery function, and further includes collecting I/O host bridge debug data responsive to locking out said virtual function (VF) device drivers.

### Claim 16 (depends on 12)

The system as recited in claim 12, wherein said VF device driver detects an error responsive to the virtual function (VF) device drivers being locked, and commences an error handling recovery process; and further includes said VF device driver polling device state until the VF device is unlocked.

### Claim 17 (depends on 16)

The system as recited in claim 16, includes said VF device driver collecting error data responsive to said indication provided to said VF device driver of said VF error data to be collected.

### Claim 18 (depends on 12)

The system as recited in claim 12, wherein said predetermined triggering event includes said VF device driver initiating an adapter dump on the adapter.

### Claim 19 (depends on 12)

The system as recited in claim 12, wherein said predetermined triggering event includes an adapter driver provided with a system hypervisor receiving a request from a hardware management console (HMC).

### Claim 20 (depends on 12)

The system as recited in claim 12, wherein said predetermined triggering event includes an adapter driver provided with a system hypervisor detecting one of an internal adapter driver error, a platform error, an adapter error, and an adapter dump present on the adapter.
