CN113946530A - Control method and device of expansion card and nonvolatile storage medium - Google Patents
Control method and device of expansion card and nonvolatile storage medium Download PDFInfo
- Publication number
- CN113946530A CN113946530A CN202111340557.6A CN202111340557A CN113946530A CN 113946530 A CN113946530 A CN 113946530A CN 202111340557 A CN202111340557 A CN 202111340557A CN 113946530 A CN113946530 A CN 113946530A
- Authority
- CN
- China
- Prior art keywords
- expansion card
- interface
- card interface
- controlling
- expansion
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000012545 processing Methods 0.000 claims description 20
- 239000000758 substrate Substances 0.000 claims description 14
- 230000006870 function Effects 0.000 description 8
- 238000012423 maintenance Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 1
- 239000010931 gold Substances 0.000 description 1
- 229910052737 gold Inorganic materials 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
- G06F13/4081—Live connection to bus, e.g. hot-plugging
Abstract
The application discloses a control method and device of an expansion card and a nonvolatile storage medium. Wherein, the method comprises the following steps: controlling the power-off of the expansion card interface under the condition that the expansion card is not inserted into the expansion card interface of the equipment; after a first instruction for inserting the expansion card into the expansion card interface is obtained, controlling the expansion card to be inserted into the expansion card interface; and loading the driving software for driving the expansion card under the condition that the expansion card inserted into the expansion card interface is normally powered on. The method and the device solve the technical problems that the conventional device supporting PCIE interface expansion does not support the hot plug function of the PCIE interface, so that the operation is inconvenient when the PCIE interface is plugged into and pulled out of an expansion module, and the cost is high.
Description
Technical Field
The application relates to the technical field of expansion card hot plug, in particular to a control method and device of an expansion card and a nonvolatile storage medium.
Background
Currently, gateway products or server products do not support a PCIE interface hot plug function in the case of a PCIE interface expansion of a high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express). But the user is often not concerned with this limitation during use. If the user hot plugs the extension module at the interface, the module will be burnt, and even more, the risk of burning the host and data loss will be caused.
To avoid the above problems, the existing schemes mainly have two kinds: according to the first scheme, the extension module is plugged and pulled after the host is turned off manually; and in the second scheme, the expansion module is manually popped up through software control and then is plugged and unplugged.
In the first scheme, the power is cut off first, and then the plug-pull line of the module is made to influence the data transmission of the online equipment, so that the network-cut reference service is interrupted; in the second scheme, additional software development is required to be developed for manual control software, and meanwhile, manual maintenance is required, so that the cost is high.
Aiming at the problems that the existing equipment supporting PCIE interface expansion does not support the hot plug function of the PCIE interface, so that the operation is inconvenient when the PCIE interface is plugged in and pulled out of an expansion module, and the cost is high, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the application provides a control method and a control device for an expansion card and a nonvolatile storage medium, so as to solve the technical problems that currently, a device supporting PCIE interface expansion does not support a PCIE interface hot plug function, so that the operation is inconvenient when a PCIE interface is plugged in or pulled out of an expansion module, and the cost is high.
According to an aspect of an embodiment of the present application, there is provided a method for controlling an expansion card, including: controlling the power-off of the expansion card interface under the condition that the expansion card is not inserted into the expansion card interface of the equipment; after a first instruction for inserting the expansion card into the expansion card interface is obtained, controlling the expansion card to be inserted into the expansion card interface; and loading the driving software for driving the expansion card under the condition that the expansion card inserted into the expansion card interface is normally powered on.
Optionally, controlling the expansion card interface to power off includes: transferring the control right of the expansion card interface to the expansion card from the central processing unit to the substrate management controller; the power of the card interface is expanded through the substrate management controller; and after the power of the expansion card interface is cut off, the control right of the expansion card interface to the expansion card is transferred to the central processing unit from the substrate management controller.
Optionally, controlling an expansion card to be inserted into the expansion card interface includes: and controlling the expansion card to establish connection with the expansion card interface.
Optionally, before loading the driver software for driving the expansion card, the method further includes: transferring the control right of the expansion card interface to the expansion card from the central processing unit to the substrate management controller; and controlling the expansion card to reset and power on through the baseboard management controller.
Optionally, after loading the driver software for driving the expansion card, the method further includes: and transferring the control right of the expansion card interface to the expansion card from the baseboard management controller to the central processing unit.
Optionally, obtaining a first instruction to insert an expansion card into the expansion card interface includes one of the following: acquiring a first instruction issued through a software interface; and acquiring a first instruction issued by clicking a hardware button on the equipment.
According to another aspect of the embodiments of the present application, there is also provided a method for controlling an expansion card, including: after a second instruction for pulling the expansion card out of the expansion card interface of the equipment is obtained, the driving software for driving the expansion card is unloaded; controlling the expansion card to be powered off; and after determining that the expansion card is powered off, controlling the expansion card to be pulled out from the expansion card interface.
Optionally, controlling the expansion card to power off includes: transferring the control right of the expansion card interface to the expansion card from the central processing unit to the substrate management controller; and powering off the expansion card through the baseboard management controller.
Optionally, controlling the expansion card to be pulled out from the expansion card interface includes: and controlling the expansion card to be disconnected with the expansion card interface.
Optionally, after controlling the expansion card to be pulled out from the expansion card interface, the method further includes: and transferring the control right of the expansion card interface to the expansion card from the baseboard management controller to the central processing unit.
Optionally, obtaining a second instruction to pull out the expansion card from the expansion card interface of the device includes one of the following ways: acquiring a second instruction issued through a software interface; and acquiring a second instruction issued by clicking a hardware button on the equipment.
According to another aspect of the embodiments of the present application, there is also provided a control apparatus for an expansion card, including: the first control module is used for controlling the power-off of the expansion card interface under the condition that the expansion card is not inserted into the expansion card interface of the equipment; the second control module is used for controlling the expansion card to be inserted into the expansion card interface after acquiring a first instruction for inserting the expansion card into the expansion card interface; and the loading module is used for loading the driving software for driving the expansion card under the condition that the expansion card inserted into the expansion card interface is normally powered on.
According to still another aspect of the embodiments of the present application, there is provided a non-volatile storage medium, where the non-volatile storage medium includes a stored program, and the apparatus in which the non-volatile storage medium is located is controlled to execute the above control method for the expansion card when the program runs.
According to still another aspect of the embodiments of the present application, there is also provided a processor for executing a program stored in a memory, wherein the program executes the above control method of the expansion card.
In the embodiment of the application, the power of the expansion card interface is controlled to be cut off under the condition that the expansion card is not inserted into the expansion card interface of the equipment; after a first instruction for inserting the expansion card into the expansion card interface is obtained, controlling the expansion card to be inserted into the expansion card interface; under the condition that the expansion card inserted into the expansion card interface is normally powered on, the mode of loading the driving software for driving the expansion card is adopted, and the purpose that the PCIE interface of related equipment supports the hot plug function of the PCIE interface is achieved, so that the technical effects of reducing the manpower maintenance cost when the PCIE interface is plugged in and pulled out of the expansion module and enhancing the maintenance convenience of the PCIE interface are achieved, and the technical problems that the equipment supporting the PCIE interface expansion currently does not support the hot plug function of the PCIE interface, the operation is inconvenient when the PCIE interface is plugged in and pulled out of the expansion module, and the cost is high are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a control method of an expansion card according to an embodiment of the present application;
fig. 2 is a flowchart of another control method of an expansion card according to an embodiment of the present application;
fig. 3 is a block diagram of a control device of an expansion card according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the present application, there is provided an embodiment of a control method for an expansion card, it should be noted that the steps shown in the flowchart of the drawings may be executed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that here.
Fig. 1 is a flowchart of a method for controlling an expansion card according to an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step S102, controlling the power-off of an expansion card interface under the condition that the expansion card is not inserted into the expansion card interface of the equipment;
it should be noted that the expansion card interface is a PCIE interface, and the expansion card is hereinafter collectively referred to as a PCIE network card.
Step S104, after a first instruction for inserting the expansion card into the expansion card interface is obtained, controlling the expansion card to be inserted into the expansion card interface;
and step S106, loading the driving software for driving the expansion card under the condition that the expansion card inserted into the expansion card interface is normally powered on.
Through the steps, the purpose that the PCIE interfaces of the related equipment support the hot plug function of the PCIE interfaces is achieved, so that the technical effects that the labor maintenance cost when the PCIE interfaces plug the expansion card is reduced, and the maintenance convenience of the PCIE interfaces is enhanced are achieved.
According to an alternative embodiment of the present application, the step S102 of controlling the expansion card interface to power off is executed, which includes the following steps: transferring the control right of the expansion card interface to the expansion card from the central processing unit to the substrate management controller; the power of the card interface is expanded through the substrate management controller; and after the power of the expansion card interface is cut off, the control right of the expansion card interface to the expansion card is transferred to the central processing unit from the substrate management controller.
It should be noted that, when the device is powered on, each slot (i.e., the above expansion card interface) is powered on by default, software is used to scan whether a PCIE network card is inserted into each slot, if not, an instruction is sent out, the PCIE control right of the slot is transferred to a Baseboard Management Controller (BMC), the BMC sends an instruction to the BMC through the software, the BMC controls the slot to be powered off, so that the default of the slot into which the PCIE network card is not inserted is not powered off, and the PCIE control right is returned to a Central Processing Unit (CPU) after the power off.
Table 1 is detailed information of a main board PCIE expansion slot/line card signal provided in the embodiment of the present application, as shown in table 1 below:
table 1 mainboard PCIE expansion slot/line card signal
The power supply enabling, resetting, on-site detection and GPIO keys of the line cards are all extended by PCA9555(I2C changes 16 paths of GPIO), the PCA9555 is in a default state after being powered on, and each IO is in an internal 100K pull-up input state. PCA9555 uses the P3V3_ SLOT power domain (i.e., PCA9555 is inaccessible if the CPU is off).
Table 2 is a truth table for line card power enable control, as shown in table 2:
PRSNT_N | PCA9555_PWR_EN | P12_EN/P3V3_EN | P3V3SB_EN |
0 (in place) | 0(BMC control switch) | 0 | 0 |
0 (in place) | 1(BMC control switch) | Rear 1 | First 1 |
1 (out) | 0(BMC control switch) | 0 | 0 |
1 (out) | 1(BMC control switch) | 0 | 0 |
0 plug-in card power-on | 1(BMC uninitialized) | Back 1 (without time delay) | First 1 (without time delay) |
1- > 0 (Hot insertion) | 1(BMC uninitialized) | Back 1 (with time delay) | First 1 (with time delay) |
The key to the processing is that if the line card is powered on in the plugged state, there should be no delay on the line card. If the line card is hot-plugged, the line card should have a delay protection.
If there is a delay in booting in the plugged-in state, it may be too long for the BIOS to correctly identify the device.
If the thermal insertion delay is too short, the gold finger is likely to generate a large thermal effect when the contact is poor.
Before BMC starting is completed, line card power supply can be controlled through PRSNT _ N, and the PRSNT _ N has higher priority.
The general design idea is that when the PRSNT _ N signal bit is 0 and the PCA9555_ PWR _ EN signal controlled by the BMC is 1, each power supply of the line card needs to be controlled to be powered on, and P3V3SB needs to be powered on first. In other states, the line cards are powered down. The delay circuit is active when PRSNT _ N is from 1- > 0, but no delay is needed when PRSNT _ N is kept at 0 all the time. The POWER SWITCH can select the chip with soft start and overcurrent protection, and in general, the line CARD P12V _ CARD uses the POWER SWITCH of 2-3A, the P3V3_ CARD uses the POWER SWITCH of 2-3A, and the P3V3SB _ CARD uses the POWER SWITCH of 1A. The BYPASS _ EN/GATE _ SLOT signal needs to be isolated by using a tri-state buffer, which supplies P3V3BY _ SLOT, so that the BYPASS signal can still be maintained for a practical period when the host is powered down. After the line CARD is removed, the signals are in a high-impedance state, and when the line CARD is inserted, the P3V 3-12V _ CARD _ EN signal controls enabling. The BYPASS signal requires a current limiting resistor if a buffer design is not used.
According to another alternative embodiment of the present application, the step S104 of controlling the expansion card to be inserted into the expansion card interface is executed, and includes: and controlling the expansion card to establish connection with the expansion card interface.
In this step, the expansion card is inserted into the expansion card interface, which is to essentially establish a connection relationship between the expansion card and the expansion card interface.
In some optional embodiments of the present application, before the step S106 is executed to load the driver software for driving the expansion card, the control right of the expansion card interface to the expansion card needs to be transferred from the central processing unit to the baseboard management controller; and controlling the expansion card to reset and power on through the baseboard management controller.
Optionally, after loading the driver software for driving the expansion card, the control right of the expansion card interface to the expansion card is transferred from the baseboard management controller to the central processor.
After receiving an instruction of inserting the expansion card into the slot position, sending the PCIE control right of the slot position to the BMC, sending an instruction to the BMC to control the GPIO to power on and reset the PCIE card, scanning the PCIE card by a system, loading a drive by the system, confirming that the PCIE network card is normally powered on, confirming that a network interface indicator lamp is normal, and confirming that the PCIE network card is normally inserted. At this point, the PCIE control right is handed back to the CPU.
In other alternative embodiments of the present application, the step S102 of obtaining a first instruction for inserting an expansion card into an expansion card interface is executed, including one of the following manners: acquiring a first instruction issued through a software interface; and acquiring a first instruction issued by clicking a hardware button on the equipment.
In the embodiment provided by the application, there are two types of PCIE network cards, one is a PCIE network card without a BTN button, and the other is a PCIE network card with a BTN button.
The difference between the two expansion cards inserted into the relevant equipment through the PCIE interface is that when the PCIE network card without the BTN button is inserted, an instruction for inserting the PCIE network card is issued through a software interface; when the PCIE network card with the BTN button is inserted, the command for inserting the PCIE network card is issued by clicking the BTN button, specifically, the BTN button is pressed, GPIO is controlled through the BTN, OS scans the change of the GPIO controlled by the BTN, the PCIE control right of the slot position is sent to BMC, and the command is issued to inform the BMC to enable the PCIE card to be powered on and reset. And the other steps of inserting the PCIE network card are consistent.
In an alternative embodiment, a button (BTN button) is connected to the PCA9555, and the software can trigger the operation of pulling out the line card according to the pulling down of the button for a long enough time (e.g., 3 seconds). The software can trigger this key status query using the INT signal of PCA 9555. If the line card does not have an indicator light to reflect the power supply of the line card is in the power-off state, a power indicator light needs to be additionally designed, and a user can judge whether the line card can be safely plugged according to the indicator light.
Fig. 2 is a flowchart of another control method of an expansion card according to an embodiment of the present application, and as shown in fig. 2, the method includes the following steps:
step S202, after a second instruction for pulling out the expansion card from the expansion card interface of the equipment is obtained, the driving software for driving the expansion card is unloaded;
in this step, the driving software for driving the PCIE network card is unloaded when an instruction to pull out the PCIE network card is received.
Step S204, controlling the expansion card to be powered off;
and step S206, after determining that the expansion card is powered off, controlling the expansion card to be pulled out from the expansion card interface.
According to an alternative embodiment of the present application, the step S204 is executed to control the expansion card to power off, which includes the following steps: transferring the control right of the expansion card interface to the expansion card from the central processing unit to the substrate management controller; and powering off the expansion card through the baseboard management controller.
In this step, the PCIE control right of the slot where the PCIE network card is pulled out is given to the BMC, and an instruction is issued to the BMC to control the GPIO so that the PCIE network card is powered off.
According to an alternative embodiment of the present application, executing step S206 to control the expansion card to be pulled out from the expansion card interface includes: and controlling the expansion card to be disconnected with the expansion card interface.
In the above, the expansion card is inserted into the expansion card interface, and the connection relationship between the expansion card and the expansion card interface is essentially established. Accordingly, the expansion card is pulled out of the expansion card interface, and the connection relationship between the expansion card and the expansion card interface is substantially broken.
In some optional embodiments of the present application, after the step S206 is executed to control the expansion card to be pulled out from the expansion card interface, the control right of the expansion card interface to the expansion card needs to be transferred from the baseboard management controller to the central processing unit.
In this step, the network interface indicator light of the PCIE network card is turned off, it is determined that the PCIE card is not charged, the network card is pulled out, and the control right of the PCIE network card by the PCIE interface is handed back to the CPU.
In other alternative embodiments of the present application, obtaining the second instruction to unplug the expansion card from the expansion card interface of the device includes one of: acquiring a second instruction issued through a software interface; and acquiring a second instruction issued by clicking a hardware button on the equipment.
In the embodiment provided by the application, there are two types of PCIE network cards, one is a PCIE network card without a BTN button, and the other is a PCIE network card with a BTN button.
When the two expansion cards are pulled out from the PCIE interface, the difference is that when the PCIE network card without the BTN button is pulled out, an instruction for pulling out the PCIE network card is issued through a software interface; when the PCIE network card with the BTN button is pulled out, a command for pulling out the PCIE network card is issued by clicking the BTN button, specifically, the BTN button is pressed, GPIO is controlled through the BTN, the OS scans GPIO change controlled by the BTN, after the network card drive is unloaded, the PCIE control right of the slot position is given to the BMC, and the command is issued to inform the BMC to power off the PCIE card. And (4) pulling out other steps of the PCIE network card, wherein the two steps are consistent.
Fig. 3 is a block diagram of a control device of an expansion card according to an embodiment of the present application, and as shown in fig. 3, the device includes:
the first control module 30 is configured to control the expansion card interface to power off when it is determined that the expansion card is not inserted into the expansion card interface of the device;
the second control module 32 is configured to control the expansion card to be inserted into the expansion card interface after a first instruction for inserting the expansion card into the expansion card interface is obtained;
and the loading module 34 is configured to load driver software for driving the expansion card when the expansion card inserted into the expansion card interface is normally powered on.
It should be noted that, reference may be made to the description related to the embodiment shown in fig. 1 for a preferred implementation of the embodiment shown in fig. 3, and details are not described here again.
The embodiment of the application also provides a nonvolatile storage medium, wherein the nonvolatile storage medium comprises a stored program, and the control method of the expansion card is used for controlling the equipment where the nonvolatile storage medium is located to execute the program when the program runs.
The nonvolatile storage medium stores a program for executing the following functions: controlling the power-off of the expansion card interface under the condition that the expansion card is not inserted into the expansion card interface of the equipment; after a first instruction for inserting the expansion card into the expansion card interface is obtained, controlling the expansion card to be inserted into the expansion card interface; and loading the driving software for driving the expansion card under the condition that the expansion card inserted into the expansion card interface is normally powered on. Or
After a second instruction for pulling the expansion card out of the expansion card interface of the equipment is obtained, the driving software for driving the expansion card is unloaded; controlling the expansion card to be powered off; and after determining that the expansion card is powered off, controlling the expansion card to be pulled out from the expansion card interface.
The embodiment of the application also provides a processor, wherein the processor is used for running the program stored in the memory, and the control method of the expansion card is executed when the program runs.
The processor is used for running a program for executing the following functions: controlling the power-off of the expansion card interface under the condition that the expansion card is not inserted into the expansion card interface of the equipment; after a first instruction for inserting the expansion card into the expansion card interface is obtained, controlling the expansion card to be inserted into the expansion card interface; and loading the driving software for driving the expansion card under the condition that the expansion card inserted into the expansion card interface is normally powered on. Or
After a second instruction for pulling the expansion card out of the expansion card interface of the equipment is obtained, the driving software for driving the expansion card is unloaded; controlling the expansion card to be powered off; and after determining that the expansion card is powered off, controlling the expansion card to be pulled out from the expansion card interface.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.
Claims (13)
1. A control method of an expansion card is characterized by comprising the following steps:
under the condition that the expansion card is not inserted into the expansion card interface of the equipment, controlling the expansion card interface to be powered off;
after a first instruction for inserting the expansion card into the expansion card interface is obtained, controlling the expansion card to be inserted into the expansion card interface;
and loading driving software for driving the expansion card under the condition that the expansion card inserted into the expansion card interface is normally powered on.
2. The method of claim 1, wherein controlling the expansion card interface to power down comprises:
transferring the control right of the expansion card interface to the expansion card from a central processing unit to a substrate management controller;
powering off the expansion card interface through the baseboard management controller;
and after the power of the expansion card interface is cut off, transferring the control right of the expansion card interface to the expansion card from the substrate management controller to the central processing unit.
3. The method of claim 1, wherein controlling the expansion card to be inserted into the expansion card interface comprises:
and controlling the expansion card and the expansion card interface to establish connection.
4. The method of claim 2, wherein prior to loading driver software for driving the expansion card, the method further comprises:
transferring the control right of the expansion card interface to the expansion card from the central processing unit to the substrate management controller;
and controlling the expansion card to reset and power on through the substrate management controller.
5. The method of claim 2, wherein after loading driver software for driving the expansion card, the method further comprises:
and transferring the control right of the expansion card interface to the expansion card from the baseboard management controller to the central processing unit.
6. The method of claim 1, wherein obtaining the first instruction to insert the expansion card into the expansion card interface comprises one of:
acquiring the first instruction issued through a software interface;
and acquiring the first instruction issued by clicking a hardware button on the equipment.
7. A control method of an expansion card is characterized by comprising the following steps:
after a second instruction for pulling out the expansion card from an expansion card interface of the equipment is obtained, the driving software for driving the expansion card is unloaded;
controlling the expansion card to be powered off;
and after the power failure of the expansion card is determined, controlling the expansion card to be pulled out from the expansion card interface.
8. The method of claim 7, wherein controlling the expansion card to power down comprises:
transferring the control right of the expansion card interface to the expansion card from a central processing unit to a substrate management controller;
and powering off the expansion card through the baseboard management controller.
9. The method of claim 7, wherein controlling the expansion card to be unplugged from the expansion card interface comprises:
and controlling the expansion card and the expansion card interface to be disconnected.
10. The method of claim 8, wherein after controlling the expansion card to be unplugged from the expansion card interface, the method further comprises:
and transferring the control right of the expansion card interface to the expansion card from the baseboard management controller to the central processing unit.
11. The method of claim 7, wherein obtaining the second instruction to unplug the expansion card from the expansion card interface of the device comprises one of:
acquiring the second instruction issued through a software interface;
and acquiring the second instruction issued by clicking a hardware button on the equipment.
12. An expansion card control device, comprising:
the first control module is used for controlling the power-off of the expansion card interface under the condition that the expansion card is not inserted into the expansion card interface of the equipment;
the second control module is used for controlling the expansion card to be inserted into the expansion card interface after a first instruction for inserting the expansion card into the expansion card interface is obtained;
and the loading module is used for loading the driving software for driving the expansion card under the condition that the expansion card inserted into the expansion card interface is normally powered on.
13. A non-volatile storage medium, characterized in that the non-volatile storage medium includes a stored program, and wherein, when the program runs, a device in which the non-volatile storage medium is located is controlled to execute the control method of the expansion card according to any one of claims 1 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111340557.6A CN113946530A (en) | 2021-11-12 | 2021-11-12 | Control method and device of expansion card and nonvolatile storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111340557.6A CN113946530A (en) | 2021-11-12 | 2021-11-12 | Control method and device of expansion card and nonvolatile storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113946530A true CN113946530A (en) | 2022-01-18 |
Family
ID=79338030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111340557.6A Pending CN113946530A (en) | 2021-11-12 | 2021-11-12 | Control method and device of expansion card and nonvolatile storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113946530A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114925009A (en) * | 2022-04-30 | 2022-08-19 | 苏州浪潮智能科技有限公司 | PCIE expansion chip hot plug management method, device and medium |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662903A (en) * | 2012-03-31 | 2012-09-12 | 浪潮电子信息产业股份有限公司 | Method for realizing hot-plug of PCIE equipment by CPLD or FPGA |
CN103473166A (en) * | 2013-08-27 | 2013-12-25 | 中国航天科工集团第二研究院七〇六所 | Small embedded-type system board card monitoring system |
CN105893293A (en) * | 2014-12-18 | 2016-08-24 | 伊姆西公司 | System and method used for managing hot plug of peripheral component interface express device |
CN107222357A (en) * | 2017-08-03 | 2017-09-29 | 郑州云海信息技术有限公司 | A kind of device and method for configuring network interface card |
CN107908413A (en) * | 2017-11-20 | 2018-04-13 | 山东超越数控电子股份有限公司 | A kind of method of Domestic Platform remote maintenance mainboard BIOS |
CN110377484A (en) * | 2019-06-29 | 2019-10-25 | 苏州浪潮智能科技有限公司 | Judge the method and system of disk state |
CN111400217A (en) * | 2020-02-29 | 2020-07-10 | 苏州浪潮智能科技有限公司 | OCP adapter card and computer equipment |
CN112269584A (en) * | 2020-10-19 | 2021-01-26 | 苏州浪潮智能科技有限公司 | PCIe Switch firmware updating method, device, electronic equipment and medium |
CN112463689A (en) * | 2020-11-30 | 2021-03-09 | 苏州浪潮智能科技有限公司 | OCP card hot plug device, method and computer readable storage medium |
US20210157760A1 (en) * | 2019-11-21 | 2021-05-27 | Hewlett Packard Enterprise Development Lp | Baseboard management controller-based security operations for hot plug capable devices |
CN113568855A (en) * | 2021-07-30 | 2021-10-29 | 福州创实讯联信息技术有限公司 | Low-cost PCIE hot plug multi-mode compatible device |
CN113609051A (en) * | 2021-06-25 | 2021-11-05 | 苏州浪潮智能科技有限公司 | Hot plug method, system, device and computer storage medium for expansion board |
-
2021
- 2021-11-12 CN CN202111340557.6A patent/CN113946530A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662903A (en) * | 2012-03-31 | 2012-09-12 | 浪潮电子信息产业股份有限公司 | Method for realizing hot-plug of PCIE equipment by CPLD or FPGA |
CN103473166A (en) * | 2013-08-27 | 2013-12-25 | 中国航天科工集团第二研究院七〇六所 | Small embedded-type system board card monitoring system |
CN105893293A (en) * | 2014-12-18 | 2016-08-24 | 伊姆西公司 | System and method used for managing hot plug of peripheral component interface express device |
CN107222357A (en) * | 2017-08-03 | 2017-09-29 | 郑州云海信息技术有限公司 | A kind of device and method for configuring network interface card |
CN107908413A (en) * | 2017-11-20 | 2018-04-13 | 山东超越数控电子股份有限公司 | A kind of method of Domestic Platform remote maintenance mainboard BIOS |
CN110377484A (en) * | 2019-06-29 | 2019-10-25 | 苏州浪潮智能科技有限公司 | Judge the method and system of disk state |
US20210157760A1 (en) * | 2019-11-21 | 2021-05-27 | Hewlett Packard Enterprise Development Lp | Baseboard management controller-based security operations for hot plug capable devices |
CN111400217A (en) * | 2020-02-29 | 2020-07-10 | 苏州浪潮智能科技有限公司 | OCP adapter card and computer equipment |
CN112269584A (en) * | 2020-10-19 | 2021-01-26 | 苏州浪潮智能科技有限公司 | PCIe Switch firmware updating method, device, electronic equipment and medium |
CN112463689A (en) * | 2020-11-30 | 2021-03-09 | 苏州浪潮智能科技有限公司 | OCP card hot plug device, method and computer readable storage medium |
CN113609051A (en) * | 2021-06-25 | 2021-11-05 | 苏州浪潮智能科技有限公司 | Hot plug method, system, device and computer storage medium for expansion board |
CN113568855A (en) * | 2021-07-30 | 2021-10-29 | 福州创实讯联信息技术有限公司 | Low-cost PCIE hot plug multi-mode compatible device |
Non-Patent Citations (1)
Title |
---|
苏振宇;: "基于国产BMC的服务器安全启动技术研究与实现", 信息安全研究, no. 09, 5 September 2017 (2017-09-05) * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114925009A (en) * | 2022-04-30 | 2022-08-19 | 苏州浪潮智能科技有限公司 | PCIE expansion chip hot plug management method, device and medium |
CN114925009B (en) * | 2022-04-30 | 2023-07-18 | 苏州浪潮智能科技有限公司 | PCIE (peripheral component interconnect express) expansion chip hot plug management method, device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112463689B (en) | OCP card hot plug device, method and computer readable storage medium | |
CN111697663B (en) | Charging circuit and charging cable | |
TW426833B (en) | PCI system and adapter requirements following reset | |
EP2821882B1 (en) | Computer device and method for converting working mode of universal serial bus connector of the computer device | |
CN101373433A (en) | Method for updating BIOS and computer and system using the same | |
CN111339010A (en) | PCIE (peripheral component interface express) equipment hot plug identification method, system and related components | |
EP2798428B1 (en) | Apparatus and method for managing operation of a mobile device | |
JP2018116648A (en) | Information processor, control method thereof and program | |
JP2024512316A (en) | Independent slot control for expansion cards | |
CN100361110C (en) | Methode for controlling bridge and relative bridge | |
US10678739B1 (en) | Electronic system, host device and control method | |
CN102073602A (en) | Computer system, connection control device as well as connecting and disconnecting method | |
CN107145198B (en) | Method for improving compatibility of server to hard disk and mainboard thereof | |
CN112134765A (en) | WIFI (Wireless Fidelity) back-connection test method and device, test terminal and readable storage medium | |
CN113946530A (en) | Control method and device of expansion card and nonvolatile storage medium | |
CN108874700A (en) | Electronic equipment | |
CN109697179B (en) | Hardware resource expansion system and hot plug management device | |
CN111637079B (en) | Mainboard, fan control system and method | |
US7523336B2 (en) | Controlled power sequencing for independent logic circuits that transfers voltage at a first level for a predetermined period of time and subsequently at a highest level | |
US20060230191A1 (en) | Method for enabling or disabling a peripheral device that is maintained electrically connected to a computer system | |
TWI434184B (en) | Computer device and working mode conversion method of universal serial bus connector thereof | |
CN107608924B (en) | Method and device for controlling hot plug of interface board | |
CN115952122A (en) | I2C device hot plug method, system, device, medium and product | |
CN115269474A (en) | Server and PCIe hot plug control method, device and medium thereof | |
US8972625B2 (en) | Electronic apparatus and host determination method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |