1. Field of the Invention
The present invention generally relates to the selection of a boot strap processor in a multi-processor environment.
2. Background Information
Some computer systems include more than one processor and each processor may have its own local memory. In multi-processor systems, typically, one of the processors comprises the “boot strap processor” (“BSP”). The BSP may be responsible for, among other activities, various initialization activities such as initializing input/output (“I/O”) subsystems, initializing user interfaces, and causing the operating system to be loaded on the various processors in the system. To perform the activities of a BSP, the BSP generally requires access to memory. If memory is not installed for the BSP, the system may fail to initialize correctly and/or may “crash.”
In accordance with at least some embodiments, a plurality of processors are coupled together. One of the processors may comprise a default boot strap processor (“BSP”). Further, the default BSP may determine whether the BSP has local memory and becomes the BSP for the system if the default BSP has local memory, or selects another processor to be the BSP for the system if the default BSP does not have local memory.
For a detailed description of the exemplary embodiments of the invention, reference will now be made to the accompanying drawings in which:
Certain terms are used throughout the following description to refer to particular system components. As one skilled in the art will appreciate, computer companies may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following discussion and in the claims, the terms “including” and “comprising” are used in an open-ended fashion, and thus should be interpreted to mean “including, but not limited to . . . ”. Also, the term “couple” or “couples” is intended to mean either an indirect or direct electrical connection. Thus, if a first device couples to a second device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
The following discussion is directed to various embodiments of the invention. Although one or more of these embodiments may be preferred, the embodiments disclosed should not be interpreted, or otherwise used, as limiting the scope of the disclosure, including the claims. In addition, one skilled in the art will understand that the following description has broad application, and the discussion of any embodiment is meant only to be exemplary of that embodiment, and not intended to intimate that the scope of the disclosure, including the claims, is limited to that embodiment.
Referring now to
As shown in
Blocks 206 and 208 may be implemented in a variety of ways. In some embodiments, the default BSP may interrogate individually each of the other processors in the system for information regarding their local memory. In response, each processor may report whether it has local memory and, if so, how much local memory is present. The default BSP may use that information to select as the BSP for the system the processor that reports the largest amount of memory. In other embodiments, each processor in the system may determine whether it has local memory and, if so, the quantity of local memory without being prompted for such information by the default BSP. The results of each processor determining its own local memory may be related to the default BSP via any of a variety of techniques such as by setting flags indicative of the amount of local memory. Rather than individually prompting each processor to determine and report its local memory, the default BSP may read and process the flags.
In other embodiments of the invention, even if the default BSP 108 includes local memory, the processor 102–108 with the most local memory 103–109 in the system may be used as the default BSP. The default BSP may be used as the BSP if it has more memory than the other processors in the system, or may select another processor that has the most local memory to be the BSP.
In at least some situations, it may be possible for two or more processors to have an equal amount of memory that is larger than all other processors in the system. In this situation, as between the two or more processors having the most local memory in the system, a processor is selected to be the BSP that comports with any one of a variety of suitable criteria. For instance, each processor may be assigned a unique numerical or alphanumerical identifier (e.g., serial number) and the processor with identifier that ranks above the other processors may be selected as the BSP. The ranking may be based on the size of the identifier such that the largest, or smallest, identifier is selected as the BSP. The ranking may be based on examining a portion of the identifier and ranking them according to size. Further still, a mathematical formula or algorithm may be applied to the unique identifiers to generate another sortable value that is then used to select a BSP. Numerous other criteria may be implemented as well.
The above discussion is meant to be illustrative of the principles and various embodiments of the present invention. Numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. It is intended that the following claims be interpreted to embrace all such variations and modifications.
| Number | Name | Date | Kind |
|---|---|---|---|
| 5448716 | Hardell et al. | Sep 1995 | A |
| 5790850 | Natu | Aug 1998 | A |
| 5835784 | Gillespie et al. | Nov 1998 | A |
| 5860002 | Huang | Jan 1999 | A |
| 6009521 | Huang | Dec 1999 | A |
| 6108781 | Jayakumar | Aug 2000 | A |
| 6178445 | Dawkins et al. | Jan 2001 | B1 |
| 6314501 | Gulick et al. | Nov 2001 | B1 |
| 6336185 | Sargenti et al. | Jan 2002 | B1 |
| 6584560 | Kroun et al. | Jun 2003 | B1 |
| 6601165 | Morrison et al. | Jul 2003 | B1 |
| 6754828 | Marisetty et al. | Jun 2004 | B1 |
| 6785892 | Miller et al. | Aug 2004 | B1 |
| 6907521 | Saw-Chu et al. | Jun 2005 | B1 |
| 6917999 | Kumar et al. | Jul 2005 | B1 |
| 6925556 | Hill et al. | Aug 2005 | B1 |
| Number | Date | Country | |
|---|---|---|---|
| 20040236935 A1 | Nov 2004 | US |