Apparatus and method for processing refresh requests in a packet network

By converting and transmitting packet-based refresh commands to the requestor device within the packet network, the refresh operation is triggered directly in the persistent domain, which solves the problem of slow processing of refresh requests generated by the remote agent and achieves faster and more reliable data refresh to the persistent domain. point.

CN114127700BActive Publication Date: 2024-09-20ARM LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080051568.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-07-19
Filing Date
2020-05-19
Publication Date
2024-09-20
Estimated Expiration
2040-05-19

AI Technical Summary

Technical Problem

In packet networks, refresh requests generated by remote agents are processed slowly due to the need to call the refresh operation in the persistence domain through the software stack, resulting in a significant delay between the refresh request and the actual refresh operation, affecting the timely writing of data to the persistence point and Data reliability during power outages.

Method used

Provide an apparatus and method for receiving a refresh request generated by a remote agent through a requester device within a packet network, converting it into a packet-based refresh command following a packet protocol, and transmitting it to a completer device through the packet network, and the completer The device is coupled to the persistent domain and triggers refresh operations directly, avoiding dependence on the software stack.

Benefits of technology

Significantly reduces the delay between refresh requests and refresh operations, improves the possibility of timely refreshing of data items to the persistence point, enhances data reliability, provides higher throughput and lower waiting time, and avoids Loss of data during power outage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114127700B_ABST
    Figure CN114127700B_ABST
Patent Text Reader

Abstract

An apparatus and method for processing refresh requests within a packet network (15) is provided. The apparatus includes a requester device (30) located within the packet network (15) and arranged to receive a refresh request generated by a remote agent (10) requesting that one or more data items be refreshed to a persistent point (25). The requester device (30) converts the refresh request into a packet-based refresh command that complies with the packet protocol of the packet network (15). A completer device (40) located within the packet network (15) and coupled to a persistent domain (20) incorporating the persistent point (25) is arranged to detect receipt of the packet-based refresh command and then trigger a refresh operation within the persistent domain (25) to refresh one or more data items to the persistent point (25). This provides a fast, hardware-based mechanism for performing refresh operations within a persistent domain (20) without the need to trigger software in the persistent domain (20) to handle the refresh to the persistent point (25).
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] The present technology relates to apparatus and methods for processing refresh requests within a packet network.

[0002] An agent (e.g., software executed on a computer) may issue a series of write requests seeking to write data to a memory. The agent may at some point wish to ensure that such write data has reached a persistence point within the memory system. A persistence point may take many forms. For example, a memory device that will retain its contents even after power is removed from the memory device would be a persistence point, an example of which would be a non-volatile memory. However, in addition to such memory devices, other structures within the system may also be persistence points. For example, certain queue structures or certain cache structures may be considered persistence points if they are provided with sufficient backup power to ensure that write data therein can be migrated to a suitable persistent memory device in the event of a main power outage.

[0003] Because there may be some delay between the issuance of a write request and the associated write data actually arriving at such a persistence point, for example due to the write data being held in some queue along the path between the agent and the persistence point, it may be desirable for the agent to be able to issue a flush request to cause the associated write data to be flushed until the persistence point.

[0004] The problem that may arise is that the agent may be located away from the entity containing the persistence point, which is referred to as the persistence domain in this article. In particular, there may be an intermediate network between the remote agent and the persistence domain. An example of such a network is a packet network that uses a packet protocol to transmit packets across the network from a source to a receiver. Typically, such a packet network cannot distinguish refresh requests from other requests, and alternatively, a refresh request sent by a remote agent to such a packet network will be processed by the packet network as a write request, and the write command is propagated through the packet network to be output to the queue / software stack in the persistence domain, wherein the write to the queue causes the software in the persistence domain to be called subsequently to perform the required refresh to the persistence point operation. However, it has been found that this process is very slow due to the need to write to the queue structure in the persistence point and then call the software to perform the refresh operation.

[0005] It would therefore be desirable to provide an improved mechanism for handling refresh requests generated by a proxy remote from a persistence domain. Summary of the invention

[0006] In a first example arrangement, an apparatus is provided, comprising: a requester device located within a packet network to receive a refresh request generated by a remote agent to refresh one or more data items to a persistent point, and convert the refresh request into a packet-based refresh command that complies with a packet protocol of the packet network; and a completer device located within the packet network, coupled to a persistent domain incorporating the persistent point, the completer device being arranged to detect receipt of the packet-based refresh command and trigger a refresh operation within the persistent domain to refresh the one or more data items to the persistent point.

[0007] In a second example arrangement, a requester device is provided in a packet network for receiving a refresh request generated by a remote agent requesting one or more data items to be refreshed to a persistent point, the requester device including a conversion circuit to convert the refresh request into a packet-based refresh command that complies with a packet protocol of the packet network for continued transmission through the packet network to a completer device, the completer device being used to trigger a refresh operation within a persistent domain associated with the persistent point.

[0008] In yet another exemplary arrangement, a completer device for use within a packet network is provided, the completer device having a refresh operation trigger circuit that, in response to receipt by the completer device of a packet-based refresh command that complies with a packet protocol of the packet network, triggers a refresh operation within a persistent domain to refresh one or more data items identified by the packet-based refresh command to a persistent point within the persistent domain.

[0009] In another exemplary arrangement, a method for operating a packet network to process refresh requests is provided, the method comprising the following steps: receiving, at a requester device within the packet network, a refresh request generated by a remote agent requesting that one or more data items be refreshed to a persistent point; converting, at the requester device, the refresh request into a packet-based refresh command that complies with a packet protocol of the packet network; transmitting the packet-based refresh command through the packet network to a completer device, the completer device being coupled to a persistent domain incorporating the persistent point; and in response to detecting receipt of the packet-based refresh command, arranging the completer device to trigger a refresh operation within the persistent domain to refresh the one or more data items to the persistent point.

[0010] In another example arrangement, a device is provided, comprising: a requester device, the requester device being located within a packet network to receive a refresh request generated by a remote agent to refresh one or more data items to a persistent point, and converting the refresh request into a packet-based refresh command that complies with a packet protocol of the packet network; and a completer device, the completer device being located within the packet network, coupled to a persistent domain incorporating the persistent point, the completer device being used to detect receipt of the packet-based refresh command and to trigger a refresh operation within the persistent domain to refresh the one or more data items to the persistent point. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The present technology will be further described, by way of example only, with reference to examples of the present technology as shown in the accompanying drawings, in which:

[0012] Figure 1 A schematic diagram of an apparatus according to an example embodiment is provided;

[0013] Figure 2A and Figure 2B Two specific example systems arranged to incorporate devices utilizing the presently described techniques are shown;

[0014] Figure 3 is a block diagram illustrating components provided within a requester device of a packet network, arranged according to one example;

[0015] Figure 4 is a block diagram illustrating components provided within a completer device of a packet network, arranged according to one example;

[0016] Figure 5 One format of a packet-based refresh command that may be used in an example implementation is shown;

[0017] Figure 6 shows how a write command according to one example arrangement may be arranged to incorporate stream identification information;

[0018] Figure 7 is a flow chart illustrating a process performed at a requester device of a packet network in response to receiving a refresh request from a remote agent, according to one example arrangement;

[0019] Figure 8 is a flow chart illustrating a process performed at a completer device of a packet network for processing a packet-based refresh command, arranged according to one example;

[0020] Fig. 9 is a diagram showing how this can be implemented in one example arrangement Figure 8 Flowchart of step 465;

[0021] Fig. 10A and Fig. 10B is a flow chart illustrating how a write data command incorporating flow identification information may be generated and subsequently processed within a packet network according to one example arrangement;

[0022] Fig.11A is a flow chart illustrating how a completer device within a packet network may generate a completion packet when completing a flush operation according to one example arrangement;

[0023] Fig. 11B is a diagram illustrating the format of a completion packet in one example arrangement; and

[0024] Fig. 12A and Fig. 12B Different dedicated packet types that may be used for refresh commands according to alternative embodiments are shown. DETAILED DESCRIPTION

[0025] According to one example arrangement, there is provided an apparatus having a requester device within a packet network to receive a refresh request generated by a remote agent requesting to refresh one or more data items to a persistence point. The one or more data items may be identified in a variety of ways, but will typically be associated with data that was the subject of a previous write operation, and the refresh request is issued by the remote agent seeking to ensure that those data items are pushed to the persistence point so that it can be ensured that those data items will persist upon a subsequent power outage. However, according to previous techniques, the requester device will not distinguish such a refresh request from any other type of write request, and will only push write commands over the packet network in order to cause an update to a queue structure (such as a software stack within a domain containing the persistence point), and in accordance with the techniques described herein, the requester device is arranged to identify the refresh request and convert the refresh request into a packet-based refresh command that complies with the packet protocol of the packet network.

[0026] The apparatus also includes a completer device within the packet network, the completer device coupled to a persistence domain incorporating a persistence point and thereby acting as an interface between the packet network and the persistence domain. Since the refresh request is converted by the requester device into a packet-based refresh command, the completer device is able to detect when a packet-based refresh command is received and, in response to receiving the packet-based refresh command, trigger a refresh operation within the persistence domain to refresh one or more data items to the persistence point.

[0027] Thus, by using the above techniques rather than relying on a software stack within a system having a persistent domain that is called in order to perform a refresh operation, a faster hardware method is provided for invoking a refresh operation by supporting specific packet-based refresh commands that follow a packet protocol in a packet network, thereby enabling the refresh operation to be directly triggered by a completer device within the packet network. This can significantly increase the execution of the processing of refresh requests from remote agents (and can, for example, provide an order of magnitude improvement), thereby reducing the time delay between the issuance of a refresh request and the action of the refresh operation required to implement the refresh request. Thus, this provides significantly enhanced reliability, thereby increasing the likelihood that data items are refreshed to a persistent point in a timely manner to avoid data loss in the event of a power outage. This also provides higher throughput and lower latency for software applications.

[0028] In one example arrangement, the packet-based refresh command forms a native command of the packet network that is distinguished by devices of the packet network from other native commands routed through the packet network. As such, the packet-based refresh command may be recognized by hardware components in the packet network as being associated with a need for a refresh operation, while components previously within the packet network would not be aware of the refresh request and would simply process the refresh request by causing a write command to propagate through the packet network to the memory address.

[0029] The packet network may take various forms, such as a packet protocol used within the packet network. However, in one example arrangement, the packet protocol is a Peripheral Component Interconnect Express (PCIe) protocol, and the packet-based refresh commands form transaction layer commands. Thus, according to this embodiment, the above-described techniques enable the use of transaction layer packets (TLPs) within the transaction layer of the PCIe network to implement packet-based refresh commands that are recognizable by components of the packet network and, in particular, distinguishable from other native commands routed through the packet network. As a result, the completer device is able to detect receipt of such a packet-based refresh command and trigger a refresh operation, as previously discussed.

[0030] In one example embodiment, the packet-based refresh command is arranged to identify a refresh type. As a result, a variety of different types of refresh operations can be implemented using the above-described mechanism. In one example embodiment, the refresh type is used to distinguish between an address-based refresh type and an alternative refresh type that identifies one or more data items to be refreshed according to an address range determined by a completer device from address information provided with the packet-based refresh command. Therefore, this provides significant flexibility when implementing refresh operations. In particular, it allows a range of addresses to be identified such that any data items written to those addresses are refreshed to a persistent point, but also supports at least one alternative form of refresh to be implemented.

[0031] This alternative form of refresh can take a variety of forms. However, in an example embodiment, the alternative refresh type is a flow identification refresh type that provides a flow identification within a packet-based refresh command, and the one or more data items to be refreshed are those data items within the persistent domain that have not yet reached a persistence point and have a flow identification associated therewith. Therefore, when the various data items are output for writing to the memory, the flow identification value can be associated with those data items, and the subsequent refresh request can specify the flow identification so that the flow identification is used as a mechanism for identifying data items that need to be refreshed to a persistence point. The use of the flow identification can then be managed by a remote agent, and a particularly flexible mechanism is provided for determining the data items that should be subject to any particular refresh request.

[0032] In order to support the use of flow identification, the write data command for writing data can be enhanced to support the use of flow identification. In particular, in an example arrangement, one or more devices within the packet network are arranged to generate a write data command for transfer to a completer device through the packet network, and in order to support the flow identification refresh type, are arranged to generate a write data command formed by a flow identification prefix and at least one associated write data packet, wherein the flow identification prefix contains an indication of the flow identification associated with each write data item contained in the at least one associated write data packet. In this way, the form of the write data packet can be maintained "as is", and therefore, there is no need for different forms of write data packets depending on whether the flow identification is being used. Alternatively, a separate flow identification prefix can be used, which, when appearing before the associated write data packet, identifies the flow identification to be used in association with the write data that is the subject of the write data packet. The flow identification information can then be propagated into the persistent domain so that the flow identification information is provided in association with the write data as it passes through various structures within the persistent domain.

[0033] In one example arrangement, the flow identification prefix is ​​only applied to the write data packet immediately following it. However, if desired, the flow identification prefix may be arranged to be associated with one or more write data packets following the flow identification prefix, thereby allowing a more efficient encoding of the flow identification by avoiding the need to repeat the flow identification prefix before each write data packet with which the flow identification is to be associated.

[0034] A plurality of different stream identification values ​​may be used simultaneously, and then, for a given refresh request, a particular stream identification value is associated so that only the write data items associated with that particular stream identification value are subsequently subjected to a refresh operation. However, in an example embodiment, a particular predetermined value of the stream identification may be reserved so that it may be used to cause a more global refresh of the data items. In particular, in an example embodiment, when the stream identification provided within the packet-based refresh command has a predetermined value, the completer device is arranged to interpret the packet-based refresh command as being associated with all data items within the persistent domain that have not yet reached a persistent point and have any stream identification value associated therewith. Thus, by using a single refresh request, all data items with an associated stream identification may be refreshed to a persistent point in this case, regardless of the particular stream identification value associated with any of those data items. This may provide enhanced flexibility in the use of refresh requests by allowing refresh requests to be directed to a particular stream identification or to a single refresh request for all stream identifications.

[0035] The flow identification prefix may take a variety of forms, but in one example implementation, is an end-to-end prefix that is routed through the packet network to the completer device along with the associated write data packet via any intermediate devices of the packet network. By using such an end-to-end prefix, the prefix may be routed through the packet network unmodified so that it may be received at the completer device in its original form generated by the requester device.

[0036] In an example embodiment, a refresh command based on a packet may be arranged to provide a refresh point indication for identifying a persistent level point to which one or more data items will be refreshed. In particular, in some systems, there may be multiple different levels that are all considered persistent points. For example, a refresh point may be used to distinguish between a shallow refresh to a first persistent point and a deep refresh to a second persistent point that is more adaptable to hardware failures than the first persistent point. The second persistent point will be more adaptable depending on the adaptability of the second persistent point to power outages and / or its reliability. By way of example only, a non-volatile memory device may be used as a deep persistent point because it provides a very reliable persistent point. However, other intermediate structures before the non-volatile memory may also provide persistent points (e.g., by being supplemented with additional backup power components) to ensure that any data at those persistent levels can be written to the non-volatile memory in the event of a power outage. By way of specific example only, some system caches may be considered to provide persistent points, such as some queue structures that may be considered to be within a memory controller, provided that appropriate components are provided in association with these storage structures to ensure that the contents stored therein can be written to the non-volatile memory in the event of a power outage.

[0037] In one example implementation, the requester device includes conversion circuitry to convert the refresh request into a packet-based refresh command such that the packet-based refresh command includes at least a packet for transmission to the completer device over a packet network.

[0038] The manner in which the conversion circuitry generates the packet-based refresh command may vary depending on the implementation. In one example implementation, the conversion circuitry is arranged to generate a refresh prefix and at least one associated packet to form a packet-based refresh command, wherein the associated packet is of a type that is also used for another form of command within a packet network, and the refresh prefix is ​​used to cause the completer device to interpret the refresh prefix and the associated packet as together forming a packet-based refresh command. Thus, according to such an implementation, another form of packetization is not required, and an existing packet type may be used, but with a refresh prefix associated with the packet to cause the completer device to interpret the associated packet differently.

[0039] The form of the packets reused in this manner in conjunction with the refresh prefix to form a packet-based refresh command may vary depending on the implementation, but in one example case, the associated packets are of a type that is also used for read commands within the packet network. Thus, in the absence of an associated refresh prefix, the packet would be considered a read packet, but in conjunction with the refresh prefix, the packet would be considered to form a packet-based refresh command.

[0040] In one example arrangement, the refresh prefix is ​​applied only to the immediately following packet. However, in an alternative embodiment, a single refresh prefix may be arranged to be associated with two or more following packets, so that each of those packets is considered to form a packet-based refresh command in conjunction with the refresh prefix content.

[0041] As with the flow identification prefix described previously, in one example arrangement, the refresh prefix may be an end-to-end prefix that is routed with associated packets from the requester device to the completer device through the packet network via any intermediate devices of the packet network.

[0042] The information maintained within the refresh prefix may vary depending on the implementation, but is generally used to provide additional information needed to control the refresh operation that cannot be provided directly within the associated packet because the associated packet is of a type that is also used in another form of command within the packet network.

[0043] In one example implementation, the refresh prefix includes a type field identifying a refresh type for distinguishing between an address-based refresh type and an alternative refresh type that identifies one or more data items to be refreshed by an address range determined by a completer device from address information provided with a packet-based refresh command. As previously discussed, the alternative refresh type can take a variety of forms, but in one specific example is a stream identification refresh type.

[0044] In one example embodiment, the refresh prefix may include an attribute field, and the information maintained in the attribute field may vary depending on the refresh type identified in the refresh prefix. For example, when performing an address-based refresh in response to a packet-based refresh command (i.e., where the refresh type is an address-based refresh type), the completer device may be arranged to use the address information provided in the attribute field of the refresh prefix in combination with additional address information provided in the associated packet to determine an address range for identifying the data item to be refreshed. If instead the type field within the refresh prefix indicates that the refresh type is a stream identification refresh type, the attribute field may be used to capture the stream identification, rather than providing address information.

[0045] In embodiments where the attribute fields provide address information, then in one specific example arrangement, the additional address information provided in the associated packet includes at least an indication of a starting address, and the address information from the attribute fields of the refresh prefix is ​​used to identify an address range starting from the starting address. Thus, while the starting address may be determined from information in the packet (which may be a standard read packet as discussed previously), the range information may be determined from the additional address information provided by the refresh prefix.

[0046] In a further example arrangement, to extend the possible range that can be encoded within a packet-based refresh command, the further address information provided in the associated packet may include a length field that can be used to provide a value that also indicates a range. In particular, the value provided in the length field may be used in conjunction with the address information from the attribute field of the refresh prefix to determine the address range. Due to the additional information that may be provided in the length field, this may enable a wider range of addresses to be captured within a packet-based refresh command.

[0047] In one example implementation, the refresh prefix may also provide a refresh point field for identifying the persistence level point to which one or more data items are to be refreshed, and thus, for example, the refresh prefix may identify whether a refresh operation is to be performed to a shallow persistence point or a deep persistence point.

[0048] As an alternative to using a refresh prefix to form a packet-based refresh command and already supporting an existing type of packet for another purpose (e.g., a read packet as discussed previously), the conversion may alternatively be arranged to employ at least one dedicated packet type to form a packet-based refresh command. In this arrangement, a refresh prefix is ​​not required, but different types of packets need to be supported within the packet network.

[0049] In one example arrangement, a first dedicated packet type may be used to identify a packet-based refresh command of an address-based refresh type, and a second dedicated packet type may be used to identify a packet-based refresh command of a stream-identification refresh type. Thus, different packet types may be used depending on whether an address-based refresh or a stream-identification-based refresh is to be performed.

[0050] When using the first dedicated packet type, the packet may include address information sufficient to determine an address range identifying one or more data items to be refreshed. Thus, in a particular embodiment, the address information may identify a starting address and additional address information for identifying an address range starting from the starting address.

[0051] When the second dedicated packet type is used, the packet may include a flow identification field providing a flow identification, and the one or more data items to be refreshed are those data items within the persistence domain that have not reached a persistence point and have a flow identification associated therewith.

[0052] When using the first dedicated packet type or the second dedicated packet type, a refresh point field may be provided in such a packet to identify a persistence level point to which one or more data items are to be refreshed.

[0053] In one example arrangement, it is useful for the remote agent to be informed of the completion of the refresh operation in response to its refresh request. Therefore, in one example arrangement, the completer device is arranged to send a completion confirmation packet to the requester device over the packet network upon detecting the completion of the refresh operation within the persistent domain. Although the completion confirmation packet may take a variety of forms, in one particular embodiment, an existing packet format for completion information is reused for this purpose, and therefore no new form of packet needs to be developed in order to provide completion information back to the requester device.

[0054] In one example arrangement, the ability of the requester device and the completer device to manage the refresh commands discussed previously may be made configurable by software. In particular, each of the requester device and the completer device may be provided with one or more configuration registers in which configuration information may be stored to identify whether those devices are enabled to process packet-based refresh commands. This allows for configuration by enabling the additional functionality to be enabled or disabled as desired. In the event that the configurations of certain elements are incompatible, for example, the requester device is enabled to generate packet-based refresh commands, but the target completer device is not enabled to process such commands, then, for example, when the completer device receives a packet-based refresh command that it cannot process, an error will be signaled.

[0055] The manner in which configuration information is stored in the configuration registers may vary depending on the implementation. For example, in one particular implementation, software may be used to perform an enumeration process to discover and configure devices within a packet network, and during the enumeration process, configuration information may be stored in the configuration registers to identify the capabilities of various devices with respect to the processing of packet-based refresh commands. Thus, the provision of configuration registers may allow software to have the ability to control and configure the refresh capabilities of a packet network.

[0056] Specific examples will now be described with reference to the accompanying drawings.

[0057] Figure 1 is a block diagram of a system in which the techniques described herein may be employed. In particular, a remote agent 10, which may, for example, take the form of software running on a personal computer or server, is communicating with a persistent domain 20 via a packet network 15. The packet network may take a variety of forms, but for the purposes of the examples described herein, it will be assumed that the packet network is a PCIe network.

[0058] The persistence domain 20 includes at least one persistence point 25, which is a memory device that is arranged so that once data has reached the memory device, the data should persist in the event of a power outage. The persistence point 25 can take a variety of forms and can be, for example, a memory device that retains data in the presence of power removed from the memory device, an example of which is a non-volatile (NV) memory. Alternatively, the persistence point can be at a higher level than the non-volatile memory device, and in particular, can be a memory device that is not inherently persistent, but is provided with additional mechanisms to ensure that once the data has reached the point, the data at the point can be migrated to the non-volatile memory in the event of a power outage. Thus, by way of example, in some cases, a specific level in a cache hierarchy (e.g., a system cache) can be provided with backup power so that in the event of a power outage to a device containing the system cache, the system cache can still use power sufficient to enable it to migrate its data to a permanent persistence point (such as, non-volatile memory). Similarly, one or more of the queue structures within the memory controller can be arranged in such a way that those queues become persistence points.

[0059] The remote agent 10 may be arranged to write data to a memory within the persistent domain 20 via the packet network 15, and at some point it may be desirable to ensure that the write data has reached the persistence point 25. In particular, it will be appreciated that there may be multiple buffering levels along the path to the persistence point, and therefore there may be some significant delays between the write requests issued and the data actually reaching the persistence point. For example, in some cases, the data may be cached at a higher level in the cache hierarchy, and therefore not reach the persistence point until the data is evicted from the cache. Similarly, the queue structure may take a significant amount of time to drain, and therefore write data may be retained within such a queue structure for an extended period of time.

[0060] The remote agent 10 may issue a flush request in order to seek to initiate flushing of one or more data items to the persistence point 25. A variety of existing techniques may be used for such a flush request, and by way of example, a remote data memory access (RDMA) flush request may be issued by the remote agent.

[0061] In a typical packet network (such as a PCIe network), such a refresh request is only considered a write request to the memory and is propagated through the PCIe network as a write request, resulting in the request being written to a queue structure within the persistent domain. The queue structure may be, for example, a software stack, and as a result of writing to the software stack, software within the persistent domain may be called to perform the desired refresh operation. However, it has been found that this software-based mechanism is slow, and therefore there may be a significant delay between the refresh request being issued and the refresh operation being performed. According to the techniques described herein, an alternative mechanism is implemented that enables refresh operations to be performed more quickly in response to refresh requests issued by a remote agent.

[0062] It should be pointed out that in Figure 1 In FIG. 1 , the agent 10 is referred to as a remote agent because it is remote from the persistence domain 20 including the persistence point 25 , and in particular, is separated from the persistence domain 20 by at least the packet network 15 .

[0063] According to the techniques described herein, a remote agent 10 may issue a refresh request to a packet network 15, where the refresh request will be received by a component 30 within the packet network. The component may take various forms, but in one example may be a network interface card (NIC). Instead of the refresh request being propagated simply through the PCIe network as a write request to memory, the device 30 is alternatively capable of detecting that the request is a refresh request and is provided with a mechanism for creating a packet-based refresh command that follows the packet protocol of the packet network (in this case, the PCIe protocol). In particular, it is proposed to extend the native commands available within the PCIe network to include new native commands that are identified as representing refresh commands, and the packet-based refresh command may then be routed through the packet network 15 via one or more intermediate components to a component 40 that provides an interface with the persistent domain 20. For simplicity, a switch 35 is shown between the device 30 and the device 40, but it will be understood that in a typical PCIe network, there may be more devices in the path between the device 30 and the device 40, or alternatively, there may be a direct path between the device 30 and the device 40.

[0064] In the following description, device 30 that generates a packet-based refresh command in response to a received refresh request is referred to as a requester device, and device 40 that interfaces with persistent domain 20 is referred to as a completer device because it is responsible for responding to the packet-based refresh command.

[0065] In particular, completer device 40 will detect packet-based refresh commands because, as previously mentioned, packet-based refresh commands will be native commands supported by the PCIe network and can therefore be distinguished from other forms of native commands that may be routable through the PCIe network by components such as completer device 40. Such native commands may also be referred to herein as hardware commands because they are commands recognized by hardware components within packet network 15.

[0066] The completer device 40 is responsive to detecting receipt of a packet-based refresh command to trigger a refresh operation within the persistent domain 20 to refresh one or more data items identified by the packet-based refresh command to a persistent point 25. A variety of ways in which data items are to be refreshed may be identified within the packet-based refresh command. As will be discussed in greater detail herein, in one example, a series of addresses may be determined with reference to information provided within the packet-based refresh command such that any data items written to those addresses that have not yet reached a persistent point 25 may be subject to a refresh operation within the persistent domain such that those data items are refreshed up to that persistent point 25. In an alternative arrangement, a stream identifier may be associated with each write data item, and the packet-based refresh command may specify the stream identifier such that the completer device 40 will subsequently cause a refresh operation to be invoked for all write data items with an associated stream identifier that have not yet reached a persistent point 25 within the persistent domain 20.

[0067] Since the completer device is able to distinguish packet-based refresh commands from other native commands that can be routed over the packet network, and can therefore analyze the packet-based refresh commands to directly invoke the desired refresh operation within the persistent domain 20, there is no longer any need to trigger software within the persistent domain to handle the refresh up to the persistence point 25, and therefore by using this mechanism, significant improvements in the execution of refresh operations can be achieved, thereby significantly reducing the delay between the remote agent 10 issuing a refresh request and the execution of the desired refresh operation within the persistent domain 20.

[0068] will understand, Figure 1 Schematic diagrams of the systems are provided, and the actual arrangement of components within the systems may vary significantly depending on the implementation. Figure 2A and Figure 2B Two specific example systems are shown in FIG. Figure 2AIn the example of , a system on chip (SoC) 50 is coupled to a persistent domain 60 via a PCIe network 55. In particular, the SoC 50 is connected to a root port 80 of the PCIe network 55, which forms a root complex device that connects the processing power and memory subsystem of the SoC to the PCIe network 55. For simplicity, detailed components within the SoC are omitted, but a processor core 70 is shown as being connected to the root port 80 via an interconnect 75, and the processor core 70 (or at least the software executing on the processor core) can be viewed as a remote agent that can issue a series of write requests to a non-volatile memory 65 within the persistent domain 60, and then subsequently wish to issue a flush request to ensure that those write data items have been flushed to the non-volatile (NV) memory 65, which in this example is viewed as a persistent point.

[0069] In this example, it is assumed that a memory controller for controlling access to the non-volatile memory 65 is provided by an endpoint device 90 within the PCIe network 55 and is coupled to the root port 80 via one or more intermediate components. Figure 2A An intermediate switching device 85 is provided in the specific illustration in FIG.

[0070] will understand that even Figure 2A In the relatively simple embodiment shown in FIG. 1 , there may also be multiple intermediate queue structures before the non-volatile memory 65. For example, the memory controller 90 may include multiple different levels of queuing structures (e.g., a receive queue into which commands are initially received) and one or more intermediate queues before the data is actually propagated to the NV memory 65. Depending on the embodiment, one or more of the components within the endpoint device 90 may be considered to be based on Figure 2A The schematic diagram in FIG. 1 is within the persistent domain 60 , or alternatively, the endpoint device 90 may be considered to be completely outside the persistent domain, where the endpoint device then communicates with the persistent domain to ensure that the required data items are flushed to the NV memory 65 .

[0071] As mentioned previously, while NV memory 65 will be a persistence point, it may not be the only persistence point within the system. For example, there may be at least a final level of queuing within memory controller 90 that is provided with backup power capability to enable the queue structure to be considered a persistence point, since it is known that once data has reached that point, it should be possible to migrate that data to NV memory 65 in the event of a power failure.

[0072] Therefore, in Figure 2AIn the example of , the processor core 70 may issue a refresh request that is routed to the root port 80 via the interconnect 75. The root port then recognizes the receipt of the refresh request and converts the refresh request into a packet-based refresh command that complies with the PCIe protocol of the PCIe network 55. The native command is then routed through the infrastructure of the PCIe network where it is received by the endpoint 90. The endpoint 90 then recognizes that the command is a refresh command and analyzes the content of the refresh command in order to issue appropriate control signals into the persistent domain to cause the desired data items to be refreshed to the persistent point. In the event that there is more than one persistent point within the persistent domain, the original refresh request may identify which persistent point is being targeted, and this information may be captured within the packet-based refresh command routed through the PCIe network so that the endpoint may then issue appropriate control signals to ensure that the data is refreshed to the appropriate persistent point, for example, to the NV memory 65, or to a queue structure in a memory controller that is arranged so that it can operate as a persistent point.

[0073] exist Figure 2A In the example of , it will be understood that root port 80 becomes the requester device and endpoint 90 performs the operations of the completer device. Figure 2B An alternative example implementation is shown in which a root port forms a completer device and a persistent domain is associated with the SoC 115 in which the root port is provided.

[0074] exist Figure 2B In the example of , the remote agent 100 is arranged to issue a refresh request for the persistent domain via the intermediate PCIe network 110. Figure 2B In the example shown in , the remote agent is not directly connected to the PCIe network, but is instead coupled to the PCIe network via an intermediate architecture 105. The architecture 105 can take various forms, but can be, for example, the Internet. Therefore, the refresh request is routed to the interface device (in this example, the NIC card 125) of the PCIe network 110 via the Internet. The NIC card 125 acts as a requester device in this embodiment and maps the refresh request to the previously mentioned native command now provided by the PCIe network to represent the refresh, that is, the previously mentioned packet-based refresh command. The command is then routed to the root port 135 associated with the persistent domain to which the refresh request is directed via the switch 130.

[0075] exist Figure 2BVarious storage structures are shown within the SoC 115 of 116 to illustrate various locations where write data may be buffered before reaching the non-volatile memory 120. In particular, write data that is the subject of a write request that has previously been issued by one or more remote agents coupled to the SoC 115 by the PCIe network 110 may be routed through the input queue structure 140 of the interconnect 167, where it may be propagated via the system cache 145 to one or more output queue structures 150 of the interconnect, and from there to the memory controller 155, after which the data is ultimately written to the non-volatile memory, which memory controller may itself include some internal queue structures 160.

[0076] When the root port 135 receives a packet-based refresh command, it identifies the command as a refresh command and may analyze the content of the refresh command to generate a control signal sent to the refresh control circuit 170 within the SoC 115. The exact location of the refresh control circuit may vary depending on the implementation, and in fact, may be distributed at various locations within the SoC rather than a single centralized refresh control circuit. In another example implementation, the refresh control circuit 170 may be implemented within the root port 135. However, the refresh control circuit 170 is implemented, which is configured to control the execution of refresh operations within the SoC 115, thereby allowing the contents within various queues / storage structures of the SoC to be refreshed to a persistent point. Only the NV memory 120 may be a persistent point within the persistent domain, or it may be one or more storage structures in other storage structures that may also provide a persistent point. For example, if suitable backup power is provided, the queue structure 160 within the memory controller may be a persistent point. Similarly, in some implementations, the system cache may also be considered a persistent point because it may be provided with suitable backup power so that the contents of the system cache can be written out to the NV memory 120 in the event of a power outage.

[0077] Due to the fact that the root port 135 can recognize the packet-based refresh commands routed via the PCIe network, it can then analyze the content of the packet-based refresh commands and communicate directly with the refresh control circuit 170 in order to implement the required refresh operation. Therefore, in contrast to the known prior art, there is no need to invoke software on the processor core 165 within the SoC in order to perform the required refresh operation because the PCIe network itself is "refresh aware" due to the ability to generate a packet-based refresh command that complies with the PCIe protocol and propagate it through the PCIe network.

[0078] As previously mentioned, refresh requests may be directed to specific data items. Thus, it may be the case that the remote agent 100 has issued a series of write requests to specific memory addresses within a memory address range, and that subsequent refresh requests may then provide address range information to identify those memory addresses. This address information may be captured within an internal packet-based refresh command routed through the PCIe network 110, such that the root port 135 may then issue a refresh control signal to the refresh control circuit 170 specifying the desired address that needs to be refreshed. The various intermediate storage structures between the PCIe network 110 and the relevant persistence point may then be checked to determine if any relevant write data items are still within those structures, and in that case, those data items may be refreshed up to the persistence point. Taking as an example only the scenario in which queue structures 160 within a memory controller may act as persistence points, and those queue structures are identified as persistence points associated with refresh requests, any associated data items retained within queue structures 140, 150 or within system cache 145 may subsequently be refreshed to queue structures 160 via refresh control circuitry 170 in response to control signals issued by root port 135 based on its analysis of the packet-based refresh commands.

[0079] Figure 3 2 is a block diagram showing components that may be provided within a requester device of a PCIe network to implement the above-described functionality. The requester device 200 has an interface 205 to a remote agent or intermediary architecture via which the requester device may receive requests from a remote agent. Requests received at the interface 205 are propagated to a packet generation circuit 210, which is also referred to herein as a conversion circuit, which is provided as a transaction layer. The transaction layer is the starting point for the assembly of port-out transaction layer packets (TLPs) and the end point for the disassembly of port-in TLPs. Figure 3 For purposes of illustration, only the transmit path from the requester device into the PCIe network is shown, and the receive path is omitted, although it will be understood that information may also flow from within the PCIe network via the requester device 200 to a remote agent or intermediate architecture.

[0080] In order to support the above functions for the refresh command based on the packet, a refresh command generator 220 is provided within the packet generation circuit 210. When the input request is identified as a refresh request, the refresh command generator 220 is arranged to generate a refresh command based on the internal packet to be routed via the PCIe network to represent the refresh request. The exact form of the refresh command based on the packet can vary according to the implementation, and two different formats are described herein. The first involves adding a refresh prefix to an already existing packet format so that the refresh prefix combined with the associated packet is considered to represent a refresh command based on the packet. In the absence of a refresh prefix, the packet will be interpreted in its standard manner. In a specific example to be discussed later, the packet that can be reused to form a refresh command based on the packet is a read packet, and therefore when the read packet is preceded by a refresh prefix, the combination of the refresh prefix and the read packet is considered to be a refresh command based on the packet. However, in an alternative implementation, such a refresh prefix is ​​not used, and a dedicated refresh packet format is provided instead to enable the refresh packet to be distinguished from an alternative packet (e.g., a read packet and a write packet) that can be routed through the PCIe network.

[0081] Transmit circuitry 215 is connected to packet generation circuitry 210 to output the generated packets to the PCIe link of requester device 200. Transmit circuitry may take a variety of forms, but in one example implementation will include the physical layer and data link provided by the PCIe protocol.

[0082] In addition, Figure 3 As shown in , a stream ID generator 225 may be provided to provide stream identification information associated with one or more packets in a packet routed to a PCIe link via a transmitting circuit. The stream identification may be identified by a remote agent to be associated with one or more write commands and used to be included in a refresh command to identify data items that need to be refreshed. The stream ID generator 225 may add a stream ID prefix to write packets sent via the transmitting circuit to the PCIe link, wherein those stream ID prefixes are associated with the write packets through the PCIe network so that those stream identifications may also be propagated to the persistent domain along with the write data. Subsequent refresh requests may then identify the stream identification associated with the refresh request, and the refresh command generator 220 may generate a packet-based refresh command including the refresh identification therein. At the completer device, the refresh identification may then be used to identify the write data items that need to be refreshed.

[0083] exist Figure 3In the example shown in FIG. 2 , one or more configuration registers 230 may also be provided within the requestor device to store configuration information to identify features enabled within the requestor device 200. In particular, the requestor device's ability to process refresh requests and use flow identification in the manner discussed above may be configured using the configuration registers 230. The configuration register contents may be set in a variety of ways, but in one example implementation, software used to perform an enumeration process when a PCIe network is started may be used to discover and configure devices within a packet network, and appropriate configuration information may be set in the configuration registers to identify the refresh capabilities of various devices.

[0084] Figure 4 2 is a diagram showing components that may be provided within completer device 250 in one example arrangement. Only components associated with a receive path for receiving commands from a PCIe network and generating control signals issued into the persistent domain are shown. Receive circuitry 255 is provided to receive commands from a PCIe link and communicate with the PCIe network. Figure 3 Like the transmit circuit 215 shown in FIG. 8 , the receive circuit 255 may include a physical layer and a data layer.

[0085] A packet deconstruction circuit 260 is then provided at the transaction layer to depacketize the received command. To support the processing of packet-based refresh commands, a refresh operation trigger circuit 270 is provided which can detect when a received command is such a refresh command and, in that case, analyze the information within the refresh command to generate appropriate control signals issued to the persistent domain via interface 265. A flow identifier detector / processor 275 is also provided which can be used to detect the presence of a flow identifier prefix associated with a write command and, in that case, to extract the flow identifier and cause it to be output to the persistent domain via interface 265 along with the write data and associated write address.

[0086] With reference Figure 3 As with requester device 200 discussed above, completer device 250 may include configuration registers 280 to store configuration information identifying the capabilities of the completer device, and in particular, its ability to process refresh commands.

[0087] Figure 3 The configuration register 230 and Figure 4The configuration register 280 may take a variety of forms, but in one specific example is formed as an extended capabilities structure that identifies the extended capabilities of the associated device, in this case, its ability to audit and process refresh requests and optionally flow identification. It should be noted that since refresh requests do not require the use of flow identification as discussed previously (because address-based refresh may be used instead), the device enabled to process refresh operations does not have to be able to process flow identification as well. Therefore, the purpose of flow identification is an optional additional capability that can be layered on top of the device's ability to process refresh operations.

[0088] Figure 5 3 is a diagram showing the format of a packet-based refresh command according to a first example embodiment, wherein a refresh prefix 300 is used in conjunction with a pre-existing packet format 330. When a pre-existing packet format is preceded by a refresh prefix 300, the pre-existing packet format is given a different meaning, and in one example embodiment, the pre-existing packet format 330 is a read packet format. Therefore, in the absence of a previous refresh prefix, the packet 330 will be determined as a read packet identifying a read command. However, when the refresh prefix 300 precedes the packet 330, the combination of the refresh prefix and the packet will be interpreted as a packet-based refresh command.

[0089] The refresh prefix includes multiple fields, such as Figure 5 As shown in . Field 305 identifies that the prefix is ​​a refresh prefix. Then, refresh point field 310 identifies whether the refresh request is related to shallow refresh or deep refresh. Field 315 is a refresh type field that identifies whether address-based refresh or stream-identifier-based refresh will be performed. Finally, attribute field 320 is used differently depending on whether the refresh type is address-based refresh or stream-identifier-based refresh. For address-based refresh, attribute field 320 is used to provide address information, which is then used to determine the address range associated with the refresh request. However, in the case of stream-identifier-based refresh, attribute field 320 is used to store a stream identification value, which indicates the stream identification associated with the refresh request.

[0090] As previously mentioned, packet 330 is, in one embodiment, a read packet (also referred to as a read header packet), and thus the various bit fields within the various bytes have standard meanings associated with read packets defined in the PCIe specification produced by the Peripheral Component Interconnect Special Interest Group (PCI-SIG). Thus, the Fmt field and the type field are used to collectively identify the packet as a read packet. It should be noted that the length field is not used in the read packet format (instead, it is identified as a reserved field) because the length field is often employed to identify the amount of data provided within a packet, and for a read packet, there is no accompanying data. However, when a refresh prefix is ​​used in association with a read packet in order to execute a refresh command, the length field may then optionally be used to capture additional address information, which may be used in association with the address information in the attribute field 320 of the refresh prefix to identify an address range for an address-based refresh.

[0091] like Figure 5 As shown in , address information may be provided within read packet 330, and the amount of address information provided will depend on whether 32-bit or 64-bit addresses are used. Figure 5 As indicated in , bytes 4 to 7 of the packet provide certain byte enable information defined by the PCIe specification, and also provide a requester ID to identify the requester device that has generated the packet, and a tag field to store a tag value for use by the requester device. This requester ID and tag information can then be returned with any response packet from the completer device to identify the requester device to which the response should be provided. The requester device can then use the tag information to match the response to a previously issued command.

[0092] As mentioned previously, one type of refresh command that can be used is a stream identifier based refresh command. To support the use of stream identifier refresh, previous write commands issued to cause data to be written to memory will subsequently have stream identifier information associated with them. In one example implementation, this is accomplished using a stream identifier prefix, such as Figure 6 In particular, the standard write header packet 370 defined in the PCIe specification can still be used to send a write command (and the header will usually be followed by Figure 6 The amount of data payload is indicated by the value in the length field), but the Write Header Packet will be preceded by a Flow Identification Prefix 350. The Flow Identification Prefix has a first field 355 that identifies the prefix as a Flow Identification Prefix. Figure 6In the example shown in , the upper four bits of byte 1 are then retained, but the remaining bits of byte 1 and bytes 2 and 3 form a refresh identification field 365 that can store a refresh identification value. At a completer device that is used to output write data to the persistent domain for storage at the address indicated in the write packet, the presence of the stream identification prefix will be recognized and the stream identification will be extracted from field 365 so that it can be propagated into the persistent domain along with the write data and the associated write address. When a refresh command specifying a particular stream identification is issued at the appropriate time, the completer device can then extract the stream identification information from the refresh request and propagate it into the persistent domain for use in identifying the write data that will be subject to the refresh request.

[0093] Figure 7 4 is a flow chart showing the steps performed at a requestor device when processing a refresh request received from a remote agent. In step 400, a refresh request is waited for, and upon receipt of a refresh request, a determination is made at step 405 whether an address-based refresh request has been issued. If so, the process proceeds to step 410, where the refresh request is processed as previously described with reference to FIG. Figure 5 The refresh prefix is ​​generated as discussed. The refresh type field is set to identify address-based refresh, and the refresh point field is set to identify deep refresh or shallow refresh based on the information provided in the original refresh request. In addition, the attribute field is set to identify address range information.

[0094] However, if it is determined at step 405 that an address-based refresh has not been requested, this means that a flow identification refresh request has been issued, and at step 415, a refresh prefix is ​​generated accordingly. Therefore, the refresh type is set to identify the flow identification refresh type, the refresh point field is set as previously discussed with reference to step 410, and the attribute field is set to identify the flow identification. The flow identification may be provided by a refresh request received from a remote agent.

[0095] After either step 410 or step 415, the process proceeds to step 420 where a read packet is generated using address bits that identify the starting address. The starting address information is used to identify the completer device to which the read request should be routed. For stream identification based refresh, the starting address information is used only for that purpose, but for address based refresh requests, this information is also used when calculating the range associated with the address based refresh because the additional information provided in the refresh prefix (and optionally the length field of the read packet) is used to identify the address range relative to the starting address.

[0096] Figure 84 is a flow chart showing the steps performed at a completer device upon receipt of a packet-based refresh command. Upon detection of such receipt at step 450, the refresh prefix is ​​then analyzed at step 455 to determine the refresh type and refresh point. At step 460, it is then determined whether the refresh type is an address-based refresh, and if so, the process proceeds to step 465 where the address range is calculated using the address information in both the refresh prefix and the associated packet. Fig. 9 Further details of the calculations performed in one particular implementation are discussed.

[0097] Following step 465, a flush to the identified persistence point (i.e., the persistence point identified by the refresh point information in the refresh prefix) for all write data is then initiated in the persistent domain for the addresses in the determined address range at step 470. Thus, if it is determined in the persistent domain that there are any write data items directed to any of those addresses that have not yet reached the identified persistence point, then those data items will be flushed from the relevant intermediate storage structure to the persistence point.

[0098] If it is determined at step 460 that the refresh type is instead a flow identification refresh type, the process proceeds to step 475 where the flow identification is extracted from the refresh prefix. Figure 8 In the example shown in , the predetermined value of the stream identifier is reserved as a special stream identifier value, and therefore a determination is made at step 480 whether the stream identifier has the special predetermined value. Assuming that it does not, the process proceeds to step 485 where a flush to the identified persistence point for all write data having the extracted stream identifier is initiated in the persistence domain.

[0099] However, if it is determined at step 480 that the stream identifier has a predetermined value, the process proceeds to step 490 where a flush to the identified persistence point for all write data having an associated stream identifier is initiated in the persistence domain, regardless of the stream identifier value associated with the write data. Thus, the predetermined value of the stream identifier may be used to flush all data items having a stream identifier value associated therewith and that have not yet reached a persistence point.

[0100] Fig. 9 is a flow chart showing in more detail how the address range may be determined from information provided within a refresh prefix and associated read packets. At step 500, a starting address is determined from the read packet, which is provided by information in the address field of the read packet. At step 505, the granularity "G" of the address range limits is determined using bits 3 to 0 of byte 1 of the refresh prefix. This gives a granularity value for interpreting the address range limits field. In one example implementation, the encoding of this field is as follows:

[0101] 0000b = granularity is 1 byte

[0102] 0001b = granularity is 2 bytes

[0103] 0010b = granularity is 4 bytes

[0104] 0011b = granularity is 8 bytes

[0105] 0100b = granularity is 16 bytes

[0106] 0101b = granularity is 32 bytes

[0107] 0110b = granularity is 64 bytes

[0108] 0111b = granularity is 128 bytes

[0109] 1000b = granularity is 256 bytes

[0110] 1001b = granularity is 512 bytes

[0111] 1010b = granularity is 1024 bytes

[0112] 1011b = granularity is 2048 bytes

[0113] 1100b = granularity is 4096 bytes

[0114] 1101b = granularity is 8192 bytes

[0115] 1110b = granularity is 16384 bytes

[0116] 1111b = granularity is 32768 bytes

[0117] Thus, it will be seen that in this example, the granularity can vary from 1 byte to 32 kilobytes.

[0118] At step 510, it is determined whether to enable the use of the length field within the read packet for providing additional range information. If not, the process proceeds to step 515, where the limit address is found by multiplying bytes 2 and 3 of the refresh prefix by the granularity, and then adding the result to the starting address. In the case where the granularity is set to 32 kilobytes, this gives a maximum range of two billion bytes.

[0119] If it is determined at step 510 that the length field is enabled, the process proceeds to step 520. The limit address is calculated at step 515 in substantially the same manner, but instead only bytes 2 and 3 of the flush prefix are used, those bytes are concatenated with the additional address information in the length field, giving a 26-bit value instead of a 16-bit value, and then the concatenated value is multiplied by the granularity, where the result of this calculation is added to the starting address. When the granularity is set to 32 kilobytes, this gives a maximum range of 2P bytes.

[0120] Fig. 10A 5 shows how to generate a write data command at a generating device. When a command generating device within a PCIe network receives a write request, it determines at step 550 whether a stream identifier is enabled for writing. If not, then at step 555, a write packet is generated in a standard manner. However, if a stream identifier is enabled, then at step 560, a previously referenced Figure 6 The stream identification prefix of the form discussed above is outputted in association with the write packet to identify the write data command. As discussed previously, the write data packet may be in a standard form and the stream identification prefix will provide a stream identification value associated with the write data.

[0121] Fig. 10B 5 is a flow chart showing how a write data command is parsed at a completer device. At step 570, it is determined whether a stream identification prefix is ​​provided with the write packet. If not, then at step 575, the write address and write data are extracted from the write packet and output to the persistent domain in a standard manner. However, if a stream identification prefix is ​​provided with the write packet, then the process proceeds to step 580, where the write address and write data are output to the persistent domain, but in this case, accompanied by the stream identification which has been extracted from the stream identification prefix.

[0122] In one example implementation, a packet-based refresh command is one for which a response will be provided in due course once the refresh operation has been performed. For this purpose, a standard format for completion packets may be used, and in particular a completion packet format without data, since no data needs to be returned in response to a refresh command (compared to a read command that needs to provide read data in a response), and all that is required is a response providing the status of the refresh operation, i.e., whether it completed successfully.

[0123] Fig.11A is a flow chart showing the steps performed at a completer device in order to issue such a completion packet. In step 600, a refresh operation is waited for to complete, and then a completion packet without data is generated at step 605 to send to the requester device to indicate whether the refresh request was successful.

[0124] Fig. 11BAn example of a usable completion packet is shown. The Fmt field, in conjunction with the type field, identifies that the completion packet is a completion packet without data. Therefore, the length field will be set to all zeros because there will be no data provided with the packet, and the length field can therefore be considered a reserved field in this type of completion packet. The completer ID field is used to identify the completer device that is issuing the completion packet. In addition, as shown, the status field is used to identify whether the refresh operation is completed correctly. A requester ID field is also provided to identify the requester device to which the completion packet is directed, and as previously discussed, a tag field can be used to provide a tag value that the requester device will use when the requester device receives the completion packet for associating the completion packet with the corresponding command previously issued.

[0125] In the example implementation described above, a packet-based refresh command is represented by using an existing packet type preceded by a refresh prefix. However, in an alternative implementation, a dedicated packet type for refresh commands may be provided, with the result that a refresh prefix will not be required. Fig. 12A and Fig. 12B Two example formats are shown in FIG. In particular, a first dedicated packet type 650 can be used to perform an address-based refresh command. The Fmt field and the type field can be used to identify that the packet is associated with a refresh command. It can be seen that the packet is combined with all the information fields previously discussed with reference to the implementation based on the refresh prefix, and therefore provides address information sufficient to identify the starting address and the address range limit. In addition, a refresh point and refresh type field are provided to identify whether a deep refresh or a shallow refresh is required, and in this case, the refresh type field will identify that an address-based refresh will be performed. The starting address is given by the refresh address field and will be a 64-bit value or a 32-bit value depending on the addressing mode. It should be noted that the starting address bits 1 and 0 are given by bits 1 and 0 in byte 20 in the refresh command of this particular format. Then, the end address is the starting address plus the address range limit information. When performing 64-bit addressing, address range limit bits 47 to 0 are used, while for 32-bit addressing, address range limit bits 31 to 0 are used.

[0126] Fig. 12B A second special packet type 670 is shown that can be used when stream ID based refreshing is employed. The starting address is the same as above. Fig. 12A Likewise, the refresh point field may identify whether a deep refresh or a shallow refresh will be performed and the refresh type field identifies whether a stream ID-based refresh will be performed in this case. Fig. 12BAs shown in , the stream identification field enables a 20-bit stream identification value to be provided. As previously discussed, when discussing refresh commands based on stream identification, the refresh address is only used to route the command to the appropriate completer device and is not used by the completer when performing the refresh process, because in this latter case, it is the stream identification used to identify the data items that need to be refreshed to a persistence point.

[0127] It should be noted that Fig. 12A and Fig. 12B The sizes of the special packet types shown in are larger than the previously discussed packets. The length field may be used to encode the total size of the packet, identifying a number of additional data words of payload beyond the normal number of data words used for 64-bit or 32-bit addressing.

[0128] If the completer device does not support these new types of request commands then it will be arranged to send an unsupported request response back to the requester device.

[0129] When the above techniques are employed within a PCIe network, then it is contemplated that refresh requests may be generated by an endpoint or a root port. Writes with a stream ID prefix may also be generated by an endpoint or a root port. PCIe functions (these are the smallest entities that can be discovered by software, and so for example an endpoint may have multiple functions with different IDs therein), where the memory space BARs and the root port may be completers for refresh requests and for writes with a stream ID prefix.

[0130] By employing the above described techniques, it has been found that processing of refresh requests from a remote agent can be performed significantly faster than using known techniques, thereby reducing the risk of data not being written to a persistent point before power is interrupted.

[0131] In this application, the words "configured to..." are used to mean that elements of a device have a configuration that enables the performance of a defined operation. In this context, "configuration" means the arrangement or manner of interconnection of hardware or software. For example, the device may have dedicated hardware that provides the defined operation, or a processor or other processing device may be programmed to perform the function. "Configured to" does not mean that the device elements need to be changed in any way in order to provide the defined operation.

[0132] Although exemplary embodiments of the present invention have been described in detail herein in conjunction with the accompanying drawings, it should be understood that the present invention is not limited to those precise embodiments, and that various changes, additions and modifications may be implemented therein by those skilled in the art without departing from the scope and spirit of the present invention as defined in the appended claims. For example, the features of the dependent claims may be combined in various ways with the features of the independent claims without departing from the scope of the present invention.

Claims

1. A device, comprising: a requestor device located within a packet network to receive a refresh request generated by a remote agent requesting that one or more data items be refreshed to a persistence point and to convert the refresh request into a packet-based refresh command compliant with a packet protocol of the packet network; and a completer device located within the packet network and coupled to a persistence domain incorporating the persistence point, the completer device being arranged to detect receipt of the packet-based refresh command and trigger a refresh operation within the persistence domain to refresh the one or more data items to the persistence point, wherein the packet-based refresh command is arranged to identify a refresh type, and the refresh type is used to distinguish between: identifying an address-based refresh type for the one or more data items to be refreshed at an address range determined by the completer device from address information provided with the packet-based refresh command, and A flow identification refresh type of a flow identification is provided within the packet-based refresh command, and the one or more data items to be refreshed are those data items within the persistent domain that have not reached the persistence point and have the flow identification associated therewith.

2. The apparatus of claim 1, wherein the packet-based refresh command forms a native command of the packet network, the native command being distinguished by a device of the packet network from other native commands routed through the packet network.

3. An apparatus according to claim 1 or claim 2, wherein the packet protocol is a Peripheral Component Interconnect Express (PCIe) protocol and the packet-based refresh command forms a transaction layer command.

4. An apparatus according to claim 1 or claim 2, wherein one or more devices within the packet network are arranged to generate a write data command for transfer to the completer device via the packet network, and to support the flow identification refresh type, are arranged to generate a write data command formed by a flow identification prefix and at least one associated write data packet, wherein the flow identification prefix contains an indication of a flow identification associated with each write data item contained in the at least one associated write data packet.

5. An apparatus according to claim 1 or claim 2, wherein when the flow identifier provided within the packet-based refresh command has a predetermined value, the completer device is arranged to interpret the packet-based refresh command as relating to all data items within the persistence domain that have not yet reached the persistence point and have any flow identifier value associated therewith.

6. The apparatus of claim 4, wherein the flow identification prefix is ​​an end-to-end prefix that is routed with the associated write data packet through the packet network to the completer device via any intermediate device of the packet network.

7. An apparatus according to claim 1 or claim 2, wherein the packet-based refresh command is arranged to provide a refresh point indication identifying a persistent level point to which the one or more data items are to be refreshed.

8. The apparatus of claim 7, wherein the refresh point is used to distinguish between a shallow refresh to a first persistence point and a deep refresh to a second persistence point that is more resilient to hardware failures than the first persistence point.

9. An apparatus according to claim 1 or claim 2, wherein the requester device includes a conversion circuit to convert the refresh request to the packet-based refresh command, so that the packet-based refresh command includes at least a packet for transmission to the completer device over the packet network.

10. An apparatus according to claim 9, wherein the conversion circuit is arranged to generate a refresh prefix and at least one associated packet to form the packet-based refresh command, wherein the associated packet is of a type that is also used for another form of command within the packet network, and the refresh prefix is ​​used to cause the completer device to interpret the refresh prefix and the associated packet as together forming the packet-based refresh command.

11. The apparatus of claim 10, wherein the associated packets are of a type also used for read commands within the packet network.

12. An apparatus according to claim 10 or claim 11, wherein the refresh prefix is ​​an end-to-end prefix that is routed with the associated packet from the requester device to the completer device through the packet network via any intermediate device of the packet network.

13. An apparatus according to claim 10 or claim 11, wherein the refresh prefix includes a type field that identifies a refresh type, and the refresh type is used to distinguish between an address-based refresh type and an alternative refresh type that identifies the one or more data items to be refreshed according to an address range determined by the completer device from address information provided together with the group-based refresh command.

14. An apparatus according to claim 10 or claim 11, wherein the refresh prefix includes an attribute field, and when an address-based refresh is performed in response to the group-based refresh command, the completer device is arranged to use the address information provided in the attribute field of the refresh prefix in combination with additional address information provided in the associated group to determine an address range for identifying the one or more data items to be refreshed.

15. An apparatus according to claim 14, wherein the further address information provided in the associated packet comprises at least an indication of a starting address, and the address information from the attribute field of the refresh prefix is ​​used to identify an address range starting from the starting address.

16. An apparatus according to claim 15, wherein the additional address information provided in the associated packet includes a length field, the length field providing a value used in conjunction with the address information from the attribute field of the refresh prefix to determine the address range.

17. An apparatus as claimed in claim 10 or claim 11, wherein the refresh prefix includes a refresh point field for identifying a persistence level point to which the one or more data items are to be refreshed.

18. The apparatus of claim 9, wherein the conversion circuit is arranged to employ at least one dedicated packet type to form the packet-based refresh command.

19. The apparatus of claim 18, wherein a first dedicated packet type is used to identify a packet-based refresh command of an address-based refresh type, and a second dedicated packet type is used to identify a packet-based refresh command of a flow-identification refresh type.

20. The apparatus of claim 19, wherein the first dedicated packet type includes address information sufficient to determine an address range identifying the one or more data items to be refreshed.

21. An apparatus according to claim 19 or claim 20, wherein the second dedicated packet type includes a flow identification field providing a flow identification, and the one or more data items to be refreshed are those data items within the persistence domain that have not yet reached the persistence point and have the flow identification associated with them.

22. An apparatus according to any one of claims 18 to 20, wherein the at least one dedicated packet type includes a refresh point field for identifying a persistence level point to which the one or more data items are to be refreshed.

23. An apparatus according to claim 1 or claim 2, wherein the completer device is arranged to send a completion confirmation packet to the requester device over the packet network upon detecting completion of the refresh operation within the persistent domain.

24. An apparatus according to claim 1 or claim 2, wherein each of the requester device and the completer device is provided with one or more configuration registers in which configuration information is stored to identify whether those devices are enabled to process the packet-based refresh command.

25. A requester device in a packet network for receiving a refresh request generated by a remote agent requesting that one or more data items be refreshed to a persistence point, the requester device comprising conversion circuitry to convert the refresh request into a packet-based refresh command compliant with a packet protocol of the packet network for onward transmission over the packet network to a completer device, the completer device for triggering a refresh operation within a persistence domain associated with the persistence point, wherein the packet-based refresh command is arranged to identify a refresh type, and the refresh type is used to distinguish between: identifying an address-based refresh type for the one or more data items to be refreshed at an address range determined by the completer device from address information provided with the packet-based refresh command, and A flow identification refresh type of a flow identification is provided within the packet-based refresh command, and the one or more data items to be refreshed are those data items within the persistent domain that have not reached the persistence point and have the flow identification associated therewith.

26. A completer device for use within a packet network, the completer device having a refresh operation trigger circuit that triggers a refresh operation within a persistent domain in response to the completer device receiving a packet-based refresh command that complies with a packet protocol of the packet network to refresh one or more data items identified by the packet-based refresh command to a persistent point within the persistent domain, wherein the packet-based refresh command is arranged to identify a refresh type, and the refresh type is used to distinguish between: identifying an address-based refresh type for the one or more data items to be refreshed at an address range determined by the completer device from address information provided with the packet-based refresh command, and A flow identification refresh type of a flow identification is provided within the packet-based refresh command, and the one or more data items to be refreshed are those data items within the persistent domain that have not reached the persistence point and have the flow identification associated therewith.

27. A method of operating a packet network to process a refresh request, the method comprising the steps of: receiving, at a requestor device within the packet network, a refresh request generated by a remote agent requesting that one or more data items be refreshed to a persistence point; converting, at the requestor device, the refresh request into a packet-based refresh command compliant with a packet protocol of the packet network; transmitting the packet-based refresh command over the packet network to a completer device coupled to a persistence domain incorporating the persistence point; as well as responsive to detecting receipt of the packet-based refresh command, arranging the completer device to trigger a refresh operation within the persistent domain to refresh the one or more data items to the persistent point, wherein the packet-based refresh command is arranged to identify a refresh type, and the refresh type is used to distinguish between: identifying an address-based refresh type for the one or more data items to be refreshed at an address range determined by the completer device from address information provided with the packet-based refresh command, and A flow identification refresh type of a flow identification is provided within the packet-based refresh command, and the one or more data items to be refreshed are those data items within the persistent domain that have not reached the persistence point and have the flow identification associated therewith.