Apparatus for avoiding starvation in hierarchical computer systems that prioritize transactions

Information

  • Patent Application
  • 20020133652
  • Publication Number
    20020133652
  • Date Filed
    September 06, 2001
    23 years ago
  • Date Published
    September 19, 2002
    22 years ago
Abstract
A computer system that includes a first repeater and a second repeater. The second repeater is coupled to the first repeater. The second repeater contains circuitry that causes the second repeater to cease issuing transactions to the first repeater for at least one bus cycle if the second repeater has issued “P,” a positive integer, consecutive transactions to the first repeater. The computer system also includes a third repeater that is coupled to the first repeater. The first repeater also includes an arbiter that gives priority to transactions being sent from the first repeater to the third repeater over transactions being sent from the third repeater to the first repeater.
Description


1. FIELD OF THE INVENTION

[0003] The present invention relates to the field of multiprocessor computer systems and, more particularly, to the architectural connection of multiple microprocessors within a multiprocessor computer system.



2. BACKGROUND

[0004] Multiprocessing computer systems include two or more microprocessors that may be employed to perform computing tasks. A particular computing task may be performed on one microprocessor while other microprocessors perform unrelated computing tasks. Alternatively, components of a particular computing task may be distributed among multiple microprocessors to decrease the time required to perform the computing task as a whole.


[0005] A popular architecture in commercial multiprocessing computer systems is the symmetric multiprocessor (SMP) architecture. Typically, an SMP computer system comprises multiple microprocessors connected through a cache hierarchy to a shared bus. Additionally connected to the bus is a memory, which is shared among the microprocessors 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 microprocessors 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 that 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. As additional microprocessors are attached to the bus, the bandwidth required to supply the microprocessors with data and instructions may exceed the peak bandwidth of the bus. Thus, some microprocessors may be forced to wait for available bus bandwidth and the performance of the computer system will suffer when the bandwidth requirements of the microprocessors exceed available bus bandwidth.


[0008] Additionally, adding more microprocessors 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 microprocessors are added.


[0009] A common way to address the problems incurred as more microprocessors and devices are added to a shared bus system, is to have a hierarchy of buses. In a hierarchical shared bus system, the microprocessors and other bus devices are divided among several low-level buses. These low-level buses are connected by high-level buses. Transactions are originated on a low-level bus, transmitted to the high-level bus, and then driven back down to all the low level-buses by repeaters. Thus, all the bus devices see the transaction at the same time and transactions remain ordered. The hierarchical shared bus logically appears as one large shared bus to all the devices. Additionally, the hierarchical structure overcomes the electrical constraints of a single large shared bus.



3. SUMMARY OF INVENTION

[0010] One embodiment of the invention is a computer system that includes a first repeater and a second repeater. The second repeater is coupled to the first repeater and contains circuitry that causes the second repeater to cease issuing transactions to the first repeater for at least one bus cycle if the second repeater has issued “P” consecutive transactions to the first repeater. The computer system also includes a third repeater that is coupled to the first repeater. The first repeater also includes an arbiter that gives priority to transactions being sent from the first repeater to the third repeater over transactions being sent from the third repeater to the first repeater. Another embodiment of the invention is a program storage device that contains computer readable instructions. When the instructions are executed by a computer system having a first repeater, a second repeater that is coupled to the first repeater, and a third repeater that is coupled to the first repeater; the computer system implements a method that includes: instructing the second repeater to cease issuing transactions to the first repeater; synchronizing an arbiter within the second repeater with an arbiter within the third repeater; instructing the second repeater to begin issuing transactions to the first repeater; and instructing the third repeater to begin issuing transactions to the first repeater.


[0011] Still another embodiment of the invention is another program storage device that contains computer readable instructions. When these instructions are executed by a computer system having a first repeater, a second repeater that is coupled to the first repeater, and a third repeater that is coupled to the first repeater; the computer system implements a method that includes: instructing the second repeater to cease issuing transactions to the first repeater; draining at least one transaction from the first repeater; synchronizing an arbiter within the second repeater with an arbiter within the third repeater; instructing the second repeater to begin issuing transactions to the first repeater; and instructing the third repeater to begin issuing transactions to the first repeater.







4. BRIEF DESCRIPTION OF THE FIGURES

[0012]
FIG. 1 presents a block diagram of a multiprocessing computer system.


[0013]
FIG. 2 presents a block diagram of an L1 address repeater.


[0014]
FIG. 3 presents a block diagram of an arbiter.


[0015]
FIG. 4(a) presents a block diagram of a CPU port.


[0016]
FIG. 4(b) presents another block diagram of a CPU port.


[0017]
FIG. 5 presents a block diagram of an L2 port.


[0018]
FIG. 6 presents a block diagram of an L2 address repeater.


[0019]
FIG. 7(a) presents a block diagram of an L1 port.


[0020]
FIG. 7(b) presents another block diagram of an L1 port.


[0021]
FIG. 8 presents a block diagram of a simplified multiprocessing computer system.


[0022]
FIG. 9 presents a timing diagram of one method of operating the computer system of FIG. 8.







5. DETAILED DESCRIPTION

[0023] The following description is presented to enable any person skilled in the art to make and use the invention, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present invention. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.


[0024] A block diagram of a multiprocessing computer system 100 is presented in FIG. 1. The multiprocessing computer system includes two L1 address repeater nodes 125 and 155, and a single L2 address repeater 130. The first L1 address repeater node 125 is coupled to the L2 address repeater 130 via a first L1-L2 bus 160. Similarly, the second L1 address repeater node 155 is coupled to the L2 address repeater 130 via a second L1-L2 bus 165. The second L1 address repeater node 155 may contain the same number of CPUs as in the first L1 address repeater node 125. Alternatively, the number of CPUs in the second L1 address repeater node 155 may be smaller or larger than the number of CPUs in the first L1 address repeater node 125. The computer system 100 may also include other components such as L1 address repeater input-output (I/O) nodes and input-output devices, but these components are not shown so as not to obscure the invention.


[0025] 5.1 L1 Address Repeater Node


[0026] The L1 address repeater node 125 may include a plurality of microprocessors (CPUs) 105, 110, 115. In one embodiment, the CPUs may be an UltraSPARC-III microprocessor. However, in other embodiments, the CPUs may be a digital signal processor (DSP) or a microprocessor such as those produced by Intel, Motorola, Texas Instruments, Transmeta, or International Business Machines. These CPUs may also include memory, such as DRAM memory or RAMBUS memory, and high-speed cache memory (not shown). In addition, the CPUs may also include an outgoing request queue (not shown). CPUs 105, 110, and 115 are coupled to an L1 address repeater via CPU buses 170, 175, and 180. The CPU buses 170, 175, and 180 may be any bus that is capable of passing bus transactions. In one embodiment, the CPU bus may provide for a 60-bit wide data path and may also include additional signal lines for control signals as are known in the art.


[0027] The CPUs 105, 110, and 115 communicate with the L1 address repeater 120 by broadcasting and receiving bus transactions. Bus transactions may be broadcasted as bit-encoded packets. These packets may also include an address, a command, and/or a source ID. Other information, such as addressing modes or mask information, may also be encoded in each transaction.


[0028] 5.2 L1 Address Repeater


[0029] A block diagram of the L1 address repeater 120 is presented in FIG. 2. L1 address repeater 120 includes a plurality of CPU ports 205, 210, and 215. These ports interface with CPUs via the CPU buses 170, 175, and 180. The CPU ports are further described in Section 5.2.1 below. The L2 port is further described in Section 5.2.2.


[0030] 5.2.1 CPU Port


[0031]
FIG. 4(a) presents a block diagram of a CPU port. FIG. 4(a) also presents the flow of data received from a CPU bus, through the CPU port, and out to a CPU-L1 bus. As shown in FIG. 4(a), the CPU port contains an incoming request queue (IRQ) 405. If the CPU port receives a transaction from a CPU and the transaction is not immediately sent to the L2 port because, for example, the L2 port has control of the CPU-L1 bus, then the IRQ 405 stores the transaction.


[0032] The IRQ 405 may be a plurality of registers, such as shift registers or may be a buffer, such as a first-in-first-out buffer, a circular buffer, or a queue buffer. The IRQ 405 may be any width sufficient to store transactions. In one embodiment, the IRQ 405 is 60 bits wide and contains storage for 16 transactions. When the CPU port obtains access to the CPU-L1 bus, then the transaction is passed through a multiplexer 410 and out to the CPU-L1 bus.


[0033]
FIG. 4(b) presents the flow of data received from a CPU-L1 bus, through the CPU port, and out to the CPU bus. In one embodiment, the CPU port passes the data from the CPU-L1 bus directly to the CPU bus. In other embodiments (not shown), the CPU port may also include an outgoing queue, which may or may not be shared between a plurality of CPU ports.


[0034] 5.2.2 L2 Port


[0035]
FIG. 5 presents a block diagram of an L2 port. When the L2 port receives a transaction from a CPU port via a CPU-L1 bus, the transaction passes through input multiplexer 505. The transaction is then passed to the L1-L2 bus. The transaction is also stored in an outgoing request queue (ORQ) 510. The ORQ 510 may be a plurality of registers, such as shift registers or may be a buffer, such as a first-in-first-out buffer, a circular buffer, or a queue buffer. The ORQ 510 may be any width sufficient to store transactions. In one embodiment of the invention, the ORQ 510 is 62 bits wide and contains storage for 16 transactions. The 2 extra bits may be utilized to store a transaction and information that identifies which of the three CPU ports originated the transaction. In addition, other methods known by those skilled in the art may be utilized to indicate the origin of a transaction.


[0036] 5.2.3 L1 Address Repeater Arbiters


[0037] As shown in FIG. 2, the L1 address repeater also includes an arbiter 225. As shown in FIG. 3, the arbiter 225 may include a CPU arbiter 305, an L1-L1 distributed arbiter 310, and a switch module 315.


[0038] 5.2.3.1 CPU Arbiter


[0039] The CPU arbiter 305 receives requests from the plurality of CPU ports 205, 210, and 215, and grants one CPU port the right to broadcast a transaction to the L2 port 220. In one embodiment, the arbitration algorithm is a round robin algorithm between the plurality of CPU ports 205, 210, and 215. However, other arbitration algorithms, such as priority-based algorithms, known by those skilled in the art may also be utilized. In some embodiments, transactions originating from the L2 port 220 are given priority over all transactions originating from the CPU ports 205, 210, and 215.


[0040] As discussed in Section 5.2, in some embodiments of the invention, each of the CPU ports 205, 210, and 215 has an IRQ 405. In such embodiments, if a CPU port requests access to the CPU-L1 bus and the request is not granted, the transaction is inserted in the CPU port's IRQ. If this occurs, the CPU port will continue to request access to the CPU-L1 bus as long as its IRQ is not empty. In some embodiments of the invention, when a CPU port receives a new transaction and the IRQ is not empty, the new transaction is stored in the IRQ in a manner that will preserve the sequence of transactions originating from the CPU's port.


[0041] When a CPU port is granted access to the CPU-L1 bus, the CPU port broadcasts a transaction and optionally, transfers information that identifies the CPU port that originated the transaction to the L2 port. Next, the L2 port receives the transaction and identifying information and stores both the transaction and the identifying information in the ORQ 510. After receiving the transaction, the L2 port then broadcasts the transaction to the L2 address repeater 130 via the L1-L2 bus.


[0042] 5.2.3.2 L1-L1 Distributed Arbiter


[0043] While many methods of arbitration between L1 address repeaters may be utilized, in one embodiment of the invention, a distributed arbitration scheme may be implemented. In this embodiment, there will be no need for explicit arbitration because each L1 address repeater can accurately predict when the L2 address repeater will access the L1-L2 busses.


[0044] In order for an L1 address repeater to accurately predict when the L2 address repeater will access the L1-L2 busses, the L1 address repeater should be made aware of every transaction sent to the L2 address repeater. In some embodiments of the invention, the L1 address repeater should also be made aware of the L1 address repeater that originated each transaction sent to the L2 address repeater.


[0045] One method of making an L1 address repeater aware of such transactions is for each L1 address repeater to communicate directly with other L1 address repeaters. For example, each L1 address repeater could assert a TRAN-OUT signal 135 and 140 every time that the L1 address repeater drives a transaction to an L2 address repeater. Each TRAN-OUT signal 135 and 140 could be coupled to a TRAN-IN port (not shown) in each of the other L1 address repeaters in the computer system. Alternatively, other methods of communicating between L1 address repeaters could be used.


[0046] In the embodiment described above, each L1 address repeater would typically have a TRAN-IN port for each of the other L1 address repeaters in the computer system. In this embodiment, each TRAN-IN port would be associated with a transaction counter. The counter would be incremented each time another L1 address repeater sends a transaction to the L2 address repeater. The counter would be decremented each time the L1 address repeater receives a transaction from the L2 address repeater that originated from the other L1 address repeater. The value in a particular counter would represent the number of transactions in one of the IRQs in the L2 address repeater. The structure of the L2 address repeater ports is described in Section 5.3.1.


[0047] 5.2.3.3 Switch Module


[0048] Referring again to FIG. 3, the L1 address repeater arbiter includes a switch module 315. The switch module 315, which is coupled to both the L1-L1 distributed arbiter 310 and the CPU arbiter 305, controls the generation of the TRAN-OUT, discussed in Section 5.2.3.2, and two other signals.


[0049] The first of these signals, the PRE-REQUEST signal 250, is sent from the switch module 315 to the L2 port and to one or more CPU ports. The PRE-REQUEST signal 250 informs the CPU ports that the L2 port will be sending the CPU ports a transaction in the near future. In some embodiments, a PRE-REQUEST signal is sent to a CPU after the L1 address repeater retrieves a transaction from its ORQ and determines that the transaction did not originate from the CPU. When a CPU port receives the PRE-REQUEST signal 250, if the CPU port has control of the CPU-L1 bus, the CPU completes sending the transaction that the CPU port is currently sending to the L2 port and then the CPU port releases control of the CPU-L1 bus.


[0050] When the L2 port receives the PRE-REQUEST signal 250, the L2 port removes a transaction from the L2 port's ORQ 510 and pre-configures the combination ORQ multiplexer/output demultiplexer 515 so that the transaction can pass directly to the CPU ports, which are coupled to the CPUs that did not originate the transaction. Thus, the latency may be reduced. In one embodiment, the latency may be reduced to a single bus cycle. Finally, the L2 port broadcasts the transaction that was removed from the ORQ 510 to the CPU ports that did not originate the transaction.


[0051] The switch module 315 also controls the generation of an INCOMING signal (not shown). The INCOMING signal is sent from the switch module 315 to a CPU port. In some embodiments, an INCOMING signal is sent to a CPU after the L1 address repeater retrieves a transaction from its ORQ and determines that the transaction originated from the CPU. When the CPU port receives the INCOMING signal, then the CPU retrieves the transaction from its own outgoing request queue. In addition, the CPU port sends a new transaction to the L2 port if the CPU port contains any transactions in its IRQ 405. In some embodiments, the CPU port may send the transaction to the L2 port during the same bus cycle that the L2 port is sending another transaction to one or more other CPU ports. The INCOMING signal is particularly useful in computer systems that utilize bi-directional buses to link a hierarchical arrangement of nodes, such as address repeater nodes.


[0052] 5.2.3.4 Circuitry to Avoid Starvation of CPUs Because a transaction does not need to be retransmitted on the CPU-L1 bus from which it originated, a CPU-L1 bus can be utilized 100% of the time. Thus, CPU 105 can continuously issue transactions to the L1 address repeater 120 and the L1 address repeater 120 can continuously resend those transactions to the other CPUs 110 and 115 that are coupled to the L1 address repeater 120.


[0053] However, if the CPU 105 is allowed to continuously issue transactions to the L1 address repeater 120 and if the transactions from the L1 address repeater 120 are given priority over the transactions from the other CPUs, then the CPUs 110 and 115 will only receive transactions. Such CPUs 110 and 115 will never be able to send transactions to the L1 address repeater 120. Thus, they will be “starved.” Such starvation can decrease the performance of the computer system 100.


[0054] To prevent this starvation, in some embodiments of the invention, a protocol or arbitration mechanism may be provided. For example, one such protocol may prevent a CPU from issuing more than “N” consecutive transactions. Thus, after the CPU issues “N” consecutive transactions, then the CPU refrains from issuing additional transactions for at least one bus cycle. When the CPU refrains from issuing additional transactions, another CPU can begin issuing transactions to the L1 address repeater.


[0055] One method of insuring that CPUs will refrain from issuing greater than “N” consecutive transactions is to utilize circuitry, such as a counter, to track the number of consecutive transactions issued by a CPU. The counter value can be stored in a register within the CPU. If the counter is stored within the CPU, then when the counter value reaches “N,” which can be any positive integer value, such as 3, 5, 8, 16, 32, 64, and 128, then the CPU would refrain from issuing another transaction for at least one bus cycle and the counter would be reset to zero. Alternatively or in addition to, the counter could be stored in the L1 address repeater. In such cases, when the counter value reaches “N,” the L1 address repeater would signal the CPU to refrain from issuing another transaction for at least one bus cycle and the counter would be reset to zero. After the CPU has stopped issuing transactions, the L1 address repeater would no longer resend transactions to the other CPUs. Thus, the other CPUs could begin issuing transactions.


[0056] In some embodiments of the invention, each CPU that is coupled to an L1 address repeater would be “stalled” for a bus cycle after it had issued “N” consecutive transactions to the L1 address repeater. However, in other embodiments of the invention, one CPU may be stalled after “A” cycles and another CPU may be stalled after “M” cycles, where “M” is a positive integer value that is not equal to “N.”


[0057] In other embodiments of the invention, a round-robin arbitration algorithm may be utilized that prohibits the above-described starvation of CPUs.


[0058] Even though the above counter will keep a single CPU from starving the other CPUs, it is possible that two or more CPUs can “collude” to starve another CPU. For example, CPU 105 and CPU 110 may alternate issuing transactions. In that case, neither CPU would issue “N” consecutive transactions. Thus, the above counter would never reach “N.” Nonetheless, CPU 115 would be starved. The above “collusion” problem can be resolved by including a second counter in the L1 address repeater. This second counter would track the number of consecutive transactions that it resends. Thus, if the L1 address repeater 120 resends “K,” a positive integer, such as 3, 5, 8, 16, 32, 64, and 128, consecutive transactions, then the CPUs 105, 110, and 115 would be stalled for at least one bus cycle. Then, the arbiter can insure a fair distribution of bandwidth between the CPUs.


[0059] 5.3 L2 Address Repeater


[0060]
FIG. 6 presents a block diagram of the L2 address repeater 130. The L2 address repeater 130 includes a plurality of L1 ports 605,610, and 615. The L1 ports 605,610, and 615 are further described in Section 5.3.1. In one embodiment, the first L1 port 605 may be coupled to L1 address repeater node 125 and the second L1 port 610 may be coupled to the second L1 address repeater node 155. In addition, the third L1 port 615 may be coupled to an L1 address repeater node that contains I/O devices (not shown). As shown in FIG. 6, an L2-L2 bus 635 couples the L1 ports 605, 610, and 615.


[0061] 5.3.1 L1 Port


[0062]
FIG. 7(a) presents a block diagram of an L1 port. FIG. 7(a) also presents the flow of data received from an L1-L2 bus, through the L1 port, and out to the L2-L2 bus. As shown in FIG. 7(a), the L1 port contains an incoming request queue (IRQ) 705, which is similar to a CPU port's IRQ. If the IRQ port receives a transaction from an L1-L2 bus and if the transaction is not immediately sent to the L2-L2 bus because, for example, another L1 port has control of the L2-L2 bus, then the IRQ 705 stores the transaction.


[0063] The IRQ 705 may be a plurality of registers, such as shift registers or may be a buffer, such as a first-in-first-out buffer, a circular buffer, or a queue buffer. The IRQ 705 may be any width sufficient to store transactions. In one embodiment, the IRQ 705 is 60 bits wide and contains storage for 16 transactions. When the L1 port obtains access to the L2-L2 bus, then the transaction is passed through a combination multiplexer/demultiplexer 710 and out to the L2-L2 bus.


[0064]
FIG. 7(b) presents the flow of data received from the L2-L2 bus, through the L1 port, and passed to the L1-L2 bus. In one embodiment, the L1 port passes the data from the L2-L2 bus through outgoing multiplexer 715 to the L1-L2 bus.


[0065] 5.3.2 L2 Address Repeater Arbiter


[0066] As shown in FIG. 6, the L2 address repeater also includes an arbiter 620. The arbiter 620 receives requests from the plurality of L1 ports 605, 610, and 615, and grants one L1 port the right to broadcast a transaction to the other L1 ports. In one embodiment, the arbitration algorithm is a round robin algorithm between the plurality of L1 ports 605, 610, and 615. However, other arbitration algorithms, such as priority-based algorithms, known by those skilled in the art may also be utilized.


[0067] As discussed in Section 5.3.1, in some embodiments of the invention, each of the L1 ports 605, 610, and 615 has an IRQ 705. In such embodiments, if an L1 port requests access to the L2-L2 bus and the request is not granted, the transaction is inserted in the L1 port's IRQ. If this occurs, the L1 port will continue to request access to the L2-L2 bus as long as its IRQ is not empty. In some embodiments of the invention, when an L1 port receives a new transaction and the IRQ is not empty, the new transaction is stored in the IRQ in a manner that will preserve the sequence of transactions originating from the L1's port.


[0068] 5.3.3 Circuitry to Avoid Starvation of L1 Address Repeaters


[0069] Just as one or more CPUs can starve another CPU, one or more L1 address repeaters can also starve another L1 address repeater. (See Section 5.2.3.4.) For example, because a transaction does not need to be retransmitted on the L1-L2 bus 165 from which it originated, an L1-L2 bus can be utilized 100% of the time. Thus, an L1 address repeater can continuously issue transactions to the L2 address repeater 130 and the L2 address repeater 130 can continuously resend those transactions to the other L1 address repeaters that are coupled to the L2 address repeater 130. If an L1 address repeater is allowed to continuously issue transactions to the L2 address repeater 130 and if the transactions from the L2 address repeater 130 are given priority over the transactions from the other L1 address repeaters, then the other L1 address repeaters will only receive transactions. Such L1 address repeaters will never be able to send transactions to the L2 address repeater 130. Thus, they will be “starved.” Such starvation can decrease the performance of the computer system 100.


[0070] To prevent L1 address repeater starvation, in some embodiments of the invention, a protocol or arbitration mechanism may be provided. One such protocol is similar to the protocol discussed in Section 5.2.3.4.


[0071] After a L1 address repeater issues “P” consecutive transactions to an L2 address repeater, then the L1 address repeater refrains from issuing additional transactions to the L2 address repeater for at least one bus cycle. When the L2 address repeater refrains from resending transactions, another L1 address repeater can begin issuing transactions to the L2 address repeater.


[0072] One method of insuring that L1 address repeater will refrain from issuing greater than “P” consecutive transactions is to utilize circuitry, such as a counter, to track the number of consecutive transactions issued by an L1 address repeater. The counter value can be stored in a register within the L1 address repeater. If the counter is stored within the L1 address repeater, then when the counter value reaches “P,” which can be any positive integer value such as 3, 5, 8, 16, 32, 64, and 128, then the L1 address repeater would refrain from issuing another transaction for at least one bus cycle and the counter would be reset to zero. Alternatively or in addition to, the counter could be stored in the L2 address repeater. In such cases, when the counter value reaches “P,” the L2 address repeater would signal the L1 address repeater to refrain from issuing another transaction for at least one bus cycle and the counter would be reset to zero.


[0073] After the L1 address repeater has stopped issuing transactions, the L2 address repeater would no longer resend transactions to the other L1 address repeaters. Thus, the other L1 address repeaters could begin issuing transactions.


[0074] In some embodiments of the invention, each L1 address repeater that is coupled to an L2 address repeater would be “stalled” for a bus cycle after it had issued “P” consecutive transactions to the L2 address repeater. However, in other embodiments of the invention, one L1 address repeater may be stalled after “P” cycles and another L1 address repeater may be stalled after “Q” cycles, where “Q” is a positive integer value that is not equal to “P.”


[0075] In other embodiments of the invention, a round-robin arbitration algorithm may be utilized that prohibits the above-described starvation of L1 address repeaters.


[0076] Even though the above counter will keep a single L1 address repeater from starving other L1 address repeaters, it is possible that two or more L1 address repeaters can “collude” to starve another L1 address repeater. For example, L1 address repeater 120 and L1 address repeater 145 may alternate issuing transactions. In that case, neither L1 address repeater 120 or 145 would issue “P” consecutive transactions. However, another L1 address repeater (not shown) that is coupled to L2 address repeater 130 could be prevented from issuing transactions to the L2 address repeater. Thus, the above counter would never reach “P.” The above “collusion” problem can be resolved by including a second counter in the L2 address repeater. This second counter would track the number of consecutive transactions that the L2 address repeater resends. Thus, if the L2 address repeater 130 resends “R,” a positive integer such as 3, 5, 8, 16, 32, 64, and 128, consecutive transactions, then the L1 address repeaters coupled to the L2 address repeater 130 would be stalled for at least one bus cycle. Then, the arbiter 620 can insure a fair distribution of bandwidth between the L1 address repeaters.


[0077] 5.4 Performance Optimizations


[0078] 5.4.1 Predicting L2 Address Repeater to L1 Address Repeater Transfers


[0079] Because each L1 address repeater is aware of the number of transactions in each of the IRQs in the L2 address repeater and each L1 address repeater implements the same arbitration scheme as the L2 address repeater, each L1 address repeater can predict all communications between the L1 address repeater and the L2 address repeater. Thus, an L1 address repeater can predict when it will receive a transaction from the L2 address repeater. When an L1 address repeater makes such a prediction, it enters a PREDICT-REQUEST state.


[0080] Upon entering the PREDICT-REQUEST state, the L1 address repeater can command its CPU arbiter to free the CPU buses for the transaction that will be received in the near future. In addition, the L1 address repeater can pre-configure the state of the combination ORQ multiplexer/Output demultiplexer 515 so that the received transaction will be passed to a portion of its CPU ports at the same time that the transaction is being sent to the L1 address repeater from the L2 address repeater. The result is that a transaction can traverse from the L2 address repeater port to a CPU port with minimum latency. In one embodiment, the transaction can traverse from the L2 address repeater port to a CPU port in a single cycle.


[0081] 5.4.2 Predicting Transfers that Originated from a Particular L1 Address Repeater


[0082] As discussed in Section 5.4.1, each L1 address repeater can predict all communications between the L1 address repeaters and the L2 address repeater. Thus, in some embodiments, an L1 address repeater can predict the L1 address repeater that originated a transaction that will next be broadcasted by the L2 address repeater.


[0083] If an L1 address repeater predicts that it originated the transaction that will be broadcast by the L2 address repeater, then the L1 address repeater will enter a state that will be referred to as a PREDICT-INCOMING state. Upon entering such a state, the L1 address repeater can retrieve the transaction from its ORQ instead of from the L2 address repeater. Thus, the L1 address repeater can retrieve the transaction from its ORQ, and broadcast the transaction to the non-originating CPU ports via the CPU-L1 buses.


[0084] As a result of the fact that the L1 address repeater is able to obtain the transaction from its ORQ, the L2 address repeater need not broadcast a transaction to an L1 address repeater that originated the transaction. The L2 address repeater need only broadcast the transaction to the L1 address repeaters that were not the originator of the transaction. Because the L2 address repeater does not need to utilize the L1 bus coupling the L2 address repeater to the L1 address repeater that originated a first transaction, the L1 address repeater may utilize the L1-L2 bus to send a second transaction up to the L2 address repeater at the same time that the L2 address repeater is sending the first transaction to the other L1 address repeaters.


[0085] In still another embodiment of the invention, the L1 address repeater will utilize information stored in the ORQ to identify the CPU that originated the transaction. In this embodiment, the L1 address repeater will only broadcast the transaction to the CPUs that did not originate the transaction. As the CPU-L1 bus that is coupled to the originating CPU is not being utilized during the bus cycle in which the other CPUs are receiving the transaction, the originating CPU port can send a second transaction to L1 address repeater's L2 port during this cycle.


[0086] 5.5 Communications


[0087]
FIG. 8 presents a computer system 800, which is a simplified version of computer system 100. The timing diagram 900 shown in FIG. 9 illustrates one method of operating the computer system 800. Each column of timing diagram 900 corresponds to a particular bus cycle. In cycle 0, the CPU 805 requests access to the CPU bus 870. In cycle 2, the CPU 805 determines that it has been granted access to the CPU bus 870. Next, in cycle 3, the CPU 805 drives transaction A onto the CPU bus 870. In cycle 4, the L1 address repeater 820 receives the transaction and arbitrates for control of the L1-L2 bus 860. If the computer system 800 is idle, and no arbitration is needed, then transaction A will be driven to L2 address repeater 830 in cycle 5.


[0088] During cycle 5, L1 address repeater 820 also drives TRAN-OUT 835. L1 address repeater 845 receives this signal in cycle 6. Because the L1 address repeater 820, the L1 address repeater 845 and the L2 address repeater 830 all are aware that the L2 address repeater 830 will broadcast transaction A in the near future, the L1 address repeater 820 will enter the PREDICT-INCOMING state and the L1 address repeater 855 will enter the PREDICT-REQUEST state. In cycle 7, L2 address repeater 830 broadcasts transaction A to the L1-L2 bus 865. In cycle 8, transaction A traverses the L1 address repeater 845. Transaction A is also retrieved from the ORQ in the L1 address repeater 820.


[0089] In cycle 9, transaction A is broadcast on all the CPU buses 880 and 890 except the CPU bus 870. Transaction A is not broadcast on CPU bus 870 because the CPU coupled to the CPU bus 870, CPU 805, originated Transaction A. Instead, the CPU 805 retrieves Transaction A from its ORQ. Thus, in cycle 10, all the CPUs 805, 815 and 885 have received transaction A.


[0090]
FIG. 9 indicates that the CPU-L1 bus 870 is not being utilized in cycle 9. Element 910 indicates the unutilized bus cycle. If the CPU 805 was prepared to send transaction B to the L1 address repeater 820 on the CPU bus 870 during cycle 9, then the CPU may do so. This performance optimization insures maximum utilization of bus bandwidth.


[0091] 5.6 Conclusion


[0092] The foregoing descriptions of embodiments of the present invention have been presented for purposes of illustration and description only. They are not intended to be exhaustive or to limit the present invention to the forms disclosed. Accordingly, many modifications and variations will be apparent to practitioners skilled in the art.


[0093] For example, it is contemplated to have additional L1 address repeater nodes, and more than one L2 address repeater. By increasing the number of such components, redundant components, such as a L2 address repeater, may be “swapped out” while allowing the computer system to continue to run.


[0094] In addition, while the above description and Figures discuss CPUs and CPU ports, the invention is not so limited. Any client device, such as but not limited to, memory controllers, I/O bridges, DSPs, graphics controllers, repeaters, such as address or data repeaters, and combinations and networks of the above client devices could replace the above described CPUs. Similarly, any port interfacing any of the above client devices could replace the described CPU ports and be within the scope of the present invention. Further, while the above description and Figures discuss address repeaters, the invention is not so limited. Any repeater, such as data repeaters could replace the described address repeaters and be within the scope of the present invention.


[0095] The above disclosure is not intended to limit the present invention. The scope of the present invention is defined by the appended claims.


Claims
  • 1. A computer system comprising: a) a first repeater; b) a second repeater coupled to the first repeater, the second repeater containing circuitry that causes the second repeater to cease issuing transactions to the first repeater for at least one bus cycle if the second repeater has issued “P,” a positive integer, consecutive transactions to the first repeater; and c) a third repeater coupled to the first repeater; wherein the first repeater contains an arbiter that gives priority to transactions being sent from the first repeater to the third repeater over transactions being sent from the third repeater to the first repeater.
  • 2. The computer system of claim 1 wherein the circuitry includes (i) a counter for storing the number of consecutive transactions that the second repeater has issued to the first repeater and (ii) circuitry that causes the second repeater to cease issuing transactions to the first repeater for at least one bus cycle if the counter reaches “P.”
  • 3. The computer system of claim 1 wherein the circuitry includes (i) a counter that stores the number of consecutive transactions that the second repeater has issued to the first repeater, (ii) circuitry that causes the second repeater to cease issuing transactions to the first repeater for at least one bus cycle if the counter reaches “P” and (iii) circuitry that resets the counter to zero.
  • 4. The computer system of claim 1, wherein the first repeater is an address repeater.
  • 5. A computer system comprising: a) a first repeater; b) a second repeater coupled to the first repeater; and c) a third repeater coupled to the first repeater; wherein the first repeater contains (i) an arbiter that gives priority to transactions being sent from the first repeater to the third repeater over transactions being sent from the third repeater to the first repeater and (ii) circuitry that signals the second repeater to cease issuing transactions to the first repeater for at least one bus cycle if the second repeater has issued “P,” a positive integer, consecutive transactions to the first repeater.
  • 6. The computer system of claim 5 wherein the circuitry includes (a) a counter for storing the number of consecutive transactions that the second repeater has issued to the first repeater and (b) circuitry that signals the second repeater to cease issuing transactions to the first repeater for at least one bus cycle if the counter reaches “P,” a positive integer.
  • 7. The computer system of claim 5 wherein the circuitry includes (a) a counter for storing the number of consecutive transactions that the second repeater has issued to the first repeater, (b) circuitry that signals the second repeater to cease issuing transactions to the first repeater for at least one bus cycle if the counter reaches “P,” a positive integer and (c) circuitry that resets the counter to zero.
  • 8. The computer system of claim 5, wherein the first repeater is an address repeater.
  • 9. The computer system of claim 5, wherein the arbiter is a distributed arbiter that predicts whether the first repeater will send a transaction to the second repeater.
  • 10. A computer system comprising: a) a repeater; b) a first client coupled to the repeater, the first client containing circuitry that causes the first client to cease issuing transactions to the repeater for at least one bus cycle if the first client has issued “N,” a positive integer, consecutive transactions to the repeater; and c) a second client coupled to the repeater; wherein the repeater contains an arbiter that gives priority to transactions being sent from the repeater to the second client over transactions being sent from the second client to the repeater.
  • 11. The computer system of claim 10 wherein the circuitry includes (i) a counter for storing the number of consecutive transactions that the first client has issued to the repeater and (ii) circuitry that causes the first client to cease issuing transactions to the repeater for at least one bus cycle if the counter reaches “N.”
  • 12. The computer system of claim 10 wherein the circuitry includes (i) a counter for storing the number of consecutive transactions that the first client has issued to the repeater, (ii) circuitry that causes the first client to cease issuing transactions to the repeater for at least one bus cycle if the counter reaches “N” and (iii) circuitry that resets the counter to zero.
  • 13. The computer system of claim 10, wherein the repeater is an address repeater.
  • 14. The computer system of claim 10, wherein the first client includes a central processing unit.
  • 15. The computer system of claim 10, wherein the arbiter is a distributed arbiter that predicts whether the repeater will send a transaction to a second repeater that is coupled to the repeater.
  • 16. A computer system comprising: a) a repeater; b) a first client coupled to the repeater; and c) a second client coupled to the repeater; wherein the repeater contains (i) an arbiter that gives priority to transactions being sent from the repeater to the second client over transactions being sent from the second client to the repeater and (ii) circuitry that signals the first client to cease issuing transactions to the repeater for at least one bus cycle if the first client has issued “N,” a positive integer, consecutive transactions to the repeater.
  • 17. The computer system of claim 16 wherein the circuitry includes (a) a counter for storing the number of consecutive transactions that the first client has issued to the repeater and (b) circuitry that signals the first client to cease issuing transactions to the repeater for at least one bus cycle if the counter reaches “N.”
  • 18. The computer system of claim 16 wherein the circuitry includes (a) a counter for storing the number of consecutive transactions that the first client has issued to the repeater, (b) circuitry that causes the first client to cease issuing transactions to the repeater for at least one bus cycle if the counter reaches “N” and (c) circuitry that resets the counter to zero.
  • 19. The computer system of claim 16, wherein the repeater is an address repeater.
  • 20. The computer system of claim 16, wherein the first client includes a central processing unit.
  • 21. A computer system comprising: a) a first repeater; b) a second repeater coupled to the first repeater, the second repeater containing a counter for storing the number of consecutive transactions that the second repeater has issued to the first repeater; and c) a third repeater coupled to the first repeater; wherein the first repeater contains an arbiter that gives priority to transactions being sent from the first repeater to the third repeater over transactions being sent from the third repeater to the first repeater.
  • 22. A computer system comprising: a) a first repeater; b) a second repeater coupled to the first repeater; and c) a third repeater coupled to the first repeater; wherein the first repeater contains (i) an arbiter that gives priority to transactions being sent from the first repeater to the third repeater over transactions being sent from the third repeater to the first repeater and (ii) a counter for storing the number of consecutive transactions that the second repeater has issued to the first repeater.
  • 23. A computer system comprising: a) a repeater; b) a first client coupled to the repeater, the first client containing a counter for storing the number of consecutive transactions that the first client has issued to the repeater; and c) a second client coupled to the repeater; wherein the repeater contains an arbiter that gives priority to transactions being sent from the repeater to the second client over transactions being sent from the second client to the repeater.
  • 24. A computer system comprising: a) a repeater; b) a first client coupled to the repeater; and c) a second client coupled to the repeater; wherein the repeater contains (i) an arbiter that gives priority to transactions being sent from the repeater to the second client over transactions being sent from the second client to the repeater and (ii) a counter for storing the number of consecutive transactions that the first client has issued to the repeater.
Parent Case Info

[0001] This patent application is a continuation-in-part application of U.S. patent application Ser. No. 09/815,432 entitled “Method and Apparatus For Efficiently Broadcasting Transactions between an Address Repeater and a Client” filed on Mar. 19, 2001. [0002] This patent application discloses subject matter that is related to the subject matter disclosed in U.S. patent application Ser. Nos. 09/815,442 entitled “Method and Apparatus for Efficiently Broadcasting Transactions between a First Address Repeater and a Second Address Repeater,” and 09/815,443 entitled “Method and Apparatus for Verifying Consistency between a First Address Repeater and a Second Address Repeater,” filed on Mar. 19, 2001. Each of the above Patent Applications is hereby incorporated by reference.

Continuation in Parts (1)
Number Date Country
Parent 09815432 Mar 2001 US
Child 09947852 Sep 2001 US