Arbitration logic for multiple bus computer system

Abstract: An arbitration mechanism 42 is provided for use in a computer system 10 which comprises (i) a central processing unit (CPU) 24; (ii) a first system bus 36 which connects the CPU 24 to system memory 32 so that the CPU 24 can read data from, and write data to, the system memory 32; (iii) a second system bus 16 connected to the CPU 24; (iv) a host bridge 20 connecting the second-system bus 16 to a peripheral bus 22, the peripheral bus 22 having at least one peripheral device 18 attached thereto; and (v) an input/output (I/O) bridge 78 connecting the peripheral bus 22 to a standard I/O bus 92, the standard I/O bus 92 having a plurality of standard I/O devices 90 attached thereto. The arbitration mechanism 42 comprises (i) a first level 100 of logic for arbitrating between the plurality of standard I/O devices 90, wherein one standard I/O device 90 is selected from a plurality of the standard I/O devices 90 competing for access to the standard I/O bus 97, and (ii) a second level 102, 104 of logic for arbitrating between the selected standard I/O device 90, the CPU 24 and the at least one peripheral device 18, wherein one of the selected standard I/O device 90, the CPU 24 and the at least one peripheral device 18 is selected to access the peripheral bus 22. The arbitration mechanism 42 includes sideband signals which connect the first 100 and second levels 102, 104 of arbitration logic and include arbitration identification information corresponding to the selected standard I/O device 90.

Description: Field of the Invention The present invention relates generally to arbitration mechanisms in computer systems, and more particularly to arbitration logic for computer systems comprising a plurality of buses interconnected by bus bridges. Background Art Computer systems typically include more than one bus, each bus in the system having devices attached thereto which communicate locally with each other over the bus. System-wide communication over different buses is required, however, if a device attached to one bus needs to read or write information to or from a device on another bus. To permit system-wide communication between devices on different buses, bus-to-bus bridges (interfaces) are provided to match the communications protocol of one bus with that of another. Known bus-to-bus bridges include those disclosed in the following co-pending patent applications assigned to the IBM Corporation: European Patent Application Nos. 550224, 553563, 550241 and 550223. These applications describe mechanisms which permit system-wide communication of devices attached to different buses in the system. Each bus-to-bus bridge in a multiple-bus computer system is used to connect two buses in the system. Various types of buses are available to construct a given computer system. Standard I/O buses include, for example, ISA or MICRO CHANNEL ("MC-A") buses, are often used to connect existing peripheral I/O devices to a system built around a more centralized, high performance bus. One such high performance bus which is becoming widely accepted is the PCI (Peripheral Component Interconnect) bus, which is capable of performing significant data transfer in a relatively short period of time. The PCI bus permits up to 120 megabytes of usable data per second throughput, 132 megabytes/second peak at 33 MHz with a 32-bit data path. The PCI bus achieves this high level of performance, in part, because it may be directly linked to other high speed buses, such as system buses to which a CPU may be connected, and thus may provide for rapid transfer of data between devices attached to the PCI bus and devices attached to the system bus. In fact, the operation of several high integration devices, such as certain graphics package controllers, require a direct link to a system bus through a high performance bus such as the PCI bus. In addition, the PCI bus architecture does not require any "glue logic" to operate peripheral devices connected to it. Glue logic for other buses typically consists of miscellaneous hardware components such as decoders, buffers or latches that are installed intermediate the peripheral devices and the bus. The primary PCI bus operates on a synchronous clock signal of 33 MHz, and the strings of data transmitted over the PCI bus are 32 bits long. A 32-bit data string on the PCI bus is called a double word (DWORD), which is divided into 4 bytes each comprised of 8 bits of data. The address and data information carried by the PCI bus are multiplexed over the same 32-bit bus. Multiplexing eliminates the need for separate address and data lines, which in turn, reduces the amount of signals required in a PCI bus environment as opposed to other bus architectures. The number of signals required in PCI bus architecture is between 45-47 while non-multiplexed buses typically require twice this number. Accordingly, because the number of signals are reduced, the number of connection pins required to support a device linked to the PCI bus is also reduced by a corresponding number. PCI architecture is thus particularly adapted for highly integrated desktop computer systems. A more detailed description of the structure and operation of PCI bus architecture is provided in "Peripheral Component Interconnect (PCI) Revision 2.0 Specification", published April 30, 1993; "Preliminary PCI System Design Guide", revision 0.6, published November 1, 1992, and "Peripheral Component Interconnect (PCI) Add-in Board/Connector Addendum", (Draft) published 6 November, 1992; all by the PCI Special Interest Group. Interfacing the PCI bus to standard I/O buses in a computer system is problematic, however, if the communications protocols between the PCI bus and the standard I/O bus are different. For example, system wide arbitration between I/O devices attached to the standard I/O bus and PCI devices attached to the PCI bus is not possible unless communications protocols over the two buses are matched. Currently, mismatched protocols between the PCI bus operations and those supported by standard I/O bus prevents such system-wide arbitration. European Patent Application 0 518 504 discloses a personal computer system in which a bus interface controller connected directly to a local processor bus and an input/output bus provides communication between the two buses. The bus interface controller arbitrates between the various master devices connected to the local processor bus for access to the local processor bus and between the various input/output devices connected to the input/output bus for access to the input/output bus. European Patent Application 0 348 654 discloses a computer system in which an input output interface controller contains arbiter logic circuitry which receives requests for access to a storage bus and an adapter bus from instruction and data caches and from I/O controllers. Thus, it is an object of the present invention to provide a system-wide arbitration mechanism which may be used in a computer system which includes a high performance bus (such as a PCI bus) and also which has the ability to electively add an expansion bridge for supporting a standard I/O bus. It is a further object of the invention to permit such an arbitration mechanism to operate within the system whether or not the system includes the expansion bridge. Disclosure of the Invention The invention is set forth in claim 1 with particular embodiments recited in claims 2 to 12. The present invention provides arbitration logic for a multiple bus computer environment. The logic is adapted to perform system-wide arbitration whether or not an expansion bridge (such as in ISA bridge or a MICRO CHANNEL ("MC-A") bridge) is used in the multi-bus environment. In either case, the logic is implemented in a system arbitration control point (SACP) which comprises a bank arbitration control point (BACP), and a pair of bank arbiters (a PCI arbitration control point (PACP) and a direct-attached arbitration control point (DACP)). The BACP arbitrates between requests presented by the PACP and the DACP for control of the primary PCI bus. In embodiments of the invention wherein no expansion bridge is present in the system, the PACP manages primary PCI bus access requests presented by a CPU and primary PCI devices attached to the PCI bus. The PCI devices present their requests for and receive grants to access the PCI bus over request/grant input/output lines to the PACP. The request/grant lines are direct connections between the primary PCI devices and the PACP. The DACP handles primary PCI bus requests presented by an integrated I/O controller directly attached to the DACP and arbitrating on behalf of the peripheral I/O devices which it controls. In a second embodiment of the invention which includes an expansion bridge in the system, there is no direct connection between the primary PCI devices and the PACP. Instead, a secondary arbitration control point PACP2, located physically within the standard bus bridge, receives the primary PCI device bus access requests. PACP2 arbitrates between the attached primary PCI devices and presents a single bus access request to the primary PACP on a single request line. The PACP then arbitrates between the CPU and the highest priority PCI device selected by the PACP2, and presents a bus request to the BACP on behalf of the highest priority device. A central arbitration control point (CACP), physically located on the expansion bridge, manages the arbitration of the I/O devices attached to the standard bus supported by the expansion bridge. The CACP selects the highest priority I/O device and presents a single request on behalf of this device to the DACP. The DACP arbitrates between peripheral I/O devices controlled by the integrated I/O controller and the selected standard bus I/O device, and presents a single bus request to the BACP on behalf of the highest priority device. The BACP then arbitrates between the requests presented by the PACP and the DACP for control of the primary PCI bus. Because no direct connections exist between the primary PCI devices and the PACP in this second embodiment, the pins which were previously used as PCI request grant signals can now be used for communication between the primary PACP and the secondary PACP2. These pin connections are redefined as arbitration identification signals, which are used to support distributed arbitration between the primary PACP and DACP, and the secondary PACP2 and CACP located on the expansion bus. The arbitration identification lines directly connect between the expansion bridge and the SACP, and include information which identifies (i) the standard I/O device supported by the expansion bridge which is presenting a PCI bus access request via the CACP and (ii) the primary PCI device which is presenting a PCI bus access request via the PACP2. By providing this identification information, the PACP and the DACP may more fairly arbitrate between, respectively, (i) the primary PCI devices and the CPU and (ii) the I/O devices supported by the expansion bridge and the direct-attached peripheral I/O devices. Brief Description of the Drawings The invention will now be described, by way of example only, with reference to the accompanying drawings, in which: Figures 1A through 1C, taken together, is a block diagram of an information handling system constructed according to the principles of the present invention; Figures 2A through 2C, taken together, is a block diagram of one embodiment of the system arbitration control point shown in the system of Figure 1; Figures 3A through 3D, taken together, is a block diagram of another embodiment of the system arbitration control point shown in the system of Figure 1; Figure 4 is a table showing alternate definitions of input/output pin connections into and out of the system arbitration control point which correspond to the embodiments shown in Figures 2 and 3; and Figure 5 is a table showing multiplexed arbitration identification signals. Detailed Description of the Invention Referring now to Figure 1, a multi-bus information handling system 10 is shown generally at 10, comprising, (i) a processor, cache and memory complex 12 connected to S-bus (system bus) devices 14 via an S-bus 16 and (ii) primary PCI devices 18 attached to one of the S-bus devices, a primary PCI host bridge 20, via a primary PCI bus 22. More detailed descriptions of the processor, cache and memory complex 12, the S-bus devices 14, the primary PCI devices 18, and the other elements shown in Figure 1 will be provided hereinafter. The processor, cache and memory complex 12 comprises a central processing unit (CPU) 24, a self-test circuit 26, a dual bus memory controller 28, a CPU cache 30, and base system memory 32. The CPU 24 in the preferred embodiment is a 32-bit microprocessor available from Intel, Inc. under the trade designation i486™, although it is contemplated that the system 10 may be implemented using other types of CPUs, especially other x86-type microprocessors. The self-test circuit 26 provides a built-in-self-test (BIST) feature for the CPU 24 upon power-up. The self-test circuit also controls any self-test features which may be incorporated within each of the S-bus devices 14. The CPU 24 is connected to the self-test circuit 26 and the memory controller 28 by a CPU local bus 34. The memory controller 28 is connected to the base system memory 32 by means of a base system memory bus 36. The memory controller 28 controls read and write operations to base system memory 32 over the base system memory bus 36, which operations are initiated by either the CPU 24 over the CPU local bus 34, or by an S-bus device 14 over the S-bus 16. Because the memory controller has the capability to manage operations on two buses, operations over the base system memory bus 36 and the CPU local bus 34 may be managed simultaneously. The CPU local bus 34, the base system memory bus 36, and the S-bus are 32-bit buses, each of which buses comprises data, address and control information paths ("D", "A", and "C" in Figure 1) as is typical of such buses. Base system memory 32 provides system-wide storage capability and may comprise either non-interleaved or interleaved memory cards. The CPU cache 30 permits short term storage of information contained within either base system memory 32 or expansion memory located elsewhere within the system 10. Such expansion memory could, for example, be located on the peripherally attached I/O devices within the system. The CPU cache 30 incorporates random access memory (RAM, not shown) which is used to temporarily stores address locations of the base system memory 32 which are frequently accessed by the CPU 24. The CPU 24 accesses information stored in the CPU cache 30 directly, whereas access to information stored in the base system memory 32 must be handled by the memory controller 28. All access to base system memory 32 is controlled by the memory controller 28 via base system memory bus 36. The memory controller initiates system memory cycles to the base system memory 32, during which cycles either the CPU 24 or one of the S-bus devices 14 has access to the base system memory via the memory controller 28. During a CPU or local bus-initiated memory cycle, the memory controller does not pass information onto the S-bus. However, if the memory controller determines that the CPU (local bus) operation it is managing is an I/O cycle, the memory controller propagates the information onto the S-bus 16 for access thereto by an S-bus device 14. If the I/O cycle is destined for a S-bus device, the appropriate S-bus device responds with a decode command to the memory controller. If the I/O operation is destined for a primary PCI device 18, the PCI host bridge 20 responds with a decode command to the memory controller and passes the I/O cycle to the appropriate primary PCI device. A system clock module 38 provides a single clock signal for the S-bus devices 14, and a pair of clock signals for the CPU 24. In the preferred embodiment, the clock signal provided to the S-bus operates at 33 MHz. The two signals provided to the CPU 24 operate at 33 MHz and 66 MHz, respectively. The CPU 24 requires two clock signals because it operates internally at 66 MHz, but communicates over the CPU local bus 34 at 33 MHz. Communications between the processor, cache and memory complex 12 and the S-bus devices are managed by the memory controller 28 over the 32-bit S-bus 16. Also attached to the S-bus, as shown in the preferred embodiment of Figure 1, are a direct memory access (DMA) controller 40, a system arbitration control point (SACP) 42, an input/output (I/O) controller 44, a PCMCIA controller 46, and a power management controller 48. An optional power management micro-controller 50 may be attached to the power management controller 48 in case more sophisticated power management control is desired. A buffer 52 is provided on the S-bus 16 intermediate the DMA controller 40 and the I/O controller 44. As shown in Figure 1, however, it is contemplated that other S-bus devices 14, beyond those shown, may be attached to the S-bus 16. The PCMCIA controller 46 is attached directly to PCMCIA card slots 54. Peripheral I/O devices 56 may be connected to the PCMCIA card slots 54 by means of buffers 58. An address latch 57 is provided intermediate the buffer 58 and the peripheral I/O devices 56. The peripheral I/O devices 56 are controlled by the I/O controller 44. Attached to the I/O controller are a time-of-day clock 60 and a RAM module 62. The I/O controller 44 supports a variety of ports, including a mouse port 64, serial ports 66, a parallel port 68, and a keyboard port 70. In addition to supporting S-bus devices 14 on the S-bus 16, the system 10 also supports a second high speed, high bandwidth bus, which in the preferred embodiment is the primary PCI bus 22. Primary PCI devices 18 in the system 10 communicate with each other over the primary PCI bus 22. Primary PCI devices communicate with the CPU, cache and memory complex 12 and with other S-bus devices 14 residing on the S-bus 16 by means of the PCI host bridge 20, which is itself an S-bus device residing on the S-bus. The PCI host bridge 20, then, serves as an interface between the S-bus 16 and the primary PCI bus 22 and provides an effective means of communication between these two buses, and any peripheral devices which may be attached to these buses. The PCI host bridge 20 provides a low latency interconnect mechanism through which the CPU 24 or other S-bus device 14 may directly access the primary PCI devices 18 or devices attached thereto. The bridge 20 also provides a high performance path which allows the primary PCI devices or devices attached thereto quick and direct access to base system memory 32. In addition, the host bridge 20 provides all of the hardware required to provide an interface between the S-bus 16 and the primary PCI bus 22 so that data may be transferred between these buses. The primary PCI bus 22 is capable of supporting a variety of devices which are PCI compatible. As shown in Figure 1, these devices may include a graphics controller 72, a serial SCSI (small computer systems interface) controller 74, a future PCMCIA controller 76, a standard I/O bus (e.g., ISA or MICRO CHANNEL ("MC-A")) bridge 78 (also referred to herein as an expansion bridge), and a PCI secondary bridge 80. The devices shown in Figure 1 attached to the primary PCI bus, however, are only one example of a system implementing a PCI bus architecture and thus the disclosed exemplary configuration and is not intended to limit the invention in any way. The graphics controller 72 is typically provided with memory capability in the form of VRAM 82, which enables the graphics controller to buffer video frames therein, and may control any known graphics package which may be supported by PCI bus architecture. The SCSI controller 74 serves as an interface between SCSI devices 84 attached to a SCSI bus 86 and the primary PCI bus 22, and may control any SCSI device which may be supported by PCI bus architecture. The future PCMCIA controller 76 is attached to and controls card slots 88. The standard bus bridge 78 serves as an interface between I/O devices 90 attached to a standard (e.g., MC-A or ISA) bus 92 and the primary PCI bus 22. Secondary PCI devices 94 are connected to PCI secondary bridge 80 via secondary PCI bus 96. Any number of unidentified secondary PCI devices 94 may then be connected to the secondary PCI bus 96. The PCI secondary bridge 80 serves as an interface between the secondary PCI devices 94 attached to the secondary PCI bus 96, and the primary PCI bus 22. The DMA controller 40, the PCI host bridge 20, and the I/O controller 44 control the exchange of information between base system memory 32 and expansion memory on the peripheral I/O devices 56 or on the standard I/O devices 90. The DMA controller 40 also provides three functions on behalf of the CPU, cache and memory complex 12. First, the DMA controller 48 utilizes a small computer subsystem control block (SCB) architecture to configure DMA channels, thus avoiding the necessity of using programmed I/O to configure the DMA channels. Second, the DMA controller provides a buffering function to optimize transfers between slow I/O expansion devices and the typically faster base system memory 32. Third, the DMA controller provides an eight channel, 32-bit, direct base system memory access function. When providing the direct base system memory access function, the DMA controller 40 may function in either of two modes. In a first mode of operation, the DMA controller functions in a programmed I/O mode in which the DMA controller is functionally a slave to the CPU 24. In a second mode of operation, the DMA controller itself functions a master on the S-bus. The DMA controller 40 always functions as a third party bus master. It is never a source or destination of data, but it does provide a means for transferring data between a source entity and a destination entity. Although shown residing on the S-bus in Figure 1, the DMA controller need not reside on the S-bus. The DMA controller typically manages data transactions from memory to an I/O device, from an I/O device to memory, from memory to memory. The memory may be either base system memory 32 or peripheral memory on the peripheral I/O devices 56 or on the standard I/O devices 90. The standard I/O devices 90 residing on the standard (e.g., ISA or MC-A) bus 92 may be 8-bit type devices, 16-bit type devices, or 32-bit type devices. The design of the PCI host bridge 20 and the system arbitration control point (SACP) 42 according to the present invention permits simultaneous arbitration on a system-wide basis of (i) the CPU 24, (ii) primary PCI devices 18 residing on the primary PCI bus 22, (iii) standard I/O devices 90 residing on the standard I/O bus 92, and (iv) peripheral I/O devices 56 controlled by the I/O controller 44. The SACP 42 functions as the primary arbiter for the standard I/O devices 90, the CPU 24, the primary PCI devices 18, and the peripheral I/O devices 56. Block diagrams of implementations of the SACP 42 are shown in Figures 2 and 3. Figure 2 is a block diagram of an embodiment of the system arbitration control point used when the system shown in Figure 1 does not include a standard bus bridge 78 attached to the primary PCI bus 22. Figure 3 is a block diagram of a second embodiment of the system arbitration control point used when the system shown in Figure 1 includes a standard bus bridge 78 attached to the primary PCI bus 22. Referring first to Figure 2, the SACP 42 implementation used when no standard bus bridge 78 is present comprises a bank arbitration control point (BACP) 100, a PCI arbitration control point (PACP) 102, and a direct-attached arbitration control point (DACP) 104. The BACP 100 arbitrates between requests by the PACP 102 and the DACP 104 for control of the primary PCI bus 22. The PACP 102 manages primary PCI bus access requests presented to it by the CPU 24 and the primary PCI devices 18 (collectively "BANKO requests"). The DACP 104 handles primary PCI bus requests presented to it by the I/O controller 44 on behalf of the peripheral I/O devices 56 which it controls. As will be explained later with reference to Figure 3, the DACP 104 also manages primary PCI bus access requests presented by the standard bus bridge 78 on behalf of standard I/O devices 90 attached thereto, in systems including a standard bus bridge 78 attached to the primary PCI bus 22. The primary PCI bus requests presented by the standard bus bridge 78 and the I/O controller 44 and the DMA controller 40 are collectively referred to herein as "BANK1 requests". The BACP 100, in addition to managing primary PCI bus access requests presented by the PACP 102 and the DACP 104, is adapted to handle primary PCI bus requests by the PCI secondary bridge 80 on behalf of secondary PCI devices attached thereto (collectively "BANK2 requests"). Further expansion to include bank arbiters other than those shown in Figures 2 and 3 (the PACP 102, the DACP 104 and the PCI secondary bridge 80) is contemplated by the present invention. If other secondary PCI bridges are included in the system in a multi-tier structure attached to the PCI bus 22, these other secondary PCI bridges will themselves perform arbitration among attached devices and present a "BANKN" request to the BACP 100. The hierarchical architecture described above provides an arbitration scheme for the system 10 wherein (i) arbitration between the CPU and primary PCI devices is managed independently of (ii) arbitration between peripheral I/O devices controlled by the I/O controller and standard I/O devices attached to the standard bus bridge 78 (when present). The PACP 102 receives requests for access to the PCI bus 22 directly from up to five PCI devices 18 and the CPU 24 via five pins on the PACP 102. The five PCI devices present their requests using five request/grant pairs on the PACP; REQ0# through REQ4# (as used herein, the symbol "#" is used to denote negative active signals). The PCI devices are granted access to the primary PCI bus 22 via grant lines GNT0# through GNT4#. The request lines and grant lines are direct connections between the primary PCI devices 18 and the PACP 102. Although the CPU 24 accesses base system memory via the memory controller 28, if the CPU requires access to the primary PCI bus 22, it must compete with like requests made by the primary PCI devices 18. Once the CPU 24 gains control of the S-bus 16, the primary host bridge will provide a bus master interface between the primary PCI bus and the S-bus, and will present the CPU 24 as a PCI master. Although the PCI host bridge performs no arbitration, it does perform protocol conversion, buffering, and speed matching between the S-bus and the PCI bus. In the embodiment of the present invention shown in Figure 1, the dual bus memory controller 28 connects directly to the PACP 102 on behalf of the CPU 24. The primary PCI bus access request for the CPU 24 is presented to the PACP 102 on the request line BREQ which is used as a preempt signal (typical of i486-type processors) to the PACP. The dual bus memory controller 28 uses a hold/hold acknowledge protocol via dedicated lines HOLD and HLDA between the dual bus memory controller 28 and the PACP 102. In embodiments of the system wherein the CPU is not of the i486 architecture, the PACP-CPU interface is unknown and thus the PACP must also support a PCI request/grant handshake (CPUREQ# and CPUGNT#) in addition to the i486 BREQ/HOLD/HLDA. Accordingly, both the dual bus memory controller 28 on behalf of the CPU 24 and the PCI devices each have direct connections for arbitration request and grant signals to and from the PACP 102. The pending requests between the primary PCI devices 18 and the dual bus memory controller 28 may be handled by the PACP 102 in two different manners. The PACP 102 can handle a plurality of arbitration algorithms. This is accomplished by providing a programmable ARBID and fairness bit per PACP REQ/GNT. By a round robin procedure, the PACP services the pending requests in sequential order. A second approach is to manage the requests in a fixed priority. This second approach is possible if an arbitration priority is assigned to each of the primary PCI devices 18 and the CPU 24. Specifically, the CPU request line BREQ/CPUREQ# and the primary PCI device request lines REQ0#-REQ4# have programmable priority levels. The priority levels may be determined based on the bandwidths of the PCI devices involved. For example, a PCI device possessing a high bandwidth and low buffering capability should be assigned a higher arbitration priority than devices having smaller bandwidths and/or higher buffering capability. Regardless of the approach taken, the PACP 102 arbitrates among the PCI devices and the CPU requests, determines which of the PCI devices or the CPU has priority, and presents a single device request to the BACP on BANK0_REQ# line, along with the requests presented by the other bank arbiters (BANK1_REQ#, BANK2_REQ#, etc.). Access to the primary PCI bus 22 is granted to the selected device via grant lines output by the BACP (BANK0_GNT#, BANK1_GNT#, BANK2_GNT#, etc.) The operation of the first bank arbiter, PACP 102 (BANK0), has been described above. A description of the operation of the second bank arbiter, DACP 104 (BANK1), follows. The DACP 104 is responsible for arbitrating between peripheral I/O devices 56 controlled by the I/O controller 44 (in embodiments of the system wherein no standard bus bridge 78 is used) or between peripheral I/O devices 56 and standard I/O devices 90 attached to the standard bus bridge 78 when one is included in the system. The peripheral I/O devices 56 and the peripheral I/O devices 90 may be compatible with either MICROCHANNEL (MC-A) or ISA architecture. As shown in Figures 2 and 3, the control signals to which the DACP 104 responds correspond to MC-A architecture. Although the DACP may be implemented to respond to ISA-type control signals, MC-A arbitration provides a more powerful and flexible means of arbitration. With continued reference to Figure 2 (no standard bus bridge 78 present), the DACP 104 receives primary PCI bus access requests from the I/O controller 44 on behalf of the peripheral I/O devices 56 at a portion of the DACP designated direct-attached MC-A device support 106. These requests are made over the DPREEMPTIN# line. The direct-attached MC-A device support portion 106 of the DACP 104 alternates between arbitration and grant cycles in performing arbitration between peripheral I/O devices 56 competing for access to the primary PCI bus 22. The status of the DARBGNT# line indicates whether the direct-attached MC-A device support portion 106 is in an arbitration or a grant cycle. Bus access requests are managed over the DPREEMPTOUT# line. The DPREEMPTOUT# output and DPREEMPTIN# input conform to MC-A protocol. However, unlike MC-A protocol, which requires a minimum of 200 nanoseconds, the DACP utilizes a fast serial arbiter which allows direct attached device arbitration cycles to be completed in just 2 clock cycles. The other signal lines in and out of the direct-attached MC-A device support portion 106 will be described in the context of Figure 3. The BRIDGE_REQ#, BRIDGE_GNT#, and BRIDGE_ARBIT_IDENT signal lines to and from the DACP 104 in Figure 2 are disabled because no standard bus bridge 78 is present. In Figure 3, however, the system 10 includes a standard bus (expansion) bridge 78 connected to the primary PCI bus 22. In this embodiment, the DACP 104 arbitrates between peripheral I/O devices 56 controlled by the I/O controller 44 and standard I/O devices 90 attached to the standard I/O bus 92 supported by the standard bus bridge 78, each of which devices compete for access to the primary PCI bus 22. As explained above, the peripheral I/O devices 56 and the standard I/O devices 90 are either MC-A or ISA-compatible. Five request/grant pairs REQ0#/GNT0# through REQ4#/GNT4# are still used by primary PCI devices 18 to request and be granted access to the PCI bus 22. However, these request/grant lines are directed into a secondary PCI arbitration control point, PACP2 108, and not the PACP 102. The PACP2 108 is located physically within the standard bus bridge 78, and is cascaded into the PACP 102. PACP2 108 arbitrates between the attached primary PCI devices 18 and presents a single bus access request PACP2_REQ# with a corresponding ARBID to the primary PACP 102. Arbitration priorities are handled in a similar manner to that in which they are managed in the PACP 102. The PACP then arbitrates between the CPU 24 (the bus access request of which is presented on the BREQ/CPUREQ# line) and the highest priority PCI device (the bus access request of which is presented on the PACP2_REQ# line). The primary PCI devices have their request for PCI bus access granted over the PACP2_GNT# line. Because arbitration among PCI devices is handled outside the SACP 42 in the embodiment of Figure 3, the functions of the request/grant lines in and out of the SACP are redefined for the system of Figure 3. Figure 4 is a table showing alternate definitions of pin connections into the SACP 42 corresponding to the embodiments shown in Figures 2 and 3. The five pairs of request/grant lines REQ0# and GNT0# through REQ4# and GNT4#, which are used by the primary PCI devices to request and be granted access to the PCI bus 22 in the system not having a standard bus bridge 78 attached to the primary PCI bus (Figure 2), are redefined when the system does include a standard bus bridge 78 (Figure 3). Because PACP2 108 handles the primary PCI device bus access requests outside the SACP 42 and presents a single request to the PACP 102, REQ4# is redefined as the single request PACP2_REQ#. Similarly, GNT4# is redefined as a single grant line as PACP2_GNT#. REQ0#/GNT0# through REQ3#/GNT3# lines into and out of the PACP 102 are disabled. With eight input/output lines (REQ0#/GNT0# through REQ3#/GNT3#) disabled in the system of Figure 3, eight new pin connections are available as inputs to the SACP 42, having been freed up by the addition of PACP2. These input/output lines are required for the system of Figure 3 to permit distributed arbitration of standard I/O devices 90 concurrently with peripheral I/O devices 56, as well as the CPU concurrently with the PCI devices. As shown in Figure 3, a central arbitration control point CACP 110, physically located on the MC-A bridge 78, manages the arbitration of MC-A devices 90. A MC-A device requests arbitration by activating the PREEMPT# signal into the CACP 110. The CACP alternates between arbitration and grant cycles which are indicated by tile state of tile ARBGNT# line. When the PREEMPT# signal is activated, the CACP enters the arbitration state during which the MC-A devices drive their arbitration identification outputs (ARBID(0-3)). After 300 nanoseconds, the arbitration identification of the highest priority MC-A device remains on the ARBID(0-3) lines. This single request is presented on the BRIDGE_REQ# signal line to the DACP 104. The DACP, by using the ARBID arbitration identification signals, if having determined that the request presented by the CACP has priority over a request presented by the I/O controller 44 on behalf of the peripheral I/O devices 56, will activate the BRIDGE_GNT# signal line. (As shown in Figure 4, the REQ3#/GNT3# lines are redefined as the BRIDGE_REQ# and BRIDGE_GNT# signal lines, disabled in the system corresponding to Figure 2, into and out of the DACP 104). The ARBGNT# line enters the grant state and the highest priority MC-A device determines that it has been selected and that its bus access request has been granted. Operation of the CACP 110 is explained more fully in copending applications serial no. 07/777,777 filed October 15, 1991 and entitled "Controlling Bus Allocation Using Arbitration Hold" and serial no. 07/816,116 filed January 2, 1992 for "Arbitration Control Logic for Computer System having Dual Bus Architecture", the texts of which are incorporated herein by reference. The six remaining inputs into the SACP 42, REQ0#/GNT0# through REQ2#/GNT2#, are redefined as the six BRIDGE_ARBIT_IDENT signals (disabled in the system corresponding to Figure 2). BRIDGE_ARBIT_IDENT signals are not defined in the PCI architectural specification but are required to support arbitration as well as DMA peripherals on the PCI bus, such as the standard I/O devices 90 attached to the standard bus bridge 78, to provide an effective PCI-ISA or PCI-MC-A interface. The BRIDGE_ARBIT_IDENT lines directly connect the standard bus bridge 78 with the SACP 42. With reference to Figure 4, these BRIDGE_ARBIT_IDENT signals have different definitions, depending on whether the standard bus bridge 78 is MC-A or ISA-compatible. When the bridge is not granted, the six arbitration identification signals include the identification information (ARBID(0) through ARBID(3) in MC-A, which identifies the MC-A I/O device presenting the PCI bus access request, or ISA_DACK(0) through ISA_DACK(2) in ISA, which identifies which ISA device is to be granted the bus. With reference to the MC-A implementation of the present invention, using the ARBID(0) through ARBID(3), the BRIDGE_ARBIT_IDENT signal lines are used to convey identification information to the SACP 42 relating to the primary PCI devices 18 and the MC-A devices 90 requesting access to the PCI bus 22. The status of these four lines indicates to tile PACP 102 which primary PCI device 18 won the initial arbitration process managed by the PACP2 108, and further indicates to the DACP 104 which MC-A device 90 won the initial arbitration process managed by the CACP 110. By providing information identifying the primary PCI devices presenting bus access requests to the PACP2 and identifying the MC-A devices presenting bus access requests to the to the CACP 110, the PACP and the DACP may more fairly arbitrate between, respectively, (i) the primary PCI devices and the CPU and (ii) the I/O devices supported by the expansion bridge and the direct-attached peripheral I/O devices. In the case of ISA devices, arbitration of such devices would be handled by an ISA-compatible arbitration device (IACP), via DREQ# and DACK# lines, because the ISA protocol supports direct requests and acknowledges to and from the devices attached to the ISA-compatible arbitration device. The ISA IACP activates the bridge request signal whenever one of the individual DREQ# lines is activated. In addition, the ISA IACP conveys the state of the DREQ# inputs to the DACP using the serial DREQ# arbitration identification signal. The DACP translates the ISA DREQ# signals into individual ARBIDs which are then used to arbitrate with the ARBIDs presented by the peripheral I/O devices 56. If the ISA DREQ# signal has priority, the IACP will be granted the bus. The DACP indicates that the IACP has been granted the bus by activating the BRIDGE_GNT# signal and driving the ISA_DACK(0-2) signals with an encoded ID which represents which DACK# should be activated. Identification information relating to the peripheral I/O devices 56 presenting PCI bus access requests via the I/O controller 44 is carried by the DARBIN(0-3) inputs to and DARBOUT(0-3) outputs from the direct-attached MC-A device support portion 106. Separate DARBIN and DARBOUT lines are required because, unlike the CACP 110, the direct-attached MC-A device support portion 106 is not provided with open collector bidirectional arbitration identification lines. Otherwise, arbitration performed by the direct-attached MC-A device support portion 106 is managed as it is in the CACP 110. In this manner, the DACP 104 determines if the request presented by the CACP 110 has priority over the request presented by the I/O controller 44, and presents a BANK1_REQ# to the BACP. All of the peripheral I/O devices 56 and the standard I/O devices 90 are assigned an arbitration priority. The DACP 104 is provided with a comparator which compares these arbitration priorities in determining which device should be granted access to the PCI bus 22. Similarly, all the PCI devices are assigned an arbitration ID which the PACP 102 uses to determine if the request presented by the PACP2 108 has priority over a CPU 24 request, and presents a BANK0_REQ# to the BACP 100. Arbitration information is needed from both the CACP 110 and tile PACP2 108. This information is provided to the main arbiter via arbitration identification signals. Figure 5 is a table showing one manner in which these signals may be multiplexed. The BURST# input to the CACP 110 provides the means for a MC-A, already in control of the standard I/O bus and capable of bursting information over the bus, to indicate that it is ready to perform a burst operation (more than one transfer of data over the standard I/O bus). The CACP 110 responds to this request by maintaining control of the standard I/O bus in a grant mode for the bursting I/O device until all of the multiple transfers of data have been completed over the standard I/O bus. Upon completion of the burst transfer over the standard I/O bus, the I/O device deactivates the BURST# request line, and the CACP determines that the I/O device is off the bus and begins the next arbitration cycle. In non-burst transfer situations, the CACP 110 determines that the I/O device is off the bus when an end-of-transfer is indicated on the S0/S1#, BURST# and CMD# inputs to the CACP. Once granted, the CACP communicates to the DACP that it wishes to retain ownership of the PCI bus on behalf of the I/O device by keeping the BRIDGE_REQ# signal active. Upon determining that the end-of-transfer has occurred, the CACP will deactivate BRIDGE_REQ# for a minimum of two clocks to indicate to the DACP that the current data transfer has completed. (The direct-attached MC-A device support portion 106 determines that a peripheral I/O device has completed a data transfer via the DCHNLACT input.)

Claims: An arbitration mechanism (42) for use in a computer system (10) which comprises (i) a central processing unit (CPU) (24); (ii) a first system bus (36)which connects said CPU to system memory (32) so that said CPU can read data from, and write data to, said system memory; (iii) a second system bus (16) connected to said CPU; (iv) a host bridge (20) connecting said second system bus to a peripheral bus (22), said peripheral bus having at least one peripheral device (18) attached thereto; and (v) an input/output (I/O) bridge (78) connecting said peripheral bus to a standard I/O bus (92), said standard I/O bus having a plurality of standard I/O devices (90) attached thereto, said arbitration mechanism comprising: (i) a first level (100) of logic for arbitrating between said plurality of standard I/O devices, wherein one standard I/O device is selected from a plurality of said standard I/O devices competing for access to said standard I/O bus, and (ii) a second level of logic (102, 104) for arbitrating between said selected standard I/O device, said CPU and said at least one peripheral device, wherein one of said selected standard I/O device, said CPU and said at least one peripheral device is selected to access said peripheral bus; and wherein said arbitration mechanism includes arbitration identification signals directly connecting said first and second levels of arbitration logic, said arbitration identification signals including arbitration identification information corresponding to said selected standard I/O device. An arbitration mechanism (42) as claimed in claim 1, wherein said peripheral bus (22) conforms to Peripheral Component Interconnect (PCI) architecture. An arbitration mechanism (42) as claimed in claim 2 wherein said first level (100) of arbitration logic is implemented on said I/O bridge, (78) and said second level (102, 104) of arbitration logic resides on said second system bus (16). An arbitration mechanism (42) as claimed in claim 2, wherein said computer system (10) further comprises (i) an I/O controller (44) residing on said second system bus (16) and connecting said second system bus to a peripheral I/O bus; and (ii) a plurality of peripheral I/O devices (56) attached to said peripheral I/O bus; and wherein said second level (102, 104) of arbitration logic arbitrates between a plurality of peripheral I/O devices competing for access to said peripheral I/O bus, said selected standard I/O device, said at least one peripheral device, and said CPU (24), for access to said peripheral bus. An arbitration mechanism (42) as claimed in claim 2, wherein said peripheral bus (22) and said second system bus (16) have data widths of at least 32 bits. An arbitration mechanism (42) as claimed in claim 2, wherein said standard I/O bus (92) conforms to MICROCHANNEL architecture. An arbitration mechanism (42) as claimed in claim 2, wherein said standard I/O bus (92) conforms to ISA architecture. An arbitration mechanism as claimed in claim 4, wherein said peripheral I/O bus conforms to the IBM AT architecture. An arbitration mechanism (42) as claimed in claim 4, wherein: said first level (100) of arbitration logic also arbitrates between a plurality of peripheral devices (18) competing for access to said peripheral bus (22) and selects one of said competing peripheral devices; said second level (102, 104) of arbitration logic arbitrates between said plurality of peripheral I/O devices competing for access to said peripheral I/O bus, said selected standard I/O device, said selected peripheral device, and said CPU (24), for access to said peripheral bus; and wherein said arbitration identification signals also include arbitration identification information corresponding to said selected peripheral device. An arbitration mechanism (42) as claimed in claim 9, wherein said second level (102, 104) of arbitration logic is divided into at least two arbitration control point banks, (i) a first bank (104) for arbitrating between said plurality of peripheral I/O devices (56) competing for access to said peripheral I/O bus, and said selected standard I/O device (90), and (ii) a second bank (102) for arbitrating between said selected peripheral device and said CPU (24), and wherein said second bank maintains a higher priority level within said arbitration mechanism. An arbitration mechanism (42) as claimed in claim 10, wherein arbitration priorities of said plurality of peripheral I/O devices (56) competing for access to said peripheral I/O bus, said plurality of said standard I/O devices (90) competing for access to said standard I/O bus (92), said CPU (24) and said plurality of peripheral devices (18) competing for access to said peripheral bus (22) are prioritized during initial configuration of the computer system (10), and wherein said first arbitration control point bank compares the priority of said plurality of peripheral I/O devices competing for access to said peripheral I/O bus with said selected standard I/O device using said identification information contained within said arbitration identification signals, and said second arbitration control point bank compares the priority level of said CPU with the priority level of said selected peripheral device using said identification information contained within said arbitration identification signals. An information processing system (10), comprising: a central Processing unit (CPU) (24); a first system bus (36) which connects said CPU to system memory (32) so that said CPU can read data from, and write data to, said system memory; a second system bus (16) connected to said CPU; a host bridge (20) connecting said second system bus to a peripheral bus (22), said peripheral bus having at least one peripheral device (18) attached thereto; an input/output (I/O) bridge (78) connecting said peripheral bus to a standard I/O bus (92), said standard I/O bus having a plurality of standard I/O devices (90) attached thereto; and an arbritration mechanism as claimed in any preceding claim.

Inventors: AMINI NADER, BLAND PATRICK MAURICE, BOURY BECHARA FOUAD, HOFMANN RICHARD GERARD, LOHMAN TERENCE JOSEPH, AMINI, NADER, BLAND, PATRICK MAURICE, BOURY, BECHARA FOUAD, HOFMANN, RICHARD GERARD, LOHMAN, TERENCE JOSEPH
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES
Application year: 1994
Main classification: G06F13
IPC codes: G06F13