85
lllllllllllllllllllllllllllllllll|||lllllllllllllllllllllllllllllllllllllll USOO5560023A United States Patent [19] Crump et al. [54] [75] [73] [11] Patent Number: [45] Date of Patent: 5,560,023 Sep. 24, 1996 AUTOMATIC BACKUP SYSTEM FOR FOREIGN PATENT DOCUMENTS ADVANCED POWER MANAGEMENT 0565914 3/1993 European Pat. Off. . Inventors: Dwayne T. Crump; Steven T. 9221081 11/1992 WIPO ' Pancoast, both of Lexington, Ky. Primary Examiner_lack B. Harvey . _ . . . Assistant Examiner—Paul R. Myers Asslgnee' 1831.232322] B5 11521555134 $chmes Attorney, Agent, or Firm—Sean T. Moorhead; Anthony N. p ' ' Magistrale Appl. No.: 301,943 [57] ABSTRACT Filed: Sep' 7’ 1994 A suspend/resume computer system having a CPU, a non Int. c1.6 ...................................................... .. G06F 1/32 volatile Storage device, Volatile registers and memory data’ US Cl 395/750, 364/707 a power management processor, a backup suspend timer and Field 0i‘. """""""""""""""" " 395/750: 364/707 21 power supply in circuit communication. The power man """""""""""""""" " agement processor controls the regulation of power to the References Cited CPU by the power supply. The suspend/resume system is controlled by an operating system having power manage U.S. PATENT DOCUMENTS ment control. The backup suspend timer executes indepen . dently of the power management portion of the operating """""""""""""""" " system. The backup suspend timer causes the system to 5’230’074 7/1993 Canova’ Jr_' 395/750 suspend if the power management portion of the operating 5241:6230 8/1993 Cole et al. ........ .. 395/750 System ceases functioning and the System Should Otherwise 5,386,552 1/1995 Garney ...... .. 395/182.08 be Suspended 5,396,635 3/1995 Fung ..................................... .. 395/750 5,410,711 4/1995 Stewart . 5,410,713 4/1995 White et al. . 20 Claims, 52 Drawing Sheets TTO lTYphiml ‘1 Internal From eouetpleotne 4 Model" Optoisolotor l7 \\ H 900 Tow TlylPiOCQl‘ AC N power On (1 L11 B1 6 Supply Powergood Lp RS-232 Ring Signal External 904 Modem /%2 l \ \{TrunsFormer _ > Power 1 Management RS-B32 Doro and Control a < 1 Circuit 23 10s Ke bourd ' Conzlroller “3 \i04 | 92 [94 /% 88 - Interrupt RS-232 CHOS l Controllers UARTs NVRAH m i A 90—\ Clock Synth. l 827? r86 ‘906 | Diskette lUE Disk CMOS Porollel Timers Adopter Controller Clock Adapter [02 93/ 100/

Automatic backup system for advanced power management

Embed Size (px)

Citation preview

Page 1: Automatic backup system for advanced power management

lllllllllllllllllllllllllllllllll|||lllllllllllllllllllllllllllllllllllllll USOO5560023A

United States Patent [19] Crump et al.

[54]

[75]

[73]

[11] Patent Number:

[45] Date of Patent:

5,560,023 Sep. 24, 1996

AUTOMATIC BACKUP SYSTEM FOR FOREIGN PATENT DOCUMENTS

ADVANCED POWER MANAGEMENT 0565914 3/1993 European Pat. Off. .

Inventors: Dwayne T. Crump; Steven T. 9221081 11/1992 WIPO '

Pancoast, both of Lexington, Ky. Primary Examiner_lack B. Harvey . _ . . . Assistant Examiner—Paul R. Myers

Asslgnee' 1831.232322] B5 11521555134 $chmes Attorney, Agent, or Firm—Sean T. Moorhead; Anthony N. p ’ ’ ' ' Magistrale

Appl. No.: 301,943 [57] ABSTRACT

Filed: Sep' 7’ 1994 A suspend/resume computer system having a CPU, a non Int. c1.6 ...................................................... .. G06F 1/32 volatile Storage device, Volatile registers and memory data’ US Cl 395/750, 364/707 a power management processor, a backup suspend timer and Field 0i‘. """""""""""""""" " 395/750: 364/707 21 power supply in circuit communication. The power man

"""""""""""""""" " ’ agement processor controls the regulation of power to the

References Cited CPU by the power supply. The suspend/resume system is controlled by an operating system having power manage

U.S. PATENT DOCUMENTS ment control. The backup suspend timer executes indepen . dently of the power management portion of the operating

"""""""""""""""" " system. The backup suspend timer causes the system to

5’230’074 7/1993 Canova’ Jr_' 395/750 suspend if the power management portion of the operating 5241:6230 8/1993 Cole et al. ........ .. 395/750 System ceases functioning and the System Should Otherwise 5,386,552 1/1995 Garney ...... .. 395/182.08 be Suspended 5,396,635 3/1995 Fung ..................................... .. 395/750

5,410,711 4/1995 Stewart .

5,410,713 4/1995 White et al. . 20 Claims, 52 Drawing Sheets

TTO lTYphiml ‘1 Internal From eouetpleotne 4 Model" Optoisolotor

l7 \\ H 900 Tow TlylPiOCQl‘ AC N power On

(1 L11 B1 6 Supply Powergood

Lp RS-232 Ring Signal External

904 Modem /%2 l \ \{TrunsFormer _ > Power

1 Management RS-B32 Doro and Control a < 1 Circuit

23 10s

Ke bourd ' Conzlroller

“3 \i04 | ‘ 92 [94 /% 88 - Interrupt RS-232 CHOS l Controllers UARTs NVRAH m i A

90—\ Clock Synth.

l 827? r86 ‘906 | Diskette lUE Disk CMOS Porollel Timers

Adopter Controller Clock Adapter [02 93/ 100/

Page 2: Automatic backup system for advanced power management

US. Patent Sep. 24, 1996 Sheet 1 0f 52 5,560,023

1

FIG.

WHIP

Page 3: Automatic backup system for advanced power management

U.S. Patent Sep. 24, 1996 Sheet 2 0f 52 5,560,023

Page 4: Automatic backup system for advanced power management

US. Patent Sep. 24, 1996 Sheet 3 0f 52 5,560,023

B/ /4l 10 40 \ \ Micro Moth /44

Processor ?oprocessor

‘ ' 11

54 DRAM SIP Control <‘r_ I DRAM SIP -__-_> Video

Address ‘~50 Controller DRAM SIP MUX 56/ /58

S4 _ /60 Video DRAM SIP Um“ (I > C h Memory

Buffer I 00 e

53/’ I \452

62\ Cache Control ler I

V l 64 \ BuF’r‘er 68\ I

Bus < > Latch{BuH-‘er I Control ler newgotémer E

i L; 72\ [-71 90 '9

DMA <2 II Control {er 80 . <

Central 3 \ 4'2 Arbiter I

82/ 74\ V I Buffer

76% | 78

FIG. 3A / I/U Slot

76$ /78 1/0 Slot

Page 5: Automatic backup system for advanced power management

US. Patent Sep. 24, 1996 Sheet 4 of 52 5,560,023

TToelTeyphiocril < > Internal‘ From 0utplet 4 > Model" Optoisolator

17 H / O \ooo

To Typical AC p n Wall Outlet 2 su°pwpelry <

Powergood

——>> RS-232 Ring Signal ——*> External

904\ Modem /902 \l Transformer Switch <__> Power

21/ Management RS-232 Data and Control LED 4-» Circuit

83/ 106/ 4\ Ke board

) Conllroller <2:

‘L 13 \104 l

' Interrupt RS-232 CMDS l Controllers UARTs NVRAM ROM

! <l - V (190x l_> Clock

I UY/EM ' Synth. l 8277 llfse U U ll 906/ Diskette IDE Disk CMDS Parallel Timers

' Adapter Controller Clock Adapter J I 102 T l 98/ 100/ ____________l_4_A_TCH T0 FIG

FIG- 3B

Page 6: Automatic backup system for advanced power management

US. Patent Sep. 24, 1996 Sheet 5 0f 52 5,560,023

156

User Presses Power Button WHILE Suspend is Disabled

User Presses Power Button

GB External Event lRing. Alarm. etc. )

150

Normal Operating

State

EITHER Activity ' ' t Suspend Time-out.

InSatcatnidvbly y 0R User Presses Time-out Power Button WHILE

Suspend is Enabled

User Presses Power Button

OR External Event (Ring. Alarm. etc. )

User Activity (Includes User Pressing the Power Button)

110 /’ Inactivity Suspend Time-Out 154/

Suspend Standby State State

152

Page 7: Automatic backup system for advanced power management
Page 8: Automatic backup system for advanced power management

US. Patent Sep.24, 1996 Sheet 7 of 52 5,560,023

FIB 6A1 1-- C4 '

Il/LLF l0_CHRDY# T |

01 1' 10-0110 | ao-vcc W

001m 1 10 Lg

1011:: 9 10 1/00 12 1011:: a 11 1/01 13 R1100 .w'

1101 3 12 1/02 14 NC I: PROCLRDY 4 13 1/03 15 NC ID 01105111151: 5 14 1/04 16 1051110051: :1

S014) 6015 1/05 17 RESET '5 R81’ 011v 1 10 1/00 18 0:: 11101 0 11 1/07 19 1011mm !: 112012 - 11 19 |

PALl6V8 |

ZU-PIN PLCC |

$010)

I- _ _ _ _ _ _ _ _ — _ _ _ _ _ _ _ _ — _ _ _ _ _ _ _ _ _ _ — _ _ _ _""1

I 1

1 VBAT AUXS E I

I | 1 “"5 R17 NUDE 2 R18 1 I 100K I l 47K| ' IU/LLF Q2 1 ' 1100121 7 ‘ l \ l i l I R4 1% 6 C8 : I t l

: 82K 10K TIM} I

: - ;\-920 . l . | ‘I |

L ________________________________ _.__l

Page 9: Automatic backup system for advanced power management
Page 10: Automatic backup system for advanced power management
Page 11: Automatic backup system for advanced power management

US. Patent Sep. 24, 1996 Sheet 10 0f 52 5,560,023

AUXS U2

Micro controller

F I G - P02 3_3K HAKEUP #

C9 900 IOOOpFI

} vcc E i l l I I |

' : | l 905 m _ > To Mqdem |

Ch : / ‘p i moi‘- r“ _____ "' OPTOI :

: Threshold : V t | and I S :1’; I | I Protect ion : : : i L_ ______ "J I

R: ng OT- _ ‘ 1 ' I

L _______________________________________ ___l

AUXS

R23 220K

S h/ 74H132 R20 Q13 Tgrn On witc >_‘—\ over

0 b A'l'l'l a‘ S ‘ e ounce ‘ ! ‘OK-n- upp y

5.2,‘. r 3511

Powergood 010

+5 Logic m1 Vol tnge From >——-| Power Supply

Page 12: Automatic backup system for advanced power management
Page 13: Automatic backup system for advanced power management

U.S. Patent Sep. 24, 1996 Sheet 12 of 52 5,560,023

174

Pressing the Switch 0R Power-0n Reset 0R

Wake 0n External Event

176 Switch Dn/Press State

Releasing the Switch

"Not-mat 0n StateII Switch On/Release

State 178

Pressing the Swi tch

Switch OFF/Press

State

Pressing 180 the Switch

Releasing the Switch

Switch DFf/Reiease

State " Suspend Request State"

Switch States Maintained in the Microcontrol ler U3

182

FIG. 7

Page 14: Automatic backup system for advanced power management

US. Patent Sep. 24, 1996 Sheet 13 of 52 5,560,023

200 -\ / Start: \CPU Jumps to Reset Vector

at Power-Up or Reset

Should the Turn OFF System Remain S stem

Powered? ower

Perform Perform Normal N0 15 Suspend Abbreviated

Power-0n Flag SET in Power-0n Sehc Test CMDS? Self Test

202 216 L / 206 L /

Resume Rout ine Loads PBUDT System From Hard Drive Routine

Boots US (Restores 0S APM and APM Device Driver to

Memory: therefore. APM 208 Is Running and Aware of‘

/- the Supervisor Rout ine) OS Starts Executing APM Device

Driver Parol lel Thread

Para! lel Thread

V D V DS Executes Approx‘mately Ever)’ 05 Resumes Execut i ng Code

Code one Second- AP" P0l 15' That Has Interrupted During IndeHn i tely_ _ _ the Supervisor Rout ine the Suspend Dperat ion and

for AP" Event-5 Executes Code Indefini tely. . .

Page 15: Automatic backup system for advanced power management

US.’ Patent Sep. 24, 1996 Sheet 14 of 52 5,560,023

E82 Supervisor Routine:

"Poll Eventn Called by APM

///-226 v 224 950

Issue the "Sus end Re uestn "0 topthe OSqAPM

) Driver (Causes APM to Call the Suspend Routine. Figure 10)

Has the Suspend Request

Previously Issued ?

Has the Switch

Pressed ?

Yes

Yes ‘ N° 228

955 954~\\\ \\\\\ Issue the ' 953 "?riticaluSuspend

has _ Request to the the Critical No US APM Uriver Critical Yes

(Causes APM to V Suspend Re uest Susgigd {lag ’ Previous y Call Suspend

' Issued ? Routine. Figure 10. Innediateiy No Yes

958 '

i

957 K958 Yes , SET the Critical

Suspend Flag

Suspend Pending For More Than 15 Seconds ??

No

Y 959 960 / / No > Restart Failsafe Timer and

APM Fail~Suspend Timer Pending ?

Yes

REESE-553E F IG - 9A 1

Page 16: Automatic backup system for advanced power management

US. Patent Sep. 24, 1996 Sheet 15 of 52 5,560,023

MATTIH TO FIG. 9A]

230 r 332

Did the Issue the "Normal 234 System Just Resumell APM Return

Finish Code (Causes APM to , Resuming ? Update Certain

System Parameters)

Is the S stem

in the tandby State '2

245 / Did There Been Any

- he Inact ivi t Hardfi le. Ke board. t . Y or ?ousye Stcizndby Trgner Activity ? xpire .

246 / Enter the

Y Standb State S IS th? [Figurle 18) ystem In

the Standby L 247 ‘

I Didt Th}: SET the "Suspend . ?QC lVl y ll

EX" the Sus end Timer Re?qgtfesti?tffsriesReiPLiim sfg'jdb)’ 3t??? xpire ? to Cat 1 the

‘gun? I Suspend Routine. Figure 10)

248/

Restart Inactivit Suspend Timer an SET thne “N0 Inactivity Standby > Event APM

Timer Return Code

FIG- 9A2

Page 17: Automatic backup system for advanced power management

US. Patent Sep. 24, 1996 Sheet 16 of 52 5,560,023

/- 965

[Rout ine Executed Respons iv e “0 APM Working On Last Request KRout ine Executed Responsive) \ to APM Reject Lust Request

962 /

Restart Fdi lsofe Timer 0nd APM

Fail-Suspend Timer

963 / Res tart lS-Second Suspend Pending

Timer

964

FIG. 9B

966 /

Restart Fuiism‘e Timer and APM

Fui l -Suspend Timer

967 / SET

Cr i ticnl Suspend Flag

968

FIG. 9C

Page 18: Automatic backup system for advanced power management

US. Patent Sep. 24, 1996

250 / Sus end Rout ine. which Is xecuted By the APN

Rout i ne In Response to o llSuspend Re uest "

Event Co e

Does the CPU Have an

50 to Save CPU State Routine

[Figure 13!

Handler

5,560,023 Sheet 17 of 52

972 /

> to Generate an SHI

Cause the Microcontrol ler U2

to the CPU

974 / SHI Microcode in the CPU Saves the State a? the CPU

Jumps Here

Has Power Button

Pressed ?

260\

l / 262 Set Up Stock in Segment

EOOOH

/ 255 SET the Software Suspend Flag

Make Shadow BIOS Read/Hr i te <{——-————-—

MATCH T0 FIG. 108

FIG. 10A

Page 19: Automatic backup system for advanced power management

US. Patent Sep. 24, 1996 Sheet 18 of 52 5,560,023

264 / Is a DNA

Transfer or Hard’r‘i le Transfer Yes

Currently Underway ?

265 N° 268 ~ / / Make Shadow BIOS Read-Only

Restart Fai lsafe Timer in l the Hicrocontroller U3 5 /- 2 6

270 Cal l : Restore l7 / CPU State Save 8042 State B llr i t in Routine

Registers Into ySegment g [Figure 14) EOOOH Data Structure

272 L f Return to APH Cal 1 : 8259 Save State Routine

[Figure 151

‘1, fan Swap BIOS Date Areas and Vector Tables

11 f‘ 276 Save Timer Control ler State and IDE Controller State By Writing the Values in The i r Registers

Into Segment EOOOH Data Structure

286

Instruct \ltlhe Memary/ F _ 1 Controller to Flush the

External Cache

lTATCH T0 FIG. 10c

Page 20: Automatic backup system for advanced power management

US. Patent Sep. 24, 1996 Sheet 19 0f 52 5,560,023

MATCH T0VFIG_ 10B

‘1/ f 292 In i t ial ize IDE Control ler To Put Hard Drive Into

A Known State / 976

Begin Interrupt-Dr iven Parat lel Rout i ne

350 Pressin

Ctl-Al t-De ete Causes Code to

Jump Here

To Read the Para! lel Thread Registers me Any CLEAR ——' ; Modems and Suspend Flag

294 Mr i te To the in CMOS EDOOH Data Memory Structure

Locate Suspend Fi 1e: Read Fi le Size 1, and Signature GoTo RESET

Vector and Thereby Restart S sten

(Does Not eturn) 296 \

Are Fi lesize

and Signature Correct ?

N0 354 J

298 \ Z97 \ F T d Cal 1 the Fatal

Reset Fai [50 e iner an Suspend Error Ensure Switch Has Not ; Rout ine (Task 652

Pressed Again _ of Figure 13)

300 299

Go To Task 506

To Recover From Partial

Suspend

Locate Suspend Fi \e On Fixed Disk. Uri te

Signature Phrase To Hard Drive

MATCH T0 FIG. 100

F IG . 1 0C

Page 21: Automatic backup system for advanced power management
Page 22: Automatic backup system for advanced power management
Page 23: Automatic backup system for advanced power management
Page 24: Automatic backup system for advanced power management
Page 25: Automatic backup system for advanced power management
Page 26: Automatic backup system for advanced power management
Page 27: Automatic backup system for advanced power management
Page 28: Automatic backup system for advanced power management
Page 29: Automatic backup system for advanced power management
Page 30: Automatic backup system for advanced power management
Page 31: Automatic backup system for advanced power management
Page 32: Automatic backup system for advanced power management
Page 33: Automatic backup system for advanced power management
Page 34: Automatic backup system for advanced power management
Page 35: Automatic backup system for advanced power management
Page 36: Automatic backup system for advanced power management
Page 37: Automatic backup system for advanced power management
Page 38: Automatic backup system for advanced power management
Page 39: Automatic backup system for advanced power management
Page 40: Automatic backup system for advanced power management
Page 41: Automatic backup system for advanced power management
Page 42: Automatic backup system for advanced power management
Page 43: Automatic backup system for advanced power management
Page 44: Automatic backup system for advanced power management
Page 45: Automatic backup system for advanced power management
Page 46: Automatic backup system for advanced power management
Page 47: Automatic backup system for advanced power management
Page 48: Automatic backup system for advanced power management
Page 49: Automatic backup system for advanced power management
Page 50: Automatic backup system for advanced power management
Page 51: Automatic backup system for advanced power management
Page 52: Automatic backup system for advanced power management
Page 53: Automatic backup system for advanced power management
Page 54: Automatic backup system for advanced power management
Page 55: Automatic backup system for advanced power management
Page 56: Automatic backup system for advanced power management
Page 57: Automatic backup system for advanced power management
Page 58: Automatic backup system for advanced power management
Page 59: Automatic backup system for advanced power management
Page 60: Automatic backup system for advanced power management
Page 61: Automatic backup system for advanced power management
Page 62: Automatic backup system for advanced power management
Page 63: Automatic backup system for advanced power management
Page 64: Automatic backup system for advanced power management
Page 65: Automatic backup system for advanced power management
Page 66: Automatic backup system for advanced power management
Page 67: Automatic backup system for advanced power management
Page 68: Automatic backup system for advanced power management
Page 69: Automatic backup system for advanced power management
Page 70: Automatic backup system for advanced power management
Page 71: Automatic backup system for advanced power management
Page 72: Automatic backup system for advanced power management
Page 73: Automatic backup system for advanced power management
Page 74: Automatic backup system for advanced power management
Page 75: Automatic backup system for advanced power management
Page 76: Automatic backup system for advanced power management
Page 77: Automatic backup system for advanced power management
Page 78: Automatic backup system for advanced power management
Page 79: Automatic backup system for advanced power management
Page 80: Automatic backup system for advanced power management
Page 81: Automatic backup system for advanced power management
Page 82: Automatic backup system for advanced power management
Page 83: Automatic backup system for advanced power management
Page 84: Automatic backup system for advanced power management
Page 85: Automatic backup system for advanced power management