-
公开(公告)号:US20190004960A1
公开(公告)日:2019-01-03
申请号:US16005934
申请日:2018-06-12
Applicant: ARM Limited
Inventor: Wei Wang , Stephan Diestelhorst , Wendy Arnott ELSASSER , Andreas Lars Sandberg , Nikos NIKOLERIS
IPC: G06F12/0873 , G06F12/0871 , G06F12/02 , G06F12/0895 , G06F1/32
Abstract: An apparatus and method are provided for handling caching of persistent data. The apparatus comprises cache storage having a plurality of entries to cache data items associated with memory address in a non-volatile memory. The data items may comprise persistent data items and non-persistent data items. Write back control circuitry is used to control write back of the data items from the cache storage to the non-volatile memory. In addition, cache usage determination circuitry is used to determine, in dependence on information indicative of capacity of a backup energy source, a subset of the plurality of entries to be used to store persistent data items. In response to an event causing the backup energy source to be used, the write back control circuitry is then arranged to initiate write back to the non-volatile memory of the persistent data items cached in the subset of the plurality of entries. By constraining the extent to which the cache storage is allowed to store persistent data items, taking into account the capacity of the backup energy source, the persistence of those data items can then be guaranteed in the event of the backup energy source being triggered, for example due to removal of the primary energy source for the apparatus.