hottub.patents
US 12,197,340 B2#2239800 Most CitedActiveUnited States (USPTO)Utility

Apparatus and method for cache invalidation

1Forward Citations (#2239800 Global)
1.0/yrCitation Velocity (#2239800 Global)
0.17Citation PageRank (#2239800 Global)
18Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

There is provided an apparatus, medium and method for cache invalidation. The apparatus comprises a cache having a plurality of entries grouped into a plurality of entry sets. Each entry of the plurality of entries identifies an address range having one of a plurality of predetermined address range sizes. The apparatus further comprises cache invalidation circuitry responsive to a cache invalidation request indicating an address invalidation range to trigger invalidation of entries in the cache that overlap the address invalidation range. The cache invalidation circuitry is configured to operate in one of a plurality of invalidation modes based on the address invalidation range and cache occupancy information indicating address range sizes identified by the plurality of entries in the cache. The plurality of invalidation modes comprise: an entry-driven invalidation mode in which the cache invalidation circuitry is configured, for each entry of the plurality of entries and in response to a determination that the address invalidation range overlaps the address range identified by that entry, to invalidate that entry; and an invalidation-range-driven invalidation mode in which the cache invalidation circuitry is configured to generate a set of address range sizes based on the address range sizes indicated in the cache occupancy information and, for each given address range size, to generate one or more cache indexes from the address invalidation range in dependence on the given address range size, each of the cache indexes identifying a corresponding entry set of the plurality of entry sets, and for each corresponding entry set to invalidate entries in dependence on whether the address range identified by those entries overlaps the address invalidation range.

Interactive Citation Constellation Global Citation Ranking

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

Claims (8)

  1. Claim 1Independent Claim

    An apparatus comprising: a cache comprising a plurality of entries grouped into a plurality of entry sets, each of the plurality of entry sets comprising one or more of the plurality of entries, wherein each entry of the plurality of entries identifies an address range having a corresponding address range size of a plurality of predetermined address range sizes; cache invalidation circuitry responsive to a cache invalidation request indicating an address invalidation range to trigger invalidation of entries in the cache that overlap the address invalidation range, wherein the cache invalidation circuitry is configured to operate in an invalidation mode of a plurality of invalidation modes and to perform a selection of the invalidation mode based on the address invalidation range and cache occupancy information indicating which address range sizes of the plurality of predetermined address range sizes are identified by the plurality of entries in the cache, wherein the plurality of inval

  2. Claim 2Depends on #1

    The apparatus of claim 1, wherein the set of address range sizes comprises each address range size indicated in the cache occupancy information.

  3. Claim 3Depends on #1

    The apparatus of claim 1, wherein: the cache invalidation request comprises invalidation entry size information identifying a subset of the plurality of predetermined address range sizes for which invalidation is to be triggered; the set of address range sizes comprises each given address range size indicated in both of the cache occupancy information and the invalidation entry size information.

  4. Claim 4Depends on #1

    The apparatus of claim 1, wherein the cache invalidation circuitry is configured, when operating in the invalidation-range-driven invalidation mode and when generating the one or more cache indexes, for each given address range size of the set of address range sizes: to generate a plurality of contiguous address ranges each having the given address range size, wherein the plurality of contiguous address ranges includes at least all addresses in the address invalidation range; and to generate as the one or more cache indexes generated in dependence on the given address range size, a cache index for each of the plurality of contiguous address ranges.

  5. Claim 5Depends on #1

    The apparatus of claim 1, wherein the invalidation mode selection circuitry is configured to perform the selection by: estimating a number of cache indexes required for operating using the invalidation-range-driven invalidation mode; and determining the invalidation mode based on a comparison between the number of cache indexes and a number of entry sets in the plurality of entry sets.

  6. Claim 6Depends on #5

    The apparatus of claim 5, wherein the number of entry sets in the plurality of entry sets is equal to a total number of entry sets in the cache.

  7. Claim 7Depends on #5

    The apparatus of claim 5, wherein the invalidation mode selection circuitry is responsive to the number of cache indexes and the number of entry sets meeting a predetermined condition, to select the entry-driven invalidation mode.

  8. Claim 8Depends on #7

    The apparatus of claim 7, wherein the invalidation mode selection circuitry is responsive to the number of cache indexes and the number of entry sets not meeting the predetermined condition, to select the invalidation-range-driven invalidation mode.

Technical Overview & Description

TECHNICAL FIELD The present invention relates to data processing. More particularly the present invention relates to an apparatus and method for cache invalidation. BACKGROUND A cache storage (also referred to as a cache herein) can be arranged to store data for access by a processing element, enabling access to that data with improved performance, and reduced power consumption, when compared with accessing that data from memory. In some implementations, a cache may be subjected to invalidation requests seeking to invalidate the data held in one or more entries of the cache. SUMMARY In some example configurations described herein there is an apparatus comprising: a cache comprising a plurality of entries grouped into a plurality of entry sets, each of the plurality of entry sets comprising one or more of the plurality of entries, wherein each entry of the plurality of entries identifies an address range having a corresponding address range size of a plurality of predetermined address range sizes; cache invalidation circuitry responsive to a cache invalidation request indicating an address invalidation range to trigger invalidation of entries in the cache that overlap the address invalidation range, wherein the cache invalidation circuitry is configured to operate in an invalidation mode of a plurality of invalidation modes and to perform a selection of the invalidation mode based on the address invalidation range and cache occupancy information indicating which address range sizes of the plurality of predetermined address range sizes are identified by the plurality of entries in the cache, wherein the plurality of invalidation modes comprise: an entry-driven invalidation mode in which the cache invalidation circuitry is configured, for each entry of the plurality of entries and in response to a determination that the address invalidation range overlaps the address range identified by that entry, to invalidate that entry, and an invalidation-range-driven invalidation

Cited By — Indexed Forward Citations (1 of 1 total)

References Cited — Backward Prior Art (18)

PatentTitleYearCitations

Non-Patent Literature (10)

  • 3.2. Cache Lines and Cache Size; Jan. 11, 2022; retrieved from https://web.archive.org/web/20220111225915/https://www.nic.uoregon.edu/
  • ˜
  • khuck/ts/acumem-report/manual_html/ch03s02.html on Feb. 6, 2024 (Year: 2022).
  • A. Gupta and W. .-D. Weber,
  • “
  • Cache invalidation patterns in shared-memory multiprocessors,
  • ”
  • in IEEE Transactions on Computers , vol. 41, No. 7, pp. 794-810, Jul. 1992, doi: 10.1109/12.256449. (Year: 1992).
  • X. Wang, P. Jin, Y. Luo and Z. Chu,
  • “