CN105487865A - Method for solving problem of abnormal arousal of system by USB device - Google Patents

Method for solving problem of abnormal arousal of system by USB device Download PDF

Info

Publication number
CN105487865A
CN105487865A CN201510839611.XA CN201510839611A CN105487865A CN 105487865 A CN105487865 A CN 105487865A CN 201510839611 A CN201510839611 A CN 201510839611A CN 105487865 A CN105487865 A CN 105487865A
Authority
CN
China
Prior art keywords
interrupt
register
smi
function
state
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.)
Pending
Application number
CN201510839611.XA
Other languages
Chinese (zh)
Inventor
吴登勇
刘君朋
王一矾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Chaoyue Numerical Control Electronics Co Ltd
Original Assignee
Shandong Chaoyue Numerical Control Electronics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shandong Chaoyue Numerical Control Electronics Co Ltd filed Critical Shandong Chaoyue Numerical Control Electronics Co Ltd
Priority to CN201510839611.XA priority Critical patent/CN105487865A/en
Publication of CN105487865A publication Critical patent/CN105487865A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30098Register arrangements
    • G06F9/30141Implementation provisions of register files, e.g. ports

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses a method for solving a problem of abnormal arousal of a system by a USB device. The method comprises: when the system enters an S3 state, generating an SMI (System Management Interrupt); registering an interrupt processing function by utilizing an interrupt number; and configuring a register of a USB controller in the interrupt function to enable a corresponding USB Port to be in a disable state. According to the method, when the system enters the S3 state, the corresponding USB Port is configured to enable the system to be in the Disable state by utilizing the SMI, so that the abnormal arousal of the system is not caused.

Description

A kind of method solving the abnormal waken system of USB device
Technical field
The present invention relates to computer BIOS technical field; be specifically related to a kind of method solving the abnormal waken system of USB device; technology used is SMI interrupt techniques, solve be computing machine after entering standby (sleep) state, there is abnormal movement thus the problem of wake operation system in USB device.
Background technology
Nowadays, notebook has become indispensable instrument in people's life, working and learning.Have better use sense to make people to be subject to, notebook not only pursues larger lifting in performance, also has higher requirement in other respects, and wherein the transmission speed of peripheral interface is exactly very important one.Because present notebook has increasing functional requirement, therefore often need to expand a lot of function device from chipset, wherein USB (UniversalSerialBus) equipment is exactly a very important part.
USB is a kind of external bus standard, USB has transmission speed, and (USB1.1 is 12Mbps soon, USB2.0 is 480Mbps, USB3.0 is 5Gbps), easy to use, support hot plug, connect the advantages such as flexible and independently-powered, the external device that mouse, keyboard, printer, external drive and flash disk etc. are nearly all can be connected.The peripherals connected according to usb bus standard is referred to as USB device, and due to the above advantage of USB, the use of USB device becomes more and more universal.SMI is SystemManagementInterrupt(system management interrupt) abbreviation, be that the CPU of x86 framework more easily designs the interrupt routine meeting demand and the function provided to allow design of hardware and software person.The triggering mode of SMI is divided into hard triggering and soft triggering two kinds, and the hard process triggered is: 1, hardware trigger SMI interrupt pin; 2, CPU enters SMM pattern; 3, the SMI interrupt function in BIOS is performed.The process of soft triggering is: 1, be write interrupt number intN in the IO port of 0xB2 to address; 2, CPU enters SMM pattern; 3, the interrupt function that in BIOS, interrupt number intN is corresponding is performed.
Current mainstream chip group all supports USB controller function, and the mainboard since 21st century also all adopts the chipset supporting USB function, and therefore USB device is more and more general in current computing machine.Following problem may be run in bios program R&D process: after system enters S3, some USB device state labiles, cause system extremely to be waken up.
ACPI specification definition have six kinds of states, be S0 to S5 respectively, their representative implication respectively:
S0--in fact Here it is our usual duty, all devices standard-sized sheet, power consumption generally can more than 80W;
S1--is also referred to as POS(PoweronSuspend), at this moment except passing through cpu clock controller by except CPU closedown, other parts still normally work, and power consumption is at this moment generally at below 30W; (some CPU cooling software utilizes this principle of work exactly in fact)
S2--at this moment CPU is in the state of decommissioning, and bus clock is also closed, but remaining equipment still operates;
S3--Here it is our STR(SuspendtoRAM of being familiar with), power consumption is at this moment no more than 10W;
S4--is also referred to as STD(SuspendtoDisk), at this moment system primary power cuts out, but hard disk is still charged and can be waken up;
This state of S5--is the most clear-cut, and connect power supply exactly at interior all devices Close All, power consumption is 0.
We the most frequently used to be S3 state, namely SuspendtoRAM(suspends to internal memory) state, be called for short STR.As its name suggests, STR is exactly that operating state data before system is entered STR is all stored in internal memory and goes.Under STR state, power supply still continues as the most necessary equipment such as internal memory and powers, and to guarantee that data are not lost, and other equipment are all in closed condition, and the power consumption of system is extremely low.Once we press Power button (host power switch), system is just waken up, and at once from internal memory, reads data and duty before returning to STR.The read or write speed of internal memory is exceedingly fast, and the time that therefore we feel to enter and leave that STR state spends is only a few second; And S4 state, namely STD(suspends to hard disk) be duplicate with the principle of STR, only data are preserved in a hard disk.Read or write speed due to hard disk is much slower than internal memory, therefore uses and does not also just have STR so fast.The advantage of STD only just can be realized by software.
Summary of the invention
The technical problem to be solved in the present invention is: for this problem; the invention provides a kind of method solving the abnormal waken system of USB device; utilize the mode that SMI interrupts; when system enters S3 state; corresponding USBPort is configured; make it be in Disable state when system S3, thus the exception of system can not be caused to wake up.
The technical solution adopted in the present invention is:
A kind of method solving the abnormal waken system of USB device; described method, when system enters S3, produces a SMI and interrupts, utilize this interrupt number to register an interrupt processing function; by the register of configuration USB controller in interrupt function, corresponding USBPort is made to be in disable state.
Described method is when system is waken up from S3, produce a SMI to interrupt, utilize this interrupt number to register an interrupt processing function, by the register of configuration USB controller in this function, make corresponding USBPort recover enable state, can reach thus and control the state of USB device when entering S3.
Described method operation steps is as follows:
1) in the ASL code of BIOS, add interruption and produce code, produce a SMI when system enters S3 and when system wakes up from S3 respectively and interrupt;
2) according to SMI interrupt number, register an interrupt function, in this function, complete the layoutprocedure to register in USB controller respectively;
3) when system enters S3 or when waking up from S3 state, the SMI interrupt function of registration can be triggered, thus complete the layoutprocedure to register in USB controller.
Beneficial effect of the present invention is:
The mode that the present invention utilizes SMI to interrupt, when system enters S3 state, is configured corresponding USBPort, makes it be in Disable state when system S3, thus the exception of system can not be caused to wake up.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of system when entering S3;
Fig. 2 is the process flow diagram of system when waking up from S3.
Embodiment
With reference to the accompanying drawings, by embodiment, the present invention is further described:
Embodiment 1:
As shown in Figure 1; a kind of method solving the abnormal waken system of USB device; described method is when system enters S3; produce a SMI to interrupt; this interrupt number is utilized to register an interrupt processing function; by the register of configuration USB controller in interrupt function, corresponding USBPort is made to be in disable state.
Embodiment 2:
As shown in Figure 2, on the basis of embodiment 1, method described in the present embodiment is when system is waken up from S3, produce a SMI to interrupt, this interrupt number is utilized to register an interrupt processing function, by the register of configuration USB controller in this function, make corresponding USBPort recover enable state, can reach thus and control the state of USB device when entering S3.
Embodiment 3:
On the basis of embodiment 2, described in the present embodiment, method operation steps is as follows:
1) in the ASL code of BIOS, add interruption and produce code, produce a SMI when system enters S3 and when system wakes up from S3 respectively and interrupt;
2) according to SMI interrupt number, register an interrupt function, in this function, complete the layoutprocedure to register in USB controller respectively;
3) when system enters S3 or when waking up from S3 state, the SMI interrupt function of registration can be triggered, thus complete the layoutprocedure to register in USB controller.
Above embodiment is only for illustration of the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (3)

1. one kind solves the method for the abnormal waken system of USB device; it is characterized in that: described method is when system enters S3; produce a SMI to interrupt; this interrupt number is utilized to register an interrupt processing function; by the register of configuration USB controller in interrupt function, corresponding USBPort is made to be in disable state.
2. a kind of method solving the abnormal waken system of USB device according to claim 1; it is characterized in that: described method is when system is waken up from S3; produce a SMI to interrupt; this interrupt number is utilized to register an interrupt processing function; by the register of configuration USB controller in this function; make corresponding USBPort recover enable state, can reach thus and control the state of USB device when entering S3.
3. a kind of method solving the abnormal waken system of USB device according to claim 2, it is characterized in that, described method operation steps is as follows:
1) in the ASL code of BIOS, add interruption and produce code, produce a SMI when system enters S3 and when system wakes up from S3 respectively and interrupt;
2) according to SMI interrupt number, register an interrupt function, in this function, complete the layoutprocedure to register in USB controller respectively;
3) when system enters S3 or when waking up from S3 state, the SMI interrupt function of registration can be triggered, thus complete the layoutprocedure to register in USB controller.
CN201510839611.XA 2015-11-27 2015-11-27 Method for solving problem of abnormal arousal of system by USB device Pending CN105487865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510839611.XA CN105487865A (en) 2015-11-27 2015-11-27 Method for solving problem of abnormal arousal of system by USB device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510839611.XA CN105487865A (en) 2015-11-27 2015-11-27 Method for solving problem of abnormal arousal of system by USB device

Publications (1)

Publication Number Publication Date
CN105487865A true CN105487865A (en) 2016-04-13

Family

ID=55674865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510839611.XA Pending CN105487865A (en) 2015-11-27 2015-11-27 Method for solving problem of abnormal arousal of system by USB device

Country Status (1)

Country Link
CN (1) CN105487865A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959049A (en) * 2018-06-27 2018-12-07 郑州云海信息技术有限公司 The robustness of SMM and test method, device and the storage medium of stability
CN113010215A (en) * 2021-03-12 2021-06-22 山东英信计算机技术有限公司 Method, device and equipment for quickly restarting operating system and readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825248A (en) * 2005-02-24 2006-08-30 英业达股份有限公司 Power spare system for storage
CN103092802A (en) * 2013-02-07 2013-05-08 飞天诚信科技股份有限公司 Method of communication of card reader and upper computer
US20130326206A1 (en) * 2012-05-30 2013-12-05 Advanced Micro Devices, Inc. Reintialization of a processing system from volatile memory upon resuming from a low-power state
CN104361280A (en) * 2014-10-31 2015-02-18 山东超越数控电子有限公司 Method for carrying out credible certification on USB storage device through SMI interrupt

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825248A (en) * 2005-02-24 2006-08-30 英业达股份有限公司 Power spare system for storage
US20130326206A1 (en) * 2012-05-30 2013-12-05 Advanced Micro Devices, Inc. Reintialization of a processing system from volatile memory upon resuming from a low-power state
CN103092802A (en) * 2013-02-07 2013-05-08 飞天诚信科技股份有限公司 Method of communication of card reader and upper computer
CN104361280A (en) * 2014-10-31 2015-02-18 山东超越数控电子有限公司 Method for carrying out credible certification on USB storage device through SMI interrupt

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
1616766722、张俊毅VIP: "这个BIOS项是什么意思?", 《HTTPS://IASK.SINA.COM.CN/B/19203761.HTML》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959049A (en) * 2018-06-27 2018-12-07 郑州云海信息技术有限公司 The robustness of SMM and test method, device and the storage medium of stability
US11307973B2 (en) 2018-06-27 2022-04-19 Zhengzhou Yunhai Information Technology Co., Ltd. Method and device for testing robustness and stability of SMM, and storage medium
CN113010215A (en) * 2021-03-12 2021-06-22 山东英信计算机技术有限公司 Method, device and equipment for quickly restarting operating system and readable medium

Similar Documents

Publication Publication Date Title
TWI475368B (en) Power control system and method thereof
CN108776619B (en) Microprocessor, method of managing power consumption of microprocessor, and storage medium
CN107122321B (en) Hardware repair method, hardware repair system, and computer-readable storage device
US6055643A (en) System management method and apparatus for supporting non-dedicated event detection
TWI464571B (en) A power saving electronic device for a computer motherboard in a standby dormant state and a computer motherboard
US7330926B2 (en) Interruption control system
CN102057344A (en) Sleep processor
CN104620234A (en) Reducing latency in a peripheral component interconnect express link
JPH1185335A (en) Computer system
US9423847B2 (en) Method and apparatus for transitioning a system to an active disconnect state
CN104182243B (en) Sleep state control system, computer system and sleep state detection method thereof
JP2006338380A (en) Information processor and its control method
US7886177B2 (en) Method and apparatus of collecting timer ticks
US20190004818A1 (en) Method of UEFI Shell for Supporting Power Saving Mode and Computer System thereof
EP2972826B1 (en) Multi-core binary translation task processing
CN105487865A (en) Method for solving problem of abnormal arousal of system by USB device
CN108984464B (en) Microprocessor and method for synchronizing processing cores of microprocessor
CN107729055B (en) Microprocessor and execution method thereof
JP2008152567A (en) Computer and its control method
CN101281416A (en) Method for ensuring system closedown completion
CN103970253B (en) Power-saving operation method and electronic device
CN102662454B (en) A kind of method for designing of the finite state machine based on Godson 3A notebook EC power management
JP2005267595A (en) Apparatus and method for performing diagnostic operation upon data processing apparatus with power-down support
CN103984543A (en) Method for implementing standby, hibernation and wake-up on domestic FeiTeng processor
CN109240481B (en) Multi-core microprocessor and power saving method using same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160413