# US 11,119,781 B2 · Synchronized access to data in shared memory by protecting the load target address of a fronting load

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

- Number: US 11,119,781 B2
- Document ID: US11119781B2
- Status: Granted
- Kind: B2
- Application number: 16/216,659
- Filed: 2018-12-11
- Published: 2020-06-11
- Granted: 2021-09-14
- Earliest claimed: 2018-12-11
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Derek E. Williams; Guy L. Guthrie; Hugh Shen; Sanjeev Ghai
- Web page: https://patentgrep.com/patent/US11119781B2

## CPC

- G06F 9/3834: {Maintaining memory consistency}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/34: Addressing or accessing the instruction operand or the result {; Formation of operand address; Addressing modes (address translation G06F12/00)}
- G06F 9/526: {Mutual exclusion algorithms}
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/0833: {in combination with broadcast means (e.g. for invalidation or updating)}
- G06F 12/0842: for multiprocessing or multitasking
- G06F 12/0888: using selective caching, e.g. bypass
- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 2212/1008: Correctness of operation, e.g. memory ordering
- G06F 2212/1024: Latency reduction
- G06F 2212/283: Plural cache memories
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data processing system includes multiple processing units all having access to a shared memory. A processing unit of the data processing system includes a processor core including an upper level cache, core reservation logic that records addresses in the shared memory for which the processor core has obtained reservations, and an execution unit that executes memory access instructions including a fronting load instruction. Execution of the fronting load instruction generates a load request that specifies a load target address. The processing unit further includes lower level cache that, responsive to receipt of the load request and based on the load request indicating an address match for the load target address in the core reservation logic, protects the load target address against access by any conflicting memory access request during a protection interval following servicing of the load request.

## Claims

### Claim 1

A processing unit for a data processing system including multiple processing units all having access to a shared memory, said processing unit comprising:
a processor core including:
core reservation logic that records, within the processor core, addresses in the shared memory for which the processor core has obtained reservations; and
an execution unit that executes memory access instructions including a fronting load instruction, wherein the processor core, based on execution of the fronting load instruction and an address match of a load target address associated with the fronting load instruction in the core reservation logic, generates a fronting load hit request specifying the load target address;
a cache hierarchy including an upper level cache and a lower level cache, wherein the lower level cache is configured to:
receive from the processor core the fronting load hit request, and based on receipt of the fronting load hit request indicating an address match for the load target address in the core reservation logic of the processor core, protect the load target address against access by any conflicting memory access request during a protection interval following servicing of the fronting load hit request; and
thereafter end the protection interval for the load target address based on the lower level cache concluding servicing of a subsequent load-reserve request that is received from the processor core and that specifies the load target address.

### Claim 2 (depends on 1)

The processing unit of claim 1, wherein:
the fronting load instruction is executed by a given hardware thread;
the subsequent load-reserve request is initiated by the given hardware thread.

### Claim 3 (depends on 2)

The processing unit of claim 2, wherein:
the lower level cache includes a plurality of read-claim state machines including a read-claim state machine; and
the read-claim state machine services the fronting load hit request, remains in a busy state following servicing of the fronting load hit request, and, while in the busy state, services the subsequent load-reserve request.

### Claim 4 (depends on 2)

The processing unit of claim 2, wherein:
the processor core, following execution of the fronting load instruction, executes in the given hardware thread a load-reserve instruction that generates the subsequent load-reserve request; and
the lower level cache, based on receipt of the subsequent load-reserve request, establishes a reservation for the load target address.

### Claim 5 (depends on 1)

The processing unit of claim 1, and further comprising a timer that determines a maximum duration of the protection interval established by the fronting load hit request.

### Claim 6 (depends on 1)

The processing unit of claim 1, wherein the core reservation logic includes a plurality of reservation registers that buffer addresses for which hardware threads of the processor core hold reservations.

### Claim 7 (depends on 1)

The processing unit of claim 1, wherein
the core reservation logic further includes a history buffer that buffers addresses for which hardware threads of the processor core formerly held reservations; and
the processor core is configured to determine an address match for the load target address by reference to the history buffer.

### Claim 8 (depends on 1)

A data processing system, comprising:
the multiple processing units, including the processing unit of claim 1;
the shared memory; and
a system interconnect communicatively coupling the shared memory and the multiple processing units.

### Claim 9

A method of data processing in a processing unit of a data processing system including multiple processing units all having access to a shared memory, wherein the processing unit includes a processor core, an upper level cache, and a lower level cache, said method comprising:
recording, within core reservation logic in the processor core, addresses in the shared memory for which the processor core has obtained reservations;
the processor core executing memory access instructions including a fronting load instruction;
the processor core, based on execution of the fronting load instruction and an address match of a load target address associated with the fronting load instruction in the core reservation logic, generating a fronting load hit request that specifies the load target address;
the lower level cache receiving the fronting load hit request, and based on receipt of the fronting load hit request indicating an address match for the load target address in the core reservation logic of the processor core, protecting the load target address against access by any conflicting memory access request during a protection interval following servicing of the fronting load hit request and
the lower level cache thereafter ending the protection interval based on the lower level cache concluding servicing of a subsequent load-reserve request that is received from the processor core and that specifies the load target address.

### Claim 10 (depends on 9)

The method of claim 9, wherein:
the fronting load instruction is executed by a given hardware thread;
the subsequent load-reserve request is initiated by the given hardware thread.

### Claim 11 (depends on 10)

The method of claim 10, wherein:
the processing unit includes a plurality of read-claim state machines including a read-claim state machine; and
the method further comprising the read-claim state machine servicing the fronting load hit request, remaining in a busy state following servicing of the fronting load hit request, and, while in the busy state, servicing the subsequent load-reserve request.

### Claim 12 (depends on 10)

The method of claim 10, and further comprising:
the processor core, following execution of the fronting load instruction, executing in the given hardware thread a load-reserve instruction that generates the subsequent load-reserve request; and
the lower level cache, based on receipt of the subsequent load-reserve request, establishing a reservation for the load target address.

### Claim 13 (depends on 9)

The method of claim 9, and further comprising determining a maximum duration of the protection interval established by the fronting load hit request by reference to a timer.

### Claim 14 (depends on 9)

The method of claim 9, wherein the recording includes the core reservation logic buffering addresses for which hardware threads of the processor core hold reservations in a plurality of reservation registers within the processor core.

### Claim 15 (depends on 9)

The method of claim 9, wherein
the recording includes the core reservation logic buffering, in a history buffer, addresses for which hardware threads of the processor core formerly held reservations; and
the method further comprises the processor core determining the address match for the load target address by reference to the history buffer.

### Claim 16

A design structure tangibly embodied in a non-transitory machine-readable storage device for designing, manufacturing, or testing an integrated circuit, the design structure comprising:
a processing unit for a multiprocessor data processing system including a shared memory, the processing unit including:
a processor core including:
core reservation logic that records, within the processor core, addresses in the shared memory for which the processor core has obtained reservations; and
an execution unit that executes memory access instructions including a fronting load instruction, wherein the processor core, based on execution of the fronting load instruction and an address match of a load target address associated with the fronting load instruction in the core reservation logic, generates a fronting load hit request specifying the load target address;
a cache hierarchy including an upper level cache and a lower level cache, wherein the lower level cache is configured to:
receive from the processor core the fronting load hit request, and based on receipt of the fronting load hit request indicating an address match for the load target address in the core reservation logic of the processor core, protect the load target address against access by any conflicting memory access request during a protection interval following servicing of the fronting load hit request; and
thereafter end the protection interval for the load target address based on the lower level cache concluding servicing of a subsequent load-reserve request that is received from the processor core and that specifies the load target address.

### Claim 17 (depends on 16)

The design structure of claim 16, wherein:
the fronting load instruction is executed by a given hardware thread;
the subsequent load-reserve request is initiated by the given hardware thread.

### Claim 18 (depends on 17)

The design structure of claim 17, wherein:
the lower level cache includes a plurality of read-claim state machines including a read-claim state machine; and
the read-claim state machine services the fronting load hit request, remains in a busy state following servicing of the fronting load hit request, and, while in the busy state, services the subsequent load-reserve request.

### Claim 19 (depends on 17)

The design structure of claim 17, wherein:
the processor core, following execution of the fronting load instruction, executes in the given hardware thread a load-reserve instruction that generates the subsequent load-reserve request; and
the lower level cache, based on receipt of the subsequent load-reserve request, establishes a reservation for the load target address.

### Claim 20 (depends on 16)

The design structure of claim 16, wherein
the core reservation logic further includes a history buffer that buffers addresses for which hardware threads of the processor core formerly held reservations; and
the processor core is configured to determine an address match for the load target address by reference to the history buffer.
