CN105824650B - Computer system, adaptive suspend mode control module and its control method - Google Patents
Computer system, adaptive suspend mode control module and its control method Download PDFInfo
- Publication number
- CN105824650B CN105824650B CN201510004465.9A CN201510004465A CN105824650B CN 105824650 B CN105824650 B CN 105824650B CN 201510004465 A CN201510004465 A CN 201510004465A CN 105824650 B CN105824650 B CN 105824650B
- Authority
- CN
- China
- Prior art keywords
- wake
- data
- central processing
- computer system
- processing unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Power Sources (AREA)
Abstract
A kind of computer system, adaptive suspend mode control module and its control method.Computer system includes central processing unit, secondary processor and the connectivity port JTAG for connecting central processing unit and secondary processor.Secondary processor is when receiving suspend mode trigger signal, execute suspend mode program, with the current state of backup computer systems and system of shutting down computer, and when receiving wake up trigger signal, wake up procedure is executed according to the wake-up data of corresponding central processing unit, so that computer system is restored to the state before execution suspend mode program.The present invention replaces central processing unit to execute suspend mode program and wake up procedure via with secondary processor, computer system can be made to realize quick turn-on function, and quick turn-on function can be made to be suitable for different types of central processing unit under the situation of operating system or startup program in not modifying.
Description
Technical field
The utility model relates to a kind of computer system, control module and control method are related, in particular to a kind of tool can
Computer system, adaptive suspend mode control module and the adaptive dormancy control method of adaptive suspend mode control function.
Background technique
Existing advanced configuration and power interface (Advanced Configuration and Power Interface,
ACPI) standard is the current most common power management specification.By this ACPI standard, enable research staff can be more easily to meter
Calculation machine system carries out power management.
In ACPI standard, the sleep state (Sleeping States, S-States) of computer system include S0, S1,
Six kinds of modes of S2, S3, S4 or S5.It is introduced in this only for more common S0, S3 and S4 Three models.
Under S0 mode, computer system is the state of normal boot-strap running.
Also known as standby (Standby) mode of S3 mode is suspended to memory main body (Suspend to RAM, STR) mode,
Under standby mode, a computer system only provides electrical power to a memory main body, and stops supplying power to other devices to save electricity
Power.When computer system leaves standby mode, due to still storing the computer system in the memory main body into standby mould
All status datas before formula, the computer system be not necessary to the various softwares (such as driver or operating system) of heavy duty or again into
Row initialization can be operated directly, and can be realized quick turn-on function and be restored extremely to enter the state before standby mode.
In more detail, since the memory main body is volatile memory (volatile memory), therefore the computer system
Must after entering standby mode continued power to the memory main body.Once the memory main body is powered down, it will lead to and be stored in the master
All data (status data including the computer system) of memory body disappear, so will be so that the computer system can not be in
Quick turn-on function is realized after leaving standby mode and restores extremely to enter the state before standby mode.
S4 mode is also known as suspend mode (Hibernate) mode or is suspended to hard disk (Suspend to Disk, STD) mode.Please
A and Figure 1B refering to fig. 1, Figure 1A are the first schematic diagram of existing suspend mode, and Figure 1B is the second schematic diagram of existing suspend mode,
To illustrate that existing computer system enters suspend mode and leaves the function mode of suspend mode.
As shown in Figure 1A, existing computer system 1 includes a central processing unit 10, a memory main body 12 and a hard disk 14.
A status data 120 of corresponding 1 current state of existing computer system is stored in the memory main body 12.
The hard disk 14 stores a suspend mode program 140.The suspend mode program 140 is to be exclusively used in the specific central processing unit
10.Specifically, the suspend mode program 140 be the existing computer system 1 operating system (Operating system, OS) or
A part of boot program (bootloader).
When the central processing unit 10 receives a suspend mode trigger signal, the suspend mode program 140 can be performed so that the existing meter
Calculation machine system 10 enters suspend mode.Specifically, the central processing unit 10 is after executing the suspend mode program 140, it can be by the shape
State data 120 back up to the hard disk 14 using as a Status of Backups data 120 ', and stop supplying power to the existing computer system 1
All devices (including the memory main body 12) to save electric power.
When the central processing unit 10 for having entered suspend mode receives a wake up trigger signal, the suspend mode program can be performed
140 to leave suspend mode.Specifically, after the central processing unit 10 is waken up and executes the suspend mode program 140, it can be hard from this
Disk 14 is loaded into the Status of Backups data 120 ' to the memory main body 12 to lay equal stress on as the status data 120 (as shown in Figure 1B)
Newly open other devices.
Whereby, which can realize quick turn-on function, and can by the Status of Backups data 120 ',
It is into the state before suspend mode in being waken up rear fast quick-recovery current state.Also, due to the existing computer system 1 in
All devices are stopped powering under suspend mode, therefore suspend mode is the mode of most power saving in sleep state.
However, since the suspend mode program 140 is to be exclusively used in the specific central processing unit 10.When the existing computer system
1 manufacturer is intended to release using new central processing unit (that is, with the different types of another central processing of the central processing unit 10
Device) the existing computer system 1 when, the research staff of system manufacturer must significantly repair the suspend mode program 140
Change, so that the suspend mode program 140 is applicable to the new central processing unit.Also, since the suspend mode program 140 is operating system
Or a part of boot program, more add the difficulty and complexity of aforementioned modifications.
So existing suspend mode, which carries into execution a plan, has that above-mentioned adaptive is too low, and urgently more effectively solve
Scheme is suggested.
Summary of the invention
The main object of the present invention is to be to provide a kind of computer system, adaptive suspend mode control module and adaptive
Dormancy control method is applicable to different types of central processing unit.
In order to achieve the above object, the present invention is to provide a kind of computer system, including a connectivity port JTAG, electric connection should
One central processing unit of the connectivity port JTAG and the secondary processor for connecting the connectivity port JTAG.The secondary processor has
The one of the corresponding central processing unit wakes up data.Wherein, which sends one when receiving a suspend mode trigger signal and stops
Control signal sleep to the central processing unit, a suspend mode program is executed by the control to the central processing unit, the suspend mode program
Including backing up the current status data of the computer system and closing the computer system;Also, the secondary processor is in connecing
One is sent when receiving a wake up trigger signal and wakes up control signal to the central processing unit, is come by the control to the central processing unit
A wake up procedure is executed according to the wake-up data, which includes restoring the computer system to executing the suspend mode program
Preceding state.
From the above, wherein further including: a memory main body is electrically connected the central processing unit, stores the status data;And
One non-volatility memory is electrically connected the central processing unit;The secondary processor backs up the shape when executing the suspend mode program
State data are to the non-volatility memory using as a Status of Backups data, and when executing the wake up procedure, according to the wake-up
Data read the Status of Backups data from the non-volatility memory, and are loaded into the memory main body using as the status data.
From the above, wherein the wakeup packet includes a scratch memory data address of the corresponding central processing unit, the main note
Recall an access data address of body and a mapping address of the non-volatility memory, wherein the mapping address is corresponding to the access
Data address.
From the above, wherein the secondary processor enables the central processing unit temporary according to this when executing the wake up procedure
Device data address operates and starts the computer system, and reads the backup shape from the mapping address of the non-volatility memory
State data, and it is loaded into the access data address of the memory main body.
From the above, wherein the wake-up data are a text file or one or two meta files;The wake-up data are stored in this
A memory body, the non-volatility memory or the external memory for connecting the central processing unit of secondary processor.
From the above, wherein one end of one JTAG connecting element of the connectivity port JTAG connection, the secondary processor connect
The other end of the JTAG connecting element;The central processing unit supports joint test work group technology.
From the above, wherein further including a trigger element, the central processing unit or the secondary processor, triggering member are connected
Part generates the suspend mode trigger signal or the wake up trigger signal when receiving peripheral operation.
The present invention further provides a kind of adaptive suspend mode control modules, including via one meter of JTAG connecting element connection
One auxiliary connectivity port of one connectivity port JTAG of calculation machine system and the aid in treatment for being electrically connected the auxiliary connectivity port
Device.The secondary processor has the one of the corresponding central processing unit to wake up data.Wherein the connectivity port JTAG, which is electrically connected, is somebody's turn to do
One central processing unit of computer system.Wherein, which sends a suspend mode control when receiving a suspend mode trigger signal
Signal processed executes a suspend mode program by the control to the central processing unit, which includes to the central processing unit
It backs up the current state of the computer system and closes the computer system;Also, the secondary processor wakes up in reception one and touches
One is sent when signalling and wakes up control signal to the central processing unit, is come by the control to the central processing unit according to the wake-up
Data execute a wake up procedure, which includes restoring computer system to executing the state before the suspend mode program.
The present invention further provides a kind of adaptive dormancy control methods, including the following steps: a) secondary processor in
The central processing unit that a dormant control signal a to computer system is sent when receiving a suspend mode trigger signal, by this
The control of central processor executes a suspend mode program;B) central processing unit backs up the department of computer science according to the dormant control signal
The current state of system simultaneously closes the computer system;C) secondary processor obtains corresponding be somebody's turn to do when receiving a wake up trigger signal
The one of one central processing unit of computer system wakes up data;D) it sends one and wakes up control signal and the wake-up data to the center
Processor comes to execute a wake up procedure according to the wake-up data by the control to the central processing unit;And e) the central processing
Device restores the computer system to executing the state before the suspend mode program according to wake-up control signal.
From the above, wherein step b includes the following steps: b1) receive the dormant control signal;B2) according to the suspend mode
Control signal backup is stored in the status data a to non-volatility memory of the computer system, using as a Status of Backups
Data;And b3) according to the dormant control signal close the computer system.
From the above, wherein step e includes the following steps: e1) receive wake-up control signal and the wake-up data;
E2 signal) is controlled according to the wake-up and the wake-up data start the computer system;And e3) control signal according to the wake-up and be somebody's turn to do
It wakes up data and reads the Status of Backups data from the non-volatility memory, and be loaded into a main memory of the computer system
Body, using as the status data.
From the above, wherein the wakeup packet includes the scratch memory data address for corresponding to the central processing unit;The step
E2 is to enable the central processing unit operate according to the scratch memory data address and start the computer system.
From the above, wherein the wakeup packet includes an access data address and non-volatile memory of the memory main body
One mapping address of body, wherein the mapping address corresponds to the access data address;Step e3 is from the non-volatility memory
The mapping address read the Status of Backups data, and be loaded into the access data address of the memory main body.
From the above, wherein the wake-up data are a text file or one or two meta files.
The present invention replaces central processing unit to execute suspend mode program and wake up procedure via with secondary processor, can be need not
It modifies under the operating system of computer system or the situation of startup program, enables the computer using different types of central processing unit
System can all realize quick turn-on function.
Below in conjunction with the drawings and specific embodiments, the present invention will be described in detail, but not as a limitation of the invention.
Detailed description of the invention
Figure 1A is the first schematic diagram of existing suspend mode;
Figure 1B is the second schematic diagram of existing suspend mode;
Fig. 2 is the computer system architecture figure of the first specific embodiment of the invention;
Fig. 3 is the computer system appearance diagram of the first specific embodiment of the invention;
Fig. 4 is the adaptive suspend mode control module architecture diagram of the first specific embodiment of the invention;
Fig. 5 is the adaptive suspend mode control module appearance diagram of the first specific embodiment of the invention;
Fig. 6 is the adaptive dormancy control method flow chart of the first specific embodiment of the invention;
Fig. 7 is the adaptive dormancy control method flow chart of the second specific embodiment of the invention.
Wherein, appended drawing reference
1 ... existing computer system
10,22 ... central processing units
12,26 ... memory main bodies
120,260 ... status datas
120 ', 260 ' ... Status of Backups data
14 ... hard disks
140 ... suspend mode programs
2 ... computer systems
20 ... the connectivity ports JTAG
24,40 ... secondary processors
240,400 ... wake up data
28 ... non-volatility memories
30 ... trigger elements
32 ... printed circuit boards
34 ... read modules
36 ... external memories
4 ... adaptive suspend mode control modules
42 ... auxiliary connectivity ports
44 ... auxiliary printing circuit boards
A1, a2 ... JTAG connecting element
The first rate-determining steps of S600-S612 ...
The second rate-determining steps of S700-S720 ...
Specific embodiment
A hereby just preferred embodiment of the invention cooperates attached drawing, and detailed description is as follows.
Head is referring to Fig. 2, be the computer system architecture figure of the first specific embodiment of the invention.As shown in Fig. 2, of the invention
Tool adaptive suspend mode control function computer system 2 (hereinafter referred to as computer system 2) mainly include a connecting pin JTAG
20, one central processing unit 22 of mouth and a secondary processor 24.
The connectivity port JTAG 20 is used for transmission instruction or data.Specifically, the connectivity port JTAG 20 is to support connection
Close the connectivity port of test job group (Joint Test Action Group, JTAG) interfacing.
It is noted that jtag interface technology is based on IEEE-1149.1 boundary scan architecture (IEEE-
1149.1Boundary Scan Architecture) technology that is developed.In application aspect, jtag interface is a kind of special
For burning or test one printed circuit board (Printed Circuit Board, PCB) (printed circuit board as shown in Figure 3
32) interface.
For example, in development phase, when research staff wants to carry out error detection to each function of the computer system 2 or removes
When wrong (debug), a circuit simulator (In-Circuit Emulator, ICE) can be connected to being somebody's turn to do for the computer system 2
The connectivity port JTAG 20.Then, which can operate the circuit simulator to send a specific control signal to the meter
Calculation machine system 2, and observe the computer system 2 according to the control signal running when, if occur mistake and mistake whether arrange
It removes.In conclusion the research staff easily can input the various control signals to the computer via jtag interface technology
System 2, with simulate various situations and carry out error detection or except mistake.
Preferably, the control signal includes an address field and an instruction field.The address field is corresponding to being controlled
One hardware location of device, why to indicate the device to be controlled of central processing unit 22.The instruction field is controlled to indicate
The content of operation (as interrupted electric power, providing electric power, read data or data are written).
Due to above-mentioned advantage, computer system is in the settable connectivity port JTAG 20 of development phase, to facilitate research and development people
Member carries out error detection or except mistake.
The central processing unit 22 is electrically connected the connectivity port JTAG 20, and can control each element of the computer system 2
It operates (such as power on/off or mouse enable/forbidden energy).Also, the central processing unit 22 can be via the connectivity port JTAG
20 receive the control signal, and execute the operation of the corresponding control signal.Preferably, the central processing unit 22 supports JTAG skill
Art.
For example, if the control signal is one to close machine control signal, the central processing unit 22 is in receiving the shutdown control
After signal processed, all devices (including the central processing unit 22) of the computer system 2 can be closed, so that the computer system 2
Into off-mode.
The secondary processor 24 connects the connectivity port JTAG 20.Specifically, the secondary processor 24 is via a JTAG
Connecting element a1 connects the connectivity port JTAG 20.The connectivity port JTAG 20 connects one end of JTAG connecting element a1, should
Secondary processor connects the other end of JTAG connecting element a1.Preferably, JTAG connecting element a1 is bus (bus) or print
It brushes in the conducting wire of the printed circuit board 32, but not limited to this.
The secondary processor 24 can send the control signal via the JTAG connecting element a1 and the connectivity port JTAG 20
To the central processing unit 22 to control the central processing unit 22, and the computer system 2 is controlled by the central processing unit 22.
Then illustrate how the secondary processor 24 of the invention controls the computer system 2 and enter a suspend mode
(Hibernate mode).Corresponding suspend mode triggering can be transmitted when receiving a suspend mode trigger signal in the secondary processor 24
One dormant control signal of signal controls the central processing unit 22 to the central processing unit 22.In the present embodiment, at the auxiliary
Reason device 24 is to execute a suspend mode program via the dormant control signal is sent.The suspend mode program includes by the control centre
Device 22 is managed to back up the movement of the current state of the computer system 2, and closes the computer system 2, so that the computer
System 2 enters the movement of the suspend mode.
Specifically, the computer system 2 further includes 26 (such as random access memory (Random of a memory main body
Access Memory, RAM)) and 28 (non-volatile memory, such as disk hard disk (Hard of a non-volatility memory
Disk Drive, HDD), flash memory (flash memory) or solid state hard disk (Solid State Drive, SSD)).It should
Memory main body 26 is electrically connected the central processing unit 22, is configured to temporarily store a status data 260.Wherein, aforesaid state data 260 are
To indicate the current state of the computer system 2 (such as application program, form or the current default ginseng currently opened
Number), and it is stored in an access data address of the memory main body 26.
It is to control the central processing unit 22 with by the status data 260 when the secondary processor 24 executes the suspend mode program
A mapping address of the non-volatility memory 28 is backed up to from the access data address, wherein the mapping address is corresponded to this and deposited
Take data address.Whereby, which can store a Status of Backups data 260 ', and can avoid because of the main note
Recall body 26 to be powered down and lose the status data 260.Also, the computer system 2 in enter the suspend mode (that is, the auxiliary
Processor 24 execute the suspend mode program success) after can completely close, without providing electrical power to the memory main body 26.
Then illustrate how the secondary processor 24 controls the computer system 2 and leave the suspend mode.At the auxiliary
When reason device 24 receives a wake-up (wake up) trigger signal, can first obtain the corresponding central processing unit 22 one wakes up data
240, and send one according to the wake-up data 240 and wake up control signal to the central processing unit 22 to control the central processing unit
22.In the present embodiment, which is to execute a wake up procedure via wake-up control signal is sent.The wake-up journey
Sequence is to include by the movement of the control central processing unit 22 starting computer system 2, and restores the computer system 2
The movement of state before to the execution suspend mode program.
Specifically, the wake-up data 240 can be stored in a memory body of the secondary processor 24, the non-volatile note
Recall body 28 or connects an external memory of the central processing unit 22.If the wake-up data 240 are designed to be stored in the auxiliary
The memory body of processor 24, since the research staff can be not necessary to consider between different file (file system) (that is, this is non-
Volatile memory 28 may use different file system standards from the secondary processor 24) access issues, and can be effective
Shorten the research and development time.In the present embodiment, which mainly includes a scratch memory data of the corresponding central processing unit 22
Address, the access data address and the mapping address.Preferably, the scratch memory data address is by the research staff according in this
The type of central processor 22 is preset, which is the secondary processor 24 in the execution suspend mode program when institute
Obtain the memory main body 26 store the status data 250 memory body address, the mapping address be the research staff in advance prior to
In the non-volatility memory 28 institute's programming to store the memory body address of the Status of Backups data 260 ', but do not limited with this
It is fixed.
After the secondary processor 24 obtains the wake-up data 240, the wake-up is issued according to the wake-up data 240 and controls signal
To the central processing unit 22, to execute the wake up procedure.By the execution of the wake up procedure, the secondary processor 24 is transmittable should
Scratch memory data address is to the central processing unit 22, so that the central processing unit 22 is operated according to the scratch memory data address.
In more detail, which includes multiple buffers.Also, respectively the buffer be respectively corresponding to one group should
Scratch memory data address.The central processing unit 22 is deposited to multiple buffer according to multiple scratch memory data addresses
Control is taken, to execute various operations or program.
Therefore, in the present invention, when the central processing unit 22 receives wake-up control signal and the scratch memory data address
Afterwards, which can be enabled.Also, the central processing unit 22 can come according to the scratch memory data address to multiple
Buffer carries out access control, and can control the corresponding control of signal execution according to the wake-up and (such as control its of the computer system 2
He resumes operation at device).
The central processing unit 22 controls after signal and the scratch memory data address restore normal operation according to the wake-up, can be into
One step reads the Status of Backups data 260 ' according to wake-up control signal, the access data address and the mapping address, and carries
Enter the access data address to the memory main body 26 to restore the status data 260.Whereby, which calls out via this
Data 240 of waking up can make the fast quick-recovery normal operation of central processing unit 22, and make the computer system 2 that can realize quick turn-on function
Energy and suspend mode control function.
For example, when manufacturer replaces the central processing unit 22 (such as the first central processing unit) of the computer system 2
It is changed to different types of another central processing unit (such as the second central processing unit), when using as new product, this of the manufacturer is ground
Hair personnel, which only need to modify the wake-up data, (such as replaces with correspondence for the scratch memory data address for corresponding to first central processing unit
The scratch memory data address of second central processing unit), by the secondary processor 24, can make configured with second center
The computer system of processor realizes quick turn-on function and suspend mode control function, and is not necessary in addition to the computer system 2
Operating system or startup program are modified.In conclusion the present invention can effectively shorten the research and development time of computer system in fact.
Preferably, the wake-up data 240 are a text file (a such as script file (script file)) or binary text
Part (binary file).When the wake-up data 240 are the text file, which can be first by the text file
Conversion (as compiling (compiler) or group translate (assembler)) is two meta file, then the content according to two meta file is held
The row wake up procedure.
In another embodiment of the present invention, which further includes a trigger element 30 (such as power button).It should
Trigger element 30 connects the central processing unit 22, and the suspend mode trigger signal or the wake-up trigger are generated when receiving peripheral operation
Signal, and the secondary processor 24 is sent to via the central processing unit 22.The trigger element 30 is that connection should in the present embodiment
Central processing unit 22, but not limited to this.In another embodiment, which can also be directly connected to the secondary processor
24, and the suspend mode trigger signal or the wake up trigger signal are directly transmitted to the secondary processor 24.
Referring to Fig. 3, for the computer system appearance diagram of the first specific embodiment of the invention, to illustrate the calculating
The set-up mode of each element of machine system 2.
As shown in figure 3, in this example, the connectivity port JTAG 20, the central processing unit 22, the secondary processor 24,
The memory main body 26 and the non-volatility memory 28 are all arranged on the identical printed circuit board 32.
The computer system 2 further includes a read module 34.The read module 34 is set on the printed circuit board 32, and
The central processing unit 22 is electrically connected by the printed circuit board 32.In the present embodiment, the read module 34 is to read outside one
(external memory 36 may be, for example, safety digit (Secure Digital, SD) to portion's memory body 36, which can example
For example card reader), wherein the wake-up data 240 are stored in the external memory 36.
Preferably, the research staff can distinguish multiple wake-up data 240 of the different types of central processing unit of correspondence
Storage is into the different external memories 36 (that is, respectively the wake-up data 240 stored by the external memory 36 are in harmony correspondence extremely
A type of central processing unit).When the central processing unit 22 of the computer system 2 is replaced, which is only needed
The external memory 36 for storing the corresponding wake-up data 240 to the central processing unit being replaced is inserted into the reading mould
Block 34 can make the secondary processor 24 obtain the corresponding wake-up data 240, and realize quick turn-on function and suspend mode control
Function.
Fig. 2 and Fig. 4 is please referred to, Fig. 4 is the adaptive suspend mode control module architecture diagram of the first specific embodiment of the invention.Such as
Shown in Fig. 4, the adaptive suspend mode control module 4, including a secondary processor 40 and an auxiliary connectivity port 42.Auxiliary connection
Port 42 via an external computer system 2 of JTAG connecting element a2 the connectivity port JTAG 20.The secondary processor 40
A memory body (figure do not indicate) store a wake-up data 400.Wherein, the secondary processor 40 not necessarily with the department of computer science
System 2 combines, and further increases the bullet in setting whereby.
Referring to Fig. 5, for the adaptive suspend mode control module appearance diagram of the first specific embodiment of the invention.Such as Fig. 5
Shown, the secondary processor 40 and the auxiliary connectivity port 42 are arranged on an identical auxiliary printing circuit board 44.It should
The connectivity port JTAG 20, the central processing unit 22, the memory main body 26 and the non-volatility memory 28 are all arranged at identical
The printed circuit board 32 on.Also, the auxiliary connectivity port 42 connects one end of JTAG connecting element a2, the JTAG connection
The other end of the connection of port 20 JTAG connecting element a2.
Whereby, the research staff can in not changing under the original design of printed circuit board 32 of the computer system 2, via
The external adaptive suspend mode control module 4 is come the quick turn-on function and suspend mode control function of realizing the computer system 2.
Fig. 2, Fig. 4 and Fig. 6 are please referred to, Fig. 6 is the adaptive dormancy control method process of the first specific embodiment of the invention
Figure.The method of the present invention comprises the steps of:
Step S600: it detects whether to receive the suspend mode trigger signal.Specifically, the secondary processor 24 detects whether certainly
The trigger element 30 receives the suspend mode trigger signal.If the secondary processor 24 receives the suspend mode trigger signal, then follow the steps
Otherwise S602 repeats step S600 with lasting detection.
Step S602: the dormant control signal is sent to the central processing unit 2.Specifically, the secondary processor 24 passes through
The dormant control signal is sent to the center of the computer system 2 by the JTAG connecting element a1 and the connectivity port JTAG 20
Processor 22, to execute the suspend mode program via the control to the central processing unit 22.
Step S604: backing up the current state of the computer system 2 and closes the computer system 2.Specifically, in this
Central processor 22 backs up the current state of the computer system 2 according to the dormant control signal, and close the computer system 2 with
The computer system 2 is set to enter the suspend mode.
Step S606: it detects whether to receive the wake up trigger signal.Specifically, the secondary processor 24 detects whether certainly
The trigger element 30 receives the wake up trigger signal.If the secondary processor 24 receives the wake up trigger signal, then follow the steps
Otherwise S608 repeats step S606 with lasting detection so that the computer system 2 leaves the suspend mode.
Step S608: the wake-up data 240 are obtained.
Step S610: wake-up control signal and the wake-up data 240 are sent to the central processing unit 22.Specifically,
The secondary processor 24 sends wake-up control signal via the JTAG connecting element a1 and the connectivity port JTAG 20 and this is called out
Wake up data 240 to the computer system 2 the central processing unit 22, to execute this via the control to the central processing unit 22
Wake up procedure.
Step S612: restore the computer system 2 to executing the state before the suspend mode program.Specifically, the center
Processor 22, which controls signal and the wake-up data according to the wake-up, restores the computer system 2 to before executing the suspend mode program
The state of (before executing step S602).So far, which can leave the suspend mode and reach quick turn-on function
Energy.
Fig. 2, Fig. 4 and Fig. 7 are please referred to, Fig. 7 is the adaptive dormancy control method process of the second specific embodiment of the invention
Figure.The method of the present invention comprises the steps of:
Step S700: it detects whether to receive the suspend mode trigger signal.If the secondary processor 24 receives suspend mode triggering letter
Number, S702 is thened follow the steps, repeats step S700 otherwise with lasting detection.
Step S702: the dormant control signal is sent to the central processing unit 22.
Step S704: the central processing unit 22 receives the dormant control signal.
Step S706: the status data 206 is backed up to the non-volatility memory 28.Specifically, the central processing unit
22 control (that is, content according to the dormant control signal) according to the secondary processor 24 will be stored in the memory main body 26
The status data 206 of the access data address back up to the mapping position of the non-volatility memory 28, using as this
Status of Backups data 260 '.
Step S708: the computer system 2 is closed.Specifically, the central processing unit 22 is according to the dormant control signal
System of shutting down computer 2, so that the computer system 2 enters the suspend mode.
Step S710: it detects whether to receive the wake up trigger signal.If the secondary processor 24 receives wake-up trigger letter
Number, S712 is thened follow the steps, repeats step S710 otherwise with lasting detection.
Step S712: the wake-up data 240 are obtained.
Step S714: wake-up control signal and the wake-up data 240 are sent to the central processing unit 22.
Step S716: the central processing unit 22 receives wake-up control signal and the wake-up data 240.
Step S718: start the computer system 2.Specifically, the wake-up data 240 include the corresponding central processing unit
The 22 scratch memory data address.The central processing unit 22 controls signal according to the wake-up and the scratch memory data address is restored just
Often running, and so that other devices of the computer system 2 is resumed operation according to wake-up control signal.
Step S720: reading the Status of Backups data 260 ', and is loaded into the memory main body 26.Specifically, the wake-up
Data 240 further include the access data address of the memory main body 26 and the mapping address of the non-volatility memory 28.It should
Central processing unit 22 controls signal and the wake-up data 240 according to the wake-up, from the mapping of the non-volatility memory 28
The Status of Backups data 260 ' are read in location, and are loaded into the access data of the Status of Backups data 260 ' to the memory main body 26
Location, using as the status data 260.So far, which can leave the suspend mode and realize quick turn-on function.
The present invention executes suspend mode program via the central processing unit in computer system is replaced with secondary processor and calls out
It wakes up program, computer system can be made to realize quick turn-on function, and can be in not modifying under the situation of operating system or startup program
Quick turn-on function is set to be suitable for different types of central processing unit.
In other words, the present invention is not necessary to come according to the type of central processing unit to carry out operating system or startup program customized
Change modification, both can enable all being able to achieve using the computer system of different types of central processing unit by secondary processor and quickly open
Machine function, and then effectively shorten the system research and development time.
Certainly, the present invention can also have other various embodiments, without deviating from the spirit and substance of the present invention, ripe
It knows those skilled in the art and makes various corresponding changes and modifications, but these corresponding changes and change in accordance with the present invention
Shape all should fall within the scope of protection of the appended claims of the present invention.
Claims (13)
1. a kind of computer system, which is characterized in that the computer system includes:
One connectivity port JTAG;
One central processing unit, is electrically connected the connectivity port JTAG, which includes multiple buffers;And
One secondary processor connects the connectivity port JTAG, and there is the one of the corresponding central processing unit to wake up data, the wake-up number
According to multiple scratch memory data addresses of multiple buffer including being respectively corresponding to the central processing unit;
Wherein, which issues suspend mode control letter via the connectivity port JTAG when receiving a suspend mode trigger signal
Number to the central processing unit, a suspend mode program is executed by the control to the central processing unit, which includes backup
The current status data of the computer system simultaneously completely closes the computer system;
Wherein, which issues one via the connectivity port JTAG when receiving a wake up trigger signal and wakes up control letter
Number and the wake-up data to the central processing unit, called out by the control to the central processing unit to execute one according to the wake-up data
Awake program, the secondary processor enable the central processing unit according to multiple scratch memory data address when executing the wake up procedure
Access control is carried out to multiple buffer, to operate and start the computer system, and restores the computer system to holding
State before the row suspend mode program.
2. computer system as described in claim 1, which is characterized in that further include:
One memory main body is electrically connected the central processing unit, stores the status data;And
One non-volatility memory is electrically connected the central processing unit;The secondary processor backs up when executing the suspend mode program
The status data is to the non-volatility memory using as a Status of Backups data, and when executing the wake up procedure, according to should
It wakes up data and from the non-volatility memory reads the Status of Backups data, and be loaded into the memory main body using as the status number
According to.
3. computer system as claimed in claim 2, which is characterized in that the wake-up data further include the one of the memory main body and deposit
Data address and a mapping address of the non-volatility memory are taken, wherein the mapping address is corresponding to the access data address.
4. computer system as claimed in claim 3, which is characterized in that the secondary processor when executing the wake up procedure,
The central processing unit is enabled to carry out access control to multiple buffer, to read from the mapping address of the non-volatility memory
The Status of Backups data, and it is loaded into the access data address of the memory main body.
5. computer system as claimed in claim 3, which is characterized in that the wake-up data are a text file or binary text
Part;The wake-up data are stored in a memory body of the secondary processor, the non-volatility memory or connect the central processing
One external memory of device.
6. computer system as described in claim 1, which is characterized in that the connectivity port JTAG connects a JTAG connecting element
One end, which connects the other end of the JTAG connecting element;The central processing unit supports joint test work group
Group technology.
7. computer system as described in claim 1, which is characterized in that further include a trigger element, connect the central processing
Device or the secondary processor, the trigger element generate the suspend mode trigger signal or the wake-up trigger letter when receiving peripheral operation
Number.
8. a kind of adaptive suspend mode control module, which is characterized in that the adaptive suspend mode control module includes:
One auxiliary connectivity port, a connectivity port JTAG of a computer system is connected via a JTAG connecting element, wherein should
The connectivity port JTAG is electrically connected a central processing unit of the computer system;And
One secondary processor is electrically connected the auxiliary connectivity port, there is the one of the corresponding central processing unit to wake up data, this is called out
Awake data include being respectively corresponding to multiple scratch memory data addresses of multiple buffers of the central processing unit;
Wherein, the secondary processor is when receiving a suspend mode trigger signal via the auxiliary connectivity port, the JTAG connecting element
And a dormant control signal is transmitted to the central processing unit in the connectivity port JTAG, holds by the control to the central processing unit
One suspend mode program of row, the suspend mode program include backing up the current state of the computer system and completely closing the computer system;
Wherein, the secondary processor is when receiving a wake up trigger signal via the auxiliary connectivity port, the JTAG connecting element
And the connectivity port JTAG transmission one wakes up control signal and the wake-up data to the central processing unit, by the central processing
The control of device to execute a wake up procedure according to the wake-up data, which enables in this when executing the wake up procedure
Central processor carries out access control to multiple buffer according to multiple scratch memory data address, to operate and start the calculating
Machine system, and restore computer system to executing the state before the suspend mode program.
9. a kind of adaptive dormancy control method, which is characterized in that the adaptive dormancy control method includes the following steps:
A) secondary processor sends a dormant control signal via a connectivity port JTAG when receiving a suspend mode trigger signal
A central processing unit to a computer system comes, and a suspend mode program is executed by the control to the central processing unit;
B) when executing the suspend mode program, which backs up the current of the computer system according to the dormant control signal
State simultaneously completely closes the computer system;
C) secondary processor obtains a central processing unit of the corresponding computer system when receiving a wake up trigger signal
One wakes up data, and the wakeup packet is with including the multiple scratch memory datas for being respectively corresponding to multiple buffers of the central processing unit
Location;
D) one is sent via the connectivity port JTAG wake up control signal and the wake-up data to the central processing unit, by this
The control of central processing unit to execute a wake up procedure according to the wake-up data;And
E) when executing the wake up procedure, the central processing unit is enabled to control the multiple of signal and the wake-up data according to the wake-up
Scratch memory data address carries out access control to multiple buffer, to operate and start the computer system, and makes the calculating
Machine system is restored to executing the state before the suspend mode program.
10. adaptive dormancy control method as claimed in claim 9, which is characterized in that step b includes the following steps:
B1 the dormant control signal) is received;
B2 a status data to a non-volatile memory for the computer system) is stored according to dormant control signal backup
Body, using as a Status of Backups data;And
B3) computer system is closed according to the dormant control signal.
11. adaptive dormancy control method as claimed in claim 10, which is characterized in that step e includes the following steps:
E1 wake-up control signal and the wake-up data) are received;
E2 signal) is controlled according to the wake-up and the wake-up data start the computer system;And
E3 signal and the wake-up data) are controlled according to the wake-up and read the Status of Backups data from the non-volatility memory, and
It is loaded into a memory main body of the computer system, using as the status data.
12. adaptive dormancy control method as claimed in claim 11, which is characterized in that the wakeup packet includes the main memory
One access data address of body and a mapping address of the non-volatility memory, wherein the mapping address corresponds to the access data
Address;Step e3 is to read the Status of Backups data from the mapping address of the non-volatility memory, and be loaded into the master
The access data address of memory body.
13. adaptive dormancy control method as claimed in claim 9, which is characterized in that the wake-up data are a text files
Or one or two meta file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510004465.9A CN105824650B (en) | 2015-01-06 | 2015-01-06 | Computer system, adaptive suspend mode control module and its control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510004465.9A CN105824650B (en) | 2015-01-06 | 2015-01-06 | Computer system, adaptive suspend mode control module and its control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105824650A CN105824650A (en) | 2016-08-03 |
CN105824650B true CN105824650B (en) | 2019-05-07 |
Family
ID=56513702
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510004465.9A Expired - Fee Related CN105824650B (en) | 2015-01-06 | 2015-01-06 | Computer system, adaptive suspend mode control module and its control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105824650B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11841398B2 (en) * | 2021-06-28 | 2023-12-12 | Silicon Motion, Inc. | Method and apparatus and non-transitory computer-readable storage medium for debugging solid-state disk (SSD) device |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107168798A (en) * | 2017-05-16 | 2017-09-15 | 郑州云海信息技术有限公司 | A kind of device sleeps method and device, device sleeps awakening method and device |
TW202205053A (en) * | 2020-07-27 | 2022-02-01 | 虹光精密工業股份有限公司 | Office machine with intelligent sleep and wake function and control method thereof |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101937382A (en) * | 2010-09-02 | 2011-01-05 | 中国电子科技集团公司第三十八研究所 | JTAG (Joint Test Action Group) based synchronous debugging method of multi-chip microprocessor |
CN102483647A (en) * | 2009-08-31 | 2012-05-30 | 高通股份有限公司 | Methods and systems for operating a computer via a low power adjunct processor |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8806228B2 (en) * | 2006-07-13 | 2014-08-12 | International Business Machines Corporation | Systems and methods for asymmetrical performance multi-processors |
-
2015
- 2015-01-06 CN CN201510004465.9A patent/CN105824650B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102483647A (en) * | 2009-08-31 | 2012-05-30 | 高通股份有限公司 | Methods and systems for operating a computer via a low power adjunct processor |
CN101937382A (en) * | 2010-09-02 | 2011-01-05 | 中国电子科技集团公司第三十八研究所 | JTAG (Joint Test Action Group) based synchronous debugging method of multi-chip microprocessor |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11841398B2 (en) * | 2021-06-28 | 2023-12-12 | Silicon Motion, Inc. | Method and apparatus and non-transitory computer-readable storage medium for debugging solid-state disk (SSD) device |
Also Published As
Publication number | Publication date |
---|---|
CN105824650A (en) | 2016-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3211532B1 (en) | Warm swapping of hardware components with compatibility verification | |
CN104899055B (en) | A kind of ME more new systems and its update method based on BIOS controls | |
US8468389B2 (en) | Firmware recovery system and method of baseboard management controller of computing device | |
CN100517246C (en) | Computer remote control method and system | |
CN104850435B (en) | Power source management controller and method | |
US8601315B2 (en) | Debugger recovery on exit from low power mode | |
US9015458B2 (en) | Computer system and method for updating basic input/output system by switching between local mode and bypass mode through baseboard management controller | |
CN203786723U (en) | Dual redundant system based on X86 PC/104 embedded CPU modules | |
US7007192B2 (en) | Information processing system, and method and program for controlling the same | |
CN102855146A (en) | Firmware updating system and method | |
CN101364193A (en) | BIOS automatic recovery method and computer and system using the method | |
CN101373433A (en) | Method for updating BIOS and computer and system using the same | |
US20190004818A1 (en) | Method of UEFI Shell for Supporting Power Saving Mode and Computer System thereof | |
US20160306634A1 (en) | Electronic device | |
CN107678997B (en) | Hot plug method, system, device and readable storage medium of PCIE (peripheral component interface express) card | |
CN103677897A (en) | System chip and programming method of system chip | |
CN105824650B (en) | Computer system, adaptive suspend mode control module and its control method | |
CN104516800A (en) | Method, system and relative circuit system for diagnosing server mainboard | |
CN106249840A (en) | Power saving non-volatile microprocessor | |
CN109992555A (en) | A kind of management board shared for multipath server | |
TWI526817B (en) | Computer system, adaptable hibernation control module and control method thereof | |
EP3871080A1 (en) | System and method to recover fpga firmware over a sideband interface | |
US20120331199A1 (en) | Computer system, host-bus-adaptor control method, and program thereof | |
CN102681650B (en) | The storage system of a kind of Energy control power-economizing method and correspondence thereof | |
CN208224988U (en) | A kind of server input and output I O board card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190507 Termination date: 20210106 |