Range-based cache flushing
AssigneeAdvanced Micro Devices, Inc.
InventorsMichael W. Boyer, Preyesh Dalmia
Life of this patent
Estimating the term…
Abstract
Systems and methods of cache flushing include receiving, from a software application, a first cache flush request to perform a range-based cache flush of a contiguous virtual address range within a virtual memory that maps to a physical memory. A single cache walk is triggered via a second cache flush request to a cache. The single cache walk performs the range-based cache flush for the contiguous physical address range from a beginning address of the contiguous physical address range to an ending address of the contiguous physical address range in response to the first cache flush request.
Claims20
A method comprising:
- receiving a first cache flush request to perform a cache flush of a first virtual address range within a virtual memory, the virtual memory mapping to a physical memory;
- receiving a second cache flush request to perform a cache flush of a second virtual address range within the virtual memory;
- and
- performing a single cache walk to perform a cache flush of the first virtual address range and the second virtual address range in response to the first virtual address range and the second virtual address range mapping to a contiguous physical address range.
A device comprising:
- a physical memory;
- a cache;
- and
- a cache flush controller to:
- receive a first cache flush request to perform a cache flush of a first virtual address range within a virtual memory, the virtual memory mapping to the physical memory;
- and
- receive a second cache flush request to perform a cache flush of a second virtual address range within the virtual memory;
- and
- perform a single cache walk to perform a cache flush of the first virtual address range and the second virtual address range in response to the first virtual address range and the second virtual address range mapping to a contiguous physical address range.
A non-transitory storage medium accessible by a computer system during use to provide instructions to the computer system to:
- receive a first cache flush request to perform a cache flush of a first virtual address range within a virtual memory, the virtual memory mapping to a physical memory;
- receive a second cache flush request to perform a cache flush of a second virtual address range within the virtual memory;
- and
- perform a single cache walk to perform a cache flush of the first virtual address range and the second virtual address range in response to the first virtual address range and the second virtual address range mapping to a contiguous physical address range.
Dependencies are inferred from the claim text.