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 PDF

Info

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
Application number
PCT/CN2020/125408
Other languages
French (fr)
Chinese (zh)
Inventor
王刘非
戴庆军
陈业嘉
李双庭
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2021098485A1 publication Critical patent/WO2021098485A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus 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

A method and system for power-on and power-off control of a PCIe device. The method comprises: a logic module receives an operational instruction from a CPU (S202), the operational instruction including a power-on instruction or a power-off instruction carrying information of a target device; simulating the in-position state of the target device according to the operational instruction (S203); according to the simulated in-position state of the target device, enabling to control a clock and reset signal of the target device (S204); according to the simulated in-position state of the target device from the logic module, triggering a hot-plug driver of an operating system to execute the operation of adding or removing the target device (S206); according to the operational instruction, outputting a corresponding power control instruction to a power control module (S207); and receiving, and according to the power control instruction from the logic module, controlling a power signal supplied to the target device to be turned on or off (S208).

Description

PCIe设备的上下电控制方法以及系统Power-on and power-off control method and system of PCIe device
相关申请的交叉引用Cross-references to related applications
本公开要求享有2019年11月20日提交的名称为“PCIe设备的上下电控制方法以及系统”的中国专利申请CN201911144077.5的优先权,其全部内容通过引用并入本文中。This disclosure claims the priority of the Chinese patent application CN201911144077.5 entitled "Power-on control method and system for PCIe devices" filed on November 20, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本公开涉及电子技术领域,特别是涉及一种PCIe设备的上下电控制方法以及系统。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.
背景技术Background technique
PCIe(Peripheral Component Interconnect express)是一种高速串行计算机扩展总线标准,主要用于CPU(Central Processing Unit,中央处理器)与外围器件的数据交互。PCIe (Peripheral Component Interconnect express) is a high-speed serial computer expansion bus standard, which is mainly used for data interaction between CPU (Central Processing Unit, central processing unit) and peripheral devices.
例如,非易失性内存主机控制器接口规范固态硬盘(Non-Volatile Memory express Solid State Disk,NVMe SSD)便是一种基于PCIe总线接口的PCIe设备。目前,NVMe SSD逐渐取代传统的机械硬盘,大量应用于服务器存储系统中。在服务器存储系统中,通常采用包含多个NVMe SSD的存储阵列。当存储阵列的NVMe SSD出现故障时,往往需要运维人员对NVMe SSD进行一次上下电操作,以判断NVMe SSD能否恢复正常,进而确定是否需要更换NVMe SSD。然而,该上下电操作往往需要运维人员进入机房内手动操作,导致运维成本较高。For example, the 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. At present, NVMe SSDs are gradually replacing traditional mechanical hard disks and are widely used in server storage systems. In server storage systems, storage arrays containing multiple NVMe SSDs are usually used. When the NVMe SSD of the storage array fails, it is often necessary for the operation and maintenance personnel to perform a power-on and power-off operation on the NVMe SSD to determine whether the NVMe SSD can return to normal, and then determine whether the NVMe SSD needs to be replaced. However, 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.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this article. This summary is not intended to limit the scope of protection of the claims.
本公开实施例提供了PCIe设备的上下电控制方法、系统、装置和计算机可读存储介质,可实现远程控制PCIe设备上下电,有利于减少运维成本。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.
一方面,本公开实施例提供了一种PCIe设备的上下电控制方法,包括:On the one hand, the embodiments of the present disclosure provide a power-on and power-off control method for PCIe devices, including:
接收来自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.
另一方面,本公开实施例提供了一种PCIe设备的上下电控制方法,包括:On the other hand, the embodiments of the present disclosure provide a power-on and power-off control method for PCIe devices, including:
接收来自系统应用层的操作指令,并转发所述操作指令至逻辑模块,所述操作指令包括携带有目标设备信息的上电指令或者下电指令;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 state 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.
另一方面,本公开实施例提供了一种上下电控制系统,包括:On the other hand, embodiments of the present disclosure provide a power-on and power-off control system, including:
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 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;
逻辑模块,用于接收来自所述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 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.
另一方面,本公开实施例提供了一种装置,包括:On the other hand, an embodiment of the present disclosure provides a device, including:
存储器,用于存储程序;Memory, used to store programs;
处理器,用于执行所述存储器存储的程序,当所述处理器执行所述存储器存储的程序时,所述处理器用于执行如上所述的任一种PCIe设备的上下电控制方法。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.
再一方面,本公开实施例提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述的任一种PCIe设备的上下电控制方法。In another aspect, 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.
本公开的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本公开而了解。本公开的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present disclosure will be described in the following specification, and partly become obvious from the specification, or understood by implementing the present disclosure. The objectives and other advantages of the present disclosure can be realized and obtained through the structures specifically pointed out in the specification, claims and drawings.
附图说明Description of the drawings
附图用来提供对本公开技术方案的进一步理解,并且构成说明书的一部分,与本公开的实施例一起用于解释本公开的技术方案,并不构成对本公开技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present disclosure, and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the technical solution of the present disclosure, and do not constitute a limitation to the technical solution of the present disclosure.
图1是适用本公开实施例提供的一种PCIe设备的上下电控制系统的结构示意图;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;
图2是本公开实施例提供的另一种PCIe设备的上下电控制系统的结构示意图;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;
图3是本公开实施例提供的一种PCIe设备的上下电控制方法的流程图;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;
图4是本公开实施例提供的另一种PCIe设备的上下电控制方法的流程图;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;
图5是本公开实施例提供的一种装置的结构示意图。Fig. 5 is a schematic structural diagram of a device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为了使本公开的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本公开进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本公开,并不用于限定本公开。In order to make the objectives, technical solutions, and advantages of the present disclosure clearer, the following further describes the present disclosure in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present disclosure, but not used to limit the present disclosure.
应了解,在本公开实施例的描述中,多个(或多项)的含义是两个以上,大于、小于、超过等理解为不包括本数,以上、以下、以内等理解为包括本数。如果有描述到“第一”、“第二”等只是用于区分技术特征为目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量或者隐含指明所指示的技术特征的先后关系。It should be understood that in the description of the embodiments of the present disclosure, multiple (or 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,中央处理器)与外围器件的数据交互。PCIe (Peripheral Component Interconnect Express) is a high-speed serial computer expansion bus standard, mainly used for data interaction between CPU (Central Processing Unit, central processing unit) and peripheral devices.
例如,非易失性内存主机控制器接口规范固态硬盘(Non-Volatile Memory express Solid State Disk,NVMe SSD)便是一种基于PCIe总线接口的PCIe设备。目前,NVMe SSD逐渐取代传统的机械硬盘,大量应用于服务器存储系统中。在服务器存储系统中,通常采用包含多个NVMe SSD的存储阵列。当存储阵列的NVMe SSD出现故障时,往往需要运维人员对NVMe SSD进行一次上下电操作,以判断NVMe SSD能否恢复正常,进而确定是否需要更换NVMe SSD。然而,该上下电操作往往需要运维人员进入机房内手动操作,导致运维成本较高。For example, the 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. At present, NVMe SSDs are gradually replacing traditional mechanical hard disks and are widely used in server storage systems. In server storage systems, storage arrays containing multiple NVMe SSDs are usually used. When the NVMe SSD of the storage array fails, it is often necessary for the operation and maintenance personnel to perform a power-on and power-off operation on the NVMe SSD to determine whether the NVMe SSD can return to normal, and then determine whether the NVMe SSD needs to be replaced. However, 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.
本公开实施例为解决上述技术问题,提供了一种PCIe设备的上下电控制方法、系统、装置和计算机可读存储介质,可实现远程控制PCIe设备上下电,以及能够在故障更换设备之前,先通过下电指令实现PCIe设备的移除操作,避免暴力插拔设备导致系统异常。In order to solve the above technical problems, 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.
图1示出了本公开实施例提供的一种PCIe设备的上下电控制系统100。如图1所示,该系统100包括但不限于:CPU110、逻辑模块120和电源控制模块130。CPU110与N个PCIe设备140、逻辑模块120分别连接,其中N为大于等于1的整数;逻辑模块120与N个PCIe 设备140、电源控制模块130分别连接。电源控制模块130与N个PCIe设备140连接。Fig. 1 shows a PCIe device power-on and power-off control system 100 provided by an embodiment of the present disclosure. As shown in FIG. 1, 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.
图1所示的系统100的拓扑结构适合应用在PCIe设备140数量较少,CPU110自身的PCIe通道数量能够满足N个PCIe设备140的连接需求的情况下,CPU110可以直接通过N根PCIe总线对应连接N个PCIe设备140的PCIe接口,以及可以通过I2C总线连接逻辑模块120,由此降低系统设计的复杂度以及成本。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.
在另一种可选的设计方案中,如图2所示,CPU110通过PCIe交换(SWITCH)模块150与N个PCIe设备140连接,PCIe交换模块150起到扩展PCIe通道数量的作用。可选的,CPU110通过PCIe总线与PCIe交换模块150连接,PCIe交换模块150通过N根PCIe总线对应连接N个PCIe设备140,PCIe总线与PCIe设备140之间可以通过固定的连接器(例如插槽)连接。CPU110还通过PCIe交换模块150与逻辑模块120连接,具体的,PCIe交换模块150和逻辑模块120之间可以通过I2C总线连接,这里I2C总线可根据PCIe交换模块150提供的接口,灵活选择接口接入,如Local Bus接口。In another alternative design solution, as shown in FIG. 2, 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. Optionally, 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. Specifically, 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.
本实施例中,逻辑模块120可以是CPLD(Complex Programmable Logic Device,复杂可编程逻辑器件)。本领域技术人员应理解,逻辑模块120也可以是FPGA(Field Programmable Gate Array,现场可编程门阵列)或者其他类似的逻辑器件,本公开对逻辑模块120的类型不作过多限制。In this embodiment, 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.
如图2所示,逻辑模块120可以通过I/O扩展芯片160连接至电源控制模块130,逻辑模块120与I/O扩展芯片160之间可以通过I2C总线连接,I/O扩展芯片160通过N根I/O信号传输线与电源控制模块130连接。本领域技术人员应理解,当PCIe设备140数量较多,一个I/O扩展芯片160不能满足I/O接口需求时,也可以按需增加I/O扩展芯片160的数量,只需将I/O扩展芯片160的I2C地址设置成不同的地址即可。As shown in FIG. 2, 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. Those skilled in the art should understand that when there are a large number of PCIe devices 140 and one I/O expansion chip 160 cannot meet the I/O interface requirements, the number of I/O expansion chips 160 can also be increased as needed, and only the I/O expansion chip 160 O The I2C address of the expansion chip 160 can be set to a different address.
应理解,当PCIe设备140数量较少,逻辑模块120自身I/O接口数目充足时,可去掉I/O扩展芯片160,如图1所示的结构,逻辑模块120直接通过其自身的I/O接口以及N根I/O信号传输线与电源控制模块130连接。It should be understood that when the number of PCIe devices 140 is small and the number of I/O interfaces of the logic module 120 is sufficient, 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.
本实施例中,电源控制模块130具有N个电源输出端,N个电源输出端对应通过N根电源传输线与N个PCIe设备140连接,以向N个PCIe设备140输出电源信号。这里N个电源输出单元的电源信号输出分别受逻辑模块120的I/O信号控制,以实现PCIe设备140电源的上下电使能。In this embodiment, 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. Here, 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.
图3示出了本公开实施例提供的一种PCIe设备的上下电控制方法的流程图。该方法可以应用于上述包括CPU110、逻辑模块120和电源控制模块130的上下电控制系统100中。如图3所示,该方法包括但不限于如下步骤。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,CPU接收来自系统应用层的操作指令,并转发操作指令至逻辑模块。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.
示例性的,运维人员可以通过安装在系统应用层的应用输入操作指令,该操作指令包括用于对目标设备进行上电操作的上电指令、对目标设备进行下电操作的下电指令。CPU接收到来自系统应用层的携带有目标设备信息的上电指令或者下电指令后,将该上电指令或者下电指令通过I2C总线转发至逻辑模块。Exemplarily, 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. After 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,逻辑模块接收来自CPU的操作指令。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,逻辑模块根据操作指令,模拟目标设备的在位状态。S203: The logic module simulates the in-position state of the target device according to the operation instruction.
示例性的,逻辑模块接收到来自CPU的操作指令,可以对操作指令进行解析,以确定该操作指令为上电指令还是下电指令,进而根据上电指令或者下电指令中携带的目标设备信息,确定目标设备以及目标设备所在的槽位。Exemplarily, 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.
当逻辑模块接收到的操作指令为上电指令时,模拟目标设备的真实状态;当逻辑模块接收到的操作指令为下电指令时,模拟目标设备不在位。When 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.
目标设备的真实状态可以从目标设备配置的寄存器获取。一般来说,PCIe设备配置有用于记录在位状态的寄存器,该寄存器中的值能够指示相应槽位上的PCIe设备是否在位。例如,当寄存器的值为1时,指示槽位上的PCIe设备不在位;当寄存器的值为0时,指示槽位上的PCIe设备在位。The real state of the target device can be obtained from the register configured by the target device. Generally speaking, 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.
在具体实施方案中,可以在逻辑模块设置用于记录模拟的目标设备在位状态的寄存器,以及通过更新该用于记录模拟的目标设备在位状态的寄存器的值,来达到对目标设备的状态进行模拟的目的。例如,当要模拟目标设备不在位时,将用于记录模拟的目标设备在位状态的寄存器的值设置为1;当要模拟目标设备在位时,将用于记录模拟的目标设备在位状态的寄存器的值设置为0。本公开实施例通过模拟目标设备在位或者不在位,达到对目标设备对应的槽位上的设备插入或者拔出的动作进行模拟的目的。In a specific implementation, 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.
S204,逻辑模块根据模拟的目标设备在位状态,使能控制目标设备的时钟和复位信号。S204: 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.
示例性的,PCIe设备例如NVMe SSD的数据传输,是在时钟和复位信号开启的情况下进行的,若将PCIe设备的时钟和复位信号关闭掉,PCIe设备的数据传输将被终止。本实施例中,逻辑模块根据记录模拟在位状态的寄存器的值,确定是否为目标设备提供开启时钟和复位信号的使能信号。Exemplarily, 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. In this embodiment, 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.
举例来说,当逻辑模块记录模拟在位状态的寄存器的值为0时,逻辑模块向目标设备输出时钟和复位信号开启的使能信号,目标设备可进行数据传输;当逻辑模块记录模拟在 位状态的寄存器的值为1时,逻辑模块停止向目标设备输出使能信号,以关闭目标设备的时钟和复位信号,使目标设备终止数据传输。For example, 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,逻辑模块将模拟的目标设备在位状态上报至CPU。S205: The logic module reports the in-position status of the simulated target device to the CPU.
示例性的,逻辑模块根据记录模拟在位状态的寄存器的值,通过I2C总线将相应的目标设备的在位状态发送至CPU。Exemplarily, 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.
S206,CPU根据来自逻辑模块的模拟的目标设备在位状态,触发操作系统的热插拔驱动执行添加或者移除目标设备的操作。S206: 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.
示例性的,CPU根据逻辑模块更新的模拟的目标设备在位状态信息,判断与目标设备对应槽位上是否有设备插拔动作发生,并由此触发操作系统的热插拔驱动执行添加或者移除目标设备的操作。Exemplarily, 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.
例如,当逻辑模块记录模拟在位状态的寄存器的值从1更新为0,CPU从逻辑模块获取到该在位状态更新信息后,确定与目标设备对应的槽位上有设备插入的动作发生,进而触发操作系统的热插拔驱动执行添加目标设备的操作,建立PCIe插槽与目标设备间的连接。当逻辑模块记录模拟在位状态的寄存器的值从0更新为1,CPU从逻辑模块获取到该在位状态更新信息后,确定与目标设备对应的槽位上有设备拔出的动作发生,进而触发操作系统的热插拔驱动执行移除目标设备的操作,断开PCIe插槽与目标设备间的连接。这里热插拔驱动为操作系统内核的设备驱动程序,鉴于热插拔驱动为现有技术,在此不再赘述。For example, 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. 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. Here, 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,逻辑模块根据操作指令,输出相应的电源控制指令至电源控制模块。S207: The logic module outputs a corresponding power control command to the power control module according to the operation command.
在具体的实施方案中,当逻辑模块接收到的操作指令为上电指令时,通过I/O信号传输线输出目标设备电源开启指令至电源控制模块,以由电源控制模块输出电源信号至目标设备。In a specific implementation, when the operation command received by the logic module is a power-on 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.
在具体的实施方案中,当逻辑模块接收到的操作指令为下电指令时,判断热插拔驱动是否完成移除目标设备的操作,若是,通过I/O信号传输线输出目标设备电源断开指令至电源控制模块,以使电源控制模块停止输出电源信号至目标设备。In a specific implementation, when the operation instruction received by the logic module 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, the target device power-off instruction is output through the I/O signal transmission line To the power control module, so that the power control module stops outputting the power signal to the target device.
这里判断热插拔驱动是否完成移除目标设备的操作,具体可以通过如下步骤实现:获取对应的PCIe插槽电源状态寄存器的状态值,并根据状态值判断热插拔流程是否结束。Here, it is judged whether the hot plug driver has completed the operation of removing the target device, which can be specifically achieved by the following steps: obtain the state value of the corresponding PCIe slot power status register, and judge whether the hot plug process is finished according to the state value.
示例性的,PCIe设备配置有用于记录与目标设备对应的PCIe插槽电源状态的寄存器,逻辑模块可以通过读取该电源状态寄存器的状态值,判断热插拔流程是否结束。Exemplarily, 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.
S208,电源控制模块接收并根据来自逻辑模块的电源控制指令,控制供给目标设备的电源信号开启或者断开。S208: 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.
示例性的,电源控制模块根据接收到的来自逻辑模块的电源控制指令,确定电源控制 指令为电源开启指令还是电源断开指令,并对电源控制指令进行响应,相应地执行开启或者断开目标设备电源信号的操作,由此完成对目标设备的上下电操作。Exemplarily, 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.
图4示出了本公开实施例提供的另一种PCIe设备的上下电控制方法的流程图。为了提高CPU处理上下电指令的速度,结合图3,如图4所示,步骤S205、S206对应可替换为步骤S301、S302。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. In order to improve the CPU processing speed of power-on and power-off instructions, in conjunction with FIG. 3, as shown in FIG. 4, steps S205 and S206 can be replaced with steps S301 and S302 correspondingly.
S301,逻辑模块向CPU发送用于指示在位状态更新的中断信号,并将模拟的目标设备在位状态上报至CPU。S301: 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.
该中断信号用于触发步骤S206中的热插拔驱动,使CPU执行步骤S302。The interrupt signal is used to trigger the hot plug drive in step S206, so that the CPU executes step S302.
S302,CPU接收来自逻辑模块的用于指示在位状态更新的中断信号,根据接收到的模拟的在位状态触发操作系统的热插拔驱动执行添加或者移除目标硬盘的操作。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.
需说明的是,在具体实施方案中,除了向CPU发送中断信号的方式,也可以通过轮询的方式来触发热插拔驱动,本公开实施例对此不作具体的限制。It should be noted that, in a specific implementation, in addition to the method of sending an interrupt signal to the CPU, the hot-plug drive can also be triggered by a polling method, which is not specifically limited in the embodiment of the present disclosure.
基于本公开实施例的技术方案,可以实现在PCIe设备出现故障情况时,远程控制机房的PCIe设备上下电,以判定是否需要对设备进行更换,无需运维人员进入机房操作,减少运维人员的工作量。Based on the technical solutions of the embodiments of the present disclosure, when a PCIe device fails, 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设备支持热插拔功能,但是,若系统对PCIe设备热插拔功能支持不可靠,故障更换设备过程进行插拔操作时,很容易导致系统异常,业务中断。基于本公开实施例的技术方案,可以在更换PCIe设备之前,通过下电指令实现设备的移除操作,避免暴力插拔设备导致系统异常。In addition, although PCIe devices support hot-swappable functions, if 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. Based on the technical solutions of the embodiments of the present disclosure, 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.
此外,本公开实施例提供的技术方案还可应用于系统开发测试阶段的PCIe设备热插拔功能稳定性测试的场景中,避免大量的人工的插拔盘操作,提高系统测试的可靠性。In addition, 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.
图5示出了本公开实施例提供的装置400。如图5所示,该装置400包括但不限于:Fig. 5 shows an apparatus 400 provided by an embodiment of the present disclosure. As shown in FIG. 5, the device 400 includes but is not limited to:
存储器420,用于存储程序;The memory 420 is used to store programs;
处理器410,用于执行存储器420存储的程序,当处理器410执行存储器420存储的程序时,处理器410用于执行上述的PCIe设备的上下电控制方法。The processor 410 is configured to execute a program stored in the memory 420. When 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.
处理器410和存储器420可以通过总线或者其他方式连接。The processor 410 and the memory 420 may be connected by a bus or in other ways.
存储器420作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序,如本公开实施例描述的PCIe设备的上下电控制方法。处理器410通过运行存储在存储器420中的非暂态软件程序以及指令,从而实现上述的PCIe设备的上下电控制方法。As a non-transitory computer-readable storage medium, 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.
存储器420可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储执行上述的PCIe设备的上下电控制方法。此外,存储器420可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器420可选包括相对于处理器410远程设置的存储器,这些远程存储器可以通过网络连接至该装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。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. In addition, 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. In some embodiments, 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.
实现上述的PCIe设备的上下电控制方法所需的非暂态软件程序以及指令存储在存储器420中,当被一个或者多个处理器410执行时,执行上述的PCIe设备的上下电控制方法,例如,执行图3中描述的方法步骤S201和S206,图3中描述的方法步骤S202至S205、步骤S207,图3中描述的方法步骤S208,图4中描述的方法步骤S201和S302,图4中描述的方法步骤S201至S204、步骤S301、步骤S207,图4中描述的方法步骤S208。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 described method steps S201 to S204, step S301, step S207, and the method step S208 described in FIG. 4.
本公开实施例还提供了计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行上述的PCIe设备的上下电控制方法。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.
在一实施例中,该计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个控制处理器410执行,例如,被上述装置400中的一个处理器410执行,可使得上述一个或多个处理器410执行上述的PCIe设备的上下电控制方法,例如,执行图3中描述的方法步骤S201和S206,图3中描述的方法步骤S202至S205、步骤S207,图3中描述的方法步骤S208,图4中描述的方法步骤S201和S302,图4中描述的方法步骤S201至S204、步骤S301、步骤S207,图4中描述的方法步骤S208。In an embodiment, 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.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存 储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包括计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。A person of ordinary skill in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term 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). Sexual, removable and non-removable media. 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. In addition, as is well known to those of ordinary skill in the art, 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. .
以上是对本公开的较佳实施进行了具体说明,但本公开并不局限于上述实施方式,熟悉本领域的技术人员在不违背本公开精神的共享条件下还可作出种种等同的变形或替换,这些等同的变形或替换均包括在本公开权利要求所限定的范围内。The above is a detailed description of the preferred implementation of the present disclosure, but the present disclosure is not limited to the above-mentioned embodiments. Those skilled in the art can make various equivalent modifications or substitutions under the sharing conditions that do not violate the spirit of the present disclosure. These equivalent modifications or replacements are all included in the scope defined by the claims of the present disclosure.

Claims (12)

  1. 一种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.
  2. 根据权利要求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.
  3. 根据权利要求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.
  4. 根据权利要求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.
  5. 根据权利要求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.
  6. 一种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.
  7. 根据权利要求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.
  8. 一种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.
  9. 根据权利要求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.
  10. 根据权利要求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.
  11. 一种装置,其特征在于,包括: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.
  12. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行: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.
PCT/CN2020/125408 2019-11-20 2020-10-30 Method and system for power-on and power-off control of pcie device WO2021098485A1 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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