CROSS REFERENCE TO RELATED PATENT APPLICATIONSThis patent application is a continuation-in-part of copending, commonly assigned patent application Ser. No. 08/924,385, “Hierarchical Computer System” by Erik E. Hagersten, filed Sep. 5, 1997, the disclosure of which is incorporated herein by reference in its entirety.[0001]
BACKGROUND OF THE INVENTION1. Field of the Invention[0002]
This invention relates to the field of multiprocessor computer systems and, more particularly, to multiprocessor computer systems which operate in a cluster mode to provide fault isolation.[0003]
2. Description of the Relevant Art[0004]
Multiprocessing computer systems include two or more processors which may be employed to perform computing tasks. A particular computing task may be performed upon one processor while other processors perform unrelated computing tasks. Alternatively, components of a particular computing task may be distributed among multiple processors to decrease the time required to perform the computing task as a whole. Generally speaking, a processor is a device configured to perform an operation upon one or more operands to produce a result. The operation is performed in response to an instruction executed by the processor.[0005]
A popular architecture in commercial multiprocessing computer systems is the symmetric multiprocessor (SMP) architecture. Typically, an SMP computer system comprises multiple processors connected through a cache hierarchy to a shared bus. Additionally connected to the bus is a memory, which is shared among the processors in the system. Access to any particular memory location within the memory occurs in a similar amount of time as access to any other particular memory location. Since each location in the memory may be accessed in a uniform manner, this structure is often referred to as a uniform memory architecture (UMA).[0006]
Processors are often configured with internal caches, and one or more caches are typically included in the cache hierarchy between the processors and the shared bus in an SMP computer system. Multiple copies of data residing at a particular main memory address may be stored in these caches. In order to maintain the shared memory model, in which a particular address stores exactly one data value at any given time, shared bus computer systems employ cache coherency. Generally speaking, an operation is coherent if the effects of the operation upon data stored at a particular memory address are reflected in each copy of the data within the cache hierarchy. For example, when data stored at a particular memory address is updated, the update may be supplied to the caches which are storing copies of the previous data. Alternatively, the copies of the previous data may be invalidated in the caches such that a subsequent access to the particular memory address causes the updated copy to be transferred from main memory. For shared bus systems, a snoop bus protocol is typically employed. Each coherent transaction performed upon the shared bus is examined (or “snooped”) against data in the caches. If a copy of the affected data is found, the state of the cache line containing the data may be updated in response to the coherent transaction.[0007]
Unfortunately, shared bus architectures suffer from several drawbacks which limit their usefulness in multiprocessing computer systems. A bus is capable of a peak bandwidth (e.g. a number of bytes/second which may be transferred across the bus). As additional processors are attached to the bus, the bandwidth required to supply the processors with data and instructions may exceed the peak bus bandwidth. Since some processors are forced to wait for available bus bandwidth, performance of the computer system suffers when the bandwidth requirements of the processors exceeds available bus bandwidth.[0008]
Additionally, adding more processors to a shared bus increases the capacitive loading on the bus and may even cause the physical length of the bus to be increased. The increased capacitive loading and extended bus length increases the delay in propagating a signal across the bus. Due to the increased propagation delay, transactions may take longer to perform. Therefore, the peak bandwidth of the bus may decrease as more processors are added.[0009]
These problems are further magnified by the continued increase in operating frequency and performance of processors. The increased performance enabled by the higher frequencies and more advanced processor microarchitectures results in higher bandwidth requirements than previous processor generations, even for the same number of processors. Therefore, buses which previously provided sufficient bandwidth for a multiprocessing computer system may be insufficient for a similar computer system employing the higher performance processors.[0010]
Another approach for implementing multiprocessing computer systems is a scalable shared memory (SSM) architecture (also referred to as a distributed shared memory architecture). An SSM architecture includes multiple nodes within which processors and memory reside. The multiple nodes communicate via a network coupled therebetween. When considered as a whole, the memory included within the multiple nodes forms the shared memory for the computer system. Typically, directories are used to identify which nodes have cached copies of data corresponding to a particular address. Coherency activities may be generated via examination of the directories.[0011]
SSM systems are scaleable, overcoming the limitations of the shared bus architecture. Since many of the processor accesses are completed within a node, nodes typically have much lower bandwidth requirements upon the network than a shared bus architecture must provide upon its shared bus. The nodes may operate at high clock frequency and bandwidth, accessing the network when needed. Additional nodes may be added to the network without affecting the local bandwidth of the nodes. Instead, only the network bandwidth is affected.[0012]
In a typical SSM system, a global domain is created by way of the SSM protocol which makes all the memory attached to the global domain look like one shared memory accessible to all of its processors. A global domain typically runs a single kernel. Hardware provides conventional MMU (memory management unit) protection, and the kernel manages mappings (e.g. reloading of key registers on context switches) to allow user programs to co-exist without trusting one another. Since the nodes of a global domain share memory and may cache data, a software error in one node may create a fatal software error which may crash the entire system. Similarly, a fatal hardware error in one node will typically cause the entire global domain to crash.[0013]
Accordingly, in another approach to multiprocessing computer systems, clustering may be employed to provide greater fault protection. Unlike SSM approaches, the memory of one node in a cluster system is not freely accessible by processors of other cluster nodes. Likewise, the I/O of one node is typically not freely accessible by processors of other nodes. While memory is not freely shared between nodes of a cluster, a cluster allows nodes to communicate with each other in a protected way using an interconnection network which is virtualized and protected via operating system abstractions. Normally, each node of a cluster runs a separate kernel. Nodes connected in a cluster should not be able to spread local faults, both hardware and software, that would crash other nodes.[0014]
While the concept of clustering for providing protection in multiprocessing computer systems is generally known, various limitations have been associated with cluster systems. These limitations include the lack of addressing schemes which cover a large number of nodes, the lack of flexible protection mechanisms that protect a node from software and hardware failures in other nodes, the lack of protocols which are extensible that allow communications to be set up as “hops” through other nodes to thereby allow efficient interconnect networks, and the lack of error reporting mechanisms that are applicable to protocols running at a user-level.[0015]
Cluster systems attempt to provide each cluster node control over which resources are made available to other nodes in the cluster. However, current technology does not always give a node which provides resources with control over exactly how those resources may be used. More importantly, control over the type of access to be made to local resources is not transparent to the remote node; this potentially requires the remote node to perform different cluster operations based on the type of local resource it wishes to access.[0016]
Another limitation of current technology lies in the implementation of its protection scheme. A hardware interface which only allows resources to be provided to one particular remote node lacks flexibility. On the other hand, a system which supports fully general access lists may require large amounts of memory in the interface to support this feature.[0017]
It is thus desirable to provide a fast and reliable communication mechanism in a cluster system which allows for efficient implementation of user and kernel-level communication protocols.[0018]
SUMMARY OF THE INVENTIONIn one embodiment, a multiprocessing system includes a plurality of nodes. The plurality of nodes may be interconnected through a global interconnect network which supports cluster communications. An initiating node may launch a request to a remote nodes memory. A cluster protection mechanism is advantageously employed within a system interface of the remote node. The system interface, which is coupled between the global interconnect network and a local bus of the remote node, includes a memory management unit, referred to as a cluster MMU, including a plurality of entries which are selectable on a page basis. Depending upon the particular address of a received global transaction, an entry within the memory management unit is retrieved. The entry includes various fields which may be used to protect against accesses by unauthorized nodes, and to specify the local physical address to be conveyed upon the local bus. A field of the entry is further provided to control the type operation performed upon the local bus by the system interface in response to the global interface. In one specific implementation, several different command types may be specified by the particular entry of the memory management unit, including normal memory operations, atomic test and set operations, I/O operations and interrupt operations, among others. Additional control registers may further be provided within the system interface to specify further protection parameters and/or functionality. For example, in one embodiment, a control register is provided within the system interface to store values indicative of the other nodes of the system which are allowed access to this node's local memory, a second control register which indicates on a per-address region basis whether a global transaction is a passthrough transaction, and a third control register indicating on a per-address region basis whether a global transaction is directed to a local memory region.[0019]
A multiprocessing computer system employing the cluster protection mechanisms described herein may advantageously allow a given node to control how its resources are used by remote cluster nodes. Additionally, relatively simple cluster communication protocols may be implemented at the global level, while allowing the type of access performed locally to be specified by the local node. Additionally, the protection mechanisms described herein may further allow cluster implementations wherein access restrictions may be specified flexibily without requiring large amounts of memory to implement the flexibility.[0020]
BRIEF DESCRIPTION OF THE DRAWINGSOther objects and advantages of the invention will become apparent upon reading the following detailed description and upon reference to the accompanying drawings in which:[0021]
FIG. 1 is a block diagram of a multiprocessor computer system.[0022]
FIG. 1A is a conceptualized block diagram depicting a non-uniform memory architecture supported by one embodiment of the computer system shown in FIG. 1.[0023]
FIG. 1B is a conceptualized block diagram depicting a cache-only memory architecture supported by one embodiment of the computer system shown in FIG. 1.[0024]
FIG. 2 is a block diagram of one embodiment of a symmetric multiprocessing node depicted in FIG. 1.[0025]
FIG. 2A is an exemplary directory entry stored in one embodiment of a directory depicted in FIG. 2.[0026]
FIG. 3 is a block diagram of one embodiment of a system interface shown in FIG.[0027]
FIG. 4 illustrates an exemplary mapping of physical addresses within an embodiment of a computer system.[0028]
FIG. 5 is a block diagram which depicts features of a system interface which are operational during a cluster mode of operation.[0029]
FIG. 6 illustrates functionality performed by a cluster memory management unit.[0030]
FIG. 7 illustrates particular cluster protection checks which may be performed by an embodiment of the computer system.[0031]
FIG. 8 is a diagram which illustrates a configuration for a global interconnect network in a computer system.[0032]
FIG. 9 illustrates an exemplary system configuration wherein a pass-through node includes a plurality of system interfaces.[0033]
FIG. 10 illustrates an exemplary system configuration for implementing data striping.[0034]
FIG. 11 is a block diagram illustrating further aspects of a further embodiment of a multiprocessing computer system.[0035]
While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the drawings and detailed description thereto are not intended to limit the invention to the particular form disclosed, but on the contrary, the intention is to cover all modifications, equivalents and alternatives falling within the spirit and scope of the present invention as defined by the appended claims.[0036]
DETAILED DESCRIPTION OF THE INVENTIONTurning now to FIG. 1, a block diagram of one embodiment of a[0037]multiprocessing computer system10 is shown.Computer system10 includesmultiple SMP12A-12D interconnected by a point-to-point network14. Elements referred to herein with a particular reference number followed by a letter will be collectively referred to by the reference number alone. For example,SMP nodes12A-12D will be collectively referred to asSMP nodes12. In the embodiment shown, eachSMP node12 includes multiple processors, external caches, an SMP bus, a memory, and a system interface. For example,SMP node12A is configured with multipleprocessors including processors16A-16B. The processors16 are connected to external caches18, which are further coupled to anSMP bus20. Additionally, amemory22 and asystem interface24 are coupled toSNP bus20. Still further, one or more input/output (I/O) interfaces26 may be coupled toSMP bus20. I/O interfaces26 are used to interface to peripheral devices such as serial and parallel ports, disk drives, modems, printers, etc.Other SNP nodes12B-12D may be configured similarly.
Generally speaking,[0038]computer system10 is operable in either a scaled shared memory (SSM) mode or in a cluster mode. The mode in whichcomputer system10 operates is set during initialization by setting configuration control registers within each node'ssystem interface24. Various specific details regarding the operation ofcomputer system10 in the SSM mode are described first in conjunction with FIGS.2-3. Aspects of the operation ofcomputer system10 in cluster mode are described more fully in conjunction with FIGS.4-10.
As used herein, a memory operation is an operation causing the transfer of data from a source to a destination. The source and/or destination may be storage locations within the initiator, or may be storage locations within memory. When a source or destination is a storage location within memory, the source or destination is specified via an address conveyed with the memory operation. Memory operations may be read or write operations. A read operation causes transfer of data from a source outside of the initiator to a destination within the initiator. Conversely, a write operation causes transfer of data from a source within the initiator to a destination outside of the initiator. In the computer system shown in FIG. 1, a memory operation may include one or more transactions upon[0039]SNP bus20 as well as one or more coherency operations uponnetwork14.
Each[0040]SMP node12 is essentially an SMPsystem having memory22 as the shared memory. Processors16 are high performance processors. In one embodiment, each processor16 is a SPARC processor compliant with version9 of the SPARC processor architecture. It is noted, however, that any processor architecture may be employed by processors16.
Typically, processors[0041]16 include internal instruction and data caches. Therefore, external caches18 are labeled as L2 caches (forlevel 2, wherein the internal caches arelevel 1 caches). If processors16 are not configured with internal caches, then external caches18 arelevel 1 caches. It is noted that the “level” nomenclature is used to identify proximity of a particular cache to the processing core within processor16.Level 1 is nearest the processing core,level 2 is next nearest, etc. External caches18 provide rapid access to memory addresses frequently accessed by the processor16 coupled thereto. It is noted that external caches18 may be configured in any of a variety of specific cache arrangements. For example, set-associative or direct-mapped configurations may be employed by external caches18.
[0042]SMP bus20 accommodates communication between processors16 (through caches18),memory22,system interface24, and I/O interface26. In one embodiment,SNIP bus20 includes an address bus and related control signals, as well as a data bus and related control signals. Because the address and data buses are separate, a splittransaction bus protocol may be employed uponSMP bus20. Generally speaking, a split-transaction bus protocol is a protocol in which a transaction occurring upon the address bus may differ from a concurrent transaction occurring upon the data bus. Transactions involving address and data include an address phase in which the address and related control information is conveyed upon the address bus, and a data phase in which the data is conveyed upon the data bus. Additional address phases and/or data phases for other transactions may be initiated prior to the data phase corresponding to a particular address phase. An address phase and the corresponding data phase may be correlated in a number of ways. For example, data transactions may occur in the same order that the address transactions occur. Alternatively, address and data phases of a transaction may be identified via a unique tag.
[0043]Memory22 is configured to store data and instruction code for use by processors16.Memory22 preferably comprises dynamic random access memory (DRAM), although any type of memory may be used. In the SSM mode,memory22 in conjunction with the similar illustrated memories in theother SMP nodes12 form a distributed shared memory system. Each address in the address space of the distributed shared memory is assigned to a particular node, referred to as the home node of the address. A processor within a different node than the home node may access the data at an address of the home node, potentially caching the data. Therefore, coherency is maintained betweenSMT nodes12 as well as among processors16 and caches18 within aparticular SMP node12A-12D.System interface24 provides internode coherency, while snooping uponSNP bus20 provides intranode coherency.
In addition to maintaining internode coherency,[0044]system interface24 detects addresses uponSMP bus20 which require a data transfer to or from anotherSMP node12.System interface24 performs the transfer, and provides the corresponding data for the transaction uponSMP bus20. In the embodiment shown,system interface24 is coupled to a point-to-point network14. However, it is noted that in alternative embodiments other networks may be used. In a point-to-point network, individual connections exist between each node upon the network. A particular node communicates directly with a second node via a dedicated link. To communicate with a third node, the particular node utilizes a different link than the one used to communicate with the second node. Alternatively, as will be described in further detail below, theinterconnect network38 may be configured such that a particular node may be used as a “hop” to pass through communications between a sending node and a receiving node. That is, the network is arranged such that all communications from the sending node to the receiving node must pass through a hop node. By configuring the network using hop nodes, the cost of the system may be reduced, and the interconnect network may be simplified.
It is noted that, although four[0045]SMP nodes12 are shown in FIG. 1, embodiments ofcomputer system10 employing any number of nodes are contemplated. It is further noted that embodiments are also contemplated wherein a plurality of nodes are configured to operate in an SSM mode of operation with respect to each other, but that collectively form a cluster node within a cluster which includes other cluster nodes.
FIGS. 1A and 1B are conceptualized illustrations of distributed memory architectures supported by one embodiment of[0046]computer system10. Specifically, FIGS. 1A and 1B illustrate alternative ways in which eachSMP node12 of FIG. 1 may cache data and perform memory accesses. Details regarding the manner in whichcomputer system10 supports such accesses will be described in further detail below.
FIG. 1A is a logical diagram depicting a[0047]first memory architecture30 supported by one embodiment ofcomputer system10 is shown.Architecture30 includesmultiple processors32A-32D,multiple caches34A-34D,multiple memories36A-36D, and aninterconnect network38. The multiple memories36 form a distributed shared memory. Each address within the address space corresponds to a location within one of memories36.
[0048]Architecture30 is a non-uniform memory architecture (NUMA). In a NUMA architecture, the amount of time required to access a first memory address may be substantially different than the amount of time required to access a second memory address. The access time depends upon the origin of the access and the location of thememory36A-36D which stores the accessed data. For example, ifprocessor32A accesses a first memory address stored inmemory36A, the access time may be significantly shorter than the access time for an access to a second memory address stored in one ofmemories36B-36D. That is, an access byprocessor32A tomemory36A may be completed locally (e.g. without transfers upon network38), while aprocessor32A access tomemory36B is performed vianetwork38. Typically, an access throughnetwork38 is slower than an access completed within a local memory. For example, a local access might be completed in a few hundred nanoseconds while an access via the network might occupy a few microseconds.
Data corresponding to addresses stored in remote nodes may be cached in any of the caches[0049]34. However, once a cache34 discards the data corresponding to such a remote address, a subsequent access to the remote address is completed via a transfer uponnetwork38.
NUMA architectures may provide excellent performance characteristics for software applications which use addresses that correspond primarily to a particular local memory. Software applications which exhibit more random access patterns and which do not confine their memory accesses to addresses within a particular local memory, on the other hand, may experience a large amount of network traffic as a particular processor[0050]32 performs repeated accesses to remote nodes.
Turning now to FIG. B, a logic diagram depicting a[0051]second memory architecture40 supported by thecomputer system10 of FIG. 1 is shown.Architecture40 includesmultiple processors42A-42D,multiple caches44A-44D,multiple memories46A-46D, andnetwork48. However, memories46 are logically coupled between caches44 andnetwork48. Memories46 serve as larger caches (e.g. alevel 3 cache), storing addresses which are accessed by the correspondingprocessors42. Memories46 are said to “attract” the data being operated upon by a correspondingprocessor42. As opposed to the NUMA architecture shown in FIG. 1A,architecture40 reduces the number of accesses upon thenetwork48 by storing remote data in the local memory when the local processor accesses that data. The remote data stored in local memory is referred to herein as shadow pages of the remote data.
[0052]Architecture40 is referred to as a cache-only memory architecture (COMA). Multiple locations within the distributed shared memory formed by the combination of memories46 may store data corresponding to a particular address. No permanent mapping of a particular address to a particular storage location is assigned. Instead, the location storing data corresponding to the particular address changes dynamically based upon theprocessors42 which access that particular address. Conversely, in the NUMA architecture a particular storage location within memories46 is assigned to a particular address.Architecture40 adjusts to the memory access patterns performed by applications executing thereon, and coherency is maintained between the memories46.
During operation in a SSM mode,[0053]computer system10 may be configured to support both of the memory architectures shown in FIGS. 1A and 1B. In particular, a memory address may be accessed in a NUMA fashion from oneSMP node12A-12D while being accessed in a COMA manner from anotherSMP node12A-12D. In one embodiment, a NUMA access is detected if the node ID bits of the address uponSMP bus20 identify anotherSMP node12 as the home node of the address presented. Otherwise, a COMA access is presumed. Additional details will be provided below. In one embodiment, a data accessed in a COMA manner is stored as a shadow page within the node accessing the data.
In one embodiment, the COMA architecture is implemented using a combination of hardware and software techniques. Hardware maintains coherency between the locally cached copies of pages, and software (e.g. the operating system employed in computer system[0054]10) is responsible for deallocating and allocating cached pages.
FIG. 2 depicts details of one implementation of an[0055]SMP node12A that generally conforms to theSMP node12A shown in FIG. 1.Other nodes12 may be configured similarly. It is noted that alternative specific implementations of eachSMP node12 of FIG. 1 are also possible. The implementation ofSMP node12A shown in FIG. 2 includes multiple subnodes such assubnodes50A and50B. Each subnode50 includes two processors16 and corresponding caches18, amemory portion56, anaddress controller52, and adata controller54. Thememory portions56 within subnodes50 collectively form thememory22 of theSMP node12A of FIG. 1. Other subnodes (not shown) are further coupled toSMP bus20 to form the I/O interfaces26.
As shown in FIG. 2,[0056]SMP bus20 includes anaddress bus58 and adata bus60.Address controller52 is coupled to addressbus58, anddata controller54 is coupled todata bus60. FIG. 2 also illustratessystem interface24, including a systeminterface logic block62, atranslation storage64, adirectory66, and a memory tag (MTAG)68.Logic block62 is coupled to bothaddress bus58 anddata bus60, and asserts an ignoresignal70 uponaddress bus58 under certain circumstances as will be explained further below. Additionally,logic block62 is coupled totranslation storage64,directory66,MTAG68, andnetwork14.
For the embodiment of FIG. 2, each subnode[0057]50 is configured upon a printed circuit board which may be inserted into a backplane upon whichSMP bus20 is situated. In this manner, the number of processors and/or I/O interfaces26 included within anSMP node12 may be varied by inserting or removing subnodes50. For example,computer system10 may initially be configured with a small number of subnodes50. Additional subnodes50 may be added from time to time as the computing power required by the users ofcomputer system10 grows.
[0058]Address controller52 provides an interface between caches18 and the address portion ofSMP bus20. In the embodiment shown, addresscontroller52 includes anout queue72 and some number of inqueues74. Outqueue72 buffers transactions from the processors connected thereto untiladdress controller52 is granted access to addressbus58.Address controller52 performs the transactions stored inout queue72 in the order those transactions were placed into out queue72 (i.e. outqueue72 is a FIFO queue). Transactions performed byaddress controller52 as well as transactions received fromaddress bus58 which are to be snooped by caches18 and caches internal to processors16 are placed into inqueue74.
Similar to out[0059]queue72, inqueue74 is a FIFO queue. All address transactions are stored in the inqueue74 of each subnode50 (even within the inqueue74 of the subnode50 which initiates the address transaction). Address transactions are thus presented to caches18 and processors16 for snooping in the order they occur uponaddress bus58. The order that transactions occur uponaddress bus58 is the order forSMP node12A. However, the complete system is expected to have one global memory order. This ordering expectation creates a problem in both the NUMA and COMA architectures employed bycomputer system10, since the global order may need to be established by the order of operations uponnetwork14. If two nodes perform a transaction to an address, the order that the corresponding coherency operations occur at the home node for the address defines the order of the two transactions as seen within each node. For example, if two write transactions are performed to the same address, then the second write operation to arrive at the address' home node should be the second write transaction to complete (i.e. a byte location which is updated by both write transactions stores a value provided by the second write transaction upon completion of both transactions). However, the node which performs the second transaction may actually have the second transaction occur first uponSNIP bus20. Ignoresignal70 allows the second transaction to be transferred tosystem interface24 without the remainder of theSMP node12 reacting to the transaction.
Therefore, in order to operate effectively with the ordering constraints imposed by the out queue/in queue structure of[0060]address controller52, systeminterface logic block62 employs ignoresignal70. When a transaction is presented uponaddress bus58 and systeminterface logic block62 detects that a remote transaction is to be performed in response to the transaction,logic block62 asserts the ignoresignal70. Assertion of the ignoresignal70 with respect to a transaction causesaddress controller52 to inhibit storage of the transaction into inqueues74. Therefore, other transactions which may occur subsequent to the ignored transaction and which complete locally withinSMP node12A may complete out of order with respect to the ignored transaction without violating the ordering rules of inqueue74. In particular, transactions performed bysystem interface24 in response to coherency activity uponnetwork14 may be performed and completed subsequent to the ignored transaction. When a response is received from the remote transaction, the ignored transaction may be reissued by systeminterface logic block62 uponaddress bus58. The transaction is thereby placed into inqueue74, and may complete in order with transactions occurring at the time of reissue.
It is noted that in one embodiment, once a transaction from a[0061]particular address controller52 has been ignored, subsequent coherent transactions from thatparticular address controller52 are also ignored. Transactions from a particular processor16 may have an important ordering relationship with respect to each other, independent of the ordering requirements imposed by presentation uponaddress bus58. For example, a transaction may be separated from another transaction by a memory synchronizing instruction such as the MEMBAR instruction included in the SPARC architecture. The processor16 conveys the transactions in the order the transactions are to be performed with respect to each other. The transactions are ordered within outqueue72, and therefore the transactions originating from aparticular out queue72 are to be performed in order. Ignoring subsequent transactions from aparticular address controller52 allows the in-order rules for aparticular out queue72 to be preserved. It is further noted that not all transactions from a particular processor must be ordered. However, it is difficult to determine uponaddress bus58 which transactions must be ordered and which transactions may not be ordered. Therefore, in this implementation,logic block62 maintains the order of all transactions from aparticular out queue72. It is noted that other implementations of subnode50 are possible that allow exceptions to this rule.
[0062]Data controller54 routes data to and fromdata bus60,memory portion56 and caches18.Data controller54 may include in and out queues similar to addresscontroller52. In one embodiment,data controller54 employs multiple physical units in a bytesliced bus configuration.
Processors[0063]16 as shown in FIG. 2 include memory management units (MMUs)76A-76B. MMUs76 perform a virtual to physical address translation upon the data addresses generated by the instruction code executed upon processors16, as well as the instruction addresses. The addresses generated in response to instruction execution are virtual addresses. In other words, the virtual addresses are the addresses created by the programmer of the instruction code. The virtual addresses are passed through an address translation mechanism (embodied in MMUs76), from which corresponding physical addresses are created. The physical address identifies a storage location withinmemory22.
Virtual to physical address translation is performed for many reasons. For example, the address translation mechanism may be used to grant or deny a particular computing task's access to certain memory addresses. In this manner, the data and instructions within one computing task are isolated from the data and instructions of another computing task. Additionally, portions of the data and instructions of a computing task may be “paged out” to a hard disk drive. When a portion is paged out, the translation is invalidated. Upon access to the portion by the computing task, an interrupt occurs due to the failed translation. The interrupt allows the operating system to retrieve the corresponding information from the hard disk drive. In this manner, more virtual memory may be available than actual memory in[0064]memory22. Many other uses for virtual memory are well known.
Referring back to[0065]computer system10 shown in FIG. 1 in conjunction with theSMP node12A implementation illustrated in FIG. 2, in the SSM mode, the physical address computed by MMUs76 may be a local physical address (LPA) which identifies an address for which theSMP node12 is the home node, or it may be a global address (GA).MTAG68 stores a coherency state for each “coherency unit” inmemory22. When an address transaction is performed uponSMP bus20, systeminterface logic block62 examines the coherency state stored inMTAG68 for the accessed coherency unit. If the coherency state indicates that theSMP node12 has sufficient access rights to the coherency unit to perform the access, then the address transaction proceeds. If, however, the coherency state indicates that coherency operations should be performed prior to completion of the transaction, then systeminterface logic block62 asserts the ignoresignal70.Logic block62 performs coherency operations uponnetwork14 to acquire the appropriate coherency state. When the appropriate coherency state is acquired,logic block62 reissues the ignored transaction uponSMP bus20. Subsequently, the transaction completes.
Generally speaking, the coherency state maintained for a coherency unit at a particular storage location (e.g. a cache or a memory[0066]22) indicates the access rights to the coherency unit at thatSMP node12. The access right indicates the validity of the coherency unit, as well as the read/write permission granted for the copy of the coherency unit within thatSMP node12. In one embodiment, the coherency states employed bycomputer system10 are modified, owned, shared, and invalid. The modified state indicates that theSMP node12 has updated the corresponding coherency unit. Therefore,other SMP nodes12 do not have a copy of the coherency unit. Additionally, when the modified coherency unit is discarded by theSMP node12, the coherency unit is stored back to the home node. The owned state indicates that theSMP node12 is responsible for the coherency unit, butother SMP nodes12 may have shared copies. Again, when the coherency unit is discarded by theSMP node12, the coherency unit is stored back to the home node. The shared state indicates that theSMP node12 may read the coherency unit but may not update the coherency unit without acquiring the owned state. Additionally,other SMP nodes12 may have copies of the coherency unit as well. Finally, the invalid state indicates that theSMNI node12 does not have a copy of the coherency unit. In one embodiment, the modified state indicates write permission and any state but invalid indicates read permission to the corresponding coherency unit.
As used herein, a coherency unit is a number of contiguous bytes of memory which are treated as a unit for coherency purposes. For example, if one byte within the coherency unit is updated, the entire coherency unit is considered to be updated. In one specific embodiment, the coherency unit is a cache line, comprising[0067]64 contiguous bytes. It is understood, however, that a coherency unit may comprise any number of bytes.
[0068]System interface24 also includes a translation mechanism which utilizestranslation storage64 to store translations from a local physical address (LPA) to a global address (GA). Certain bits within a physical address identify the home node for the address, at which coherency information is stored for that global address. For example, an embodiment ofcomputer system10 may employ fourSMP nodes12 such as that of FIG. 1. In such an embodiment, two bits of the physical address identify the home node. Preferably, bits from the most significant portion of the physical address are used to identify the home node. The same bits are used in the physical address to identify NUMA accesses. If the bits of the physical address indicate that the local node is not the home node, then the physical address is a global address and the transaction is performed in NUMA mode. Therefore, the operating system places global addresses in MMUs76 for any NUMA-type pages. Conversely, the operating system places LPAs in MMU76 for any COMA-type pages. It is noted that a local address (on SMP bus20) may equal a GA (for NUMA accesses as well as for global addresses whose home is within thememory22 in the node in which the local address is presented). Alternatively, a local address may be translated to a GA when the local address identified storage locations used for storing copies of data having a home in anotherSMP node12.
In the SSM mode, the[0069]directory66 of a particular home node identifies whichSMP nodes12 have copies of data corresponding to a given physical address assigned to the home node such that coherency between the copies may be maintained. Additionally, thedirectory66 of the home node identifies theSMP node12 which owns the coherency unit. Therefore, while local coherency between caches18 and processors16 is maintained via snooping, system-wide (or global) coherency is maintained usingMTAG68 anddirectory66.Directory66 stores the coherency information corresponding to the coherency units which are assigned toSNP node12A (i.e. for whichSNP node12A is the home node).
It is noted that for the embodiment of FIG. 2,[0070]directory66 andMTAG68 store information for each coherency unit (i.e., on a coherency unit basis). Conversely,translation storage64 stores local physical to global address translations defined for pages. A page includes multiple coherency units, and is typically several kilobytes or even megabytes in size.
[0071]Computer system10 accordingly creates local physical address to global address translations on a page basis (thereby allocating a local memory page for storing a copy of a remotely stored global page). Therefore, blocks ofmemory22 are allocated to a particular global address on a page basis as well. However, as stated above, coherency states and coherency activities are performed upon a coherency unit. Therefore, when a page is allocated in memory to a particular global address, the data corresponding to the page is not necessarily transferred to the allocated memory. Instead, as processors16 access various coherency units within the page, those coherency units are transferred from the owner of the coherency unit. In this manner, the data actually accessed bySNP node12A is transferred into the correspondingmemory22. Data not accessed bySNP node12A may not be transferred, thereby reducing overall bandwidth usage uponnetwork14 in comparison to embodiments which transfer the page of data upon allocation of the page inmemory22.
It is noted that in one embodiment,[0072]translation storage64,directory66, and/orMTAG68 may be caches which store only a portion of the associated translation, directory, and MTAG information, respectively. The entirety of the translation, directory, and MTAG information may be stored in tables withinmemory22 or a dedicated memory storage (not shown). If required information for an access is not found in the corresponding cache, the tables are accessed bysystem interface24.
Turning now to FIG. 2A, an[0073]exemplary directory entry71 is shown.Directory entry71 may be employed by one embodiment ofdirectory66 shown in FIG. 2. Other embodiments ofdirectory66 may employ dissimilar directory entries.Directory entry71 includes avalid bit73, a write backbit75, anowner field77, and asharers field79.Directory entry71 resides within the table of directory entries, and is located within the table via the global address identifying the corresponding coherency unit. More particularly, thedirectory entry71 associated with a coherency unit is stored within the table of directory entries at an offset formed from the global address which identifies the coherency unit.
[0074]Valid bit73 indicates, when set, thatdirectory entry71 is valid (i.e. thatdirectory entry71 is storing coherency information for a corresponding coherency unit). When clear,valid bit73 indicates thatdirectory entry71 is invalid.
[0075]Owner field77 identifies one ofSMP nodes12 as the owner of the coherency unit. The owningSMP node12A-12D maintains the coherency unit in either the modified or owned states. Typically, the owningSNIP node12A-12D acquires the coherency unit in the modified state. Subsequently, the owningSNIP node12A-12D may then transition to the owned state upon providing a copy of the coherency unit to anotherSMNP node12A-12D. Theother SMP node12A-12D acquires the coherency unit in the shared state. In one embodiment,owner field77 comprises two bits encoded to identify one of fourSNIP nodes12A-12D as the owner of the coherency unit.
[0076]Sharers field79 includes one bit assigned to eachSNIP node12A-12D. If anSMNP node12A-12D is maintaining a shared copy of the coherency unit, the corresponding bit withinsharers field79 is set. Conversely, if theSNIP node12A-12D is not maintaining a shared copy of the coherency unit, the corresponding bit withinsharers field79 is clear. In this manner, sharersfield79 indicates all of the shared copies of the coherency unit which exist within thecomputer system10 of FIG. 1.
Write back[0077]bit75 indicates, when set, that theSMP node12A-12D identified as the owner of the coherency unit viaowner field77 has written the updated copy of the coherency unit to thehome SMP node12. When clear,bit75 indicates that the owningSMP node12A-12D has not written the updated copy of the coherency unit to thehome SMP node12A-12D.
Turning now to FIG. 3, a block diagram of illustrating features of one embodiment of[0078]system interface24 which are operational during SSM mode is shown. As shown in FIG. 3,system interface24 includesdirectory66,translation storage64, andMTAG68.Translation storage64 is shown as a global address to local physical address (GA2LPA)translation unit80 and a local physical address to global address (LPA2GA)translation unit82.
[0079]System interface24 also includes input and output queues for storing transactions to be performed uponSMP bus20 ornetwork14. Specifically, for the embodiment shown,system interface24 includesinput header queue84 andoutput header queue86 for buffering header packets to and fromnetwork14. Header packets identify an operation to be performed, and specify the number and format of any data packets which may follow.Output header queue86 buffers header packets to be transmitted uponnetwork14, andinput header queue84 buffers header packets received fromnetwork14 until system interface24 processes the received header packets. Similarly, data packets are buffered ininput data queue88 andoutput data queue90 until the data may be transferred uponSNP data bus60 andnetwork14, respectively.
SMP out[0080]queue92, SMP inqueue94, and SNM I/O in queue (PIQ)96 are used to buffer address transactions to and fromaddress bus58. SNP outqueue92 buffers transactions to be presented bysystem interface24 uponaddress bus58. Reissue transactions queued in response to the completion of coherency activity with respect to an ignored transaction are buffered in SMP outqueue92. Additionally, transactions generated in response to coherency activity received fromnetwork14 are buffered in SMP outqueue92. SMP inqueue94 stores coherency related transactions to be serviced bysystem interface24. Conversely,SMP PIQ96 stores I/O transactions to be conveyed to an l/O interface residing in anotherSM'node12. I/O transactions generally are considered non-coherent and therefore do not generate coherency activities.
SMP in[0081]queue94 andSMP PIQ96 receive transactions to be queued from atransaction filter98.Transaction filter98 is coupled to MTAG68 andSMP address bus58. Iftransaction filter98 detects an I/O transaction uponaddress bus58 which identifies an I/0 interface upon anotherSM'node12,transaction filter98 places the transaction intoSMP PIQ96. If a coherent transaction to an LPA address is detected bytransaction filter98, then the corresponding coherency state fromMTAG68 is examined. In accordance with the coherency state,transaction filter98 may assert ignoresignal70 and may queue a coherency transaction inSM'in queue94. Ignoresignal70 is asserted and a coherency transaction queued ifMTAG68 indicates that insufficient access rights to the coherency unit for performing the coherent transaction is maintained bySM'node12A. Conversely, ignoresignal70 is deasserted and a coherency transaction is not generated ifMTAG68 indicates that a sufficient access right is maintained bySMP node12A.
Transactions from SMP in[0082]queue94 andSMP PIQ96 are processed by arequest agent100 withinsystem interface24. Prior to action byrequest agent100,LPA2GA translation unit82 translates the address of the transaction (if it is an LPA address) from the local physical address presented uponSMP address bus58 into the corresponding global address.Request agent100 then generates a header packet specifying a particular coherency request to be transmitted to the home node identified by the global address. The coherency request is placed intooutput header queue86. Subsequently, a coherency reply is received intoinput header queue84.Request agent100 processes the coherency replies frominput header queue84, potentially generating reissue transactions for SMP out queue92 (as described below).
Also included in[0083]system interface24 is ahome agent102 and aslave agent104.Home agent102 processes coherency requests received frominput header queue84. From the coherency information stored indirectory66 with respect to a particular global address,home agent102 determines if a coherency demand is to be transmitted to one or more slave agents inother SNP nodes12. In one embodiment,home agent102 blocks the coherency information corresponding to the affected coherency unit. In other words, subsequent requests involving the coherency unit are not performed until the coherency activity corresponding to the coherency request is completed. According to one embodiment,home agent102 receives a coherency completion from the request agent which initiated the coherency request (via input header queue84). The coherency completion indicates that the coherency activity has completed. Upon receipt of the coherency completion,home agent102 removes the block upon the coherency information corresponding to the affected coherency unit. It is noted that, since the coherency information is blocked until completion of the coherency activity,home agent102 may update the coherency information in accordance with the coherency activity performed immediately when the coherency request is received.
[0084]Slave agent104 receives coherency demands from home agents ofother SMP nodes12 viainput header queue84. In response to a particular coherency demand,slave agent104 may queue a coherency transaction in SMP outqueue92. In one embodiment, the coherency transaction may cause caches18 and caches internal to processors16 to invalidate the affected coherency unit. If the coherency unit is modified in the caches, the modified data is transferred tosystem interface24. Alternatively, the coherency transaction may cause caches18 and caches internal to processors16 to change the coherency state of the coherency unit to shared. Onceslave agent104 has completed activity in response to a coherency demand,slave agent104 transmits a coherency reply to the request agent which initiated the coherency request corresponding to the coherency demand. The coherency reply is queued inoutput header queue86. Prior to performing activities in response to a coherency demand, the global address received with the coherency demand is translated to a local physical address viaGA2LPA translation unit80.
According to one embodiment, the coherency protocol enforced by[0085]request agents100,home agents102, andslave agents104 includes a write invalidate policy. In other words, when a processor16 within anSMP node12 updates a coherency unit, any copies of the coherency unit stored withinother SNI nodes12 are invalidated. However, other write policies may be used in other embodiments. For example, a write update policy may be employed. According to a write update policy, when an coherency unit is updated the updated data is transmitted to each of the copies of the coherency unit stored in each of theSNP nodes12.
Referring back to FIG. 2, in the SSM mode of operation, when processor[0086]16 attempts to read or write to a memory location, the MMU within processor16 converts the virtual address generated by the program to a physical address. The physical address includes a node ID field which indicates the home node to which the physical address is assigned. If the home node corresponds to the node which initiates the transaction (i.e. the requesting node), the address is referred to as a local physical address. Alternatively, if the node ID field identifies a node other than the requesting node, the address is referred to as a global address. Using the physical address, processor16 determines whether the data that corresponds to the physical address is stored in cache18. Cache18 may store data corresponding to local physical addresses or data corresponding to global addresses (data accessed in a NUMA manner may be stored in cache with a global address).
If the data is found in cache[0087]18, processor16 accesses the data from the cache. Alternatively, if the data is not located in cache18, then a request for the data is output onSMP bus20. If the physical address is a global address,system interface24 will initiate a global transaction to acquire the desired data. Alternatively, if the physical address is a local physical address,system interface logic62 will determine whether the node has sufficient access rights to perform the transaction by reading the entry ofMTAG68 that corresponds to address. If the node has sufficient access rights for the desired transaction, the transaction is performed on the data inmemory22. In one embodiment, the data may be transferred to cache18 before the transaction is performed. If the node does not have sufficient access rights, the node must acquire sufficient access rights before performing the transaction. The node obtains the access rights by initiating a coherency operation to obtain those rights.
In one embodiment, each node includes two logical address spaces. Both logical address spaces are mapped to[0088]memory22. A first address space, called CMR space, stores shadow copies of data from other nodes. The remaining data is stored in a second address space, called local address space.
In one embodiment, a local physical address includes an address bit, called a CMR bit, that indicates whether the local physical address corresponds to an address assigned to the requesting node (i.e., the requesting node is the home node for the data) or to a shadow page within the CMR address space (i.e., a shadow copy of data from a remote node). If the CMR bit is set, which indicates the data is a shadow page,[0089]system interface24 translates the local physical address to a global address prior to performing a coherency operation. Alternatively, if the CMR bit is clear, which indicates the requesting node is the home node for the data, the local physical address is the same as the global address and no translation is necessary prior to performing a coherency operation. Addresses with the CMR bit set are mapped to CMR space. Addresses with the CMR bit cleared are mapped to local address space.
Without the CMR bit,[0090]system interface logic24 cannot differentiate between a local physical address that corresponds to local data and a local physical address that corresponds to a shadow copy of remote data. Accordingly,system interface24 will translate all local physical addresses prior to performing a coherency operation. Because the translation is unnecessary for local physical addresses that correspond to local data, the translation adds unnecessary latency to the transaction and increases the bandwidth thattranslation storage64 must handle. Additional details regarding a system which supports coherent memory replication may be found in a copending, commonly assigned patent application entitled “Selective Address Translation In Coherent Memory Replication” by Erik E. Hagersten, filed concurrently herewith. Furthermore, a protocol for acquiring sufficient access rights is discussed in more detail in copending, commonly assigned patent application (A Multiprocessing Computer System Employing Local and Global Address Spaces And Multiple Access Modes), filed Jul. 1, 1996, Ser. No. 08/675,635. These applications are incorporated herein by reference in their entirety.
FIG. 4 illustrates an exemplary mapping of physical addresses within one specific implementation of[0091]computer system10. By software convention, the MSB (most significant bit) of the physical address is typically driven to “0” for coherent space transactions and is driven to “1” fornon-coherent space404 transactions. Generally speaking, during the SSM mode ofcomputer system10, coherent transactions (as described previously) are performed for requests to memory locations within thecoherent space402. Thecoherent space402 may be divided into several separate regions, wherein an access to any specific region may dictate the type of operation to be performed. For example, a first region ofcoherent space402 may be used to specify normal memory read and write accesses to particular locations, while other regions may be dedicated for specifying that specialized operations be performed upon the particular locations (i.e., upon the same physical memory), such as flush operations and fast write stream operations, among others.Non-coherent space404 is used during the SSM mode for accessing I/O devices and for configuration storage. In one embodiment, the physical address comprises a total of 43 bits. It is understood, however, that any number of address bits may be employed in variations of the system.
Details regarding the operation of[0092]computer system10 in a cluster mode are next discussed. As stated previously, cluster mode may be established upon system initialization by appropriately setting the configuration of thesystem interface24 of each node. In other embodiments, a multiprocessing computer system may be configured to operate only in cluster mode (i.e., a system which does not support alternative modes such as SSM).
Referring back to FIG. 1, in the cluster mode of operation, each of (or multiples of) the[0093]SMP nodes12 may be operated as separate cluster nodes, wherein accesses to the memory of aparticular node12 by other cluster nodes may be restricted and protected against, as determined by operating system control over the configuration of each of the system interfaces. Each cluster node in such a system typically runs its own kernel.
FIG. 5 is a block diagram which depicts features of a[0094]system interface24 which are operational during the cluster mode. Features illustrated within thesystem interface24 of FIG. 5 that correspond to those of FIG. 3 are numbered identically for simplicity and clarity. As illustrated in FIG. 5, acluster agent502 is coupled betweenSMPOQ92, which provides an interface toSMP bus20, and input andoutput header queues84 and86, which provide an interface to network14. A cluster memory management unit (CMMU504) is shown coupled tocluster agent502. Finally, an NC2NID table506 is shown coupled totransaction filter98, and a cluster error status registers unit508 is shown coupled torequest agent100. Various aspects regarding the operation ofsystem interface24 during the cluster mode of operation will next be considered.
Referring collectively to FIGS. 1 and 5, a remote cluster node may be accessed by launching either a read or a write type transaction to a dedicated address in the initiating node. For example, in a configuration wherein each[0095]SMP node12 forms a different cluster node,cluster node12A may access a location incluster node12B by launching either a read or a write type request transaction throughnetwork14. The launching mechanism ofnode12A will identifynode12B as the receiver of the read or write transaction. In one specific implementation, only read and write transaction requests, which may be conveyed in the form of packets, are transferred on theglobal network14 between the system interfaces24 of differing cluster nodes. It is contemplated, however, that in other systems, other specific types of transaction requests conveyed between cluster nodes may be supported.
In cluster mode, only the[0096]non-coherent address space 404 is utilized for addressing memory locations. In one specific implementation, the entire non-coherent space is divided into256 “cluster slices” (CS), each one being 16GB large. A particular slice may thus be identified using 8 bits of the address conveyed uponSMP bus20 during the address phase of a particular transaction. The NC2NID table506 of eachsystem interface24 is initialized to associate these slices with remote nodes or to be “not valid”, in which case thesystem interface24 ignores the transaction on itsSMP bus20. Thus, when a transaction is initiated by a particular processor16 onSMP bus20, the NC2NID table506 of thesystem interface24 of that node is accessed to determine if the transaction is directed to a remote cluster node as determined by the slice mappings. If a transaction is directed to a remote cluster node, the node ID for that remote cluster node is retrieved from the NC2NID table506. The node ID along with the request initiated uponSMP bus20 is then provided to requestagent100 throughqueue96.Request agent100 responsively causes a packet indicating the requested transaction to be routed throughnetwork14 for communication to the remote node. It is noted that the node ID supplied by the NC2NID table506 is utilized by routing logic (not shown) associated withsystem interface24 which causes the transaction to be communicated over the appropriate channel ofnetwork14 which provides connection to the identified remote node. The NC2NID table506 may further be used to control the routing of data packets received fromSNP bus20 to a particular remote node.
As used herein, the terms “transaction” and “packet” are used to generally refer to information conveyed through a bus. The specific form of a “transaction” or a “packet” is dependent upon the specific bus protocol. Furthermore, the specific information contained within a transaction or packet conveyed through a bus may be dependent, for example, upon whether a particular transaction is being used to indicate the initiation of a particular operation, such as a read or write operation to a particular address, or to supply information such as data or an acknowledgement in response to a previous transaction.[0097]
Upon arrival of a transaction which indicates a requested operation at the remote node, the transaction undergoes a protection/translation step within the[0098]CMMU504 of the remote node. TheCMMU504 of each node is initialized by the kernel for that node before an access is allowed to a specific slice of the cluster address space.
As will be described in further detail below,[0099]CMMU504 includes a per-page translation entry with information regarding which other cluster nodes may access this page, which types of accesses (read and/or write) are allowed, the local physical page address for the node, and what command type should be launched in the node in response to the cluster communication (received through network14). In one specific implementation, several different command types may be specified, including memory operations (i.e. read/write), atomic test and set operations, I/O operations, and interrupt operations, among others. Further details regarding these command types and other aspects of the operation ofCMMU504 will be discussed further below.
In a further embodiment, a remote cluster node may be reached by going through one or more intermediate nodes (or “switches” ) configured in pass-through mode. The number of such intermediate hops is transparent in the transferring of read and write data. However, to support this functionality, various mechanisms are provided, as discussed further below.[0100]
Further details regarding the receipt of cluster communications from a remote cluster node by[0101]system interface24 are considered with reference to FIGS. 6 and 7. FIG. 6 illustrates functionality performed byCMMU504, as well as functionality associated with a set of cluster status registers (CSRs)602A-602C which are coupled tocluster agent502. FIG. 7 illustrates particular cluster protection checks which may be performed bycluster agent502 in response to the cluster node receiving a transaction fromnetwork14 throughinput header queue84.
As illustrated, in one particular implementation, an incoming transaction which indicates a requested operation (i.e., either read or write) includes a cluster address of 43 bits. The cluster address includes a field which specifies the NC slice corresponding to this transaction, a page address (LPA page) specifying the page corresponding to the access, and a field for specifying the page offset. The incoming transaction packet further includes a “from node” field which indicates the node that initiated the request.[0102]
CSR[0103]602A (also referred to as the cluster member CSR) is programmed to specify the cluster members from which transactions may be received and processed (that is, CSR602A may be programmed to indicate the other nodes with which it is “friendly”).CSR602B (also referred to as the pass through enable CSR) is programmed to indicate whether this node is acting as a hop for a particular slice. Finally, CSR602C (also referred to as the local NC slice CSR) is programmed to identify the slices which are local to a particular node. Typically, a particular cluster node would not have both the pass through enable bit for a particular slice set at the same time the local NC slice bit for that slice is set.
As illustrated in FIG. 7, during operation when a transaction or packet is received by[0104]cluster agent502, the first protection check tests to determine if this is a pass through transaction to an NC slice which has pass-through enabled (by checking the corresponding bit of pass-through enableCSR602B) duringsteps702 and704. The checking mechanism may further insure that this transaction has not previously done a pass through hop in another cluster node by checking the highest order bit of the cluster address, as will be discussed in further detail below. If the packet is a pass-through packet, the MSB of the address is cleared to a “0”, and a corresponding packet is conveyed upon SMNP bus20 (steps706 and708).
If the incoming transaction is not a pass-through packet, the protection mechanism of[0105]cluster agent502 then checks if the incoming transaction is for an NC slice local to this cluster node (by checking a corresponding bit of the NC slice CSR602C) duringstep710.Cluster agent502 additionally indexes into the corresponding page entry of CMMU504 (step712) using selected bits of the cluster address (e.g., the page address). Each entry ofCMMU504 includes an “access right” field which indicates whether cluster read requests, cluster write requests, or both, received fromnetwork14 are allowed access rights for that page, a LADDR field which specifies the local physical address for the page to be accessed within the node, an “access node” field which specifies what initiating cluster nodes are explicitly allowed access to this node, and a “type” field which may be used to specify the specific operation to be invoked onSWP bus20. Thus, using the page entry ofCMMU504 when a transaction is received, uponstep714cluster agent502 determines if the access right is sufficient (e.g. accesses for that particular page may be allowed if the transaction is a read, while disallowed if the transaction is a write, etc.) and determines whether the initiating cluster node is explicitly allowed access to this cluster mode. The transaction issued onSNIP bus20 uses the local physical page address obtained from a field of theCMMU504 for the page address of the corresponding transaction to be initiated onSNP bus20.
A third protection check implemented (also step[0106]714) bycluster agent502 tests to determine if the incoming transaction is for an NC slice covered by this node (as specified by corresponding bit of NC slice CSR602C during step710), whether the access right to the slice is sufficient, whether the initiating cluster node is a cluster member (as specified by corresponding bit of cluster members CSR602A), and whether the CMMU entry for that page specifies accesses for “all” cluster member nodes. A transaction which meets this test also gets its local physical page address from the CMMU local physical address entry.
At most, only one of the three protection checks implemented by[0107]cluster agent502 will have a positive outcome. All other cases are reported as an error condition steps716 and718). The treatment of error conditions will be discussed in further detail below.
If one of the protection checks for an incoming transaction passes, a transaction is issued on the receiving node's SMP bus[0108]20 (step708 or720). In the case of a pass-through transaction, a corresponding transaction is issued onSMP bus20 of the pass through node using the original GA address received in the cluster transaction (and without accessing the pass through node's CMMU). However, the MSB of the address is driven to a “0” to indicate that this is a pass-through transaction.
Thus, upon initialization of a particular cluster node, the kernel for that node may program the entries of[0109]CMMU504 as well as the node's control status registers602A-602C. The cluster node can thus effectively protect against unauthorized accesses by remote nodes. Flexible and efficient operation is further accomodated due to the several protection checks implemented bycluster agent502 and controlled byCMMU504 and CSRs602A-602C.
Additionally, since each CMMU entry includes a type field which controls the specific type of operation performed on[0110]SMP node20, even further flexibility and control over cluster communications may be dictated by each receiving cluster node. In one specific implementation, there are four different types of operations which may be specified:
a) Memory operations (i.e., read/write).[0111]
b) Atomic test and set (i.e., a read operation to memory returns the old value from memory and atomically sets a bit). This can be generalized to similar types of operations, such as fetch-and-phi, i.e., fetch-andincrement/fetch-and-decrement, etc.[0112]
c) IO operations, which required a different command to be issued in the node.[0113]
d) Interrupt operation. This is a write type operation. Here, the CMMU stores information about which CPU to send the interrupt to and part of the interrupt data to be sent to the CPU.[0114]
In other embodiments, other specific operations within a local node may be specified by the type field of the CMMU entry in response to cluster communications.[0115]
As stated previously, in one embodiment a remote cluster node may be reached by passing a transaction through one or many intermediate nodes configured in pass-through mode. FIG. 8 is a diagram which illustrates a configuration for[0116]network14 in whichnode12B is used as a hop for communications between bothnodes12A and12C as well as betweennodes12A and12D. As illustrated, pass through operations in a particular cluster node may be handled through only a single system interface, such assystem interface24B-1, or handled by differing system interfaces within a common cluster node, such as system interfaces24B-1 and24B-2. Details regarding pass through operations for each of these cases will next be discussed.
Consider a situation wherein, for example, a read or a write transaction is launched by[0117]system interface24 ofnode12A which is directed to a slice mapped tonode12D. As stated previously, such a transaction may be initiated by a processor16 ofnode12A. When the transaction is initiated onSMP bus20 ofnode12A, thesystem interface24 ofnode12A uses its NC2NID table to determine that the transaction is destined fornode12D.System interface24 accordingly conveys a request packet uponnetwork14 to communicate the request. In this instance, the routing logic associated withsystem interface24 will route the request through the channel connected tonode12B. Included with the request packet conveyed throughnetwork14 is the node ID fornode12A (the initiator node ID). When system interface24B-1 ofnode12B receives the request packet, itscluster agent502 initiates the protection checks as described above. In this instance,node12B will be set up as a pass through hop for this slice, and thus no CMMU access is performed withinnode12B. Instead,cluster agent502 causes the most significant bit of the cluster address to be cleared, and initiates a corresponding transaction uponSMP bus20 of node12B1. Since the node ID for the initiating node (node12A) is needed by the receiving node (12D) (for its protection mechanisms), a field of the packet conveyed onSMP bus20 which is normally unused during10 transactions is used to convey the initiating node ID along with the transaction request.
When the pass through communication is conveyed upon SMP bus[0118]20B ofnode12B,system interface24B-2 would respond to the transaction in accordance with its NC2NID table506 (that is, the slice address for this transaction will correspond to a valid entry within its NC2NID table and which associates the NC slice withnode12D). In addition,system interface24B-2 identifies this transaction as being of a pass through type, since the MSB of the conveyed address is “0”. In response to detecting this pass through operation, therequest agent100 ofsystem interface24B-2 will convey a corresponding request packet tonode12D, but will specifynode12A as the initiating node within the packet. The system interface24D ofnode12D receives the request packet fromnode12B. For this node, however, thecluster agent502 will identify the slice as being local to this node, and will perform the protection checks as described previously by accessing itsCMMU504 entry. Assuming the transaction passes the protection checks, the transaction will be conveyed upon the SMP bus20D ofnode12D in accordance with the request packet and the command type specified by the CMMU entry.
Cluster communications from[0119]node12A to12C in the system of FIG. 8 are handled similarly. In this situation, however, when system interface24B-1 of the pass throughnode12B conveys a transaction upon SNIP bus20B indicating the request initiated bynode12A, the NC2NID table506 ofsystem interface24B-1 will identify that slice as being designated for routing through its interface. Accordingly,system interface24B-1 responds to the transaction initiated upon SMP bus20B by passing a corresponding packet indicating the request tonode12C through the corresponding channel ofnetwork14.
While the[0120]SMP bus20 of each node may support various specific protocols, in one particularimplementation SMP bus20 is a split transaction bus. In one specific protocol, for a read operation, a transaction is conveyed upon theSMP bus20 by the initiator which specifies a buffer it has reserved internally for the read data. When the target device obtains the requested data, the target device conveys the data packet to the specified buffer. These transactions may be accomplished through separate address and data phases which include transaction IDs to associate the information (e.g., in the form of packets) received during the different phases. For a write operation, an initiating device may first convey a packet uponSNP bus20 indicating the address to which it would like to write data. The target device responsively sends a packet in another phase identifying a buffer within the target into which the data should be written. Subsequently, the initiating device writes the data to the specified buffer. In one such specific implementation, the 8 bit cluster node ID information during pass-through operations is conveyed using6 unused bits of the transaction's byte mask and the two least significant bits of the transaction's address, which are normally unused in this type of I/0 transaction since the transaction is required to be 64 byte aligned and comprises 64 bytes. I/0 read requests propagated through the switch are normally replied to with a data packet and an associated coding of a tag field to indicate a normal read. Occurrences of various errors upon a read transaction may be conveyed throughSMP bus20 by providing different codings in this tag field to identify the error. Write requests initiated onSMP bus20 in pass through mode are normally replied to with a pull request identifying a location in the outgoing data buffer ofsystem interface24. A write error may be propagated through the pass-through node by sending a pull request which specifies an invalid distinction, such as to the device itself. In such a situation, an error code may be encoded using selected bits of the address specified by the pull request. Further details regarding the handling of errors in the cluster will be provided below.
Several system interfaces may reside within a[0121]single node12. A specific cluster slice may only have a valid NC2NID entry in one interface. In that way, having more than one interface per node increases the connectivity for the node. For example, FIG. 9 illustrates an exemplary system in whichnode12B includes a plurality of system interfaces24B-1 through24B-1. Eachsystem interface24, which may be implemented as an integrated circuit chip, includes a finite number of ports to support point-to-point connections to other nodes. Accordingly, by including several system interfaces within a common node, greater connectivity to additional nodes may be achieved. The NC2NID tables in each system interface are configured to control the routing of transactions through the various nodes.
A specific cluster slice may also have a valid NC[0122]2NID entry in more than one interface. In that case, the different interfaces may be initialized to handle only a subset of the accesses to that slice. For example, one interface may handle even addresses while another interface handles addresses. In that way, having more than one interface may increase the bandwidth provided to one specific node.
This concept may be better understood with reference to FIG. 10. FIG. 10 illustrates an exemplary system configuration wherein a[0123]node12A includes a pair of system interfaces24A-1 and24A-2, each coupled to provide selected cluster communications to corresponding system interfaces24B-1 and24B-2 ofnode12B. In this configuration, a specific cluster slice may have a valid NC2NID entry in both system interface24A-1 and system interface24A-2. In this configuration, system interfaces24A-1 and24A-2 may be initialized (e.g., using dedicated configuration registers) to handle only a subset of the accesses to that slice. For example, system interface24A-1 may be configured to handle even addresses for the slice, while system interface24A-2 is configured to handle odd addresses. This “data striping” thus provides increased bandwidth tonode12B for accesses to that slice, since the burden associated with such transfers is spread between the system interfaces.
The validity of certain slices in a particular interface's NC[0124]2NID table may change during system execution. This property can be used to cope with network failures or as an alternative method of balancing load over multiple interfaces.
This concept is illustrated by FIG. 11. FIG. 11 illustrates an exemplary system configuration wherein[0125]node12A includes a pair of system interfaces24A-1 and24A-2. These interfaces are used in conjunction with a pair of nodes,12B and12C, which are operating in a pass through mode and providing switching services betweennode12A and a set of other nodes. One particular node in that set isnode12D, which includes a pair of system interfaces24D-1 and24D-2. In this configuration,node12A and12D might be initialized such that:
[0126]system interface24A-1 contains a valid NC2NID table entry fornode12D;
[0127]system interface24A-2 contains an invalid NC2NID entry fornode12D;
system interface[0128]24D-1 contains a valid NC2NID table entry fornode12A; and
system interface[0129]24D-2 contains an invalid NC2NID entry fornode12A.
Thus, all packets from[0130]node12A tonode12D will flow overnetwork14A, be passthrough routed bynode12B, flow over network14C, and finally arrive atnode12D; an inverse path would be taken by packets flowing in the reverse direction.
Now, consider what happens if either[0131]network14A,switch node12B, or network14C develops a hardware fault: communication betweennodes12A and12D would be interrupted, and transactions issued byprocessor16A targeted atnode12D would fail. This problem can be alleviated by reprogramming the system interfaces contained withinnodes12A and12C such that:
[0132]system interface24A-1 contains an invalid NC2NID entry fornode12D;
[0133]system interface24A-2 contains a valid NC2NID table entry fornode12D;
system interface[0134]24D-1 contains an invalid NC2NID entry fornode12A; and
system interface[0135]24D-2 contains a valid NC2NID entry fornode12A.
Now, all packets from[0136]node12A tonode12D will flow overnetwork14B, be passthrough routed bynode12C, flow over network14D, and finally arrive atnode12D; an inverse path would be taken by packets flowing in the reverse direction. An important result of this reprogramming is thatprocessor16A may now again successfully issue transactions targeted atnode12D, without changing the SNI bus addresses used for that purpose. This substantially simplifies the implementation of software which is designed to support usage of these system interfaces.
Changes to the validity of certain slices in the NC[0137]2NID tables of multiple interfaces can also allow load balancing between switch nodes. Consider the situation described in the preceding paragraphs, but assume that instead of a failure ofnetwork14A,node12B, or network14C, the reprogramming is motivated by the fact that SMP bus20B is substantially more loaded than SNP bus20C. In this case, the reprogramming is not coping with a network failure, but is aiding in balancing the load between the two SNP buses. The difference between the two cases is that in the case of network failure, thesystem interface24A-1 may be reprogrammed so that all NC2NID entries were invalid; in other words,node12B would no long be used for switching purposes. In the load-balancing case, however, only a subset of the NC2NID values in system interface24A-1 would be reprogrammed to be invalid; that is, the switching of traffic for some, but not all, remote nodes fromnode12B tonode12C would be moved.
A manner in which errors are handled within the cluster systems described above is next considered. Referring back to FIG. 5, the cluster error status registers unit[0138]508 ofsystem interface24 includes a cluster error status register corresponding to each processor within the node. Each cluster error status register may be separately written or read to thereby set or read a specific error code. In one embodiment, each CESR contains 4 bits. If a cluster transaction initiated from the node throughnetwork14 results in an error being communicated back from the remote node, the CESR corresponding to the CPU which initiated the transaction is set to indicate the error. The 4-bit encodings for errors which may be reported and stored by each CESR are as follows:
0. No errors recorded.[0139]
1. The interrupt destination is busy.[0140]
2. The CMMU access violation (including out-of-bounds).[0141]
3. Destination cluster agent error.[0142]
4. User-error[0143]0, CMMU entry's user error bit0 was set.
5. Pause reply (the node is unable to answer right now).[0144]
6. Pass-through request-agent timeout.[0145]
7. More than one pass-through hop.[0146]
8. Pass-through cluster-agent timeout.[0147]
9. Invalid SMP transaction to cluster space (e.g., not a block PIO).[0148]
10. Request agent read time-out.[0149]
11. Request agent received data error (could possibly have been caused beyond a pass-through node).[0150]
[0151]12. Any other communication error.
As stated previously, an error may be reported to a requesting node if the CMMU in the remote node determines that the initiating node does not have sufficient access rights to the page. There are several additional error types that also may be detected, such as a time out in the remote node while accessing its local memory, user-level defined error in the remote node, and interrupt destination busy. The[0152]system interface24 of the initiating node may also report an error by itself, such as a time out while waiting for a reply from the remote node. Any error detected will be recorded in the CESR corresponding to the CPU that initiated the transaction. Errors are communicated uponnetwork14 by the system interfaces24 using error-type transaction packets. To prevent other abnormal activity due to the error, however, therequest agent100 of thesystem interface24 to which an error is reported ensures that the initiating CPU will see no direct effect by the error. This is achieved by returning “dummy” read data for a read, and by pulling write data for a write but discarding it. In this manner, an incorrect error reported by a remote node cannot crash the local node.
As stated previously, when a node operates in a pass through mode, an error conveyed by the remote node must be conveyed through the pass through node to the initiating node. In one specific implementation, this error code may be passed through the[0153]SMP bus20 of the pass through node during a read operation by specifying the error within a certain field or set of bits that are normally unused on theSMP bus20 during I/O transactions. Similarly, for a write type operation, a pull request may be initiated to an invalid location, in which the receiving system interface will detect as indicating an error. The error code may be passed through any normally unused bits of the transaction. In other embodiments, the error messages may be passed through the pass-through node depending upon the particular protocols supported bySMP bus20.
By looking at a field of an issued transaction on[0154]SMP bus20 which indicates the initiator id (i.e., the CPU that initiated the transaction),request agent100 can determine which CPU issued the transaction. To record an error associated with that transaction,request agent100 selects the particular CESR associated with that CPU by using the initiator id to index into the cluster error status registers unit508.
A processor can periodically read the cluster error status registers unit[0155]508 to determine if any error has been recorded since the last time it read the cluster error status registers unit508. This may be accomplished by performing a read operation to a particular address in the configuration space of the system to which the cluster error status registers unit508 is mapped. The initiator id corresponding to that read operation is further used byrequest agent100 to determine the specific CESR which should be read. In this manner, a process need not know which CPU it is running on in order to determine which CESR to access.
When the operating system performs a process switch, it may issue a MEMBAR operation, which determines that all outstanding transaction have completed. This also guarantees all errors for those transaction have also been recorded in the CPU's CESR. The process switch code will save the current value of the CPU's CESR and store it together with the other state associated with the process.[0156]
When the process eventually is scheduled to start running again, possibly on some other CPU, the process' saved CESR value is restored on that CPU's CESR. This way, the CESR is virtualized to a per-process or a per-task CESR. This allows for it to be used in user-level code.[0157]
It is noted that in one embodiment, accessing an address on page “0” of an NC[0158]2NID slice is interpreted as accessing the CESR configuration space in the interface handling this subset of this cluster slice. In addition, it is noted that entries in the NC2NID table506 may also be typed and used for accesses other than cluster accesses, such as accesses to SRAM slices and remote I/O slices.
In yet a further embodiment, it is noted that the number of pass through hops transactions can pass through may be limited. For example, in one embodiment, upon passing a transaction through a first node, the MSB of the cluster address remains “[0159]0”, such that a subsequent node must either accept the transaction as a local slice, in accordance with its protection mechanism, or report an error. In this manner, transactions are limited to being passed through only a single node, and transactions are prevented from endlessly looping through pass through nodes in the event the system configuration is set in properly. This feature may be enabled or disabled through self-direct control of a configuration register such as a CSR, within each system interface.
A multiprocessing computer system employing the cluster protection mechanisms described herein may advantageously allow a given node to control how its resources are used by remote cluster nodes. Additionally, relatively simple cluster communication protocols may be implemented at the global level, while allowing the type of access performed locally to be specified by the local node. Additionally, the protection mechanisms described herein may further allow cluster implementations wherein access restrictions may be specified flexibily without requiring large amounts of memory to implement the flexibility.[0160]
Although[0161]SMP nodes12 have been described in the above exemplary embodiments, generally speaking an embodiment ofcomputer system10 may include one or more processing nodes. As used herein, a processing node includes at least one processor and a corresponding memory. Additionally, circuitry for communicating with other processing nodes is included. When more than one processing node is included in an embodiment ofcomputer system10, the corresponding memories within the processing nodes form a distributed shared memory. A processing node may be referred to as remote or local. A processing node is a remote processing node with respect to a particular processor if the processing node does not include the particular processor. Conversely, the processing node which includes the particular processor is that particular processor's local processing node.
Numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. It is intended that the following claims be interpreted to embrace all such variations and modifications.[0162]