CN101826068A - Method for hot-plugging PCI-E device and application thereof - Google Patents

Method for hot-plugging PCI-E device and application thereof Download PDF

Info

Publication number
CN101826068A
CN101826068A CN200910118694A CN200910118694A CN101826068A CN 101826068 A CN101826068 A CN 101826068A CN 200910118694 A CN200910118694 A CN 200910118694A CN 200910118694 A CN200910118694 A CN 200910118694A CN 101826068 A CN101826068 A CN 101826068A
Authority
CN
China
Prior art keywords
pci
draw
groove
state
plug
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
CN200910118694A
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN200910118694A priority Critical patent/CN101826068A/en
Publication of CN101826068A publication Critical patent/CN101826068A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method for hot-plugging a PCI-E device, comprising the following steps: receiving a state change signal from a PCI-E trough connected to a north bridge chip; after receiving the state change signal from the PCI-E trough, judging whether the plugging condition of the PCI-E trough changes; and when the plugging condition of the PCI-E trough changes, transmitting an interrupt signal to a basic input/output system through a south bridge chip so as to trigger the basic input/output system to initialize or dismount the PCI-E device in the PCI-E trough according to the plugging condition of the PCI-E trough.

Description

The method of hot-plugging PCI-E device and application thereof
Technical field
The invention relates to a kind of hot-plug method, and particularly relevant for a kind of method of hot-plugging PCI-E device.
Background technology
PCI Express, being called for short PCI-E or claiming PCI-Ex, is a kind of of computer bus, and it has continued to use existing peripheral controller interface (Peripheral Controller Interface, PCI) programming concept and communication standard, but build based on serial communication system faster.Because PCI-E is based on existing P CI system, only needs to revise Physical layer and need not revise software and just can be converted to PCI-E having pci system now.In addition, PCI-E has transfer rate faster, therefore replaces almost whole existing internal buss (comprising AGP and PCI) gradually.
In addition, PCI-E can support the function of hot plug, makes the user to insert or to extract the PCI-E device when computing machine is in open state.Yet, only have South Bridge chip to support the function of PCI-E hot plug at present, and do not have north bridge chips to support the function of PCI-E hot plug as yet.In other words, the PCI-E device only can hot plug in the PCI-E draw-in groove that links to each other with South Bridge chip.Therefore wherein, the frequency of South Bridge chip is low than the frequency of north bridge chips, when desiring hot-plugging PCI-E device, only can select the PCI-E draw-in groove that links to each other with the lower South Bridge chip of frequency, thereby can't bring into play the comparatively usefulness of high speed of PCI-E device.
Summary of the invention
Therefore the object of the present invention is to provide a kind of method and application thereof of hot-plugging PCI-E device, utilize the PCI-E device when the PCI-E draw-in groove that is connected in north bridge chips is done hot plug, the state-change that is produced (changing or edge (edge) changes), and initialization or remove device on the PCI-E draw-in groove as accurate position (level).
According to one embodiment of the invention, a kind of method of hot-plugging PCI-E device comprises following steps: a PCI-E draw-in groove that is connected in a north bridge chips certainly receives a state-change; After receiving state-change, judge whether the plug state of PCI-E draw-in groove changes from the PCI-E draw-in groove; When the plug state of PCI-E draw-in groove changes, see through a South Bridge chip and transmit look-at-me to a basic input/output (Basic Input/Output System, BIOS), with the plug state of triggering basic input/output according to the PCI-E draw-in groove, and the PCI-E device in initialization or the removal PCI-E draw-in groove.
According to one embodiment of the invention, a kind of computing machine of tool PCI-E draw-in groove comprises a north bridge chips, a South Bridge chip, a basic input/output, a PCI-E draw-in groove and an embedded controller.Basic input/output electrically connects north bridge chips and South Bridge chip.The PCI-E draw-in groove electrically connects north bridge chips.Embedded controller electrically connects South Bridge chip and PCI-E draw-in groove, comprises a judge module and an interrupt module.Judge module judges whether the plug state of PCI-E draw-in groove changes after receiving a state-change from the PCI-E draw-in groove.When interrupt module changes at the plug state of PCI-E draw-in groove, see through South Bridge chip and transmit a look-at-me to basic input/output, with the plug state of triggering basic input/output according to the PCI-E draw-in groove, and a PCI-E device of initialization or removal PCI-E draw-in groove.
Use the present invention and have following advantage.Can make the PCI-E draw-in groove that is connected in north bridge chips have the function of hot plug.In addition, compared to the PCI-E device being inserted in the PCI-E draw-in groove that is connected in South Bridge chip, the PCI-E device is inserted in the PCI-E draw-in groove that is connected in north bridge chips can has transfer rate faster.
Description of drawings
For above and other objects of the present invention, feature, advantage and embodiment can be become apparent, being described in detail as follows of appended accompanying drawing:
Fig. 1 is the process flow diagram according to the method for a kind of hot-plugging PCI-E device of one embodiment of the invention;
Fig. 2 is the functional block diagram according to the computing machine of a kind of tool PCI-E draw-in groove of another embodiment of the present invention.
[primary clustering symbol description]
100: the method 240:PCI-E draw-in groove of hot-plugging PCI-E device
110~160: step 250: embedded controller
200: the computing machine 251 of tool PCI-E draw-in groove: judge module
210: north bridge chips 252: interrupt module
220: South Bridge chip 253: internal memory
230: basic input/output 260:PCI-E device
231: read module
Embodiment
With reference to Fig. 1, it is the process flow diagram according to the method for a kind of hot-plugging PCI-E device of one embodiment of the invention.The method of hot-plugging PCI-E device utilizes the PCI-E device when the PCI-E draw-in groove that is connected in north bridge chips is done hot plug, and initialization or remove device on the PCI-E draw-in groove.Wherein, the method of hot-plugging PCI-E device can be passed through embedded controller (Embedded Controller, EC) or keyboard controller (Keyboard Controller KBC), and is applied to the device of desktop PC, mobile computer or other tool PCI-E draw-in groove.The method 100 of hot-plugging PCI-E device comprises following steps:
In step 110, a PCI-E draw-in groove that is connected in a north bridge chips certainly receives a state-change.Accurate position (level) variable signal or edge (edge) variable signal that are produced when wherein, state-change can be the insertion of PCI-E device or extracts the PCI-E draw-in groove.
Next, after receiving state-change (step 110) from the PCI-E draw-in groove, the plug state of judging the PCI-E draw-in groove whether change (step 140).Wherein, can whether there be accurate position to change or edge variation, with the plug state of judging the PCI-E draw-in groove whether change (step 140) by detecting PCI-E draw-in groove.In addition, judge the correctness of the plug state (step 140) of PCI-E draw-in groove for fear of noise effect, can the plug state of judging the PCI-E draw-in groove whether change (step 140) preceding, state-change is removed bounce (De-bounce) (step 120).In addition, also can be by after receiving state-change (step 110) from the PCI-E draw-in groove, wait for a time delay (step 130) earlier, whether the plug state of just judging the PCI-E draw-in groove changes (step 140), and avoids noise effect to judge the correctness of the plug state (step 140) of PCI-E draw-in groove.
When the plug state of PCI-E draw-in groove changes, see through a South Bridge chip and transmit look-at-me to a basic input/output (Basic Input/Output System, BIOS) (step 160), with the plug state of triggering basic input/output according to the PCI-E draw-in groove, and the PCI-E device in initialization or the removal PCI-E draw-in groove.In addition, when the plug state of PCI-E draw-in groove changes, can set a draw-in groove state flags (step 150) that is stored in an internal memory according to the plug state of PCI-E draw-in groove.Thus, basic input/output can read the draw-in groove state flags from internal memory after receiving look-at-me, to judge the plug state of PCI-E draw-in groove.Yet, when the plug state of PCI-E draw-in groove does not change, continue from PCI-E draw-in groove accepting state variable signal (step 110).
With reference to Fig. 2, it is the functional block diagram according to the computing machine of a kind of tool PCI-E draw-in groove of another embodiment of the present invention.The state-change that the computing machine of tool PCI-E draw-in groove utilizes the PCI-E device to plug to be produced when the PCI-E draw-in groove (changing or edge variation), and initialization or remove device on the PCI-E draw-in groove as accurate position.The computing machine 200 of tool PCI-E draw-in groove comprises a north bridge chips 210, a South Bridge chip 220, a basic input/output 230, a PCI-E draw-in groove 240 and an embedded controller 250.Basic input/output 230 electrically connects north bridge chips 210 and South Bridge chip 220.PCI-E draw-in groove 240 electrically connects north bridge chips 210.Embedded controller 250 electrically connects South Bridge chip 220 and PCI-E draw-in groove 240.Wherein, embedded controller 250 can be imported (General Purpose I/O, GPIO) pin electric connection with a general output of PCI-E draw-in groove 240.In addition, when the computing machine 200 of tool PCI-E draw-in groove was a mobile computer, embedded controller 250 can be the keyboard controller of mobile computer.
Embedded controller 250 comprises a judge module 251 and an interrupt module 252.Judge module 251 judges whether the plug state of PCI-E draw-in groove 240 changes after receiving a state-change from PCI-E draw-in groove 240.The accurate position variable signal or edge (edge) variable signal that are produced when wherein, state-change can be 260 insertions of PCI-E device or extracts PCI-E draw-in groove 240.Whether whether judge module 251 can have accurate position to change or edge variation by detecting PCI-E draw-in groove 240, change with the plug state of judging PCI-E draw-in groove 240.In addition, judge module 251 can be judged the plug state of PCI-E draw-in groove 240 by delay, or the signal that receives from PCI-E draw-in groove 240 is removed spring, and avoids noise effect judge module 251 to judge the correctness of the plug state of PCI-E draw-in groove.
When interrupt module 252 changes at the plug state of PCI-E draw-in groove 240, see through South Bridge chip 220 and transmit a look-at-me to basic input/output 230, with the plug state of triggering basic input/output 230 according to PCI-E draw-in groove 240, and the PCI-E device 260 of initialization or removal PCI-E draw-in groove 240.
Specifically, embedded controller 250 can comprise an internal memory 253, in order to store a draw-in groove state flags.Wherein, the draw-in groove state flags is the plug state in order to record PCI-E draw-in groove 240.Therefore, basic input/output 230 just can utilize a read module 231 of basic input/output 230 to see through South Bridge chip 220 after receiving look-at-me, reads the draw-in groove state flags from internal memory 253, to judge the plug state of PCI-E draw-in groove 240.
By the invention described above preferred embodiment as can be known, use the present invention and have following advantage.Can make the PCI-E draw-in groove that is connected in north bridge chips have the function of hot plug.In addition, compared to the PCI-E device being inserted in the PCI-E draw-in groove that is connected in South Bridge chip, the PCI-E device is inserted in the PCI-E draw-in groove that is connected in north bridge chips can has transfer rate faster.
Though the present invention discloses as above with an embodiment; right its is not in order to qualification the present invention, any person skilled in the art, without departing from the spirit and scope of the present invention; when can being used for a variety of modifications and variations, so protection scope of the present invention is when being as the criterion with the scope that claims were defined.

Claims (10)

1. the method for a hot-plugging PCI-E device is characterized in that, comprises:
Receive a state-change from a PCI-E draw-in groove that is connected in a north bridge chips;
After this PCI-E draw-in groove is received this state-change certainly, judge whether the plug state of this PCI-E draw-in groove changes; And
When the plug state of this PCI-E draw-in groove changes, see through a South Bridge chip and transmit look-at-me to a basic input/output, triggering the plug state of this basic input/output according to this PCI-E draw-in groove, and the PCI-E device in this PCI-E draw-in groove of initialization or removal.
2. the method for hot-plugging PCI-E device according to claim 1 is characterized in that, judges that the step whether the plug state of this PCI-E draw-in groove changes comprises:
Whether whether detecting this PCI-E draw-in groove has accurate position to change, change with the plug state of judging this PCI-E draw-in groove.
3. the method for hot-plugging PCI-E device according to claim 1 is characterized in that, judges that the step whether the plug state of this PCI-E draw-in groove changes comprises:
Whether whether detecting this PCI-E draw-in groove has edge variation, change with the plug state of judging this PCI-E draw-in groove.
4. the method for hot-plugging PCI-E device according to claim 1 is characterized in that, also comprises:
When the plug state of this PCI-E draw-in groove changes, plug state according to this PCI-E draw-in groove, setting is stored in a draw-in groove state flags of an internal memory, so that this basic input/output is after receiving this look-at-me, read this draw-in groove state flags from this internal memory, to judge the plug state of this PCI-E draw-in groove.
5. the method for hot-plugging PCI-E device according to claim 1 is characterized in that, also comprises:
Before whether the plug state of judging this PCI-E draw-in groove changes, this state-change is removed spring.
6. the method for hot-plugging PCI-E device according to claim 1 is characterized in that, after this PCI-E draw-in groove receives this state-change certainly, judges that the step whether the plug state of this PCI-E draw-in groove changes comprises:
After this PCI-E draw-in groove receives this state-change certainly, wait for a time delay; And
After waiting for this time delay, judge whether the plug state of this PCI-E draw-in groove changes.
7. the computing machine of a tool PCI-E draw-in groove is characterized in that, comprises:
One north bridge chips;
One South Bridge chip;
One basic input/output electrically connects this north bridge chips and this South Bridge chip;
One PCI-E draw-in groove electrically connects this north bridge chips; And
One embedded controller electrically connects this South Bridge chip and this PCI-E draw-in groove, comprises:
One judge module after this PCI-E draw-in groove is received a state-change certainly, judges whether the plug state of this PCI-E draw-in groove changes; And
One interrupt module, when the plug state of this PCI-E draw-in groove changes, see through this South Bridge chip and transmit a look-at-me to this basic input/output, triggering the plug state of this basic input/output according to this PCI-E draw-in groove, and a PCI-E device of this PCI-E draw-in groove of initialization or removal.
8. the computing machine of tool PCI-E draw-in groove according to claim 7 is characterized in that, this embedded controller also comprises:
One internal memory stores a draw-in groove state flags, and wherein this draw-in groove state flags writes down the plug state of this PCI-E draw-in groove.
9. the computing machine of tool PCI-E draw-in groove according to claim 8 is characterized in that, this basic input/output comprises:
One read module after receiving this look-at-me, sees through this South Bridge chip, and this internal memory reads this draw-in groove state flags certainly, to judge the plug state of this PCI-E draw-in groove.
10. the computing machine of tool PCI-E draw-in groove according to claim 7 is characterized in that, a general output input pin of this embedded controller and this PCI-E draw-in groove electrically connects.
CN200910118694A 2009-03-03 2009-03-03 Method for hot-plugging PCI-E device and application thereof Pending CN101826068A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910118694A CN101826068A (en) 2009-03-03 2009-03-03 Method for hot-plugging PCI-E device and application thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910118694A CN101826068A (en) 2009-03-03 2009-03-03 Method for hot-plugging PCI-E device and application thereof

Publications (1)

Publication Number Publication Date
CN101826068A true CN101826068A (en) 2010-09-08

Family

ID=42689989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910118694A Pending CN101826068A (en) 2009-03-03 2009-03-03 Method for hot-plugging PCI-E device and application thereof

Country Status (1)

Country Link
CN (1) CN101826068A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201963A (en) * 2016-07-11 2016-12-07 浪潮(北京)电子信息产业有限公司 A kind of system of PCI E card hot plug in server
CN106326167A (en) * 2015-06-17 2017-01-11 中兴通讯股份有限公司 PCIE sub-card-based hot plugging method and apparatus
CN106330562A (en) * 2016-08-30 2017-01-11 浪潮(北京)电子信息产业有限公司 System and method for solving crash problem of switch in hot plug process
WO2017124918A1 (en) * 2016-01-18 2017-07-27 中兴通讯股份有限公司 Hot-processing method and device for apparatus
CN107678997A (en) * 2017-09-27 2018-02-09 郑州云海信息技术有限公司 Hot-plug method, system, device and the readable storage medium storing program for executing of PCIE plug-in cards
CN110457241A (en) * 2019-08-16 2019-11-15 龙芯中科技术有限公司 HDMI conversion chip initial method, device and storage medium
CN114237725A (en) * 2021-12-14 2022-03-25 龙芯中科技术股份有限公司 Device driver calling method, device and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326167A (en) * 2015-06-17 2017-01-11 中兴通讯股份有限公司 PCIE sub-card-based hot plugging method and apparatus
WO2017124918A1 (en) * 2016-01-18 2017-07-27 中兴通讯股份有限公司 Hot-processing method and device for apparatus
CN106201963A (en) * 2016-07-11 2016-12-07 浪潮(北京)电子信息产业有限公司 A kind of system of PCI E card hot plug in server
CN106330562A (en) * 2016-08-30 2017-01-11 浪潮(北京)电子信息产业有限公司 System and method for solving crash problem of switch in hot plug process
CN107678997A (en) * 2017-09-27 2018-02-09 郑州云海信息技术有限公司 Hot-plug method, system, device and the readable storage medium storing program for executing of PCIE plug-in cards
CN110457241A (en) * 2019-08-16 2019-11-15 龙芯中科技术有限公司 HDMI conversion chip initial method, device and storage medium
CN114237725A (en) * 2021-12-14 2022-03-25 龙芯中科技术股份有限公司 Device driver calling method, device and system

Similar Documents

Publication Publication Date Title
CN101826068A (en) Method for hot-plugging PCI-E device and application thereof
CN100583076C (en) Hot plug detection method of mobile memory card
CN103095855B (en) I2C communication interface unit
JP6517243B2 (en) Link Layer / Physical Layer (PHY) Serial Interface
CN100377101C (en) Method and apparatus for testing host computer board including interconnecting peripheries quickly
CN107066746B (en) Method for realizing PCA9555 function through CPLD based on I2C interface
CN211427190U (en) Server circuit and mainboard based on Feiteng treater 2000+
KR20090004508A (en) Pci express interface apparatus
US9043528B2 (en) Bridge between a peripheral component interconnect express interface and a universal serial bus 3.0 device
US20090198861A1 (en) Device With A USB Interface Which Can Be Used As A Time-Sharing Standard I/O Interface And A Method Thereof
CN100480923C (en) Controller soft realizing method from I2C bus
CN102646088A (en) External bridge system
CN110647486B (en) PCIe link training method, end equipment and communication system
CN110908475A (en) Shenwei 1621CPU ICH-free 2 suite server mainboard
CN104460406A (en) Single-line communication method and single chip microcomputer firmware updating method based on single-line communication
US6523071B1 (en) Process and apparatus for configuring the direct memory access transfer mode of a motherboard or host computer
CN109062850B (en) Data sending and receiving method of single chip microcomputer
WO2005091156A2 (en) Signaling arrangement and approach therefor
CN109992556B (en) I2C driving method and device
CN109739328B (en) Reset circuit and method of M.3SSD
CN108255759A (en) PCI-E adapters and data processing system
CN107783793B (en) Method for automatically identifying host operating system and USB device
CN110989451B (en) Detection control method based on multi-point touch and remote control shared detection control system
CN204129732U (en) Based on the board self-adaptation equipment of satellite time transfer machine frame system
CN102364452A (en) Realization method for thermal plugging use of PS2 interface keyboard and mouse

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20100908