# US 2021/0081207 A1 · Operation fencing system

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

- Number: US 2021/0081207 A1
- Document ID: US20210081207A1
- Status: Published application
- Kind: A1
- Application number: 16/571,220
- Filed: 2019-09-16
- Published: 2021-03-18
- Earliest claimed: 2019-09-16
- Assignees: Mellanox Technologies, Ltd.
- Applicants: Mellanox Technologies, Ltd.
- Inventors: Ariel Shahar; Ahmad Omary
- Web page: https://patentgrep.com/patent/US20210081207A1

## CPC

- G06F 9/52: Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F 9/522: {Barrier synchronisation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method including an executing entity, including fencing dependency circuitry, communicating with physical memory including a work queue (WQ) including a first controlling work request (WR), and a first dependent WR, the first dependent WR including a fencing indication indicating that the first dependent WR should not be executed until the first controlling WR has completed, the fencing dependency circuitry determining that the first dependent WR is ready for execution and checking, based on the fencing indication in the first dependent WR, whether the first controlling WR has completed, and the executing entity executing the first dependent WR only when the first controlling WR has completed. Related apparatus and methods are also provided.

## Claims

### Claim 1

A method comprising:
an executing entity, comprising fencing dependency circuitry, communicating with physical memory comprising:
a work queue (WQ) comprising:
a first controlling work request (WR); and
a first dependent WR, the first dependent WR including a fencing indication indicating that the first dependent WR should not be executed until the first controlling WR has completed;
the fencing dependency circuitry determining that the first dependent WR is ready for execution and checking, based on the fencing indication in the first dependent WR, whether the first controlling WR has completed; and
the executing entity executing the first dependent WR only when the first controlling WR has completed.

### Claim 2 (depends on 1)

The method according to claim 1 and wherein the physical memory is situated external to the executing entity.

### Claim 3 (depends on 2)

The method according to claim 2 and wherein the physical memory is comprised in a physical computing device external to the executing entity, the physical computing device also comprising a processor, the processor being operative to access the WQ.

### Claim 4 (depends on 1)

The method according to claim 1 and wherein the fencing indication in the first dependent WR includes an identifier of the first controlling WR, and
the checking whether the first controlling WR has completed comprises the fencing dependency circuitry determining whether the first controlling WR has completed based on the identifier of the first controlling WR.

### Claim 5 (depends on 4)

The method according to claim 4 and wherein the fencing dependency circuitry determining whether the first controlling WR has completed based on the identifier of the first controlling WR comprises the executing entity checking a completion queue (CQ) in the physical memory to determine whether the CQ includes an entry indicating that the first controlling WR has completed.

### Claim 6 (depends on 1)

The method according to claim 1 and wherein the WQ also comprises:
a second controlling WR; and
a second dependent WR, the second dependent WR including a fencing indication indicating that the second dependent WR should not be executed until the second controlling WR has completed,
and the method also comprises:
the fencing dependency circuitry determining that the second dependent WR is ready for execution and checking, based on the fencing indication in the second dependent WR, whether the second controlling WR has completed; and
the executing entity executing the second dependent WR only when the second controlling WR has completed.

### Claim 7 (depends on 6)

The method according to claim 6 and wherein the fencing indication in the second dependent WR includes an identifier of the second controlling WR, and
the checking whether the second controlling WR has completed comprises the fencing dependency circuitry determining whether the second controlling WR has completed based on the identifier of the second controlling WR.

### Claim 8 (depends on 7)

The method according to claim 7 and wherein the executing entity determining whether the second controlling WR has completed based on the identifier of the second controlling WR comprises the executing entity checking a completion queue (CQ) in the physical memory to determine whether the CQ includes an entry indicating that the second controlling WR has completed.

### Claim 9 (depends on 1)

The method according to claim 1 and wherein the WQ comprises a plurality of WRs, the plurality of WRs including: the first dependent WR; the first controlling WR; and at least one other WR, each WR of the plurality of WRs having a position in the WQ and an identifier corresponding to said position, and
each WR of the plurality of WRs is completed in order, in accordance with the position of each WR of the plurality of WRs in the WQ and with said identifier,
and the fencing dependency circuit checks whether the first controlling WR has completed based on the identifier of the first controlling WR and on an identifier of a most recently completed WR.

### Claim 10

Apparatus comprising:
an executing entity communicating with physical memory comprising:
a work queue (WQ) comprising:
a first controlling work request (WR); and
a first dependent WR, the first dependent WR including a fencing indication indicating that the first dependent WR should not be executed until the first controlling WR has completed; and
fencing dependency circuitry in communication with the executing entity and configured to determine that the first dependent WR is ready for execution and to check, based on the fencing indication in the first dependent WR, whether the first controlling WR has completed,
wherein the executing entity is configured to execute the first dependent WR only when the first controlling WR has completed.

### Claim 11 (depends on 10)

Apparatus according to claim 10, and wherein the fencing dependency circuitry is comprised in the executing entity.

### Claim 12 (depends on 10)

Apparatus according to claim 10 and wherein the physical memory is situated external to the executing entity.

### Claim 13 (depends on 12)

Apparatus according to claim 12 and wherein the physical memory is comprised in a physical computing device external to the executing entity, the physical computing device also comprising a processor, the processor being operative to access the WQ.

### Claim 14 (depends on 10)

Apparatus according to claim 10 and wherein the fencing indication in the first dependent WR includes an identifier of the first controlling WR, and
the fencing dependency circuitry is configured to check whether the first controlling WR has completed based on the identifier of the first controlling WR.

### Claim 15 (depends on 14)

Apparatus according to claim 14 and wherein the fencing dependency circuitry is configured to determine whether the first controlling WR has completed based on the identifier of the first controlling WR based on the executing entity checking a completion queue (CQ) in the physical memory to determine whether the CQ includes an entry indicating that the first controlling WR has completed.

### Claim 16 (depends on 10)

Apparatus according to claim 10 and wherein the WQ also comprises:
a second controlling WR; and
a second dependent WR, the second dependent WR including a fencing indication indicating that the second dependent WR should not be executed until the second controlling WR has completed, and
the fencing dependency circuitry is configured to determine that the second dependent WR is ready for execution and to check, based on the fencing indication in the second dependent WR, whether the second controlling WR has completed; and
the executing entity is configured to execute the second dependent WR only when the second controlling WR has completed.

### Claim 17 (depends on 16)

Apparatus according to claim 16 and wherein the fencing indication in the second dependent WR includes an identifier of the second controlling WR, and
the fencing dependency circuitry checking whether the second controlling WR has completed comprises the fencing dependency circuitry determining whether the second controlling WR has completed based on the identifier of the second controlling WR.

### Claim 18 (depends on 17)

Apparatus according to claim 17 and wherein the executing entity determining whether the second controlling WR has completed based on the identifier of the second controlling WR comprises the executing entity checking a completion queue (CQ) in the physical memory to determine whether the CQ includes an entry indicating that the second controlling WR has completed.

### Claim 19 (depends on 10)

Apparatus according to claim 10 and wherein the WQ comprises a plurality of WRs, the plurality of WRs including: the first dependent WR; the first controlling WR; and at least one other WR, each WR of the plurality of WRs having a position in the WQ and an identifier corresponding to said position, and
each WR of the plurality of WRs is completed in order, in accordance with the position of each WR of the plurality of WRs in the WQ and with said identifier,
and the fencing dependency circuit is configured to check whether the first controlling WR has completed based on the identifier of the first controlling WR and on an identifier of a most recently completed WR.
