# US 9,354,967 B1 · I/O operation-level error-handling

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

- Number: US 9,354,967 B1
- Document ID: US9354967B1
- Status: Granted
- Kind: B1
- Application number: 14/953,900
- Filed: 2015-11-30
- Granted: 2016-05-31
- Earliest claimed: 2015-11-30
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: David Craddock; John R. Flanagan; Thomas A. Gregg
- Web page: https://patentgrep.com/patent/US9354967B1

## CPC

- G06F 11/0745: {in an input/output transactions management context (input/output processing in general G06F13/00)}
- 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 11/1004: {to protect a block of data words, e.g. CRC or checksum (G06F11/1076 takes precedence; security arrangements for protecting computers or computer systems against unauthorized activity G06F21/00)}
- G06F 13/00: Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units (interface circuits for specific input/output devices G06F3/00 {; multiprogram control therefor G06F9/46}; multiprocessor systems G06F15/16 )
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Error-handling in a computing environment at an input/output (I/O) level is facilitated by associating a control element with an input/output (I/O) operation based on a command to perform the I/O operation between an adapter and memory. Based on detection of an error for the I/O operation, the control element is updated to indicate an error state, and completion of any uncompleted I/O request for the I/O operation is blocked, while other I/O requests for one or more other I/O operations are allowed to proceed between the adapter (or adapter function) and the memory. By way of example, the control element may be a cyclic redundancy check (CRC) control element used, for instance, by an I/O hub of the computing environment to accumulate during performance of the I/O operation an accumulated CRC value for the I/O operation to facilitate error checking of the operation.

## Claims

### Claim 1

A system for facilitating error-handling in a computing environment, the system comprising:
a memory;
a processing device communicatively coupled to the memory, wherein the system performs a method comprising:
based on a command to perform an input/output (I/O) operation between an adapter and memory of a computing environment, associating, by an I/O hub of the computing environment, a control element with the I/O operation;
based on detection of an error for the I/O operation, updating, by the I/O hub, the control element to indicate an error state; and
based on detection of the error for the I/O operation, blocking completion of any uncompleted I/O requests for the I/O operation, while allowing other I/O requests for one or more other I/O operations between the adapter and the memory to continue.

### Claim 2 (depends on 1)

The system of claim 1, wherein the command is a command to perform the I/O operation between an adapter function of the adapter and the memory, and the blocking blocks completion of any uncompleted I/O requests for the I/O operation, while allowing other I/O requests for one or more other I/O operations between the adapter function and the memory to continue.

### Claim 3 (depends on 1)

The system of claim 1, wherein the I/O hub of the computing environment is coupled between the adapter and the memory.

### Claim 4 (depends on 1)

The system of claim 1, wherein the control element comprises a cyclic redundancy check (CRC) control element (CCE) for the I/O operation, and wherein the method further comprises, prior to detection of the error for the I/O operation, using the CRC control element in accumulating with performance of the I/O operation an accumulated CRC value for the I/O operation to facilitate error checking of the I/O operation.

### Claim 5 (depends on 4)

The system of claim 4, wherein the accumulating comprises, prior to detection of the error for the I/O operation, performing CRC calculations for the I/O operation with performance of the I/O operation to accumulate the accumulated CRC value for the I/O operation.

### Claim 6 (depends on 4)

The system of claim 4, wherein the data of the I/O operation is transferred in data fragments, and prior to detection of the error for the I/O operation, the CRC control element is updated for each transferred data fragment during the accumulating of the CRC value for the I/O operation.

### Claim 7 (depends on 1)

The system of claim 1, wherein the updating further comprises updating the control element to indicate an error type of the error for the I/O operation, the error type comprising at least one of an invalid address, a key violation, or a memory error associated with the I/O operation.

### Claim 8 (depends on 1)

The system of claim 1, wherein the updating further comprises updating the control element to indicate an error type of the error for the I/O operation, the error type comprising at least one of a direct memory access (DMA) error, a message signal interrupt (MSI) error, a peripheral component interconnect (PCI) error, an invalid address error, a key violation error, or a system memory error associated with the I/O operation.

### Claim 9 (depends on 1)

The system of claim 1, wherein the computing environment reads the error state from the control element, and based thereon, notifies an application of the computing environment associated with the I/O operation of the error.

### Claim 10

A method comprising:
based on a command to perform an input/output (I/O) operation between an adapter and system memory of a computing environment, associating, by an I/O hub of the computing environment, a control element with the I/O operation;
based on detection of an error for the I/O operation, updating, by the I/O hub, the control element to indicate an error state; and
based on detection of the error for the I/O operation, blocking completion of any uncompleted I/O requests for the I/O operation, while allowing other I/O requests for one or more other I/O operations between the adapter and the memory to continue.

### Claim 11 (depends on 10)

The method of claim 10, wherein the command is a command to perform the I/O operation between an adapter function of the adapter and the memory, and the blocking blocks completion of any uncompleted I/O requests for the I/O operation, while allowing other I/O requests for one or more other I/O operations between the adapter function and the memory to continue.

### Claim 12 (depends on 10)

The method of claim 10, wherein the I/O hub of the computing environment is coupled between the adapter and the memory.

### Claim 13 (depends on 10)

The method of claim 10, wherein the control element comprises a cyclic redundancy check (CRC) control element (CCE) for the I/O operation, and wherein the method further comprises, prior to detection of the error for the I/O operation, using the CRC control element in accumulating with performance of the I/O operation an accumulated CRC value for the I/O operation to facilitate error checking of the I/O operation.

### Claim 14 (depends on 13)

The method of claim 13, wherein the accumulating comprises, prior to detection of the error for the I/O operation, performing CRC calculations for the I/O operation with performance of the I/O operation to accumulate the accumulated CRC value for the I/O operation.

### Claim 15 (depends on 13)

The method of claim 13, wherein data of the I/O operation is transferred in data fragments, and prior to detection of the error for the I/O operation, the CRC control element is updated for each transferred data fragment during the accumulating of the CRC value for the I/O operation.

### Claim 16 (depends on 10)

The method of claim 10, wherein the updating further comprises updating the control element to indicate an error type of the error for the I/O operation, the error type comprising at least one of an invalid address, a key violation, or a system memory error associated with the I/O operation.

### Claim 17 (depends on 10)

The method of claim 10, wherein the updating further comprises updating the control element to indicate an error type of the error for the I/O operation, the error type comprising at least one of a direct memory access (DMA) error, a message signal interrupt (MSI) error, a peripheral component interconnect (PCI) error, an invalid address error, a key violation error, or a memory error associated with the I/O operation.

### Claim 18 (depends on 10)

The method of claim 10, wherein the computing environment reads the error state and error type from the control element, and based thereon, notifies an application of the computing environment associated with the I/O operation of the error.

### Claim 19

A computer program product for facilitating error-handling in a computing environment, the computer program product comprising:
a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions being executable by a processing device to cause the processing device to perform a method comprising:
based on a command to perform an input/output (I/O) operation between an adapter and memory of a computing environment, associating, by an I/O hub of the computing environment, a control element with the I/O operation;
based on detection of an error for the I/O operation, updating, by the I/O hub, the control element to indicate an error state; and
based on detection of the error for the I/O operation, blocking completion of any uncompleted I/O requests for the I/O operation, while allowing other I/O requests for one or more other I/O operations between the adapter and the memory to continue.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the control element comprises a cyclic redundancy check (CRC) control element (CCE) for the I/O operation, and wherein the method further comprises, prior to detection of the error for the I/O operation, using the CRC control element in accumulating with performance of the I/O operation an accumulated CRC value for the I/O operation to facilitate error checking of the I/O operation.
