US-12619440-B2 - Startup control method, apparatus and device for PCI devices in ARM server
Abstract
This present disclosure discloses a startup control method, apparatus and device for PCI devices in an ARM server and a non-transitory computer-readable storage medium. During boot-up, segment numbers corresponding to PCI devices and PCI link bridge bus serial numbers corresponding to the PCI devices in PCI device drivers for the PCI devices connected to the ARM server are checked. The segment number corresponding to each of the PCI link bridge bus serial numbers in an advanced configuration and power management interface protocol is configured according to the segment number and the PCI link bridge bus serial number corresponding to each of the PCI devices. System resources are allocated to the PCI devices according to the configured segment numbers.
Inventors
- Xiuqiang SUN
- Jiaming Huang
- Peiyu SHI
- Xiaobao Wang
Assignees
- SUZHOU METABRAIN INTELLIGENT TECHNOLOGY CO., LTD.
Dates
- Publication Date
- 20260505
- Application Date
- 20220929
- Priority Date
- 20220214
Claims (19)
- 1 . A startup control method for Peripheral Component Interconnect (PCI) devices in an Advanced RISC Machine (ARM) server, comprising: checking, during boot-up, segment numbers corresponding to PCI devices and PCI link bridge bus serial numbers corresponding to the PCI devices in PCI device drivers for the PCI devices connected to the ARM server; and configuring the segment number corresponding to each of the PCI link bridge bus serial numbers in an advanced configuration and power management interface protocol according to the segment number corresponding to each of the PCI devices and the PCI link bridge bus serial number corresponding to each of the PCI devices, so as to allocate system resources to the PCI devices according to the configured segment numbers; wherein allocating the system resources to the PCI devices according to the configured segment numbers comprises: enumerating each of the PCI devices and allocating the system resources to each of the PCI devices in an ascending order of the configured segment numbers in the advanced configuration and power management interface protocol.
- 2 . The startup control method according to claim 1 , wherein configuring the segment number corresponding to each of the PCI link bridge bus serial numbers in the advanced configuration and power management interface protocol according to the segment number corresponding to each of the PCI devices and the PCI link bridge bus serial number corresponding to each of the PCI devices comprises: keeping the segment numbers in the advanced configuration and power management interface protocol unchanged, when both the segment numbers and the PCI link bridge bus serial numbers corresponding to same PCI devices match a pre-established initial correspondence between each of the segment numbers and each of the PCI link bridge bus serial numbers in the advanced configuration and power management interface protocol; and updating the segment numbers corresponding to the PCI link bridge bus serial numbers in the advanced configuration and power management interface protocol in accordance with the segment numbers corresponding to the same PCI devices and the PCI link bridge bus serial numbers corresponding to the same PCI devices so as to satisfy consistency, when the segment numbers and the PCI link bridge bus serial numbers corresponding to the same PCI devices do not match the initial correspondence.
- 3 . The startup control method according to claim 1 , wherein the startup control method further comprises: checking, through the PCI device drivers and PCI device check commands, whether the segment numbers corresponding to the PCI devices and the PCI link bridge bus serial numbers corresponding to the PCI devices are consistent with correspondence between the segment numbers and the PCI link bridge bus serial numbers configured in the advanced configuration and power management interface protocol after entering an operating system; and outputting a prompt that the PCI devices pass a display consistency check, when the segment numbers corresponding to the PCI devices and the PCI link bridge bus serial numbers corresponding to the PCI devices are consistent with the correspondence.
- 4 . The startup control method according to claim 3 , wherein the startup control method further comprises: when the segment numbers corresponding to the PCI devices and the PCI link bridge bus serial numbers corresponding to the PCI devices are not consistent with the correspondence, returning to the operation of configuring the segment number corresponding to each of the PCI link bridge bus serial numbers in the advanced configuration and power management interface protocol according to the segment number corresponding to each of the PCI devices and the PCI link bridge bus serial number corresponding to each of the PCI devices, so as to allocate the system resources to the PCI devices according to the configured segment numbers, or triggering a system restart.
- 5 . The startup control method according to claim 3 , wherein after outputting the prompt that the PCI devices pass the display consistency check, the startup control method further comprises: receiving a virtualization container creation command; and creating a virtualization container based on the PCI device driver corresponding to the virtualization container creation command.
- 6 . The startup control method according to claim 1 , wherein the PCI device comprises a T4 graphics card, and the PCI device driver comprises a T4 graphics card driver.
- 7 . The startup control method according to claim 1 , wherein the startup control method is applied to a chip where a basic input output system (BIOS) is located.
- 8 . The startup control method according to claim 1 , wherein the startup control method is applied to a chip that is run during boot-up and performs communication control on a basic input output system (BIOS).
- 9 . A startup control device for PCI devices in an ARM server, comprising: a memory, configured to store a computer program; and a processor, configured to execute the computer program, and when the computer program is executed by the processor, the computer program is configured to perform the following operations: check, during boot-up, segment numbers corresponding to PCI devices and PCI link bridge bus serial numbers corresponding to the PCI devices in PCI device drivers for the PCI devices connected to an ARM server; and configure the segment number corresponding to each of the PCI link bridge bus serial numbers in an advanced configuration and power management interface protocol according to the segment number corresponding to each of the PCI devices and the PCI link bridge bus serial number corresponding to each of the PCI devices, so as to allocate system resources to the PCI devices according to the configured segment numbers; wherein the system resources to the PCI devices is allocated according to the following operations: enumerate each of the PCI devices and allocate the system resources to each of the PCI devices in an ascending order of the configured segment numbers in the advanced configuration and power management interface protocol.
- 10 . The startup control device according to claim 9 , wherein the processor comprises a main processor and a co-processor, wherein the main processor is configured to process data in an awake state; and the co-processor is configured to process data in a standby state.
- 11 . The startup control device according to claim 9 , wherein the startup control device comprises a display screen, a power supply, a communication interface, an input-output interface, a sensor and a communication bus.
- 12 . The startup control device according to claim 11 , wherein the memory, the processor, the display screen, the power supply, the communication interface, the input-output interface and the sensor are all connected with the communication bus.
- 13 . A non-transitory computer-readable storage medium, wherein a computer program is stored on the non-transitory computer-readable storage medium, and when executed by a processor, the computer program is configured to perform the following operations: check, during boot-up, segment numbers corresponding to PCI devices and PCI link bridge bus serial numbers corresponding to the PCI devices in PCI device drivers for the PCI devices connected to an ARM server; and configure the segment number corresponding to each of the PCI link bridge bus serial numbers in an advanced configuration and power management interface protocol according to the segment number corresponding to each of the PCI devices and the PCI link bridge bus serial number corresponding to each of the PCI devices, so as to allocate system resources to the PCI devices according to the configured segment numbers; wherein the system resources to the PCI devices is allocated according to the following operations: enumerate each of the PCI devices and allocate the system resources to each of the PCI devices in an ascending order of the configured segment numbers in the advanced configuration and power management interface protocol.
- 14 . The startup control device for PCI devices in an ARM server according to claim 9 , wherein configuring the segment number corresponding to each of the PCI link bridge bus serial numbers in the advanced configuration and power management interface protocol according to the segment number corresponding to each of the PCI devices and the PCI link bridge bus serial number corresponding to each of the PCI devices comprises: keeping the segment numbers in the advanced configuration and power management interface protocol unchanged, when both the segment numbers and the PCI link bridge bus serial numbers corresponding to same PCI devices match a pre-established initial correspondence between each of the segment numbers and each of the PCI link bridge bus serial numbers in the advanced configuration and power management interface protocol; and updating the segment numbers corresponding to the PCI link bridge bus serial numbers in the advanced configuration and power management interface protocol in accordance with the segment numbers corresponding to the same PCI devices and the PCI link bridge bus serial numbers corresponding to the same PCI devices so as to satisfy consistency, when the segment numbers and the PCI link bridge bus serial numbers corresponding to the same PCI devices do not match the initial correspondence.
- 15 . The startup control device for PCI devices in an ARM server according to claim 9 , wherein allocating the system resources to the PCI devices according to the configured segment numbers comprises: enumerating each of the PCI devices and allocating the system resources to each of the PCI devices in an ascending order of the configured segment numbers in the advanced configuration and power management interface protocol.
- 16 . The startup control device for PCI devices in an ARM server according to claim 9 , wherein the processor is used for further implementing following operations when executing the computer program: checking, through the PCI device drivers and PCI device check commands, whether the segment numbers corresponding to the PCI devices and the PCI link bridge bus serial numbers corresponding to the PCI devices are consistent with correspondence between the segment numbers and the PCI link bridge bus serial numbers configured in the advanced configuration and power management interface protocol after entering an operating system; and outputting a prompt that the PCI devices pass a display consistency check, when the segment numbers corresponding to the PCI devices and the PCI link bridge bus serial numbers corresponding to the PCI devices are consistent with the correspondence.
- 17 . The startup control device for PCI devices in an ARM server according to claim 16 , wherein the processor is used for further implementing following operations when executing the computer program: when the segment numbers corresponding to the PCI devices and the PCI link bridge bus serial numbers corresponding to the PCI devices are not consistent with the correspondence, returning to the operation of configuring the segment number corresponding to each of the PCI link bridge bus serial numbers in the advanced configuration and power management interface protocol according to the segment number corresponding to each of the PCI devices and the PCI link bridge bus serial number corresponding to each of the PCI devices, so as to allocate the system resources to the PCI devices according to the configured segment numbers, or triggering a system restart.
- 18 . The startup control device for PCI devices in an ARM server according to claim 16 , wherein after outputting the prompt that the PCI devices pass the display consistency check, the processor is used for further implementing following operations when executing the computer program: receiving a virtualization container creation command; and creating a virtualization container based on the PCI device driver corresponding to the virtualization container creation command.
- 19 . The startup control device for PCI devices in an ARM server according to claim 9 , wherein the PCI device comprises a T4 graphics card, and the PCI device driver comprises a T4 graphics card driver.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a National Stage Application of PCT/CN2022/122738, filed Sep. 29, 2022, which claims priority to Chinese Patent Application No. 202210131438.8, filed Feb. 14, 2022 in China, and which applications are incorporated herein by reference. To the extent appropriate, a claim of priority is made to each of the above-disclosed applications. TECHNICAL FIELD This present disclosure relates to the technical field of servers, and in particular to a startup control method, apparatus and device for Peripheral Component Interconnect (PCI) devices in an ARM server and a non-transitory computer-readable storage medium. BACKGROUND With continuous innovations and technical breakthroughs in the chip manufacturing process, a 5 nm manufacturing process has been used for advanced RISC machine (hereinafter referred to as ARM) servers, and the slogan that an ARM server itself focuses on low power consumption and high performance is increasingly accepted by more and more customers. Besides, the present disclosure of ARM servers is becoming more and more mature and breaking the monopoly of traditional servers to enter data centers of Internet customers. Thanks to the improvement of the manufacturing process, the number of cores of an ARM server has increased to 80. With the advantage of the number of cores of a single processor, ARMs have overtaken products from other chip manufacturers, and their performance has been qualitatively improved compared with products from other manufacturers. There are vast customer needs especially in the fields of public cloud, cloud games, cloud mobile phones, videos, artificial intelligence (hereinafter referred to as AI), etc. Based on the advantage that a single processor of an ARM has 80 cores, Internet customers have made great profits in deployment of the above services, and the cost performance of such servers has been greatly improved compared with servers based on other architectures, which increases benefits for more and more Internet customers. However, as server products based on emerging architectures, ARM servers have a limited number of deployed present disclosures, and will encounter a variety of problems in the process of deploying present disclosures by various Internet customers. For example, for a NVIDIA TESLA T4 graphics card from NVIDIA (hereinafter referred to as T4 graphics card), failure to be supported by a virtualization container occurs in adaptation to a video service; but under servers based on other architectures, this problem never occurs. As could be seen from the above problem occurring during the adaptation of the ARM server to the T4 graphics card, what must be solved in the process of applying ARM servers to satisfy the requirements of Internet services is an anomaly occurring in adaptation to a peripheral component interconnect (hereinafter referred to as PCI) device under a server based on an ARM architecture. SUMMARY An objective of this present disclosure is to provide a startup control method, apparatus and device for PCI devices in an ARM server and a non-transitory computer-readable storage medium The present disclosure provides a startup control method for PCI devices in an ARM server, including: checking, during boot-up, segment numbers corresponding to the PCI devices and PCI link bridge bus serial numbers corresponding to the PCI devices in PCI device drivers for the PCI devices connected to the ARM server; andconfiguring the segment number corresponding to each of the PCI link bridge bus serial numbers in an advanced configuration and power management interface protocol according to the segment number corresponding to each of the PCI devices and the PCI link bridge bus serial number corresponding to each of the PCI devices, so as to allocate system resources to the PCI devices according to the configured segment numbers. Optionally, configuring the segment number corresponding to each of the PCI link bridge bus serial numbers in the advanced configuration and power management interface protocol according to the segment number corresponding to each of the PCI devices and the PCI link bridge bus serial number corresponding to each of the PCI devices includes: keeping the segment numbers in the advanced configuration and power management interface protocol unchanged when both the segment numbers and the PCI link bridge bus serial numbers corresponding to same PCI devices match a pre-established initial correspondence between each of the segment numbers and each of the PCI link bridge bus serial numbers in the advanced configuration and power management interface protocol; andupdating the segment numbers corresponding to the PCI link bridge bus serial numbers in the advanced configuration and power management interface protocol in accordance with the segment numbers corresponding to the same PCI devices and the PCI link bridge bus serial numbers corresponding to the same PCI devices so as to satisf