METHOD FOR SWITCHING BETWEEN MULTIPLE SYSTEM HOSTS

Abstract: In a method for switching between multiple system hosts (154, 164, 174, 184) on a CompactPCI bus (110, 120), a hot swap controller (166, 186) provides to a special arbiter (820) a high priority request signal and the special arbiter (820) provides to the hot swap controller a grant signal only when the CompactPCI bus is idle. The hot swap controller (166, 186) provides to the special arbiter (820) a float signal causing the special arbiter (820) to disable the system host signals, which include one or more grant signals for granting bus access to devices on the CompactPCI bus (110, 120), one or more reset signals for resetting the devices, one or more interrupts and one or more clock signals provided to devices. The hot swap controller (166, 186) transfers control of the CompactPCI bus (110, 120) to a standby system host (154, 164, 174, 184).

Description: 1 METHOD FOR SWITCHING BETWEEN MULTIPLE SYSTEM HOSTS Field of the Invention The present invention relates generally to bus architectures . Background of the Invention A conventional computer system utilizes a bus for data transfer among the components of the system. A popular bus architecture is the PCI (Peripheral Component Interconnect) bus architecture, which includes numerous desirable features that are well known in the art. The PCI bus architecture is described, for example, in PCI Local Bus Specification, by the PCI Special Interest Group, 5300 N.E. Elam Young Parkway, Hillsborough, Oregon. The more recently developed CompactPCI® bus architecture is an implementation of PCI technology designed for industrial and/or embedded applications. The CompactPCI bus architecture is described in CompactPCI Specification, by PCI Industrial Computer Manufacturers Group (PCIMG®) , 301 Edgewater Place Suite 220, Wakefield, Massachusetts. CompactPCI and PCIMG are registered trademarks of the PCI Industrial Computer Manufacturers Group. It would be advantageous to provide the advantages of the CompactPCI bus architecture in a highly available or fault tolerant system capable of running critical applications, such as telephone switching systems or database servers, without jeopardizing the applications with the risk of a system failure. A failure of the system host which controls bus functions on a CompactPCI bus can result in such a system failure. Accordingly, it would be desirable to have 2 a highly available and fault tolerant system provided on a CompactPCI bus architecture which can withstand a system host failure without interrupting operation of the system. Brief Description of the Drawings FIG. 1 is a circuit diagram of the ulticonfiguration backplane of the preferred embodiment of the invention; FIG. 2 is a circuit diagram of a dual configuration of the multiconfiguration backplane; FIG. 3 is a circuit diagram of an extended configuration of the multiconfiguration backplane; FIG. 4 is a circuit diagram of an active/standby configuration of the multiconfiguration backplane in an active/standby mode; FIG. 5 is a circuit diagram of an active/standby configuration of the multiconfiguration backplane in an active/active mode; FIG. 6 is a flowchart of the process of swapping the host board in an active/standby configuration; FIG. 7 is a flowchart of the process of swapping the host board in an active/active configuration; FIG. 8 is a circuit diagram of the system host; FIG. 9 is a flowchart of the process of switching over the system host; and FIG. 10 is a flowchart of the process of switching over the system processor. Detailed Description of the Drawings In a preferred embodiment of the invention, a method is provided for switching between multiple system hosts on a CompactPCI bus. The CompactPCI bus is first quiesced. A hot swap controller provides to a special arbiter a high priority request signal and the special arbiter provides to the hot swap controller a grant signal only when the CompactPCI bus is idle. The system host signals provided by the active system host are then disabled. The hot swap controller provides to the special arbiter a float signal causing the special arbiter to disable the system host signals. The system host signals disabled by the float signal include one or more grant signals for granting bus access to devices on the CompactPCI bus, one or more reset signals for resetting devices on the CompactPCI bus, one or more interrupts provided to devices on the CompactPCI bus, and one or more clock signals provided to devices on the CompactPCI bus. The special arbiter defines its grant signals, reset signals and clock signals to be three-state signals . The float signal causes the special arbiter to place the three-state grant signals, reset signals and clock signals in a third state and to disable the interrupts. The hot swap controller transfers control of the CompactPCI bus to a standby system host. Multiconfiguration Backplane FIG. 1 is a circuit diagram of the multiconfiguration backplane of the preferred embodiment of the invention. In FIG. 1, a backplane 100 has a CompactPCI Bus[l] 110 and a CompactPCI Bus [2] 120. Connected to CompactPCI Bus[l] 110 are a system processor slot[l] 112, a bridge slot[l] 114 and input/output slots [1] 116. The input/output slots [1] 116 provide for t: i insertion of input/output boards [1] 118 to implement corresponding devices. Connected to CompactPCI 4 Bus [2] 120 are a system processor slot [2] 122, a bridge slot [2] 124 and input/output slots [2] 126. The input/output slots [2] provide for the insertion of input/output boards [2] 128 to implement corresponding devices. A cross connection [1] 130 couples system processor slot[l] 112 to bridge slot [2] 124. A cross connection [2] 140 couples system processor slot [2] 122 to bridge slot[l] 114. Preferably, the cross connection[l] 130 is a first local peripheral component interconnect (PCI) bus and the cross connection [2] 140 is a second local PCI bus. Also shown in FIG. 1 are the system processor boards and bridge boards that connect to the backplane 100 to define the entire computer system. As noted above, the backplane 100 provides multiple potential configurations of the computer system. Depending on the selected configuration of the backplane 100, some combination of the system processor boards and bridge boards shown in FIG. 1 will be present and/or active. A system processor board[1] 150 having a system processor [1] 152 and a system host [IS] 154 is inserted into system processor slot[l] 112. A bridge board [1] 160 having a system host [IB] 164 and a hot swap controller [1] 166 is optionally inserted into the bridge slot[l] 114. A system processor board[2] 170 having a system processor [2] 172 and a system host[2S] 174 is inserted into system processor slot [2] 122. A bridge board[2] 180 having a system host[2B] 184 and a hot swap controller [2] 186 is optionally inserted into the bridge slot [2] 124. The system processor is, for example, the Motorola MPC750 processor system. FIG. 2 is a circuit diagram of a dual configuration of the multiconfiguration backplane. In the dual configuration, a first and second subsystem function independently of each other. In FIG. 2, the system processor board [1] 150 is inserted into system processor slot[l] 112 and the system processor board [2] 170 is inserted into the system processor 5 slot [2] 122. The system processor [1] 152 controls the input/output boards [1] 118 on CompactPCI Bus[l] 110 to control the devices implemented therewith in a first subsystem. The system host [IS] 154 controls the CompactPCI Bus[l] 110 bus functions. The system processor [2] 172 controls the input/output boards [2] 128 on CompactPCI Bus [2] 120 to control the devices implemented therewith in a second subsystem. The system host[2S] 174 controls the CompactPCI Bus [2] 120 bus functions. Neither cross connection [1] 130 nor cross connection [2] 140 are used. FIG. 3 is a circuit diagram of an extended configuration of the multiconfiguration backplane. In the extended configuration, a single system processor controls the devices implemented on both buses. In FIG. 3, the system processor board [1] 150 is inserted into system processor slot[l] 112 and the bridge board[2] 180 is inserted into the bridge slot [2] 124. The system processor [1] 152 controls the input/output boards [1] 118 on CompactPCI Bus[l] 110 to control the devices implemented therewith. The system host [IS] 154 controls the CompactPCI Bus[l] 110 bus functions. The system processor [1] 152 also controls the input/output boards [2] 128 on CompactPCI Bus [2] 120 via the cross connection [1] 130 to control the devices implemented therewith. The system host[2B] 184 controls the CompactPCI Bus [2] 120 bus functions. The cross connection [2] 140 is not used. FIG. 4 is a circuit diagram of an active/standby configuration of the multiconfiguration backplane in an active mode. In the active/standby system, a single active system processor controls the devices implemented on both buses in an active mode. If there is a failure in the active system processor, a standby processor takes over control of the devices in a standby mode. In FIG. 4, the system processor board [1] 150 is inserted into system processor slot[l] 112 and the system processor board [2] 170 6 is inserted into the system processor slot [2] 122. The bridge board[l] 160 is inserted into the bridge slot[l] 114 and the bridge board [2] 180 is inserted into the bridge slot [2] 124. In an active mode, the system processor board [1] 150 and bridge board [2] 180 are used as companion boards. The system processor [1] 152 controls the input/output boards [1] 118 on CompactPCI Bus[l] 110 and also controls the input/output boards [2] 128 on CompactPCI Bus [2] 120 via the cross connection [1] 130. The system host [IS] 154 controls the CompactPCI Bus[l] 110 bus functions and the system host[2B] 184 controls the CompactPCI Bus [2] 120 bus functions. The cross connection [2] 140 is not used. FIG. 5 is a circuit diagram of the active/standby configuration of the multiconfiguration backplane in a standby mode. In the standby mode, system processor board [2] 170 and bridge boardfl] 160 are used as companion boards. The system processor [2] 172 controls the input/output boards [2] 128 on CompactPCI Bus[l] 110 and also controls the input/output boards [1] 118 on CompactPCI Bus [2] 120 via the cross connection [2] 140. The system host [IB] 164 controls the CompactPCI Bus[l] 110 bus functions and the system host[2S] 174 controls the CompactPCI Bus [2] 120 bus functions The cross connection [1] 130 is not used. In an active/active configuration, both system processor boards and both bridge boards are inserted, as shown in FIG. 1. The system processor board [1] 150 is inserted into system processor slot[l] 112 and the system processor board [2] 170 is inserted into the system processor slot [2] 122. The bridge board [1] 160 is inserted into bridge slot[l] 114 and the bridge board [2] 180 is inserted into bridge slot [2] 124. In a dual mode, a first and second system function independently of each other, as in the dual configuration described above. The system processor [1] 152 controls the input/output boards [1] 118 on CompactPCI Bus[l] 110 to control the devices implemented therewith in a first system. 7 The system processor [2] 172 controls the input/output boards [2] 128 on CompactPCI Bus [2] 120 to control the devices implemented therewith in a second system. The system host [IS] 154 controls the CompactPCI Bus[l] 110 bus functions and the system host[2S] 174 controls the CompactPCI Bus [2] 120 bus functions. Neither cross connection [1] 130 nor cross connection [2] 140 are used. In the active/active configuration, if there is a failure in the system processor on CompactPCI Bus [2] 120, the processing load is shifted to system processor [1] 152 in a first shared mode. The first shared mode operates identically to the active mode of the active/standby configuration discussed above and shown in FIG. 4. If there is a failure in the system processor on CompactPCI Bus[l] 110, the processing load is shifted to system processor [2] 172 in a second shared mode. The second shared mode operates identically to the standby mode of the active/standby configuration discussed above and shown in FIG. 5. Host Board Swap As shown above, multiple system hosts are provided on each bus. The system processor board [1] 150, bridge board [1] 160, system processor board[2] 170 and bridge board[2] 180 are each a "host board" on which a system host resides. As a result, control of the bus functions on either bus can be switched over from an active system host to a standby system host in the event of a failure on the active host board. Conventional CompactPCI bus architecture allows for a non- host board on a CompactPCI bus, such as one of the input/output boards 118 or one of the input/output boards 128, to be "hot swapped". That is, the board can be removed and replaced without interrupting the operation of the computer system by resetting the devices. This is described, for example, in CompactPCI Hot Swap Specification, by PCI Industrial Computer Manufacturers 8 Group, 301 Edgewater Place Suite 220, Wakefield, Massachusetts. Accordingly, by providing multiple system hosts on each CompactPCI bus, the preferred embodiment of the invention provides the capability of hot swapping the host board, allowing a failed host board to be replaced while operations continue. As a result, the advantages of the CompactPCI bus architecture can be provided to a highly available or fault tolerant application. FIG. 6 is a flowchart of the process performed by the computer system of the preferred embodiment for swapping the host board in an active/standby configuration. The basic functions described in FIG. 6 are performed by a combination of the system processor 152 or 172, the system host 154, 164, 174 or 184 and the hot swap controller 166 or 186, and are further elaborated later in the specification. One of ordinary skill in the art will recognize how to implement these functions in manner best suited for the application at hand, however, based on the description herein. In step 605, if a failure is detected in the host board, control proceeds to step 610. In step 610, cross connection [2] 140 is utilized instead of cross connection [1] 130. In step 615, system processing is transferred from system processor[l] 152 to system processor[2] 172. Step 615 will be explained later in greater detail. In step 620, control of the CompactPCI Bus[l] 110 bus functions is transferred from system host [IS] 154 to system host [IB] 164. In step 625, control of the CompactPCI Bus [2] 120 bus functions is transferred from system host[2B] 184 to system host [2S] 174. System host transfer will be explained later in greater detail with reference to FIG. 8 and FIG. 9. In step 630, the failed host board is hot swapped and the host board failure is corrected without interrupting operation of the system. FIG. 7 is a flowchart of the process of swapping the host board in an active/active configuration. As in FIG. 6, the 9 basic functions described in FIG. 7 are performed by a combination of the system processor 152 or 172, the system host 154, 164, 174 or 184 and the hot swap controller 166 or 186, and are further elaborated later in the specification. One of ordinary skill in the art will recognize how to implement these functions in manner best suited for the application at hand, however, based on the description herein. In step 705, if a failure is detected in the host board, control proceeds to step 710. In step 710, cross connection [2] 140 is utilized. The system processor [2] 172 continues to control processing on CompactPCI Bus [2] 120 as noted in step 715. In step 720, processing control of the devices on CompactPCI Bus[l] 110 is transferred to system processor [2] 172. System processor transfer will be explained later in greater detail with reference to FIG. 10. The system host[2S] 174 continues to control CompactPCI Bus [2] 120 bus functions, as noted in step 725. Control of the CompactPCI Bus[l] 110 bus functions is transferred from system host [IS] 154 to system host [IB] 164 in step 730. In step 735, the failed host board is hot swapped and the host board failure is corrected without interrupting operation of the system. As noted above, the conventional CompactPCI standard provides hot swap capability. As such, the hot swap controller [1] 166 on bridge board [1] 160 and hot swap controller [2] 186 on bridge board[2] 180 are based on conventional CompactPCI hot swap as defined in the CompactPCI Hot Swap Specification, cited above. One of ordinary skill in the art will readily implement the hot swap controllers based on the description herein, based on the CompactPCI Hot Swap Specification, and based on design preference and suitability to the application at hand. Hot swapping the host board, however, requires some modifications to the conventional CompactPCI system host to ensure that bus control functions are not corrupted by the existence of two system hosts on a bus. 10 FIG. 8 is a circuit diagram of a system host with such modifications. The system host 800 in FIG. 8 corresponds to system host [IS] 154, system host [IB] 164, system host[2S] 174 or system host[2B] 184. The system host 800 includes a conventional PCI-to-PCI bridge 810 which connects the CompactPCI bus to a local PCI bus on the host board. The bridge 810 is, for example, a DEC 21154 PCI Bridge Arbiter. The system host 800 further includes a special arbiter 820. The special arbiter 820 replaces the function of the conventional bus arbiter included in the bridge 810, which is disabled. The special arbiter 820 is the same as the conventional PCI bus arbiter, except that several additional features are provided which allow for system host switchover. These features are explained with reference to FIG. 9 below. FIG. 9 is a flowchart of the process of switching over the system host. The process is performed by the hot swap controller 166 and the special arbiter 820 in system host [IS] 154 or system host [IB] 164 to switch between system host [IS] 154 and system host [IB] 164 on CompactPCI Bus[l] 110, or performed by the hot swap controller 186 and the special arbiter 820 in system host[2S] 174 or system host[2B] 184 to switch between system host[2S] 174 and system host[2B] 184 on CompactPCI Bus [2] 120, as in the various scenarios described above. In step 905, the hot swap controller quiesces the bus. More specifically, the hot swap controller provides to the special arbiter 820 a high priority request signal which the special arbiter 820 grants only when the bus is idle. A special pair of Request/Grant lines are provided in the special arbiter 820 for the hot swap controller to use for this purpose. In step 910, the computer system disables system host signals provided by the active system host. Specifically, the hot swap controller provides to the special arbiter 820 a float signal causing the special arbiter 820 to disable 11 the system host signals it provides when active. A special float line is added to the special arbiter 820 for the hot swap controller to use for this purpose. The system host signals that are disabled by the float signal include grant signals for granting bus access to devices on the bus, reset signals for resetting devices on the bus, and clock signals and interrupts that are provided to the devices on the bus . The special arbiter 820 defines its grant signals, reset signals and clock signals to be three-state signals wherein a high impedance state is added as a third state. The float signal causes the special arbiter 820 to place the three- state grant signals, reset signals and clock signals in the third state and to disable the interrupts. In step 915, the hot swap controller transfers control from the failed active system host to the standby system host. Although described in the order shown for simplicity of description, the preferred embodiment of the invention transfers the reset signals and clock signals to the standby system host before they are disabled by the active system host so that the reset and clock signals are not allowed to got to an indeterminate state in which an undesired signal could be sent to any of the devices. Also, the clock signals preferably are placed in the third state on the terminating edge to prevent short cycles . System Processor Board Swap Swapping of the system processor board requires switching over control of the system processor. For example, control is transferred from system processor [1] 152 to system processor [2] 172 in the case of a failure affecting system processor board[l] 150, or from system processor[2] 172 to system processor [1] 152 in the case of a failure affecting system processor board[2] 170. Highly available or fault tolerant applications require that system processor switchover be accomplished without resetting the devices on the system or otherwise interrupting operation of the 12 system. However, since system processor [1] 152 and system processor [2] 172 operate independently, such a switchover endangers the system. For example, a device on the CompactPCI bus may be performing a direct memory access to the active system processor's memory during switchover. The standby system processor might not utilize the same addressing scheme, however, such that critical data would be corrupted when the device writes to the originally intended address . The preferred embodiment of the invention provides a seamless switchover of system processor control by the standby system processor to prevent such a corruption. FIG. 10 is a flowchart of the seamless switchover of the system processor. The functions of FIG. 10 are performed by the standby system processor to switch from the active system processor to the standby system processor. In step 1005, the standby system processor determines whether there is a failure affecting the active system processor, such as a failure on the active system processor board or on a companion bridge board requiring switchover of the active system processor to the standby system processor, as was described above. In step 1010, the standby system processor places the special arbiter 800 into a one master mode, so that it will not provide a bus grant to any device other than the standby system processor. In step 1015, the standby system processor examines a device on the bus and determines in step 1020 whether the device is at risk of performing a destructive action. For example, the standby system processor accesses status information on the device and determines whether interrupts to the device are enabled, determines whether the device has the capability of performing a direct memory access to the active system processor, and/or determines whether the device is on a failed board, such as a failure on the active system processor board or companion board. 13 In step 1025, if the standby system processor determines in step 1020 that the device is at risk of performing a destructive action, then the standby system processor quiesces the device. For example, the standby system processor programs the device to cease operation or changes an address to which the device is writing. As long as there are more devices to examine in step 1030, the standby system processor repeats steps 1015 through 1030. Finally, in step 1035, all devices at risk of performing a destructive action having been quiesced, and the standby system processor places the special arbiter 800 into a multiple master mode that will allow it to provide bus grants to devices other than the standby system processor. It should be appreciated that the invention described herein provides the advantage of switching between multiple system host on a CompactPCI bus, thereby rendering hot swap of the host boards possible without interrupting operation of the computer system. The present invention has been described above with reference to preferred embodiments. However, those skilled in the art will recognize that changes and modifications may be made in these preferred embodiments without departing from the scope of the present invention.

Claims: 14 What is claimed is: CLAIMS 1. A method for switching between multiple system hosts on a CompactPCI bus, comprising the steps of: quiescing the CompactPCI bus; disabling system host signals provided by an active system host; and transferring control to a standby system host. 2. The method of claim 1 wherein the step of quiescing the CompactPCI bus comprises the step of a hot swap controller providing to a special arbiter a high priority request signal and the special arbiter providing to the hot swap controller a grant signal only when the CompactPCI bus is idle. 3. The method of claim 1 wherein the step of disabling the system host signals comprises the step of a hot swap controller providing to a special arbiter a float signal causing the special arbiter to disable the system host signals. 4. The method of claim 3 wherein the system host signals include one or more grant signals for granting bus access to devices on the CompactPCI bus, and wherein the step of disabling the system host signals further comprises the step of the special arbiter driving the grant signals to a third state. 5. The method of claim 3 wherein the system host signals include one or more reset signals for resetting devices on the CompactPCI bus, and wherein the step of 15 disabling the system host signals further comprises the step of the special arbiter driving the reset signals to a third state . 6. The method of claim 3 wherein the system host signals include one or more interrupts provided to devices on the CompactPCI bus, and wherein the step of disabling the system host signals further comprises the step of the special arbiter disabling the interrupts. 7. The method of claim 3 wherein the system host signals include one or more clock signals provided to devices on the CompactPCI bus, and wherein the step of disabling the system host signals further comprises the step of the special arbiter disabling the clock signals. 8. A method for switching between multiple system hosts on a bus, comprising the steps of: quiescing the bus; disabling system host signals provided by an active system host; and transferring control to a standby system host. 9. The method of claim 8 wherein the step of quiescing the bus comprises the step of a hot swap controller providing to a special arbiter a high priority request signal and the special arbiter providing to the hot swap controller a grant signal only when the bus is idle. 16 10. The method of claim 8 wherein the step of disabling the system host signals comprises the step of a hot swap controller providing to a special arbiter a float signal causing the special arbiter to disable the system host signals . 11. The method of claim 10 wherein the system host signals include one or more grant signals for granting bus access to devices on the bus, and wherein the step of disabling the system host signals further comprises the step of the special arbiter driving the grant signals to a third state . 12. The method of claim 10 wherein the system host signals include one or more reset signals for resetting devices on the bus, and wherein the step of disabling the system host signals further comprises the step of the special arbiter driving the reset signals to a third state. 13. The method of claim 10 wherein the system host signals include one or more interrupts provided to devices on the bus, and wherein the step of disabling the system host signals further comprises the step of the special arbiter disabling the interrupts. 14. The method of claim 10 wherein the system host signals include one or more clock signals provided to devices on the bus, and wherein the step of disabling the system host signals further comprises the step of the special arbiter disabling the clock signals.

Inventors: GREENWOOD EDWARD, HILL CHARLES CHRISTOPHER, LANUS MARK, GREENWOOD, EDWARD, HILL, CHARLES, CHRISTOPHER, LANUS, MARK
Applicants: MOTOROLA INC, MOTOROLA, INC.
Application year: 1999
Main classification: G06F11
IPC codes: G06F11, G06F13, G06F15