Energization starting method and apparatus for PCIE device, and chip and electronic device
By using a combination of fast and slow start chip modules in PCIE devices, PCIE devices that simulate executable programs are solved, and the problem of failure to initialize the PCIE device in a timely manner when power-on starts is solved, ensuring that the host can correctly detect and drive the device and avoid abnormalities .
Patent Information
- Application Number
- PCT/CN2023/136973
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-05
- Filing Date
- 2023-12-07
- Publication Date
- 2024-11-14
AI Technical Summary
The PCIE device may not be initialized in time when power-on startup, resulting in the host being unable to correctly discover or drive, resulting in abnormal problems.
Using a combination of the fast start chip module and the slow start chip module, the fast start chip module completes initialization before the slow chip module, and by simulating a PCIE device associated with an executable program, the host controls the initialization pauses and waits for the slow chip module to complete initialization. Continue later.
Ensure that the PCIE device can be correctly discovered and driven during host initialization, avoiding abnormal problems during power-on startup.
Smart Images

Figure CN2023136973_14112024_PF_FP_ABST
Abstract
Description
Power-on startup method, device, chip and electronic device for PCIE device Technical Field
[0001] The present application relates to the field of computer network technology, and in particular to a power-on startup method, device, chip, and electronic device for a PCIE device. Background Art
[0002] With the continuous expansion of PCIE (Peripheral Component Interconnect Express) device types and functions, powerful and complex PCIE devices, such as DPUs (Data Processing Units) and GPUs (Graphics Processing Units), have emerged. The performance and complexity of the main processors in these PCIE devices are approaching those of the host's CPU (Central Processing Unit). This makes it difficult for these PCIE devices to initialize faster than the host itself. Consequently, when the host enters the Basic Input / Output System (BIOS) and begins scanning for PCIE devices, these PCIE devices may not have completed initialization, resulting in an inability to properly respond to the host's enumeration scan requests. Consequently, these PCIE devices cannot be discovered by the host. Even if discovered, their incomplete initialization means their functionality is not fully functional, leading to anomalies when the host drives these PCIE devices. Technical issues
[0003] The present application proposes a power-on startup method, device, chip and electronic device for a PCIE device, which can avoid the problem that the PCIE device cannot be discovered by the host during power-on startup or anomalies occur when the host drives the PCIE device. Technical Solutions
[0004] In order to overcome the above problems, the technical solution adopted in this application is:
[0005] In a first aspect, the present application provides a power-on startup method for a PCIE device, wherein a first PCIE device configured on a host includes a fast startup chip module and a slow startup chip module, and the method includes: the host is powered on for initialization; the fast startup chip module and the slow startup chip module are powered on and initialized in sequence, wherein the fast startup chip module completes initialization before the slow startup chip module; the host scans to discover at least one PCIE device, wherein the PCIE device includes the first PCIE device; the fast startup chip module reports a second PCIE device to the host, wherein the second PCIE device is a PCIE device simulated by the fast startup chip module and associated with an executable program; the host obtains the executable program according to the second PCIE device reported by the fast startup chip module; the host drives the second PCIE device to run the executable program; the executable program controls the host to suspend initialization, and then continues to complete initialization after waiting for the slow startup chip module to complete initialization.
[0006] In one embodiment, the second PCIE device is mounted with an optional memory, and the optional memory is used to store the executable program.
[0007] In one embodiment, the host obtains the executable program according to the second PCIE device reported by the fast startup chip module, including: the host obtains the optional memory according to the second PCIE device reported by the fast startup chip module; the host hangs the optional memory to the driver corresponding to the second PCIE device.
[0008] In one embodiment, the executable program controls the host to suspend initialization, and continues to complete initialization after waiting for the slow startup chip module to complete initialization, specifically including: the executable program controls the host to suspend initialization, and cyclically queries the initialization status of the first PCIE device to the fast startup chip module; when it is queried that the first PCIE device has completed initialization, the executable program controls the host to continue to complete initialization.
[0009] In a second aspect, the present application provides a power-on startup method for a PCIE device, the method being applied to a host, wherein a first PCIE device configured on the host includes a fast startup chip module and a slow startup chip module, wherein the fast startup chip module completes initialization before the slow startup chip module, and the method comprising: the host is powered on for initialization; the host performs a scan to discover at least one PCIE device, wherein the PCIE device includes the first PCIE device; the host obtains an executable program based on the second PCIE device reported by the fast startup chip module, wherein the second PCIE device is a PCIE device simulated by the fast startup chip module and associated with the executable program; the host drives the second PCIE device to run the executable program; the executable program controls the host to suspend initialization, and then continues to complete initialization after waiting for the slow startup chip module to complete initialization.
[0010] In one embodiment, the second PCIE device is mounted with an optional memory, and the optional memory is used to store the executable program.
[0011] In one embodiment, the host obtains an executable program according to the second PCIE device reported by the fast boot chip module, including: the host obtains the optional memory according to the second PCIE device reported by the fast boot chip module; the host hangs the optional memory to the driver corresponding to the second PCIE device.
[0012] In one embodiment, the executable program controls the host to suspend initialization, and continues to complete initialization after waiting for the slow startup chip module to complete initialization, specifically including: the executable program controls the host to suspend initialization, and cyclically queries the initialization status of the first PCIE device to the fast startup chip module; when it is queried that the first PCIE device has completed initialization, the executable program controls the host to continue to complete initialization.
[0013] In a third aspect, the present application provides a power-on startup method for a PCIE device, the method being applied to a first PCIE device, the first PCIE device configured on a host including a fast startup chip module and a slow startup chip module, the method including: when the host is powered on for initialization, the fast startup chip module and the slow startup chip module are powered on in sequence for initialization, wherein the fast startup chip module completes initialization before the slow startup chip module; when the host scans to discover at least one of the PCIE devices, the fast startup chip module reports a second PCIE device to the host, wherein the PCIE device includes the first PCIE device, and the second PCIE device is a PCIE device simulated by the fast startup chip module and associated with an executable program; wherein the executable program is used to control the host to suspend initialization, and then continue to complete initialization after waiting for the slow startup chip module to complete initialization.
[0014] In one embodiment, the second PCIE device is mounted with an optional memory, and the optional memory is used to store the executable program.
[0015] In one embodiment, the power-on startup method for a PCIE device includes: when the slow startup chip module completes initialization, the fast startup chip module responds to the executable program with a status indicating that the first PCIE device has completed initialization.
[0016] In a fourth aspect, the present application provides a power-on startup device for a PCIE device, wherein a first PCIE device configured on a host includes a fast startup chip module and a slow startup chip module, and the device includes: a first power-on module, configured to control the host to initialize when powered on; a second power-on module, configured to control the fast startup chip module and the slow startup chip module to initialize in sequence when powered on, wherein the fast startup chip module completes initialization before the slow startup chip module; a scanning module, configured to control the host to scan to discover at least one of the configured PCIE devices, wherein the PCIE device includes the first PC IE device; a reporting module, configured to control the fast-start chip module to report the second PCIE device to the host, wherein the second PCIE device is a PCIE device simulated by the fast-start chip module and associated with an executable program; an acquisition module, configured to control the host to obtain the executable program according to the second PCIE device reported by the fast-start chip module; a driving module, configured to control the host to drive the second PCIE device to run the executable program; wherein the executable program is configured to control the host to suspend initialization and continue to complete initialization after waiting for the slow-start chip module to complete initialization.
[0017] In a fifth aspect, the present application provides a power-on startup device for a PCIE device, the device being applied to a host, and a first PCIE device configured on the host including a fast startup chip module and a slow startup chip module, wherein the fast startup chip module completes initialization before the slow startup chip module, and the device including: a first power-on module, configured to control the host to initialize when powered on; a scanning module, configured to control the host to scan to discover at least one configured PCIE device, wherein the PCIE device includes the first PCIE device; an acquisition module, configured to control the host to obtain an executable program according to the second PCIE device reported by the fast startup chip module, wherein the second PCIE device is a PCIE device simulated by the fast startup chip module and associated with the executable program; a driving module, configured to control the host to drive the second PCIE device to run the executable program; wherein the executable program is configured to control the host to suspend initialization and continue to complete initialization after waiting for the slow startup chip module to complete initialization.
[0018] In a sixth aspect, the present application provides a power-on startup device for a PCIE device, the device being applied to a first PCIE device, the first PCIE device configured on a host including a fast startup chip module and a slow startup chip module, the device including: a second power-on module, configured to control the fast startup chip module and the slow startup chip module to initialize in sequence when the host is powered on for initialization, wherein the fast startup chip module completes initialization before the slow startup chip module; a reporting module, configured to control the fast startup chip module to report a second PCIE device to the host when the host scans to discover at least one configured PCIE device, wherein the PCIE device includes the first PCIE device, and the second PCIE device is a PCIE device simulated by the fast startup chip module and associated with an executable program; wherein the executable program is configured to control the host to suspend initialization and continue initialization after waiting for the slow startup chip module to complete initialization.
[0019] In a seventh aspect, the present application provides a chip, which is connected to a host and can execute the steps of the method described in the third aspect when powered on.
[0020] In an eighth aspect, the present application provides an electronic device comprising a readable storage medium and a processor; wherein the readable storage medium is used to store machine-executable instructions; and the processor is used to read the machine-executable instructions on the readable storage medium and execute the instructions to implement the steps of the method described in the first aspect.
[0021] In a ninth aspect, the present application provides a computer-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are executed by a processor, the steps of the method described in the first aspect are implemented.
[0022] This application provides a power-on startup method for PCIE devices. Using the fast-boot chip module of the first PCIE device, a second PCIE device associated with an executable program is simulated. When a host drives the second PCIE device to run the executable program, the executable program is used to control the host to pause initialization in the BIOS phase. After the first PCIE device has completed initialization, the host is released to continue initialization. This prevents the host from failing to discover the PCIE device during power-on startup or encountering anomalies when the host drives the PCIE device. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technology descriptions. Obviously, the drawings described below are only some examples or embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on the provided drawings without creative work, and the embodiments of the present application can also be applied to other similar scenarios based on the provided drawings. Unless it is obvious from the language context or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0024] FIG1 is a flow chart of a method for powering on a PCIE device according to an exemplary embodiment of the present application;
[0025] FIG2 is a flow chart of a method for powering on a PCIE device applied to a host according to an exemplary embodiment of the present application;
[0026] FIG3 is a flow chart showing a method for powering on a PCIE device applied to a first PCIE device, according to an exemplary embodiment of the present application;
[0027] FIG4 is a structural diagram of an apparatus for powering on a PCIE device shown in an exemplary embodiment of the present application. Modes for Carrying Out the Invention
[0028] The present application will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are merely intended to explain the present application and are not intended to limit the present application. The described embodiments are merely a portion of the present application and are not intended to be exhaustive. All other embodiments derived by persons of ordinary skill in the art based on the embodiments in the present application without creative effort are intended to fall within the scope of protection of the present application.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] The power-on startup method for a PCIE (Peripheral Component Interconnect Express) device provided herein can be applied to a host equipped with a first PCIE device. Specifically, the host can be a server. The host includes a CPU (Central Processing Unit) and can be equipped with at least one PCIE device. The PCIE device is connected to the host via a PCIE interface.
[0031] The PCIE device may include a simple-function PCIE device, such as a common graphics card, a sound card, a common network card, and an NVMe (Non Volatile Memory Express) controller. The simple-function PCIE device completes initialization before the host after power-on.
[0032] The PCIE device may also include a PCIE device with complex functions, such as a DPU (Data Processing Unit) or a GPU (Graphics Processing Unit). The DPU may be a Smart NIC based on an FPGA (Field Programmable Gate Array) or a Smart NIC based on an SoC (System on Chip). In this application, the PCIE device with complex functions is defined as a first PCIE device. The first PCIE device includes a fast boot chip module and a slow boot chip module.
[0033] Typically, simple-function PCIE devices complete initialization before the host after power-on, while complex-function PCIE devices complete initialization after the host after power-on. However, the power-on startup method for PCIE devices provided in this application, when applied to a host equipped with a first PCIE device, can utilize a fast chip module to interact with the host's BIOS (Basic Input Output System), causing the host to pause initialization in the BIOS stage, wait for the first PCIE device to complete initialization, and then release the host to continue initialization.
[0034] In order to more clearly illustrate the power-on startup method for a PCIE device provided by the present application, please refer to FIG1 , which is a flowchart of a power-on startup method for a PCIE device according to an exemplary embodiment of the present application.
[0035] In this embodiment, the power-on startup method for a PCIE device may include the following steps:
[0036] Step S100: The host is powered on and initialized.
[0037] When the host is powered on, it starts and initializes. This process includes loading the BIOS, performing a BIOS self-test, and loading the operating system (OS).
[0038] In step S102 , the fast boot chip module and the slow boot chip module are powered on in sequence for initialization, wherein the fast boot chip module completes initialization before the slow boot chip module.
[0039] When the host is powered on, the fast boot chip module and the slow boot chip module in the first PCIE device are powered on sequentially for initialization. The fast boot chip module may include at least one fast boot chip, wherein the fast boot chip is a chip whose boot time is shorter than the host boot time. The slow boot chip module may also include at least one slow boot chip, wherein the slow boot chip is a chip whose boot time is longer than the host boot time. It should be noted that a short boot time means that initialization is completed quickly, while a long boot time means that initialization is completed slowly.
[0040] In step S104 , the host performs a scan to discover at least one of the PCIE devices, wherein the PCIE devices include the first PCIE device.
[0041] During the initialization process, the host needs to perform an enumeration scan to find out which PCIE devices are configured. Specifically, the host sends a TLP request message through the CPU to read the configuration space of each PCIE device to find out which PCIE devices are present.
[0042] In step S106 , the fast boot chip module reports the second PCIE device to the host, wherein the second PCIE device is a PCIE device simulated by the fast boot chip module and associated with an executable program.
[0043] During the power-on initialization process of the first PCIE device, although the fast boot chip module completes initialization faster than the host, the slow boot chip module completes initialization slower than the host, resulting in the first PCIE device completing initialization later than the host overall. To avoid the first PCIE device being unable to be discovered by the host during enumeration scanning at power-on, the present application provides a power-on startup method for a PCIE device, which simulates a second PCIE device associated with an executable program through the fast boot chip module of the first PCIE device, and then reports the second PCIE device to the host via a TLP response message.
[0044] In other variations of this embodiment, the second PCIE device is mounted with an option memory (Option ROM), and the option memory is used to store the executable program.
[0045] Step S108: The host obtains the executable program according to the second PCIE device reported by the fast startup chip module.
[0046] When the second PCIE device is learned according to the TLP response message, the host obtains the executable program according to the second PCIE device.
[0047] In a variation of this embodiment, the host obtains the optional memory according to the second PCIE device reported by the fast boot chip module, and the host mounts the optional memory to a driver corresponding to the second PCIE device.
[0048] Step S110: The host drives the second PCIE device to run the executable program.
[0049] When the host drives the second PCIE device to run the executable program, the executable program controls the host to suspend initialization and continue to complete initialization after waiting for the slow startup chip module to complete initialization.
[0050] In a modified embodiment of this embodiment, the function of the executable program may specifically include: the executable program controls the host to suspend initialization, and cyclically queries the initialization status of the first PCIE device to the fast startup chip module; when it is queried that the first PCIE device has completed initialization, the executable program controls the host to continue to complete initialization.
[0051] The present application provides a power-on startup method for a PCIE device. A second PCIE device associated with an executable program is simulated through a fast startup chip module of the first PCIE device. When the host drives the second PCIE device to run the executable program, the executable program is used to control the host to pause initialization in the BIOS stage, wait for the first PCIE device to complete initialization, and then release the host to continue initialization. This can avoid the problem that the PCIE device cannot be discovered by the host during power-on startup or an abnormality occurs when the host drives the PCIE device.
[0052] On the other hand, regarding an embodiment of the power-on startup method for a PCIE device provided by the present application applied to a host, please refer to FIG2 , which is a flowchart illustrating an exemplary embodiment of the present application showing a power-on startup method for a PCIE device applied to a host.
[0053] In this embodiment, the first PCIE device configured in the host includes a fast boot chip module and a slow boot chip module, wherein the fast boot chip module completes initialization before the slow boot chip module. The power-on startup method for the PCIE device may include the following steps:
[0054] In step S200, the host is powered on and initialized.
[0055] In step S202 , the host performs a scan to discover at least one of the PCIE devices, wherein the PCIE devices include the first PCIE device.
[0056] In step S204, the host obtains an executable program according to the second PCIE device reported by the fast boot chip module, wherein the second PCIE device is a PCIE device simulated by the fast boot chip module and associated with the executable program.
[0057] In a modified embodiment of this embodiment, the second PCIE device is mounted with an optional memory, and the optional memory is used to store the executable program.
[0058] In a variation of this embodiment, the step in which the host obtains an executable program based on the second PCIE device reported by the quick start chip module may specifically include: the host obtains the optional memory based on the second PCIE device reported by the quick start chip module; and the host mounts the optional memory to the driver corresponding to the second PCIE device.
[0059] Step S206: the host drives the second PCIE device to run the executable program.
[0060] In this example, the executable program is used to control the host to pause initialization and continue initialization after waiting for the slow startup chip module to complete initialization.
[0061] In a modified embodiment of this embodiment, the function of the executable program may specifically include: the executable program controls the host to suspend initialization, and cyclically queries the initialization status of the first PCIE device to the fast startup chip module; when it is queried that the first PCIE device has completed initialization, the executable program controls the host to continue to complete initialization.
[0062] The present application provides a power-on startup method for a PCIE device. A second PCIE device associated with an executable program is simulated through a fast startup chip module of the first PCIE device. When the host drives the second PCIE device to run the executable program, the executable program is used to control the host to pause initialization in the BIOS stage, wait for the first PCIE device to complete initialization, and then release the host to continue initialization. This can avoid the problem that the PCIE device cannot be discovered by the host during power-on startup or an abnormality occurs when the host drives the PCIE device.
[0063] It should be noted that the description of the relevant steps in the embodiment of the power-on startup method for a PCIE device applied to a host shown in FIG2 can refer to the detailed description of the relevant steps in the embodiment of the power-on startup method for a PCIE device shown in FIG1 .
[0064] On the other hand, regarding an embodiment of the power-on startup method for a PCIE device provided by the present application being applied to a first PCIE device, please refer to FIG3 , which is a flow chart illustrating an exemplary embodiment of the present application showing a power-on startup method for a PCIE device being applied to a first PCIE device.
[0065] In this embodiment, the first PCIE device configured on the host includes a fast boot chip module and a slow boot chip module. The power-on startup method for the PCIE device may include the following steps:
[0066] Step S300: When the host is powered on for initialization, the fast boot chip module and the slow boot chip module are powered on and initialized in sequence, wherein the fast boot chip module completes initialization before the slow boot chip module.
[0067] Step S302: When the host scans to discover at least one of the PCIE devices, the quick start chip module reports the second PCIE device to the host, wherein the PCIE device includes the first PCIE device, and the second PCIE device is a PCIE device simulated by the quick start chip module and associated with an executable program.
[0068] The executable program is used to control the host to pause initialization and continue initialization after waiting for the slow start chip module to complete initialization.
[0069] In a modified embodiment of this embodiment, the second PCIE device is mounted with an optional memory, and the optional memory is used to store the executable program.
[0070] In a variation of this embodiment, the power-on startup method for a PCIE device may further include: when the slow startup chip module completes initialization, the fast startup chip module responds to the executable program with a status indicating that the first PCIE device has completed initialization.
[0071] The present application provides a power-on startup method for a PCIE device. A second PCIE device associated with an executable program is simulated through a fast startup chip module of the first PCIE device. When the host drives the second PCIE device to run the executable program, the executable program is used to control the host to pause initialization in the BIOS stage, wait for the first PCIE device to complete initialization, and then release the host to continue initialization. This can avoid the problem that the PCIE device cannot be discovered by the host during power-on startup or an abnormality occurs when the host drives the PCIE device.
[0072] It should be noted that the description of the relevant steps in the embodiment of the power-on startup method for a PCIE device applied to the first PCIE device shown in FIG3 can refer to the detailed description of the relevant steps in the embodiment of the power-on startup method for a PCIE device shown in FIG1 .
[0073] Accordingly, the present application also provides a power-on startup device for a PCIE device. Referring to FIG4 , FIG4 is a structural diagram of a power-on startup device for a PCIE device according to an exemplary embodiment of the present application.
[0074] In this embodiment, the first PCIE device configured on the host includes a fast startup chip module and a slow startup chip module, and the power-on startup device for the PCIE device includes: a first power-on module, a second power-on module, a scanning module, a reporting module, an acquisition module and a driving module.
[0075] Specifically, the first power-on module is configured to control the host to initialize when powered on.
[0076] The second power-on module is configured to control the fast boot chip module and the slow boot chip module to initialize in sequence when powered on, wherein the fast boot chip module completes initialization before the slow boot chip module.
[0077] The scanning module is configured to control the host to perform scanning to discover at least one of the configured PCIE devices, wherein the PCIE devices include the first PCIE device.
[0078] The reporting module is configured to control the fast boot chip module to report a second PCIE device to the host, wherein the second PCIE device is a PCIE device simulated by the fast boot chip module and associated with an executable program.
[0079] The acquisition module is configured to control the host to acquire the executable program according to the second PCIE device reported by the fast startup chip module.
[0080] The driver module is configured to control the host to drive the second PCIE device to run the executable program.
[0081] The executable program is configured to control the host to pause initialization and continue initialization after waiting for the slow start chip module to complete initialization.
[0082] The power-on startup device for a PCIE device provided in the present application simulates a second PCIE device associated with an executable program through a fast startup chip module of the first PCIE device. When the host drives the second PCIE device to run the executable program, the executable program is used to control the host to pause initialization in the BIOS stage, wait for the first PCIE device to complete initialization, and then release the host to continue initialization. This can avoid the problem that the PCIE device cannot be discovered by the host during power-on startup or an abnormality occurs when the host drives the PCIE device.
[0083] It should be noted that the embodiment of the power-on startup device for PCIE devices shown in Figure 4 is an embodiment of a virtual device corresponding to the embodiment of the power-on startup method for PCIE devices shown in Figure 1. The description of the relevant virtual functional modules in the embodiment of the power-on startup device for PCIE devices shown in Figure 4 can refer to the detailed description of the relevant steps in the embodiment of the power-on startup method for PCIE devices shown in Figure 1.
[0084] Accordingly, the present application also provides a power-on startup device for a PCIE device, applied to a host. In this embodiment, a first PCIE device configured in the host includes a fast startup chip module and a slow startup chip module. The fast startup chip module completes initialization before the slow startup chip module. The power-on startup device for the PCIE device includes: a first power-on module, a scanning module, an acquisition module, and a driver module.
[0085] Specifically, the first power-on module is configured to control the host to perform initialization when powered on.
[0086] The scanning module is configured to control the host to perform scanning to discover at least one of the configured PCIE devices, wherein the PCIE devices include the first PCIE device.
[0087] The acquisition module is configured to control the host to acquire an executable program according to the second PCIE device reported by the fast startup chip module, wherein the second PCIE device is a PCIE device simulated by the fast startup chip module and associated with the executable program.
[0088] A driving module is configured to control the host to drive the second PCIE device to run the executable program.
[0089] The executable program is configured to control the host to pause initialization and continue initialization after waiting for the slow start chip module to complete initialization.
[0090] The power-on startup device for a PCIE device provided in the present application simulates a second PCIE device associated with an executable program through a fast startup chip module of the first PCIE device. When the host drives the second PCIE device to run the executable program, the executable program is used to control the host to pause initialization in the BIOS stage, wait for the first PCIE device to complete initialization, and then release the host to continue initialization. This can avoid the problem that the PCIE device cannot be discovered by the host during power-on startup or an abnormality occurs when the host drives the PCIE device.
[0091] It should be noted that the embodiment of the power-on startup device for a PCIE device applied to a host is an embodiment of a virtual device corresponding to the embodiment of the power-on startup method for a PCIE device shown in Figure 2. The description of the relevant virtual functional modules in the embodiment of the power-on startup device for a PCIE device applied to a host can refer to the detailed description of the relevant steps in the embodiment of the power-on startup method for a PCIE device shown in Figure 1.
[0092] Accordingly, the present application also provides a power-on startup device for a first PCIE device. In this embodiment, the first PCIE device configured on a host includes a fast startup chip module and a slow startup chip module. The power-on startup device for the PCIE device includes: a second power-on module and a reporting module.
[0093] Specifically, the second power-on module is configured to control the fast boot chip module and the slow boot chip module to be initialized in sequence when the host is powered on for initialization, wherein the fast boot chip module completes initialization before the slow boot chip module.
[0094] The reporting module is configured to control the quick start chip module to report the second PCIE device to the host when the host scans to discover at least one configured PCIE device, wherein the PCIE device includes the first PCIE device, and the second PCIE device is a PCIE device simulated by the quick start chip module and associated with an executable program.
[0095] The executable program is configured to control the host to pause initialization and continue initialization after waiting for the slow start chip module to complete initialization.
[0096] The power-on startup device for a PCIE device provided in the present application simulates a second PCIE device associated with an executable program through a fast startup chip module of the first PCIE device. When the host drives the second PCIE device to run the executable program, the executable program is used to control the host to pause initialization in the BIOS stage, wait for the first PCIE device to complete initialization, and then release the host to continue initialization. This can avoid the problem that the PCIE device cannot be discovered by the host during power-on startup or an abnormality occurs when the host drives the PCIE device.
[0097] It should be noted that the embodiment of the power-on startup device for the PCIE device applied to the first PCIE device is an embodiment of a virtual device corresponding to the embodiment of the power-on startup method for the PCIE device shown in Figure 3. The description of the relevant virtual functional modules in the embodiment of the power-on startup device for the PCIE device applied to the first PCIE device can refer to the detailed description of the relevant steps in the embodiment of the power-on startup method for the PCIE device shown in Figure 1.
[0098] Accordingly, the present application also provides a chip. The chip is connected to a host via a PCIE interface and, upon power-on startup, is capable of executing the steps of the power-on startup method for a PCIE device as described above and applied to a first PCIE device. Specifically, the chip can be a DPU, a GPU, or a chip with complex functions. Preferably, the chip can be a DPU.
[0099] Accordingly, the present application also provides an electronic device. The electronic device includes a readable storage medium and a processor. The processor and the readable storage medium are connected to each other via a bus. The readable storage medium, such as a read-only memory (ROM) or random access memory (RAM), is used to store machine-executable instructions. The processor, including but not limited to a central processing unit (CPU), is used to read the machine-executable instructions on the readable storage medium and execute the instructions to implement the steps of the power-on startup method for a PCIE device as shown in Figure 1.
[0100] Specifically, electronic device is intended to refer to various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic device may also refer to various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or claimed herein.
[0101] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device that has: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0102] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0103] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.
[0104] Accordingly, the present application also provides a computer-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are executed by a processor, the steps of the power-on startup method for a PCIE device as shown in Figure 1 can be implemented.
[0105] Specifically, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or apparatus. A computer-readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media may include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0106] In the context of the present application, computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0107] It should be understood that the steps described in this application can be executed in parallel, sequentially, or in a different order, as long as the expected results of the technical solution of this application can be achieved. This document does not impose any restrictions here.
[0108] The above specific embodiments do not constitute a limitation on the scope of protection of this application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application shall be included within the scope of protection of this application.
Claims
1. A power-on startup method for a PCIE device, wherein a first PCIE device configured on a host includes a fast startup chip module and a slow startup chip module, and the method includes: The host is powered on and initialized; The fast startup chip module and the slow startup chip module are powered on sequentially for initialization, wherein the fast startup chip module completes initialization before the slow startup chip module; The host performs scanning to discover at least one of the PCIE devices, wherein the PCIE devices include the first PCIE device; The fast startup chip module reports the second PCIE device to the host, wherein the second PCIE device is a PCIE device simulated by the fast startup chip module and associated with an executable program; The host obtains the executable program according to the second PCIE device reported by the fast startup chip module; The host drives the second PCIE device to run the executable program; The executable program controls the host to suspend initialization, and then continues to complete initialization after waiting for the slow start chip module to complete initialization.
2. The method according to claim 1, wherein: The second PCIE device is mounted with an optional memory, and the optional memory is configured to store the executable program.
3. The method according to claim 2, wherein: The host obtains the executable program according to the second PCIE device reported by the fast startup chip module, including: The host obtains the optional memory according to the second PCIE device reported by the fast startup chip module; The host mounts the optional memory to a driver corresponding to the second PCIE device.
4. The method according to claim 1, wherein: The executable program controls the host to suspend initialization, and then continues to complete initialization after waiting for the slow start chip module to complete initialization, specifically including: The executable program controls the host to suspend initialization, and cyclically queries the initialization status of the first PCIE device from the fast startup chip module; When it is found that the first PCIE device has completed initialization, the executable program controls the host to continue to complete initialization.
5. A power-on startup method for a PCIE device, the method is applied to a host, a first PCIE device configured in the host includes a fast startup chip module and a slow startup chip module, wherein: The fast startup chip module completes initialization before the slow startup chip module, and the method includes: The host is powered on and initialized; The host performs scanning to discover at least one of the PCIE devices, wherein the PCIE devices include the first PCIE device; The host obtains an executable program according to the second PCIE device reported by the fast boot chip module, wherein the second PCIE device is a PCIE device simulated by the fast boot chip module and associated with the executable program; The host drives the second PCIE device to run the executable program; The executable program is configured to control the host to suspend initialization, and then continue to complete initialization after waiting for the slow start chip module to complete initialization.
6. The method according to claim 5, wherein: The second PCIE device is mounted with an optional memory, and the optional memory is configured to store the executable program.
7. The method according to claim 6, wherein: The host obtains an executable program according to the second PCIE device reported by the fast startup chip module, including: The host obtains the optional memory according to the second PCIE device reported by the fast startup chip module; The host mounts the optional memory to a driver corresponding to the second PCIE device.
8. The method according to claim 5, wherein: The executable program controls the host to suspend initialization, and then continues to complete initialization after waiting for the slow start chip module to complete initialization, specifically including: The executable program controls the host to suspend initialization, and cyclically queries the initialization status of the first PCIE device from the fast startup chip module; When it is found that the first PCIE device has completed initialization, the executable program controls the host to continue to complete initialization.
9. A power-on startup method for a PCIE device, the method being applied to a first PCIE device, the first PCIE device configured in a host comprising a fast startup chip module and a slow startup chip module, the method comprising: When the host is powered on for initialization, the fast startup chip module and the slow startup chip module are powered on in sequence for initialization, wherein the fast startup chip module completes initialization before the slow startup chip module; When the host scans to find at least one of the PCIE devices, the fast startup chip module reports a second PCIE device to the host, wherein the PCIE device includes the first PCIE device, and the second PCIE device is a PCIE device simulated by the fast startup chip module and associated with an executable program; The executable program is configured to control the host to suspend initialization, and then continue to complete initialization after waiting for the slow start chip module to complete initialization.
10. The method according to claim 9, wherein: The second PCIE device is mounted with an optional memory, and the optional memory is configured to store the executable program.
11. The method according to claim 9, wherein: The method comprises: When the slow startup chip module completes initialization, the fast startup chip module responds to the executable program with a status indicating that the first PCIE device has completed initialization.
12. A power-on startup device for a PCIE device, wherein a first PCIE device configured on a host comprises a fast startup chip module and a slow startup chip module, and the device comprises: A first power-on module, configured to control the host to perform initialization when powered on; A second power-on module, configured to control the fast startup chip module and the slow startup chip module to be initialized in sequence when powered on, wherein the fast startup chip module completes initialization before the slow startup chip module; A scanning module, configured to control the host to scan to find at least one of the configured PCIE devices, wherein the PCIE devices include the first PCIE device; A reporting module, configured to control the fast startup chip module to report a second PCIE device to the host, wherein the second PCIE device is a PCIE device simulated by the fast startup chip module and associated with an executable program; an acquisition module, configured to control the host to acquire the executable program according to the second PCIE device reported by the fast startup chip module; A driving module, configured to control the host to drive the second PCIE device to run the executable program; The executable program is configured to control the host to suspend initialization, and then continue to complete initialization after waiting for the slow start chip module to complete initialization.
13. A power-on startup device for a PCIE device, the device is applied to a host, a first PCIE device configured in the host comprises a fast startup chip module and a slow startup chip module, wherein: The fast startup chip module completes initialization before the slow startup chip module, and the device includes: A first power-on module, configured to control the host to perform initialization when powered on; A scanning module, configured to control the host to scan to find at least one of the configured PCIE devices, wherein the PCIE devices include the first PCIE device; an acquisition module, configured to control the host to acquire an executable program according to the second PCIE device reported by the fast startup chip module, wherein the second PCIE device is a PCIE device simulated by the fast startup chip module and associated with the executable program; A driving module, configured to control the host to drive the second PCIE device to run the executable program; The executable program is configured to control the host to suspend initialization, and then continue to complete initialization after waiting for the slow start chip module to complete initialization.
14. A power-on startup device for a PCIE device, the device is applied to a first PCIE device, the first PCIE device configured on a host includes a fast startup chip module and a slow startup chip module, the device includes: a second power-on module, configured to control the fast startup chip module and the slow startup chip module to be initialized in sequence when the host is powered on for initialization, wherein the fast startup chip module completes initialization before the slow startup chip module; A reporting module, configured to control the quick start chip module to report a second PCIE device to the host when the host scans to find at least one of the configured PCIE devices, wherein the PCIE device includes the first PCIE device, and the second PCIE device is a PCIE device simulated by the quick start chip module and associated with an executable program; The executable program is configured to control the host to suspend initialization, and then continue to complete initialization after waiting for the slow start chip module to complete initialization.
15. A chip, connected to a host, and capable of executing the steps of the method according to any one of claims 9 to 11 when powered on.
16. An electronic device, comprising a readable storage medium and a processor; in, The readable storage medium is used to store machine executable instructions; The processor is used to read the machine executable instructions on the readable storage medium and execute the instructions to implement the steps of the method according to any one of claims 1 to 4.
17. A computer-readable storage medium storing machine-executable instructions, which implement the steps of the method according to any one of claims 1 to 4 when executed by a processor.
Citation Information
Patent Citations
Method, system and device for starting high-end server and computer storage medium
CN108153553A
Method for starting PCIE device scanning
CN110134446A
PCIe link quick starting method and device
CN112631688A
PCIE (Peripheral Component Interface Express) equipment switching system, method and device, computer equipment and storage medium
CN114817107A
Method and apparatis for processor standby
US20160011652A1
Cited By
Equipment startup method and device, computer equipment and readable storage medium
CN120909659A
