hottub.patents
US 12,730,641 B2#3143263 Most CitedActiveUnited States (USPTO)Utility

Contention hint instruction

0Forward Citations (#3143263 Global)
0.0/yrCitation Velocity (#3143263 Global)
0.00Citation PageRank (#3143263 Global)
8Prior Art Cited
20Claims (3 Indep. · 17 Dep.)
6Drawings / Sheets

Abstract

An apparatus comprises instruction decoding circuitry configured to decode instructions of a program thread executed by a given processor core; and load/store control circuitry configured to select a target point of a memory system hierarchy at which to allocate data for a target cache line specified by a load/store instruction decoded by the instruction decoding circuitry. The load/store control circuitry is configured to select the target point of the memory system hierarchy depending on whether the load/store instruction is associated with a memory contention hint provided by a contention hint instruction decoded by the instruction decoding circuitry, the memory contention hint indicating that the target cache line is likely to be subject to contention for access from multiple threads of processing.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 0.

Claims (20 — 3 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    An apparatus comprising: instruction decoding circuitry configured to decode instructions of a program thread executed by a given processor core; and load/store control circuitry configured to select a target point of a memory system hierarchy at which to allocate data for a target cache line specified by a load/store instruction decoded by the instruction decoding circuitry, wherein the load/store control circuitry is configured to select the target point of the memory system hierarchy depending on whether the load/store instruction is associated with a memory contention hint provided by a contention hint instruction decoded by the instruction decoding circuitry, the memory contention hint indicating that the target cache line is likely to be subject to contention for access from multiple threads of processing.

  2. Claim 2Depends on #1

    The apparatus according to claim 1, in which the memory contention hint comprises a shared update hint indicating that the target cache line is likely to be subject to updates from multiple threads of processing, and for a store instruction decoded by the instruction decoding circuitry, the load/store control circuitry is configured to determine, based on whether the store instruction is associated with the shared update hint, the target point of the memory system hierarchy at which to apply an update to the target cache line.

  3. Claim 3Depends on #1

    The apparatus according to claim 1, in which the load/store instruction comprises an atomic read-modify-write instruction for controlling performance of an atomic read-modify-write operation.

  4. Claim 4Depends on #3

    The apparatus according to claim 3, in which the load/store control circuitry is configured to determine, based on whether the atomic read-modify-write instruction is associated with the memory contention hint, whether to perform the atomic read-modify-write operation using near atomic processing circuitry associated with the given processor core or far atomic processing circuitry shared with, or associated with, at least one other processor core.

  5. Claim 5Depends on #4

    The apparatus according to claim 4, in which, in response to detecting that the memory contention hint is associated with the atomic read-modify-write instruction when the target cache line is not already held in a unique coherency state in the private cache of the given processor core, the load/store control circuitry is configured to select the far atomic processing circuitry for performing the atomic read-modify-write operation.

  6. Claim 6Depends on #1

    The apparatus according to claim 1, in which the load/store control circuitry is configured to select, depending on whether the load/store instruction is associated with the memory contention hint, a target cache at which to allocate the data for the target cache line.

  7. Claim 7Depends on #6

    The apparatus according to claim 6, in which, in response to detecting that the memory contention hint is associated with the load/store instruction, the load/store control circuitry is configured to select as the target cache a further cache other than a private cache associated with the given processor core.

  8. Claim 8Depends on #7

    The apparatus according to claim 7, in which, in response to determining that the target cache level should be the further cache when, prior to processing the load/store instruction, the data for the target cache line is already cached in the private cache associated with the given processor core, the load/store control circuitry is configured to migrate the data for the target cache line from the private cache associated with the given processor core to the further cache.

  9. Claim 9Depends on #7

    The apparatus according to claim 7, in which the further cache comprises at least one of: a shared cache shared between the given processor core and at least one other caching agent; a peer cache which is a private cache associated with another caching agent or a shared cache which is not associated with the given processor core; and/or a cache in a further domain separate from a domain comprising the given processor core.

  10. Claim 10Depends on #1

    The apparatus according to claim 1, in which the memory contention hint specifies a target domain selected from among a plurality of domains of a processing system comprising the given processor core, and the load/store control circuitry is configured to select a cache within the target domain as the target point of the memory system hierarchy.

  11. Claim 11Depends on #1

    The apparatus according to claim 1, in which the load/store control circuitry is configured to support at least one symmetric variant of the memory contention hint, indicating that the target cache line is likely to be subject to contention for access from multiple threads of processing and that a relative frequency of access to the target cache line from each of the multiple threads is unlikely to be biased towards one particular thread of the multiple threads.

  12. Claim 12Depends on #11

    The apparatus according to claim 11, in which, in response to detecting that the symmetric memory contention hint is associated with the load/store instruction, the load/store control circuitry is configured to select, as the target point of the memory system hierarchy, a shared cache shared between multiple processor cores.

  13. Claim 13Depends on #1

    The apparatus according to claim 1, in which the load/store control circuitry is configured to support at least one asymmetric variant of the memory contention hint, indicating that the target cache line is likely to be subject to contention for access from multiple threads of processing and that another thread is likely to access the target cache line more frequently than the program thread comprising the contention hint instruction.

  14. Claim 14Depends on #13

    The apparatus according to claim 13, in which, in response to detecting that the asymmetric memory contention hint is associated with the load/store instruction, the load/store control circuitry is configured to select, as the target point of the memory system hierarchy, a cache other than the private cache of the given processor core.

  15. Claim 15Depends on #1

    The apparatus according to claim 1, in which the contention hint instruction comprises a prefix instruction preceding the load/store instruction.

  16. Claim 16Depends on #1

    The apparatus according to claim 1, in which: when the load/store instruction has a first encoding indicating that a given type of load/store operation is to be performed and that the memory contention hint is not associated with the load/store instruction, the load/store control circuitry is configured to determine that the load/store instruction is not associated with the memory contention hint; and when the load/store instruction has a second encoding indicating that said given type of load/store operation is to be performed and that the memory contention hint is associated with the load/store instruction, the load/store control circuitry is configured to determine that the load/store instruction is associated with the memory contention hint, and the contention hint instruction comprises the load/store instruction itself.

  17. Claim 17Depends on #1

    A system comprising: the apparatus of claim 1, implemented in at least one packaged chip; at least one system component; and a board, wherein the at least one packaged chip and the at least one system component are assembled on the board.

  18. Claim 18Depends on #17

    A chip-containing product comprising the system of claim 17, wherein the system is assembled on a further board with at least one other product component.

  19. Claim 19Independent Claim

    A non-transitory computer-readable medium storing computer-readable code for fabrication of an apparatus comprising: instruction decoding circuitry configured to decode instructions of a program thread executed by a given processor core; and load/store control circuitry configured to select a target point of a memory system hierarchy at which to allocate data for a target cache line specified by a load/store instruction decoded by the instruction decoding circuitry, wherein the load/store control circuitry is configured to select the target point of the memory system hierarchy depending on whether the load/store instruction is associated with a memory contention hint provided by a contention hint instruction decoded by the instruction decoding circuitry, the memory contention hint indicating that the target cache line is likely to be subject to contention for access from multiple threads of processing.

  20. Claim 20Independent Claim

    A method comprising: decoding instructions of a program thread executed by a given processor core; and in response to a load/store instruction of the program thread, selecting a target point of a memory system hierarchy at which to allocate data for a target cache line specified by the load/store instruction, wherein the target point of the memory system hierarchy is selected depending on whether the load/store instruction is associated with a memory contention hint provided by a contention hint instruction, the memory contention hint indicating that the target cache line is likely to be subject to contention for access from multiple threads of processing.

Technical Overview & Description

BACKGROUND Technical Field The present technique relates to the field of data processing. Technical Background Some processing workloads may involve access to shared data by multiple threads running on respective processor cores (e.g. CPUs). In case of memory contention (multiple threads or processors concurrently accessing the same shared data, e.g. cache line, where at least one of the accesses involves a write to the shared data), the software may need to manage updates to the data so that respective updates to the shared data by different threads are synchronised. Such synchronisation techniques may have an impact on processing performance particularly in cases of high contention between many threads seeking to access the same data. SUMMARY At least some examples of the present technique provide an apparatus comprising: instruction decoding circuitry configured to decode instructions of a program thread executed by a given processor core; and load/store control circuitry configured to select a target point of a memory system hierarchy at which to allocate data for a target cache line specified by a load/store instruction decoded by the instruction decoding circuitry, wherein the load/store control circuitry is configured to select the target point of the memory system hierarchy depending on whether the load/store instruction is associated with a memory contention hint provided by a contention hint instruction decoded by the instruction decoding circuitry, the memory contention hint indicating that the target cache line is likely to be subject to contention for access from multiple threads of processing. At least some examples of the present technique provide a system comprising: the apparatus described above, implemented in at least one packaged chip; at least one system component; and a board, wherein the at least one packaged chip and the at least one system component are assembled on the board. At least some examples of the present technique provide a chip-co

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.

Non-Patent Literature (10)

  • “
  • Do near or far atomics give the best performance on Neoverse systems?
  • ”
  • , Arm, Article ID: KA004706, https://developer.arm.com/documentation/ka004706/1-0/?lang=en , Mar. 6, 2023, 4 pages.
  • International Search Report and Written Opinion of the International Searching Authority for PCT/GB2026/050053 mailed Feb. 18, 2026, 14 pages.
  • ARM,
  • “
  • Application Note 179 Cortex-M3 Embedded Software Development
  • ”
  • Mar. 2007, 24 pages.