At the heart of many computer systems is the microprocessor or central processing unit (CPU) (referred to collectively as the “processor.”) The processor performs most of the actions responsible for application programs to function. The execution capabilities of the system are closely tied to the CPU: the faster the CPU can execute program instructions, the faster the system as a whole will execute.
Early processors executed instructions from relatively slow system memory, taking several clock cycles to execute a single instruction. They would read an instruction from memory, decode the instruction, perform the required activity, and write the result back to memory, all of which would take one or more clock cycles to accomplish.
As applications demanded more power from processors, internal and external cache memories were added to processors. A cache memory (hereinafter cache) is a section of very fast memory located within the processor or located external to the processor and closely coupled to the processor. Blocks of instructions or data are copied from the relatively slower system memory (DRAM) to the faster cache memory where they can be quickly accessed by the processor.
Cache memories can develop persistent errors over time, which degrade the operability and functionality of their associated CPU's. In such cases, physical removal and replacement of the failed or failing cache memory has been performed. Moreover, where the failing or failed cache memory is internal to the CPU, physical removal and replacement of the entire CPU module or chip has been performed. This removal process is generally performed by field personnel and results in greater system downtime. Thus, replacing a CPU is inconvenient, time consuming and costly.
In one embodiment, a method for repairing a processor is provided. The method includes, for example, the steps of initializing and executing an operating system, determining that a cache element is faulty, and swapping in a spare cache element for said faulty cache element while the operating system is executing.
The following includes definition of exemplary terms used throughout the disclosure. Both singular and plural forms of all terms fall within each meaning:
“Logic”, as used herein includes, but is not limited to, hardware, firmware, software and/or combinations of each to perform a function(s) or an action(s). For example, based on a desired application or needs, logic may include a software controlled microprocessor, discrete logic such as an application specific integrated circuit (ASIC), or other programmed logic device. Logic may also be fully embodied as software.
“Cache”, as used herein includes, but is not limited to, a buffer or a memory or section of a buffer or memory located within a processor (“CPU”) or located external to the processor and closely coupled to the processor.
“Cache element”, as used herein includes, but is not limited to, one or more sections or sub-units of a cache.
“CPU”, as used herein includes, but is not limited to, any device, structure or circuit that processes digital information including for example, data and instructions and other information. This term is also synonymous with processor and/or controller.
“Cache management logic”, as used herein includes, but is not limited to, any logic that can store, retrieve, and/or process data for exercising executive, administrative, and/or supervisory direction or control of caches or cache elements.
“During”, as used herein includes, but is not limited to, in or throughout the time or existence of; at some point in the entire time of; and/or in the course of.
Referring now to
A display 114 may be a Cathode Ray Tube, liquid crystal display or any other similar visual output device. An input device is also provided and serves as a user interface to the system. As will be described in more detail, input device may be a light sensitive panel for receiving commands from a user such as, for example, navigation of a cursor control input system. Input device interfaces with the computer system's I/O such as, for example, USB port 138. Alternatively, input device can interface with other I/O ports.
Secondary Bridge 118 is an I/O controller chipset. The secondary bridge 118 interfaces a variety of I/O or peripheral devices to CPU 102 and memory 108 via the host bridge 106. The host bridge 106 permits the CPU 102 to read data from or write data to system memory 108. Further, through host bridge 106, the CPU 102 can communicate with I/O devices on connected to the secondary bridge 118 and, and similarly, I/O devices can read data from and write data to system memory 108 via the secondary bridge 118 and host bridge 106. The host bridge 106 may have memory controller and arbiter logic (not specifically shown) to provide controlled and efficient access to system memory 108 by the various devices in computer system 100 such as CPU 102 and the various I/O devices. A suitable host bridge is, for example, a Memory Controller Hub such as the Intel® 875P Chipset described in the Intel® 82875P (MCH) Datasheet, which is hereby fully incorporated by reference.
Referring still to
The BIOS ROM 120 includes firmware that is executed by the CPU 102 and which provides low level functions, such as access to the mass storage devices connected to secondary bridge 118. The BIOS firmware also contains the instructions executed by CPU 102 to conduct System Management Interrupt (SMI) handling and Power-On-Self-Test (“POST”) 122. POST 102 is a subset of instructions contained with the BIOS ROM 102. During the boot up process, CPU 102 copies the BIOS to system memory 108 to permit faster access.
The super I/O device 128 provides various inputs and output functions. For example, the super I/O device 128 may include a serial port and a parallel port (both not shown) for connecting peripheral devices that communicate over a serial line or a parallel pathway. Super I/O device 108 may also include a memory portion 130 in which various parameters can be stored and retrieved. These parameters may be system and user specified configuration information for the computer system such as, for example, a user-defined computer set-up or the identity of bay devices. The memory portion 130 in National Semiconductor's 97338VJG is a complementary metal oxide semiconductor (“CMOS”) memory portion. Memory portion 130, however, can be located elsewhere in the system.
Referring to
Within each cache area 202, 203, 204, 205 are at least two subsets of elements. For example,
As such, the CPU chip 201 begins with a number of data cache elements 206 that have passed the wafer test and are currently used by the CPU chip. In other words, the data cache elements 206 that passed the water test are initially presumed to be operating properly and are thus initially used or allocated by the CPU. Similarly, the CPU chip begins with a number of spare or non-allocated cache elements 207 that have passed the wafer test and are initially not used, but are available to be swapped in for data cache elements 206 that become faulty.
Also included in the CPU cache management system 200 is logic 212. In the exemplary embodiment of
Connected to the CPU chip 201 is an interface 208. The interface 208 allows the CPU chip 201 to communication with and share information with a non-volatile memory 209 and a boot ROM. The boot ROM contains data and information needed to start the computer system 100 and the non-volatile memory 209 may contain any type of information or data that is needed to run programs or applications on the computer system 100, such as, for example, the cache element configuration.
Now referring to
The cache management logic refers generally to the monitoring, managing, handling, storing, evaluating and/or repairing of cache elements and/or their corresponding cache element errors. Cache management logic can be divided up into different programs, routines, applications, software, firmware, circuitry and algorithms such that different parts of the cache management logic can be stored and run from various different locations within the computer system 100. In other words, the implementation of the cache management logic can vary.
The cache management logic 300 begins after the operating system of the computer system 100 is up and running. During boot-up of the computer system 100, the CPU 201 may have a built-in self-test (BIST), independent of the cache management logic, in which the cache elements are tested to make sure that they are operating correctly. However, the testing and repair must come during the booting process. This results in greater downtime and less flexibility since the computer system 100 must be rebooted in order to determine if cache elements are working properly. However, as shown in
While the operating system is running, the cache management logic 212 determines whether any of the currently-used or allocated cache elements 206 within the CPU are faulty (step 301). This is accomplished, for example, by totaling the number of errors that each cache element accumulates and corrects using a standard error-correction code (ECC) within the CPU over a period of time and comparing that totaled number against a predetermined threshold value or number. If a currently-used cache element is not faulty (step 302), the cache management logic simply returns to normal operation (step 304). However, if a currently-used cache element is determined to be faulty (step 302), a spare or non-allocated cache element 207 is swapped in for the faulty currently-used cache element (step 303). The swapping process takes place at regularly scheduled intervals, for example, the cache management logic may poll a CPU every fifteen minutes. If a cache element is determined to be faulty, the cache management logic may repair the faulty cache element immediately (i.e. during the procedure poll call) or may schedule a repair at some later time (i.e. during an operating system interrupt).
Now referring to
The error information that is gathered and logged includes, but is not limited to, the time of the error, which cache element the error occurred, and the type of error. Similarly, the manner in which the error information is logged may vary. For example, the error information may be logged in the non-volatile memory 209 or other memory location.
After the error information has been gathered and logged, the cache management logic determines in step 404 whether the particular cache element that produced the error needs to be repaired. The determination of whether a particular cache element needs to be repaired may vary. For example, in one embodiment a cache element may be deemed in need of repair if its error production exceeds a predetermined threshold number of errors. The threshold number of errors measured may also be correlated to a predetermined time period. In other words, a cache element may be deemed in need of repair if its error production exceeds a predetermined threshold value over a predetermined time period. For example, a cache element may be deemed in need of repair if its error production exceeds 20 errors over the past 24 hour period. As stated above, the precise method of determining if a cache element is in need of repair may vary and is not limited to the examples discussed above.
If the cache management logic determines that the particular cache element does not need to be repaired, the cache management logic returns to step 401 and continues polling for cache errors. However, if the cache element is in need of repair (i.e. the cache element is faulty), the cache management logic advances to step 405 and calls or requests for system firmware, which may be part of the cache management logic, to repair the faulty cache element. The details of the repair process will be explained in greater detail with reference to
Once the repair request has been made, the cache management logic determines, at step 406, whether the repair was successful and/or not needed. This can be accomplished by, for example, using the repair process shown in
Referring to
If the cache element does not need to be replaced based on the determination at step 502, the cache management logic reports that there is no need to repair that cache element at step 503 and the cache management logic at step 504 returns to step 406. However, if the repair process 500 determines that the cache element needs to be repaired, the cache management logic then determines at step 505 whether a spare cache element is available. In making this determination, the cache management logic may utilize any spare cache element 207 that is available. In other words, there is no predetermined or pre-allocated spare cache element 207 for a particular cache element 206. Any available spare cache element 207 may be swapped in for any cache element 206 that becomes faulty. Although in another embodiment, there may be a set of spare cache elements associated with each particular cache element. The cache management logic would only use the spare elements from the associated set.
If a spare cache element 207 is available, the cache management logic, at step 406 swaps in the spare cache element 207 for the faulty cache element. A spare cache element may be swapped in for a previously swapped in spare cache element that has become faulty. Hereinafter, such swapping refers to any process by which the spare cache element is mapped for having data stored therein or read therefrom in place of the faulty cache element. In one embodiment, this can be accomplished by de-allocating the faulty cache element and allocating the spare cache element in its place. To maintain coherent operation, the data in the cache element about to be repaired must be copied back (flushed) to a memory prior to being de-allocated. This will prevent loss of any modified data. Additionally, the spare cache element should not have any data patterns that indicate to the CPU that random data is valid. To save repair time, the spare cache elements may be cleared at boot time, and may also be cleared during repair.
Once the spare cache element has been swapped in for the faulty cache element, the cache configuration is updated in the non-volatile memory 209 at step 507. Once updated, the cache management logic reports that the cache element repair was successful at step 508 and returns at step 504 to step 406.
If, however, it is determined at step 505 that a spare cache element is not available, then the cache management logic determines at step 509 whether a spare CPU is available. If desired, the cache management logic may omit the CPU determination at step 509 and simply de-allocate the present CPU if there are no spare cache elements. If a spare CPU is available, the cache management logic at step 510 swaps in the spare CPU for the faulty CPU. This is accomplished by de-allocating the faulty CPU and reconfiguring the computer system 100 to recognize and utilize the spare CPU in place of the faulty CPU. A spare CPU may be swapped in for a previously swapped in spare CPU that has become faulty. Once the spare CPU has been swapped in for the faulty CPU, the new CPU cache configuration is then utilized in the non-volatile memory 209 at step 511. Once updated, the cache management logic reports that the CPU repair was successful at step 512 and returns at step 504 to step 406.
Finally, if it is determined at step 509 that a spare CPU is not available, then the cache management logic de-allocates the faulty CPU at step 513 and reports that condition at step 504. Accordingly, the cache configuration and CPU configuration will change and be updated as different cache elements and CPU chips become faulty and are swapped out for spare cache elements and spare CPU chips. Furthermore, all of the repairing occurs while the operating system of the computer system 100 is up and running without having to reboot the computer system 100.
Sometimes it becomes desirable to repair a faulty cache element without the operating system's knowledge. By repairing a faulty cache element without the operating system's knowledge, no applications running on the operating system are interrupted, and therefore, such a procedure can be run on any operating system. However, to accomplish this, the cache management logic must be able to repair the faulty cache element within a clock tick of the operating system. In other words, the repair subroutine must take less time than a clock tick of the operating system. For example, a clock tick may be approximately 10 ms, and in this example, the repair subroutine must take in less than 10 ms.
Referring to
Following a poll call, the cache management logic determines whether any of the currently-used cache elements within the CPU are faulty (step 602). This can be accomplished by any of the previously described methods. If a currently-used cache element is not faulty (step 602), the cache management logic simply returns to normal operation (step 604). However, if a currently-used cache element is determined to be faulty (step 602), a spare cache element is swapped in for the faulty currently-used cache element (step 603). The entire process is performed in less time than a clock tick of the operating system. As a result, the operating system is uninterrupted and the method can be implemented on any system regardless of the type of operating system used.
While the disclosed embodiment describes the faulty cache repair as occurring within one clock tick, the repair can also occur during or within two or more clock ticks. If the repair process takes more than one clock tick, there may be the possibility of an operating system fault because the CPU may miss a clock checkpoint. As a result, optional safeguards may be employed to ensure that CPU clock checkpoints are not missed or are appropriately handled if missed to not cause system faults.
Referring to
After an error has occurred and the cache management logic has entered the subroutine, the cache management logic collects the error locations logs, at 703. The cache management logic then queries and updates the error history in the error database at step 704 based on the current error information. The error database 705 may be stored in various memory locations such as in non-volatile memory 209 or within the system's firmware. The error data that is pulled from the non-volatile memory (such as fuse data and current cache repair states) may be formatted to Built-In Self-Test “BIST” register format so that it may be stored and used in the CPU chip's BIST register. Once all of the error data and data history has been read, formatted, and inserted into the BIST register, the error is then cleaned from the cache, at step 706.
Armed with the necessary error information, the cache management logic then determines if a repair in needed at step 707. In this repair determination, the cache management logic makes sure that the cache element in question has not previously been repaired. Furthermore, the cache element logic determines whether the cache element in question has produced more than a threshold number of errors. If the cache management logic determines that the cache element is not faulty, the cache element logic reports that there is no need to repair the cache element at step 708 and either returns from the interrupt, at step 709, or returns from the polling procedure, at step 710, depending on which entry point was used to begin the repair subroutine.
If the cache element logic determines that the cache element is faulty and that a spare cache element is available, then the cache element logic attempts to repair the faulty cache element, at step 711. This is done by forcing the CPU chip having the faulty cache element hold off coherency traffic from other CPU chips. This is done by blocking snoops from other CPU chips. While the snoops are blocked and coherency traffic is being prohibited, a spare cache element is swapped in for the faulty cache element by programming the data in the BIST register accordingly.
If a spare cache element is not available or if a different problem arises during the repair process, the cache management logic determines, at step 712, that the repair was not successful and reports the repair failure at step 713. However, if a spare cache element was available and the cache management logic determines that the repair was successful, the data in the BIST register is formatted back into fuse data format and the cache configuration is updated in the database in the non-volatile memory at step 714. After the cache configuration has been updated, the cache management logic reports that the repair was successful at step 715 and returns from the interrupt or procedure.
The entire repair subroutine is performed in less time than a clock tick of the operating system. As a result, the repair may be made without the operating system's knowledge and without having to have special code or logic within the operating system to deal with the repair. This enables this procedure to be implemented on any operating system.
Sometimes, it is desirable to generate an operating system (OS) interrupt after a cache error has occurred. This provides a safe manner in which to call the specific repair subroutine to determine if a repair is needed and to make the repair during the OS interrupt. Furthermore, since the OS is interrupted, it puts less of a burden on the actual CPU cache element repair code.
Referring to
Referring to
At step 906, the OS handler then generates an OS interrupt and calls for the repair process to be performed. Based on the updated cache error history, the cache management logic determines whether the cache element that produced the last error is faulty and in need of repair (step 907). If the cache element is not faulty, the cache management logic reports that a repair is not needed to the OS handler at 908. However, if the cache element is faulty, the cache management logic attempts to repair the faulty cache element, at step 909.
The cache management logic determines if the repair was successful (i.e. a spare cache element was available and properly swapped in for the faulty cache element), at step 910. If the repair was not successful, the cache management logic reports such to the OS handler at step 911. However, if the repair was successful, the cache configuration is updated in the database, at step 912, and the successful repair is reported to the OS handler, at step 913. Subsequently, cache management logic returns from the cache error interrupt, at 914.
By using an OS handler to generate an OS interrupt before attempting to repair a possible faulty cache element, a safer and more elaborate repair analysis/procedure can be performed.
The safest way to perform a cache element repair is for the operating system (OS) itself to determine when a cache element is in need of repair. The OS can then safely remove or de-allocate the CPU that has the faulty cache element from the available pool of CPU resources and call for a different program to actually perform the cache element repair process on the de-allocated CPU cache. This gives the repair process virtually unrestricted time and freedom to perform extensive repair processes if needed without the fear of creating problems for the remaining applications running on the OS.
Referring to
Referring to
At step 1106, an OS cache error handler (part of the OS cache management logic) generates an OS interrupt. Subsequently, the OS cache management logic determines at step 1107 whether the error history warrants repairing the particular cache element that produced the most recent error. If the cache element does not need to be repaired then, at step 1108, the OS cache management logic reports to a diagnostics program (part of the non-OS cache management logic) that repair is not needed. However, if the cache element is deeded to be faulty then, at step 1109, the OS cache management logic reports to the diagnostics program that the cache element will need to be repaired and de-allocates the CPU containing the faulty cache element. After the OS cache management logic reports to the diagnostics program, the system returns from the cache error interrupt at step 1110.
If the cache element is faulty, the diagnostics program intervenes at step 1111 to begin the repair process. At step 1112, the diagnostics program examines the log of cache error information that includes the cache error history and current cache configuration. Diagnostics then confirms at step 1113 that the cache element is actually faulty and is in need of repair. If the cache element is not faulty, the diagnostic program simply returns without attempting a repair (step 1114) and the CPU is re-allocated within the computer system 100. While this may be redundant, often it is desirable to have the initial determination of whether a cache element is faulty be done by the OS cache management logic using a simple test followed by a more thorough test performed by a diagnostic or other non-OS cache management logic while the CPU has been de-allocated. The simple test performed by the OS cache management logic can quickly identify problematic cache elements while the non-OS cache management logic has more time and resources to properly test/analyze the cache element since the CPU is de-allocated. If desired, the second determination, step 1113, may be eliminated. If the diagnostic program confirms that the cache element is in need of repair, then it attempts to repair the faulty cache element at step 1115.
The diagnostics program determines if the repair was successful (i.e., a spare cache element was available and properly swapped in for the faulty cache element) at step 1116. If the repair was not successful, the cache management logic reports such to the computer system 100 at step 1117 and returns from the cache error interrupt at step 1118. The diagnostics program may also try to swap in a spare CPU chip for the CPU chip which has the faulty (and unrepairable) cache element. However, if the repair was successful, the cache configuration is updated in the database at step 1119 and the successful repair is reported to the computer system 100 at step 1120. Subsequently, cache management logic returns from the cache error interrupt at 1121.
While the present invention has been illustrated by the description of embodiments thereof, and while the embodiments have been described in considerable detail, it is not the intention of the applicants to restrict or in any way limit the scope of the appended claims to such detail. Additional advantages and modifications will readily appear to those skilled in the art. For example, the number of spare cache elements, spare CPUs, and the definition of a faulty cache or memory can be changed. Therefore, the inventive concept, in its broader aspects, is not limited to the specific details, the representative apparatus, and illustrative examples shown and described. Accordingly, departures may be made from such details without departing from the spirit or scope of the applicant's general inventive concept.
This application claims priority from U.S. Provisional application Ser. No. 60/654,744 filed on Feb. 18, 2005. This application is also related to the following U.S. patent applications: “Systems and Methods for CPU Repair”, Ser. No. 60/654,741, filed Feb. 18, 2005, Ser. No. 11/356,756 filed Feb. 17, 2006, having the same title; “Systems and Methods for CPU Repair”, Ser. No. 60/654,259, filed Feb. 18, 2005, Ser. No. 11/356,559 filed Feb. 17, 2006, having the same title; “Systems and Methods for CPU Repair”, Ser. No. 60/654,255, filed Feb. 18, 2005, Ser. No. 11/356,564, filed Feb. 17, 2006, having the same title; “Systems and Methods for CPU Repair”, Ser. No. 60/654,272, filed Feb. 18, 2005, Ser. No. 11/357,384, filed Feb. 17, 2006, having the same title; “Systems and Methods for CPU Repair”, Ser. No. 60/654,256, filed Feb. 18, 2005, Ser. No. 11/356,576, filed Feb. 17, 2006, having the same title; “Systems and Methods for CPU Repair”, Ser. No. 60/654,740, filed Feb. 18, 2005, Ser. No. 11/356,521, filed Feb. 17, 2006, having the same title; “Systems and Methods for CPU Repair”, Ser. No. 60/654,739, filed Feb. 18, 2005, Ser. No. 11/357,396, filed Feb. 17, 2006, having the same title; “Systems and Methods for CPU Repair”, Ser. No. 60/654,258, filed Feb. 18, 2005, Ser. No. 11/356,560, filed Feb. 17, 2006, having the same title; “Systems and Methods for CPU Repair”, Ser. No. 60/654,743, filed Feb. 18, 2005, Ser. No. 11/357,386, filed Feb. 17, 2006, having the same title; “Methods and Systems for Conducting Processor Health-Checks”, Ser. No. 60/654,603, filed Feb. 18, 2005, Ser. No. 11/357,385, filed Feb. 17, 2006, having the same title; and “Methods and Systems for Conducting Processor Health-Checks”, Ser. No. 60/654,273, filed Feb. 18, 2005, Ser. No. 11/356,759, filed Feb. 17, 2006, having the same title; which are incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
4684885 | Chapman | Aug 1987 | A |
5649090 | Edwards et al. | Jul 1997 | A |
5954435 | Yoshida | Sep 1999 | A |
5961653 | Kalter | Oct 1999 | A |
6006311 | Arimilli | Dec 1999 | A |
6181614 | Aipperspach | Jan 2001 | B1 |
6363506 | Karri | Mar 2002 | B1 |
6425094 | Drogichen | Jul 2002 | B1 |
6516429 | Bossen et al. | Feb 2003 | B1 |
6649090 | Funaki | Nov 2003 | B2 |
6651182 | Chang et al. | Nov 2003 | B1 |
6654707 | Wynn | Nov 2003 | B2 |
6708294 | Nakao et al. | Mar 2004 | B1 |
6789048 | Arndt et al. | Sep 2004 | B2 |
6832329 | Ahrens et al. | Dec 2004 | B2 |
6851071 | Bossen et al. | Feb 2005 | B2 |
6922798 | Nemani et al. | Jul 2005 | B2 |
6954851 | Natu | Oct 2005 | B2 |
6973604 | Davis et al. | Dec 2005 | B2 |
6985826 | Pomaranski | Jan 2006 | B2 |
7007210 | Fields et al. | Feb 2006 | B2 |
7047466 | Meaney | May 2006 | B2 |
7058782 | Henderson et al. | Jun 2006 | B2 |
7117388 | Arimilli | Oct 2006 | B2 |
7134057 | Kaushik et al. | Nov 2006 | B1 |
7155637 | Jarboe, Jr. | Dec 2006 | B2 |
7155645 | Korhonen | Dec 2006 | B1 |
7321986 | Ash | Jan 2008 | B2 |
7350119 | Zuraski et al. | Mar 2008 | B1 |
7409600 | Azevedo | Aug 2008 | B2 |
7415644 | Fred A. Bower III | Aug 2008 | B2 |
7418367 | Pomaranski | Aug 2008 | B2 |
7523346 | Barlow | Apr 2009 | B2 |
7523349 | Doyle Barras | Apr 2009 | B2 |
20030074598 | Bossen | Apr 2003 | A1 |
20030212884 | Lee | Nov 2003 | A1 |
20040133826 | Zhu et al. | Jul 2004 | A1 |
20040143776 | Cox | Jul 2004 | A1 |
20040221193 | Armstrong | Nov 2004 | A1 |
20050096875 | Pomaranski | May 2005 | A1 |
20060080572 | Fong | Apr 2006 | A1 |
20060248394 | McGowan | Nov 2006 | A1 |
20080235454 | Duron | Sep 2008 | A1 |
20080263394 | Tanabe | Oct 2008 | A1 |
Number | Date | Country | |
---|---|---|---|
20060230254 A1 | Oct 2006 | US |
Number | Date | Country | |
---|---|---|---|
60654744 | Feb 2005 | US |