Read/write operation execution method and SOC chip
Abstract
This application discloses a read/write operation execution method and a SoC chip. The read/write operation execution method includes: A first node receives a first message and a second message from a second node, where the first message is for requesting to perform a read/write operation on a first address managed by a third node, the second message is for requesting to perform a read/write operation on a second address managed by the third node, an execution sequence constraint of the read/write operation of the second node is stricter than an execution sequence constraint of the read/write operation of the third node; the first node obtains operation permission of the first address and operation permission of the second address from the third node; and the first node performs read/write operations on the first address and the second address.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 0.
Claims (8 — 1 Independent, 7 Dependent)
- Claim 1Independent Claim
A method, comprising: receiving, by a first node, a first message and a second message from a second node, wherein the first message requests performing a first read/write operation on a first address managed by a third node, wherein the second message requests performing a second read/write operation on a second address managed by the third node, and wherein the second node complies with a strict order (SO) constraint and the third node complies with a relax order (RO) constraint; and obtaining, by the first node, first operation permission of the first address and second operation permission of the second address from the third node; and performing, by the first node, the first and second read/write operations on the first address and the second address in a sequence of receiving the first message and the second message.
- Claim 2Depends on #1
The method according to claim 1, wherein performing, by the first node, the first and second read/write operations on the first address and the second address comprises: performing, by the first node, the first and second read/write operations on the first address and the second address in parallel.
- Claim 3Depends on #2
The method according to claim 2, wherein performing, by the first node, the first and second read/write operations on the first address and the second address in parallel comprises: performing, by the first node, the first and second read/write operations on the first address and the second address in parallel based on the sequence of receiving the first message and the second message.
- Claim 4Depends on #1
The method according to claim 1, further comprising: releasing, by the first node, the first operation permission of the first address to the third node after completing the first read/write operation on the first address; and releasing, by the first node, the second operation permission of the second address to the third node after completing the second read/write operation on the second address.
- Claim 5Depends on #1
The method according to claim 1, wherein obtaining, by the first node, the first operation permission of the first address and the second operation permission of the second address from the third node comprises: obtaining, by the first node, a first E (Exclusive) state of the first address and a second E (Exclusive) state of the second address from the third node.
- Claim 6Depends on #1
The method according to claim 1, further comprising: when the first node requests the first operation permission of the first address but does not obtain the first operation permission of the first address, when the first node receives that the third node requests to perform a read/write operation that requires the first operation permission on the first address or that the third node requests the first operation permission of the first address, indicating, by the first node, to the third node that the first operation permission of the first address is not obtained; and when the first node requests the second operation permission of the second address but does not obtain the second operation permission of the second address, when the first node receives that the third node requests to perform a read/write operation that requires the second operation permission on the second address or that the third node requests the second operation permission of the second address, indicating, by the
- Claim 7Depends on #1
The method according to claim 1, wherein after obtaining, by the first node, the first operation permission of the first address and the second operation permission of the second address from the third node, the method further comprises: when a preset condition is met, releasing, by the first node, the first operation permission of the first address and the second operation permission of the second address to the third node.
- Claim 8Depends on #7
The method according to claim 7, wherein the preset condition is that the third node requests the first and second operation permissions of the first address and the second address.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of International Application No. PCT/CN2021/084556, filed on Mar. 31, 2021, the disclosure of which is hereby incorporated by reference in its entirety. TECHNICAL FIELD This application relates to the storage field, and in particular, to a read/write operation execution method and a system on chip (SoC) chip. BACKGROUND A plurality of processes (software) may transfer data by accessing a shared memory. Specifically, the plurality of processes send a read/write command to hardware (for example, a central processing unit (CPU)), and the hardware performs read/write operations on the shared memory. A sequence of the read/write operations performed by the hardware affects a final execution result viewed by the software. Therefore, a memory consistency model can be used for putting forward different requirements on the execution sequence of the read/write operations, to ensure that the execution result meets an expectation of the software. Different memory consistency models require different execution sequence strictness. When a node of a memory consistency model (strong order model for short) that complies with a strict order (SO) constraint requests a read/write operation from a node of a memory consistency model (weak order model for short) that complies with a relax order (RO) constraint, the node of the strong order model also needs to perform the read/write operation in the weak order model based on an execution sequence of the strong order model, to ensure that a sequence of globally observable (GO) execution results meets a requirement of the strong order model. SUMMARY Embodiments of this application provide a read/write operation execution method and a SoC chip, so that a sequence of globally observable execution results of performing a read/write operation by a node that complies with an RO constraint meets a requirement of a node that complies with an SO constraint. To achieve the for
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (5)
| Patent | Title | Year | Citations |
|---|