WO2021098485A1 - Method and system for power-on and power-off control of pcie device - Google Patents
Method and system for power-on and power-off control of pcie device Download PDFInfo
- Publication number
- WO2021098485A1 WO2021098485A1 PCT/CN2020/125408 CN2020125408W WO2021098485A1 WO 2021098485 A1 WO2021098485 A1 WO 2021098485A1 CN 2020125408 W CN2020125408 W CN 2020125408W WO 2021098485 A1 WO2021098485 A1 WO 2021098485A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- power
- target device
- instruction
- logic module
- module
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000015654 memory Effects 0.000 claims description 25
- 238000011022 operating instruction Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 claims description 4
- 230000001960 triggered effect Effects 0.000 claims description 4
- 238000004088 simulation Methods 0.000 claims description 2
- 238000013403 standard screening design Methods 0.000 description 15
- 238000012423 maintenance Methods 0.000 description 10
- 230000005540 biological transmission Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000002093 peripheral effect Effects 0.000 description 4
- 230000008054 signal transmission Effects 0.000 description 4
- 239000007787 solid Substances 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001568 sexual effect Effects 0.000 description 1
- 238000013112 stability test Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000033772 system development Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
-
- 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/42—Bus transfer protocol, e.g. handshake; Synchronisation
-
- 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/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Definitions
- the present disclosure relates to the field of electronic technology, and in particular, to a method and system for power-on and power-off control of PCIe devices.
- PCIe Peripheral Component Interconnect express
- CPU Central Processing Unit, central processing unit
- peripheral devices peripheral devices
- non-volatile memory host controller interface specification solid state drive (Non-Volatile Memory express Solid State Disk, NVMe SSD) is a PCIe device based on the PCIe bus interface.
- NVMe SSDs are gradually replacing traditional mechanical hard disks and are widely used in server storage systems.
- server storage systems storage arrays containing multiple NVMe SSDs are usually used.
- this power-on and power-off operation often requires operation and maintenance personnel to enter the computer room for manual operation, resulting in high operation and maintenance costs.
- the embodiments of the present disclosure provide a power-on and power-off control method, system, device, and computer-readable storage medium for PCIe devices, which can realize remote control of power-on and power-off of PCIe devices, which is beneficial to reducing operation and maintenance costs.
- the embodiments of the present disclosure provide a power-on and power-off control method for PCIe devices, including:
- the operation instruction including a power-on instruction or a power-off instruction carrying target device information
- a corresponding power control instruction is output to the power control module, so that the power control module controls the power signal supplied to the target device to be turned on or off.
- the embodiments of the present disclosure provide a power-on and power-off control method for PCIe devices, including:
- the operation instruction including a power-on instruction or a power-off instruction carrying target device information
- the hot-plug driver of the operating system is triggered to perform the operation of adding or removing the target device.
- embodiments of the present disclosure provide a power-on and power-off control system, including:
- the CPU is used to receive operating instructions from the system application layer and forward the operating instructions to the logic module.
- the operating instructions include power-on instructions or power-off instructions that carry target device information; and according to the information from the logic module
- the simulated target device is in the in-position state, which triggers the hot-swappable driver of the operating system to perform the operation of adding or removing the target device;
- the logic module is used to receive an operation instruction from the CPU, the operation instruction includes a power-on instruction or a power-off instruction carrying target device information; according to the operation instruction, the in-position state of the target device is simulated; The simulated target device's in-position state enables control of the clock and reset signal of the target device; the simulated target device's in-position state is reported to the CPU to trigger the hot-swappable driver of the operating system to add or remove all data.
- the operation of the target device further outputting a corresponding power control instruction to the power control module according to the operation instruction, so that the power control module controls the power signal supplied to the target device to be turned on or off;
- the power control module is used to receive and control the power signal supplied to the target device to be turned on or off according to the power control instruction from the logic module.
- an embodiment of the present disclosure provides a device, including:
- Memory used to store programs
- the processor is configured to execute the program stored in the memory, and when the processor executes the program stored in the memory, the processor is configured to execute any of the power-on and power-off control methods of the PCIe device as described above.
- embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute any of the foregoing PCIe device power-on and power-off control methods.
- FIG. 1 is a schematic structural diagram of a power-on and power-off control system for PCIe devices provided by an embodiment of the present disclosure
- FIG. 2 is a schematic structural diagram of another PCIe device power-on and power-off control system provided by an embodiment of the present disclosure
- FIG. 3 is a flowchart of a method for controlling power-on and power-off of PCIe devices according to an embodiment of the present disclosure
- FIG. 4 is a flowchart of another method for controlling power-on and power-off of PCIe devices according to an embodiment of the present disclosure
- Fig. 5 is a schematic structural diagram of a device provided by an embodiment of the present disclosure.
- multiple means two or more, greater than, less than, exceeding, etc. are understood to not include the number, and above, below, and within are understood to include the number. If there are descriptions of "first”, “second”, etc., which are only used to distinguish technical features, they cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the indicated The precedence of technical characteristics.
- PCIe Peripheral Component Interconnect Express
- CPU Central Processing Unit, central processing unit
- peripheral devices peripheral devices
- non-volatile memory host controller interface specification solid state drive (Non-Volatile Memory express Solid State Disk, NVMe SSD) is a PCIe device based on the PCIe bus interface.
- NVMe SSDs are gradually replacing traditional mechanical hard disks and are widely used in server storage systems.
- server storage systems storage arrays containing multiple NVMe SSDs are usually used.
- this power-on and power-off operation often requires operation and maintenance personnel to enter the computer room for manual operation, resulting in high operation and maintenance costs.
- the embodiments of the present disclosure provide a power-on and power-off control method, system, device, and computer-readable storage medium for PCIe devices, which can realize remote control of power-on and power-off of PCIe devices, and can first replace the device before failure.
- the PCIe device can be removed through the power-off command to avoid system abnormalities caused by violent plugging and unplugging of the device.
- Fig. 1 shows a PCIe device power-on and power-off control system 100 provided by an embodiment of the present disclosure.
- the system 100 includes but is not limited to: a CPU 110, a logic module 120 and a power control module 130.
- the CPU 110 is connected to N PCIe devices 140 and the logic module 120 respectively, where N is an integer greater than or equal to 1; the logic module 120 is connected to the N PCIe devices 140 and the power control module 130 respectively.
- the power control module 130 is connected to N PCIe devices 140.
- the topology of the system 100 shown in FIG. 1 is suitable for applications where the number of PCIe devices 140 is small, and the number of PCIe channels of the CPU 110 itself can meet the connection requirements of N PCIe devices 140, the CPU 110 can be directly connected via N PCIe buses.
- the PCIe interfaces of the N PCIe devices 140 and the logic module 120 can be connected via the I2C bus, thereby reducing the complexity and cost of the system design.
- the CPU 110 is connected to N PCIe devices 140 through a PCIe switch (SWITCH) module 150, and the PCIe switch module 150 functions to expand the number of PCIe channels.
- the CPU 110 is connected to the PCIe switch module 150 through a PCIe bus, and the PCIe switch module 150 is connected to N PCIe devices 140 through N PCIe buses.
- the PCIe bus and the PCIe device 140 can be connected through a fixed connector (such as a slot )connection.
- the CPU 110 is also connected to the logic module 120 through the PCIe switch module 150.
- the PCIe switch module 150 and the logic module 120 can be connected through an I2C bus, where the I2C bus can be flexibly selected according to the interface provided by the PCIe switch module 150. , Such as the Local Bus interface.
- the logic module 120 may be a CPLD (Complex Programmable Logic Device, complex programmable logic device). Those skilled in the art should understand that the logic module 120 may also be an FPGA (Field Programmable Gate Array, Field Programmable Gate Array) or other similar logic devices, and the present disclosure does not limit the type of the logic module 120 too much.
- the logic module 120 can be connected to the power control module 130 through the I/O expansion chip 160, and the logic module 120 and the I/O expansion chip 160 can be connected through the I2C bus.
- the I/O expansion chip 160 can be connected through the N
- the root I/O signal transmission line is connected to the power control module 130.
- the I/O expansion chip 160 can be removed. As shown in FIG. 1, the logic module 120 directly passes through its own I/O interface. The O interface and N I/O signal transmission lines are connected to the power control module 130.
- the power control module 130 has N power output terminals, and the N power output terminals are correspondingly connected to N PCIe devices 140 through N power transmission lines to output power signals to the N PCIe devices 140.
- the power signal output of the N power output units are respectively controlled by the I/O signal of the logic module 120, so as to enable the power supply of the PCIe device 140 to be powered on and off.
- FIG. 3 shows a flowchart of a method for controlling power-on and power-off of PCIe devices according to an embodiment of the present disclosure. This method can be applied to the above-mentioned power-on and power-off control system 100 including the CPU 110, the logic module 120, and the power control module 130. As shown in Figure 3, the method includes but is not limited to the following steps.
- S201 The CPU receives the operation instruction from the system application layer, and forwards the operation instruction to the logic module.
- the operation instruction includes a power-on instruction or a power-off instruction carrying target device information.
- the operation and maintenance personnel may input an operation instruction through an application installed in the application layer of the system.
- the operation instruction includes a power-on instruction for powering on the target device and a power-off instruction for powering off the target device.
- the CPU receives the power-on command or power-off command carrying the target device information from the system application layer, it forwards the power-on command or power-off command to the logic module through the I2C bus.
- S202 The logic module receives an operation instruction from the CPU.
- the operation instruction includes a power-on instruction or a power-off instruction carrying target device information.
- S203 The logic module simulates the in-position state of the target device according to the operation instruction.
- the logic module receives an operation instruction from the CPU, and can analyze the operation instruction to determine whether the operation instruction is a power-on instruction or a power-off instruction, and then according to the target device information carried in the power-on instruction or the power-off instruction To determine the target device and the slot where the target device is located.
- the operation command received by the logic module is a power-on command
- the real state of the target device is simulated; when the operation command received by the logic module is a power-off command, the simulated target device is not in place.
- the real state of the target device can be obtained from the register configured by the target device.
- a PCIe device is configured with a register for recording the status of the position, and the value in the register can indicate whether the PCIe device on the corresponding slot is in position. For example, when the value of the register is 1, it indicates that the PCIe device in the slot is not in place; when the value of the register is 0, it indicates that the PCIe device in the slot is in place.
- a register used to record the in-position status of the simulated target device can be set in the logic module, and the status of the target device can be achieved by updating the value of the register used to record the in-position state of the simulated target device
- the purpose of the simulation For example, when the target device to be simulated is not in place, the value of the register used to record the in-position status of the simulated target device is set to 1; when the target device to be simulated is in place, it will be used to record the in-position status of the simulated target device The value of the register is set to 0.
- the embodiment of the present disclosure achieves the purpose of simulating the action of inserting or unplugging the device on the slot corresponding to the target device by simulating the presence or absence of the target device.
- the logic module enables the control of the clock and reset signal of the target device according to the simulated in-position state of the target device.
- the data transmission of the PCIe device such as NVMe SSD is performed when the clock and reset signal are turned on. If the clock and reset signal of the PCIe device are turned off, the data transmission of the PCIe device will be terminated.
- the logic module determines whether to provide the enable signal of the start clock and the reset signal for the target device according to the value of the register that records the analog in-position state.
- the logic module when the value of the register that the logic module records the analog in-position status is 0, the logic module outputs the clock and reset signal enable signal to the target device, and the target device can perform data transmission; when the logic module records the analog in-position state When the value of the status register is 1, the logic module stops outputting the enable signal to the target device to turn off the clock and reset signal of the target device, so that the target device terminates the data transmission.
- S205 The logic module reports the in-position status of the simulated target device to the CPU.
- the logic module sends the in-position state of the corresponding target device to the CPU through the I2C bus according to the value of the register that records the simulated in-position state.
- the CPU triggers the hot plug driver of the operating system to perform an operation of adding or removing the target device according to the simulated target device in-position state from the logic module.
- the CPU judges whether there is a device plug-in action in the slot corresponding to the target device according to the simulated target device in-place status information updated by the logic module, and thus triggers the hot-plug driver of the operating system to execute the addition or removal. In addition to the operation of the target device.
- the logic module when the logic module records the value of the register that simulates the in-position status and updates it from 1 to 0, after the CPU obtains the in-position status update information from the logic module, it determines that there is a device insertion action in the slot corresponding to the target device. In turn, the hot-swappable driver of the operating system is triggered to perform the operation of adding the target device, and the connection between the PCIe slot and the target device is established.
- the CPU When the logic module records the value of the register that simulates the in-position state and updates from 0 to 1, the CPU obtains the in-position state update information from the logic module, and determines that there is a device unplugging action in the slot corresponding to the target device, and then Trigger the operating system's hot-swappable driver to remove the target device and disconnect the PCIe slot from the target device.
- the hot-swappable driver is a device driver of the operating system kernel. Since the hot-swappable driver is an existing technology, it will not be repeated here.
- S207 The logic module outputs a corresponding power control command to the power control module according to the operation command.
- the target device power-on command is output to the power control module through the I/O signal transmission line, so that the power control module outputs a power signal to the target device.
- the operation instruction received by the logic module is a power-off instruction
- the PCIe device is configured with a register for recording the power state of the PCIe slot corresponding to the target device, and the logic module can determine whether the hot plug process is over by reading the state value of the power state register.
- the power control module receives and controls the power signal supplied to the target device to be turned on or off according to the power control instruction from the logic module.
- the power control module determines whether the power control command is a power-on command or a power-off command according to the power control command received from the logic module, and responds to the power control command, and executes turn-on or turn-off of the target device accordingly
- the operation of the power signal completes the power-on and power-off operation of the target device.
- FIG. 4 shows a flowchart of another method for controlling power-on and power-off of PCIe devices according to an embodiment of the present disclosure.
- steps S205 and S206 can be replaced with steps S301 and S302 correspondingly.
- the logic module sends an interrupt signal for indicating update of the in-position state to the CPU, and reports the in-position state of the simulated target device to the CPU.
- the interrupt signal is used to trigger the hot plug drive in step S206, so that the CPU executes step S302.
- the CPU receives an interrupt signal from the logic module for indicating an in-position status update, and triggers a hot-swappable driver of the operating system to perform an operation of adding or removing a target hard disk according to the received simulated in-position state.
- the hot-plug drive in addition to the method of sending an interrupt signal to the CPU, can also be triggered by a polling method, which is not specifically limited in the embodiment of the present disclosure.
- the PCIe device in the computer room can be remotely controlled to power on and off to determine whether the device needs to be replaced. There is no need for operation and maintenance personnel to enter the computer room to perform operations, reducing the need for operation and maintenance personnel. Workload.
- PCIe devices support hot-swappable functions
- the system supports unreliable PCIe device hot-swappable functions
- it is easy to cause system abnormalities and business interruption during the process of replacing devices with faults.
- it is possible to implement the removal operation of the device through the power-off instruction before replacing the PCIe device, so as to avoid violent plugging and unplugging of the device causing system abnormality.
- the technical solution provided by the embodiments of the present disclosure can also be applied to the scenario of the PCIe device hot-plug function stability test in the system development and testing phase, avoiding a large amount of manual disk insertion and removal operations, and improving the reliability of the system test.
- Fig. 5 shows an apparatus 400 provided by an embodiment of the present disclosure.
- the device 400 includes but is not limited to:
- the memory 420 is used to store programs
- the processor 410 is configured to execute a program stored in the memory 420.
- the processor 410 executes a program stored in the memory 420, the processor 410 is configured to execute the foregoing PCIe device power-on control method.
- the processor 410 and the memory 420 may be connected by a bus or in other ways.
- the memory 420 can be used to store non-transitory software programs and non-transitory computer-executable programs, such as the PCIe device power-on control method described in the embodiments of the present disclosure.
- the processor 410 executes the non-transitory software programs and instructions stored in the memory 420 to implement the aforementioned PCIe device power-on and power-off control method.
- the memory 420 may include a storage program area and a storage data area.
- the storage program area may store an operating system and an application program required by at least one function; the storage data area may store and execute the aforementioned PCIe device power-on control method.
- the memory 420 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices.
- the memory 420 may optionally include memories remotely provided with respect to the processor 410, and these remote memories may be connected to the device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
- the non-transient software programs and instructions required to implement the power-on and power-off control method of the PCIe device are stored in the memory 420, and when executed by one or more processors 410, the power-on and power-off control method of the PCIe device is executed, for example, , Execute method steps S201 and S206 described in FIG. 3, method steps S202 to S205, and step S207 described in FIG. 3, method step S208 described in FIG. 3, method steps S201 and S302 described in FIG. 4, in FIG.
- the embodiment of the present disclosure also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute the aforementioned PCIe device power-on control method.
- the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processors 410, for example, executed by one processor 410 in the above-mentioned apparatus 400,
- the foregoing one or more processors 410 are caused to execute the foregoing PCIe device power-on control method, for example, to execute the method steps S201 and S206 described in FIG. 3, the method steps S202 to S205, and step S207 described in FIG. 3, as shown in FIG.
- the method step S208 described in FIG. 4 the method steps S201 and S302 described in FIG. 4, the method steps S201 to S204, step S301, and step S207 described in FIG. 4, and the method step S208 described in FIG.
- the device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data).
- Information such as computer-readable instructions, data structures, program modules, or other data.
- Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or Any other medium used to store desired information and that can be accessed by a computer.
- communication media usually include computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. .
Abstract
Description
Claims (12)
- 一种PCIe设备的上下电控制方法,包括:A power-on and power-off control method for PCIe devices includes:接收来自CPU的操作指令,所述操作指令包括携带有目标设备信息的上电指令或者下电指令;Receiving an operation instruction from the CPU, the operation instruction including a power-on instruction or a power-off instruction carrying target device information;根据所述操作指令,模拟所述目标设备的在位状态;According to the operation instruction, simulate the in-position state of the target device;根据模拟的目标设备在位状态,使能控制所述目标设备的时钟和复位信号;According to the simulated target device in-position state, enable control of the clock and reset signal of the target device;将模拟的目标设备在位状态上报至所述CPU,以触发操作系统的热插拔驱动执行添加或者移除所述目标设备的操作;Reporting the in-position status of the simulated target device to the CPU to trigger the hot-plug driver of the operating system to perform the operation of adding or removing the target device;还根据所述操作指令,输出相应的电源控制指令至电源控制模块,以由所述电源控制模块控制供给所述目标设备的电源信号开启或者断开。According to the operation instruction, a corresponding power control instruction is output to the power control module, so that the power control module controls the power signal supplied to the target device to be turned on or off.
- 根据权利要求1所述的方法,其特征在于,所述模拟所述目标设备的在位状态,包括如下至少之一:The method according to claim 1, wherein the simulating the in-position state of the target device includes at least one of the following:当所述操作指令为上电指令,模拟所述目标设备的真实状态;When the operation instruction is a power-on instruction, simulate the real state of the target device;当所述操作指令为下电指令,模拟所述目标设备不在位。When the operation instruction is a power-off instruction, it is simulated that the target device is not in place.
- 根据权利要求1所述的方法,其特征在于,在使能控制所述目标设备的时钟和复位信号之后,所述方法还包括:The method according to claim 1, wherein after enabling control of the clock and reset signal of the target device, the method further comprises:向所述CPU发送用于指示在位状态更新的中断信号。Sending an interrupt signal for instructing an update of the in-position status to the CPU.
- 根据权利要求1所述的方法,其特征在于,所述根据所述操作指令,输出相应的电源控制指令至电源控制模块,包括如下至少之一:The method according to claim 1, wherein the outputting a corresponding power control command to a power control module according to the operation command comprises at least one of the following:当所述操作指令为上电指令,输出目标设备电源开启指令至所述电源控制模块;When the operation instruction is a power-on instruction, output a power-on instruction of the target device to the power control module;当所述操作指令为下电指令,判断热插拔驱动是否完成移除所述目标设备的操作,若是,输出目标设备电源断开指令至所述电源控制模块。When the operation instruction is a power-off instruction, it is determined whether the hot-plug driver has completed the operation of removing the target device, and if so, a power-off instruction of the target device is output to the power control module.
- 根据权利要求4所述的方法,其特征在于,所述判断热插拔驱动是否完成移除所述目标设备的操作,包括:The method according to claim 4, wherein the judging whether the hot-swappable driver completes the operation of removing the target device comprises:获取对应的PCIe插槽电源状态寄存器的状态值,并根据所述状态值判断热插拔流程是否结束。Obtain the status value of the corresponding PCIe slot power status register, and determine whether the hot plug process is over according to the status value.
- 一种PCIe设备的上下电控制方法,包括:A power-on and power-off control method for PCIe devices includes:接收来自系统应用层的操作指令,并转发所述操作指令至逻辑模块,所述操作指令包括携带有目标设备信息的上电指令或者下电指令;Receiving an operation instruction from the system application layer, and forwarding the operation instruction to the logic module, the operation instruction including a power-on instruction or a power-off instruction carrying target device information;根据来自逻辑模块的模拟的目标设备在位状态,触发操作系统的热插拔驱动执行添加 或者移除所述目标设备的操作。According to the in-position status of the simulated target device from the logic module, the hot-plug driver of the operating system is triggered to perform the operation of adding or removing the target device.
- 根据权利要求6所述的方法,其特征在于,根据来自逻辑模块的模拟的目标设备在位状态,触发操作系统的热插拔驱动执行添加或者移除所述目标设备的操作,包括:The method according to claim 6, characterized in that, according to the simulated target device in-position state from the logic module, triggering the hot plug driver of the operating system to perform the operation of adding or removing the target device comprises:接收来自所述逻辑模块的用于指示在位状态更新的中断信号,根据来自所述逻辑模块的模拟的目标设备在位状态,触发操作系统的热插拔驱动执行添加或者移除所述目标设备的操作。Receive an interrupt signal from the logic module for indicating an update of the in-place status, and trigger the hot-plug driver of the operating system to add or remove the target device according to the simulated in-place status of the target device from the logic module Operation.
- 一种PCIe设备的上下电控制系统,其特征在于,包括:A power-on and power-off control system for PCIe devices, which is characterized in that it includes:CPU,用于接收来自系统应用层的操作指令,并转发所述操作指令至逻辑模块,所述操作指令包括携带有目标设备信息的上电指令或者下电指令;以及根据来自逻辑模块的模拟的目标设备在位状态,触发操作系统的热插拔驱动执行添加或者移除所述目标设备的操作;The CPU is used to receive operating instructions from the system application layer and forward the operating instructions to the logic module. The operating instructions include power-on instructions or power-off instructions that carry target device information; and based on simulations from the logic module The target device is in the in-position state, triggering the hot-plug driver of the operating system to perform the operation of adding or removing the target device;逻辑模块,用于接收来自所述CPU的操作指令,所述操作指令包括携带有目标设备信息的上电指令或者下电指令;根据所述操作指令,模拟所述目标设备的在位状态;根据模拟的目标设备在位状态,使能控制所述目标设备的时钟和复位信号;将模拟的目标设备在位状态上报至所述CPU,以触发操作系统的热插拔驱动执行添加或者移除所述目标设备的操作;还根据所述操作指令,输出相应的电源控制指令至电源控制模块,以由所述电源控制模块控制供给所述目标设备的电源信号开启或者断开;The logic module is used to receive an operation instruction from the CPU, the operation instruction includes a power-on instruction or a power-off instruction carrying target device information; according to the operation instruction, the in-position state of the target device is simulated; The simulated target device's in-position state enables control of the clock and reset signal of the target device; the simulated target device's in-position state is reported to the CPU to trigger the hot-swappable driver of the operating system to add or remove all The operation of the target device; further according to the operation instruction, output a corresponding power control instruction to the power control module, so that the power control module controls the power signal supplied to the target device to be turned on or off;电源控制模块,用于接收并根据来自所述逻辑模块的电源控制指令,控制供给所述目标设备的电源信号开启或者断开。The power control module is used to receive and control the power signal supplied to the target device to be turned on or off according to the power control instruction from the logic module.
- 根据权利要求8所述的系统,其特征在于,还包括PCIe交换模块,所述CPU通过所述PCIe交换模块与所述逻辑模块连接;所述CPU还通过所述PCIe交换模块与N个PCIe设备连接,其中N为大于等于1的整数。The system according to claim 8, further comprising a PCIe switch module, the CPU is connected to the logic module through the PCIe switch module; the CPU is also connected to N PCIe devices through the PCIe switch module Connection, where N is an integer greater than or equal to 1.
- 根据权利要求8所述的系统,其特征在于,还包括I/O扩展模块,所述逻辑模块通过所述I/O扩展模块与所述电源控制模块连接。8. The system according to claim 8, further comprising an I/O expansion module, and the logic module is connected to the power control module through the I/O expansion module.
- 一种装置,其特征在于,包括:A device, characterized in that it comprises:存储器,用于存储程序;Memory, used to store programs;处理器,用于执行所述存储器存储的程序,当所述处理器执行所述存储器存储的程序时,所述处理器用于执行:The processor is configured to execute the program stored in the memory, and when the processor executes the program stored in the memory, the processor is configured to execute:如权利要求1至5中任一项所述的方法;或者The method according to any one of claims 1 to 5; or如权利要求6至7中任一项所述的方法。The method according to any one of claims 6 to 7.
- 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行:A computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute:如权利要求1至5中任一项所述的方法;或者The method according to any one of claims 1 to 5; or如权利要求6至7中任一项所述的方法。The method according to any one of claims 6 to 7.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911144077.5 | 2019-11-20 | ||
CN201911144077.5A CN112825011A (en) | 2019-11-20 | 2019-11-20 | Power-on and power-off control method and system of PCIe device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021098485A1 true WO2021098485A1 (en) | 2021-05-27 |
Family
ID=75907026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/125408 WO2021098485A1 (en) | 2019-11-20 | 2020-10-30 | Method and system for power-on and power-off control of pcie device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112825011A (en) |
WO (1) | WO2021098485A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115905072A (en) * | 2021-08-12 | 2023-04-04 | 华为技术有限公司 | Computer system, control method based on PCIe device and related device |
CN113590511B (en) * | 2021-10-08 | 2022-02-22 | 苏州浪潮智能科技有限公司 | Bandwidth deceleration repairing method and device and electronic equipment |
CN114371773B (en) * | 2021-12-30 | 2023-08-08 | 苏州浪潮智能科技有限公司 | Power supply control method, electronic equipment and server |
CN114925011B (en) * | 2022-05-24 | 2023-07-14 | 苏州浪潮智能科技有限公司 | Method and device for solving problem that PCIE hot plug slot position cannot identify equipment |
CN115065420A (en) * | 2022-05-30 | 2022-09-16 | 新华三技术有限公司 | Power supply control method, access device and network device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102004537A (en) * | 2010-11-04 | 2011-04-06 | 中兴通讯股份有限公司 | System power-on and power-off control device and method |
CN103257912A (en) * | 2012-02-16 | 2013-08-21 | 鸿富锦精密工业(深圳)有限公司 | Testing device and method thereof for testing peripheral component interface express (PCIE) slot |
US20160179735A1 (en) * | 2014-12-18 | 2016-06-23 | Emc Corporation | Managing a peripheral component interface express device hotplug |
CN106250060A (en) * | 2016-08-03 | 2016-12-21 | 浪潮(北京)电子信息产业有限公司 | The hot insertion method of PCIe device and device, hot drawing go out method and 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 |
-
2019
- 2019-11-20 CN CN201911144077.5A patent/CN112825011A/en active Pending
-
2020
- 2020-10-30 WO PCT/CN2020/125408 patent/WO2021098485A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102004537A (en) * | 2010-11-04 | 2011-04-06 | 中兴通讯股份有限公司 | System power-on and power-off control device and method |
CN103257912A (en) * | 2012-02-16 | 2013-08-21 | 鸿富锦精密工业(深圳)有限公司 | Testing device and method thereof for testing peripheral component interface express (PCIE) slot |
US20160179735A1 (en) * | 2014-12-18 | 2016-06-23 | Emc Corporation | Managing a peripheral component interface express device hotplug |
CN106250060A (en) * | 2016-08-03 | 2016-12-21 | 浪潮(北京)电子信息产业有限公司 | The hot insertion method of PCIe device and device, hot drawing go out method and 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 |
Also Published As
Publication number | Publication date |
---|---|
CN112825011A (en) | 2021-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021098485A1 (en) | Method and system for power-on and power-off control of pcie device | |
CN107423169B (en) | Method and system for testing high speed peripheral device interconnection equipment | |
US20220334981A1 (en) | Training and operations with a double buffered memory topology | |
US8443237B2 (en) | Storage apparatus and method for controlling the same using loopback diagnosis to detect failure | |
US20090006745A1 (en) | Accessing snapshot data image of a data mirroring volume | |
TWI569152B (en) | Communicating over portions of a communication medium | |
US20110197011A1 (en) | Storage apparatus and interface expansion authentication method therefor | |
CN104202197A (en) | Equipment management method and device | |
JP2019153287A5 (en) | Storage system and programmable logic device | |
US20130138940A1 (en) | Computer system and method for updating basic input/output system thereof | |
WO2016202040A1 (en) | Pcie-based sub-card hot plugging method and apparatus | |
US20120042307A1 (en) | System and method for creating memory interface of computing device | |
US8954619B1 (en) | Memory module communication control | |
US10761730B2 (en) | Method for configuring disk array of electronic device and related electronic device | |
US20170139605A1 (en) | Control device and control method | |
US20180357193A1 (en) | Computing device and operation method | |
US9678914B2 (en) | Hot removing an I/O module with multiple hot plug slots | |
CN108062234B (en) | System and method for realizing server host to access BMC FLASH through mailbox protocol | |
CN107294759B (en) | Server system and data access method | |
CN105354164A (en) | Method and system for hot swapping of Multi-Host module of server | |
WO2020001150A1 (en) | Method, system and medium for instantly prompting in-position change of sata and nvme devices | |
US20180145869A1 (en) | Debugging method of switches | |
CN115509985A (en) | I/O controller of processor | |
US10324777B2 (en) | Register-based communications interface | |
CN112527719B (en) | PCIe link-based JBOF (just-in-File) connection method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20889233 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20889233 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.03.2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20889233 Country of ref document: EP Kind code of ref document: A1 |