Method and apparatus for identifying PCI devices, electronic device and readable storage medium

By adjusting the processor's identification sequence and port resource identification in the BIOS, the problem of frequent changes in the PCI device identification sequence in the AI ​​server is solved, and the PCI device identification sequence adjustment without manpower and performance impact is achieved.

WO2025112889A1PCT designated stage expired Publication Date: 2025-06-05INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/122304
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-01
Filing Date
2024-09-29
Publication Date
2025-06-05

AI Technical Summary

Technical Problem

In AI servers, the recognition order of PCI devices needs to be frequently changed to optimize GPU performance, but existing methods require a lot of manpower and may affect server performance.

Method used

By obtaining the processor configuration file, determining the recognition order of each interface and generating an identification order list, adjusting the recognition order in the BIOS in response to the recognition order modification request, and synchronizing the order of port resource identification to realize a new identification order list.

Benefits of technology

There is no need to offline modify the device insertion method or power outage. The scanning order of PCI devices is modified at the software level to ensure the correctness of asset information and avoid the impact of hardware performance, so as to achieve flexible adjustment of the recognition sequence without affecting performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024122304_05062025_PF_FP_ABST
    Figure CN2024122304_05062025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of computers, and provides a method and apparatus for identifying PCI devices, an electronic device and a nonvolatile readable storage medium. The method comprises: acquiring a configuration file of a processor; on the basis of the configuration file, determining an identification sequence of interfaces, and generating an identification sequence list; in response to an identification sequence position modification request, modifying in a basic input output system the identification sequence position of a target interface in the identification sequence list, and adjusting the sequence position of a port resource identifier corresponding to the interface of which the identification sequence position has changed, so as to generate a new identification sequence list; and, according to the new identification sequence list, scanning PCI devices connected to the processor. The present application provides a solution of modifying a PCI scanning sequence by means of the BIOS without modifying a plugging pattern of devices offline and without power interruption; scanning sequence positions of PCI devices are modified on the software level, and sequence positions of port resource identifiers corresponding to the interfaces of which the identification sequence positions have changed are synchronously modified, such that identification sequence positions of PCI devices can be changed without affecting performance.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, electronic device and readable storage medium for identifying PCI devices

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on December 1, 2023, with application number 202311640891.2, and application name “Method, device, electronic device and readable storage medium for identifying PCI devices”, all contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and non-volatile readable storage medium for identifying a PCI device. Background Art

[0004] Artificial Intelligence (AI) servers often require a large number of GPUs (graphics processing units) and network interface cards (NICs) for computation. Due to slot limitations, these servers often require multiple switch boards for slot expansion, each of which can contain numerous GPUs and NICs. To maximize GPU performance, the order in which each port is connected to the CPU is fixed, leading to a fixed order for identifying PCI (Peripheral Component Interconnect) devices.

[0005] Taking the network card as an example, if you want to specify a network card with another interface as the first network card recognized by the operating system, you can only do so by changing the insertion position of the above network card.

[0006] When the order of identifying PCI devices needs to be changed in large quantities, the above method requires a lot of manpower and may have a certain impact on the performance of the server.

[0007] Summary of the Invention

[0008] In view of the above problems, embodiments of the present application are proposed to provide a method, apparatus, electronic device, and non-volatile readable storage medium for identifying PCI devices that overcome the above problems or at least partially solve the above problems.

[0009] In a first aspect, an embodiment of the present application discloses a method for identifying a PCI device, the method comprising:

[0010] Get the processor's configuration file;

[0011] Determine the recognition order of each interface according to the configuration file and generate a recognition order list;

[0012] In response to the recognition order modification request, modifying the recognition order of the target interfaces in the recognition order list in the basic input / output system, and adjusting the order of the port resource identifiers corresponding to the interfaces whose recognition order has changed, to generate a new recognition order list;

[0013] Scan the PCI devices connected to the processor according to the new identification order list.

[0014] Optionally, modifying the identification order of the target interfaces in the identification order list in the basic input / output system and adjusting the order of the port resource identifiers corresponding to the interfaces whose identification order has changed includes:

[0015] After the basic input / output system modifies the recognition order of the target interface in the recognition order list, the adjusted interface recognition order is compared with the default recognition order list to determine whether the recognition order of any interface has changed;

[0016] When it is determined that the identification order of the interfaces has changed, the order of the port resource identifiers corresponding to the interfaces whose identification order has changed is adjusted.

[0017] Optionally, when it is determined that the identification order of the interfaces has changed, adjusting the order of the port resource identifiers corresponding to the interfaces whose identification order has changed includes:

[0018] Determine the target interface for identifying sequence changes;

[0019] Modify the order of the port resource identifiers so that the order of the port resource identifiers corresponds to the modified identification order of the target interfaces.

[0020] Optionally, in response to the recognition order modification request, modifying the recognition order of the target interfaces in the recognition order list in the basic input / output system includes:

[0021] In the basic input and output system settings interface, the menu option of adjusting the recognition order is displayed;

[0022] In response to a first input of a menu option, displaying a default recognition order list;

[0023] In response to the recognition order modification request for the recognition order list, the recognition order of the target interfaces in the recognition order list is modified.

[0024] Optionally, in response to a recognition order modification request for the recognition order list, modifying the recognition order of the target interfaces in the recognition order list includes:

[0025] In response to a recognition order modification request for the recognition order list, the recognition order of any two interfaces in the recognition order list is exchanged.

[0026] Optionally, determine the recognition order of each interface according to the configuration file, and generate a recognition order list, including:

[0027] Determine the processor model based on the configuration file;

[0028] Generate an identification order list based on the processor model.

[0029] Optionally, determining the processor model according to the configuration file includes:

[0030] Read the processor model identifier from the configuration file;

[0031] Determine the processor model from the model identification.

[0032] Optionally, based on the processor model, an identification sequence list is generated, including:

[0033] Determine the interface topology order of the processor based on the processor model;

[0034] Convert the interface topology sequence into a sequential arrangement to generate an identification sequence list.

[0035] Optionally, scanning PCI devices connected to the processor according to the new identification order list includes:

[0036] Scan the PCI devices according to the new identification sequence list and obtain the address identifiers of the PCI devices;

[0037] According to the address identifier, obtain the relevant information of the PCI device and output it;

[0038] According to the identification order list, the self-test process continues for the next interface.

[0039] Optionally, according to the address identifier, relevant information of the PCI device is obtained and output, including:

[0040] According to the address identifier, obtain the device type and manufacturer information of the PCI device and output it;

[0041] When the level of the PCI device meets the preset level condition, the configuration space of the PCI device is accessed and the configuration information of the PCI device is output.

[0042] Optionally, the port resource identifier includes: a bandwidth port identifier and an asset information port identifier.

[0043] Optionally, the address identifier is a BDF number, which includes a bus number, a device number, and a function number.

[0044] In a second aspect, an embodiment of the present application discloses a device for identifying a PCI device, the device comprising:

[0045] An acquisition module is configured to acquire a configuration file of a processor;

[0046] A generation module is configured to determine the recognition order of each interface according to the configuration file and generate a recognition order list;

[0047] a modification module configured to, in response to the recognition order modification request, modify the recognition order of the target interfaces in the recognition order list in the basic input / output system, and adjust the order of the port resource identifiers corresponding to the interfaces whose recognition order has changed, to generate a new recognition order list;

[0048] The identification module is configured to scan the PCI devices connected to the processor according to the new identification order list.

[0049] In a third aspect, an embodiment of the present application further discloses an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect are implemented.

[0050] In a fourth aspect, an embodiment of the present application further discloses a non-volatile readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

[0051] In an embodiment of the present application, a configuration file of a processor is obtained; the identification order of each interface is determined according to the configuration file, and an identification order list is generated; in response to an identification order modification request, the identification order of the target interface in the identification order list is modified in the basic input and output system, and the order of the port resource identifiers corresponding to the interfaces whose identification order has changed is adjusted to generate a new identification order list; the PCI devices connected to the processor are scanned according to the new identification order list. The present application provides a solution that can modify the PCI scanning order through the BIOS (Basic Input Output System) without the need to modify the device plug-in method offline or to cut off the power supply. By modifying the scanning order of the PCI device at the software level and synchronously modifying the order of the port resource identifiers corresponding to the interfaces whose identification order has changed, the correctness of the asset information corresponding to the PCI device is ensured. Since there is no need to worry about the performance of the hardware being affected by the identification order, it is possible to change the identification order of the PCI device without affecting the performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for describing the embodiments.

[0053] FIG1 is a connection method of a PCI device provided in an embodiment of the present application;

[0054] FIG2 is a method for identifying a PCI device provided in an embodiment of the present application;

[0055] FIG3 is another method for identifying a PCI device provided in an embodiment of the present application;

[0056] FIG4 is a flow chart of identifying PCI device information provided by an embodiment of the present application;

[0057] FIG5 is a flowchart of changing the PCI device identification order provided by an embodiment of the present application;

[0058] FIG6 is a block diagram of an apparatus for identifying a PCI device provided in an embodiment of the present application;

[0059] FIG7 is an electronic device provided in an embodiment of the present application;

[0060] FIG8 is another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] Some embodiments of the present application, however, should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. Instead, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0062] The following is an explanation of the concepts and background related to this application.

[0063] The PCI (Peripheral Component Interconnect) bus is mainly divided into three parts:

[0064] PCI devices, devices that comply with the PCI bus standard are called PCI devices. The PCI bus architecture can include multiple PCI devices. PCI devices are also divided into two types: master devices and target devices. The master device is the initiator of an access operation, while the target device is the accessed device. In the embodiments of the present application, PCI devices can be devices that communicate via the PCI protocol. These devices can communicate with the processor via the PCI protocol, and these devices can also communicate with each other through the processor.

[0065] PCI bus, there can be multiple PCI buses in the system, which are expanded in a tree-like structure. Each PCI bus can connect to multiple PCI devices / bridges.

[0066] PCI bridge, when the carrying capacity of a PCI bus is insufficient, a new PCI bus can be used to expand it, and the PCI bridge is the link between the PCI buses.

[0067] The PCI space is isolated from the processor space. PCI devices have an independent address space, namely the PCI bus address space, which is isolated from the memory address space by a host bridge. The processor must use the host bridge to access PCI devices, and PCI devices must use the host bridge to access main memory. The host bridge contains many buffers that allow the processor bus and PCI bus to operate at their respective clock frequencies without interfering with each other. The host bridge also allows PCI devices and processors to easily share main memory resources. When the processor accesses a PCI device, it must use the host bridge for address translation; and when a PCI device accesses main memory, it also needs to use the host bridge for address translation.

[0068] PCI is a standard introduced by Intel in 1991 that defines a local bus. This standard allows the installation of up to 10 PCI-compliant expansion cards in a computer. The original PCI bus operated at 33 MHz and had a transmission bandwidth of 132 MB / s (33 MHz * 32 bits / 8), which essentially met the processor development needs of the time.

[0069] The PCI bus has strong scalability. In the PCI bus, the Root Bridge can directly connect to a PCI bus, which is also the first PCI bus managed by the Root Bridge. This bus can also extend a series of PCI buses through the PCI bridge, and form a PCI bus tree with the Root Bridge as the root node. Devices on the same PCI bus can communicate directly without affecting data communication between devices on other PCI buses. PCI devices belonging to the same PCI bus tree can also communicate directly, but data forwarding is required through the PCI bridge.

[0070] The BIOS (Basic Input / Output System) is a set of programs hardwired into a ROM processor on the computer's motherboard. It stores the computer's most important basic input / output (BIO) programs, the post-boot self-test program, and the system startup program. It can also read and write detailed system configuration information from the CMOS. Its primary function is to provide the lowest-level, most direct hardware configuration and control for the computer. The BIOS also provides some system parameters to the operating system. System hardware changes are hidden from the BIOS, and programs utilize BIOS functions rather than directly controlling the hardware.

[0071] Referring to Figure 1, which illustrates a PCI device connection method, when reading a PCI device, port 0 is first read, the network card configured under port 0 is read, and then the target network card is read through port 1. To read the target network card first, the position of the target network card needs to be changed, and the target network card needs to be inserted into the switch board under port 0. This method is inefficient when a large number of PCI devices need to have their identification order changed. Therefore, this application proposes a method for identifying PCI devices, which is used to change the identification order of PCI devices, thereby achieving the function of reading the target network card first without changing the slot position of the target network card.

[0072] 2 , which shows a flowchart of a method for identifying a PCI device according to an embodiment of the present application, the method includes:

[0073] Step 101: Obtain a configuration file of the processor.

[0074] In an embodiment of the present application, the configuration file of the processor may be a file storing the startup sequence of the processor, wherein the processor may be a central processing unit.

[0075] This application uses Intel XCC model CPU (processor) as an example, and the methods for other types of CPUs are similar. First, let's introduce XCC. The topology of the XCC CPU is not arranged in the order of PE0 / 1 / 2 / 3 / 4, but in a random order of PE0 / 4 / 2 / 1 / 3. After obtaining the configuration file, the processor model can be determined by reading the identifier representing the processor model in the configuration file. Different processor models have different PE numbers and PE identification orders. After determining the processor model, the PE identification order can be determined based on the processor model.

[0076] Step 102: Determine the identification order of each interface according to the configuration file, and generate an identification order list.

[0077] In this embodiment, during the post-processor (power-on self-test) phase of CPU initialization, the BIOS first retrieves the CPU's PE mapping, the processor's configuration file. If a PE mapping exists and is determined to be an XCC model, a conversion table is created to convert the XCC topology into a sequential order. Subsequent CPU initialization will follow this converted PE mapping. During the mid-processor phase of post-processing, the BIOS scans and configures the PCI initialization process based on the converted PE order. The BIOS can leverage this principle to optimize the logic into a configurable solution.

[0078] Referring to Table 1, which shows the contents of the conversion table, the PE identification order can be converted to the following order based on the processor model. During identification, the order is PE0, PE4, PE2, PE1, PE3, rather than PE0, PE1, PE2, PE3, PE4. Different processor models have different corresponding conversion tables.

[0079] Table 1

[0080] Step 103 : In response to the recognition order modification request, the basic input / output system modifies the recognition order of the target interfaces in the recognition order list, and adjusts the order of the port resource identifiers corresponding to the interfaces whose recognition order has changed, to generate a new recognition order list.

[0081] In an embodiment of the present application, a "Modify Scan Order" option can be added to the BIOS setup options list to support arbitrary adjustment of the order of PE0, PE1, PE2, PE3, PE4, and so on. Before adjusting the order, it is important to note that changing the PE order can cause confusion in the original bandwidth allocation and asset information assignment of each PE port. This is because the PE index (which can be understood as the port number of the device connected to each port, i.e., the port resource identifier in this application) is set in sequence according to the initial order. For example, to change PE1 to scan first before PE0, the index order of PE0 and PE1 must be changed simultaneously. Otherwise, the bandwidth and asset information will be reversed. At these locations where reversal is required, the corresponding interface in the setup option is added. After adjusting the PE interface order, the corresponding PE port must first compare the current order with the user-modified order to see if there is a change. If the user swaps PE4 with PE1, the BIOS underlying logic will swap the original PE1 bandwidth port and asset information port with PE4. This allows online modification of the PE scan order and thus changes the PCI scan order.

[0082] In an embodiment of the present application, after modifying the recognition order list, the BIOS can read the new recognition order list and modify the conversion table corresponding to the processor based on the new recognition order list to modify the processor configuration file, thereby changing the recognition order of the interfaces. Taking Table 1 above as an example, the BIOS can modify the recognition order of the target interfaces (PE0, PE4, PE2, PE1, PE3) in Table 1 above based on the new recognition order list, and modify the order of the port resource identifiers (Port1, Port2, Port3, Port4, Port5) corresponding to the interfaces whose recognition order has changed in Table 1 above, thereby modifying the processor configuration file and changing the recognition order of the interfaces.

[0083] Step 104: Scan the PCI devices connected to the processor according to the new identification order list.

[0084] In the embodiment of the present application, after adjusting the recognition order, the PCI devices connected to the processor can be scanned based on the new recognition order list. Taking Figure 1 as an example, the software can be used to first scan the target network card of port 1 and then scan the network cards under port 1, so that the scanning order can be customized by the user.

[0085] Furthermore, the BIOS can remotely and independently modify the PCI recognition order, making it very easy to modify the primary network card under the operating system and cooperate with the operating system testing in actual use. This application significantly enhances the practicality of the BIOS and enables remote modification of the PCI scan order without the need for offline on-site visits. This allows the recognition order of PCI devices to be changed without affecting performance, greatly improving the practicality of the BIOS and meeting the needs of customers in various testing scenarios.

[0086] In an embodiment of the present application, a configuration file of the processor is obtained; the identification order of each interface is determined according to the configuration file, and an identification order list is generated; in response to an identification order modification request, the identification order of the target interface in the identification order list is modified in the basic input and output system, and the order of the port resource identifiers corresponding to the interfaces whose identification order has changed is adjusted to generate a new identification order list; the PCI devices connected to the processor are scanned according to the new identification order list. The present application provides a solution that can modify the PCI scan order through BIOS, without the need to modify the device plug-in method offline or to cut off the power supply. By modifying the scan order of the PCI device at the software level and synchronously modifying the order of the port resource identifiers corresponding to the interfaces whose identification order has changed, the correctness of the asset information corresponding to the PCI device is ensured. Since there is no need to worry about the performance of the hardware being affected by the identification order, the recognition order of the PCI device can be changed without affecting the performance.

[0087] 3 , which shows a flowchart of another method for identifying a PCI device provided by an embodiment of the present application, the method includes:

[0088] Step 201: Obtain a configuration file of the processor.

[0089] This step can refer to step 101 and will not be repeated here.

[0090] Step 202: Determine the recognition order of each interface according to the configuration file, and generate a recognition order list.

[0091] This step can refer to step 102 and will not be repeated here.

[0092] Optionally, step 202 includes:

[0093] Sub-step 2021, determining the processor model according to the configuration file;

[0094] In an embodiment of the present application, for sub-step 2021, the configuration file may include the SKU information of the processor. In the CPU model, SKU refers to various CPU models, usually composed of some numbers. These numbers represent different parameters of the CPU, including the number of cores, number of threads, base frequency, maximum turbo frequency, etc. For example, the "8700" in the Intel Core i7-8700K represents the performance level of this model.

[0095] Optionally, sub-step 2021 includes:

[0096] Sub-step 20211, reading the processor model identifier from the configuration file;

[0097] Sub-step 20212, determining the processor model according to the model identifier.

[0098] In the embodiment of the present application, for sub-steps 20211 and 20212, the model identification, i.e., the SKU information of the CPU, is specifically referred to the description of sub-step 2021 and will not be repeated here.

[0099] Sub-step 2022: Generate an identification order list based on the processor model.

[0100] Optionally, sub-step 2022 includes:

[0101] Sub-step 20221, determining the interface topology order of the processor according to the processor model;

[0102] Sub-step 20222: Convert the interface topology sequence into a sequential arrangement to generate an identification sequence list.

[0103] In an embodiment of the present application, for sub-steps 20221 and 20222, the interface topology order of processors of different models is different. Taking the Intel XCC model CPU as an example, the BIOS post stage (power-on self-test) will first obtain the CPU's PE mapping, that is, the processor's configuration file, when initializing the CPU. If PE mapping exists and it is determined to be an XCC model, a conversion table will be set to convert the XCC topology into a sequential arrangement. The subsequent CPU initialization will be performed according to the PE mapping converted in this step. The recognition order list after the XCC conversion is PE0, PE4, PE2, PE1, PE3 in the order.

[0104] Step 203: After the basic input / output system modifies the recognition order of the target interface in the recognition order list, the adjusted interface recognition order is compared with the default recognition order list to determine whether the recognition order of the interface has changed.

[0105] In an embodiment of the present application, a "Modify Scan Order" option can be added to the BIOS setup options list to adjust the order of PE0, PE1, PE2, PE3, PE4, and so on. After the BIOS adjusts the PE identification order, the corresponding PE ports must first compare the current order with the user-modified order to see if it has changed. For example, if the user swaps PE4 with PE1, the BIOS underlying logic must swap the original PE1 bandwidth port and asset information port with PE4. This allows for online modification of the PE scan order, thereby changing the PCI scan order.

[0106] Optionally, step 203 includes:

[0107] Sub-step 2031, displaying a menu option for adjusting the recognition order on the basic input and output system setting interface;

[0108] Sub-step 2032, in response to the first input of the menu option, displaying a default recognition order list;

[0109] Sub-step 2033 : In response to the recognition order modification request for the recognition order list, modify the recognition order of the target interfaces in the recognition order list.

[0110] In the embodiment of the present application, for sub-steps 2031 to 2033, a menu option for adjusting the recognition order can be displayed in the setting interface of the basic input and output system, that is, after the user enters the basic input and output system, the PE recognition order can be quickly adjusted based on the menu option.

[0111] Furthermore, if the user performs a first input on the menu option, the first input can be an input to enter a menu for adjusting the recognition order, and a default recognition order list can be displayed on the setting interface of the basic input and output system. Taking Intel XCC model CPU as an example, the default recognition order list can be PE0, PE4, PE2, PE1, PE3. The user can adjust the recognition order through the menu option for adjusting the recognition order. For example, it can be adjusted to PE4, PE0, PE2, PE1, PE3.

[0112] Sub-step 2032, in response to the first input of the menu option, displaying a default recognition order list;

[0113] Sub-step 2033 : In response to the recognition order modification request for the recognition order list, modify the recognition order of the target interfaces in the recognition order list.

[0114] In an embodiment of the present application, for sub-steps 2032 and 2033, if the user performs a first input on a menu option, the first input may be an input to enter a menu for adjusting the recognition order, and a default recognition order list may be displayed on a setting interface of the basic input / output system. Taking Intel XCC model CPU as an example, the default recognition order list may be PE0, PE4, PE2, PE1, PE3. The user may adjust the recognition order by adjusting the menu option for adjusting the recognition order. For example, the positions of PE0 and PE4 may be exchanged to adjust the default recognition order to PE4, PE0, PE2, PE1, PE3.

[0115] In addition, the identification order of PEs can be modified in any way based on actual needs, and the embodiments of the present application do not limit this.

[0116] Optionally, sub-step 2033 includes:

[0117] Sub-step 20331: In response to the recognition order modification request for the recognition order list, swap the recognition order of any two interfaces in the recognition order list.

[0118] This step can refer to sub-step 2032 and sub-step 2033, which will not be repeated here.

[0119] Step 204: If it is determined that the identification order of the interfaces has changed, the order of the port resource identifiers corresponding to the interfaces whose identification order has changed is adjusted to generate a new identification order list;

[0120] In the embodiment of the present application, the change in the order of PEs will lead to confusion in the original bandwidth allocation and asset information assignment of each PE port, because the index on the PE (which can be understood as the port number of the device connected to each port, that is, the port resource identifier in the present application) is set in sequence according to the initial order. For example, if PE1 is modified to take precedence over PE0 scanning, the index order of PE0 and PE1 must be changed synchronously, otherwise the bandwidth and asset information will be reversed. At these positions that need to be reversed, add the corresponding interface in the setup option. After adjusting the order of the PE interfaces, the corresponding PE port must first compare the current order with the order modified by the user to see if there is any change. If the user exchanges PE4 with PE1, the original PE1 bandwidth port and asset information port must be exchanged with PE4 in the underlying logic of the BIOS. Realize the online modification of the PE scanning order and thus change the PCI scanning order.

[0121] Optionally, step 204 includes:

[0122] Sub-step 2041, determining the target interface for the change in identification order;

[0123] Sub-step 2042: Modify the order of the port resource identifiers so that the order of the port resource identifiers corresponds to the modified identification order of the target interfaces.

[0124] In the embodiment of the present application, for sub-steps 2041 and 2042, since the order of the interfaces and the order of access to the resources corresponding to the interfaces are consistent, if the identification order of the interfaces is modified, the order of access to the resources should be modified accordingly. For example, if the user exchanges PE4 with PE1, the original bandwidth port and asset information port of PE1 should be exchanged with PE4 in the underlying logic of the BIOS. The PE scanning order is modified online to change the scanning order of PCI. The present application provides a solution that can modify the PCI scanning order through BIOS, without the need to modify the device plug-in method offline or to cut off the power supply. By modifying the scanning order of PCI devices at the software level and synchronously modifying the order of port resource identifiers corresponding to the interfaces whose identification order has changed, the correctness of the asset information corresponding to the PCI devices is guaranteed. Since there is no need to worry about the performance of the hardware being affected by the identification order, the identification order of PCI devices can be changed without affecting the performance.

[0125] Step 205: Scan the PCI devices connected to the processor according to the new identification order list.

[0126] This step can refer to step 101 and will not be repeated here.

[0127] Sub-step 2051, scanning PCI devices according to the new identification order list and obtaining address identifiers of the PCI devices;

[0128] Sub-step 2052: Obtain and output relevant information of the PCI device according to the address identifier.

[0129] In the embodiment of the present application, with respect to sub-steps 2051 and 2052, after the identification order of the interfaces is modified, the PCI devices can be scanned according to the new identification order list, and the address identifiers of the PCI devices can be obtained.

[0130] Furthermore, the address identifier of the PCI device can be the BDF number corresponding to the PCI device. Based on the BDF number, a PCI device can be uniquely identified in the system, and then the configuration space of the PCI device can be accessed to read the relevant information of the PCI device. The relevant information can be the manufacturer, model and other information of the PCI device.

[0131] Optionally, sub-step 2052 includes:

[0132] Sub-step 20521, obtaining the device type and manufacturer information of the PCI device according to the address identifier and outputting the information;

[0133] Sub-step 20522: When the level of the PCI device meets the preset level conditions, access the configuration space of the PCI device and output the configuration information of the PCI device.

[0134] In an embodiment of the present application, for sub-steps 20521 and 20522, the device type and manufacturer information of the PCI device can be obtained and output based on the address identifier; in addition, when the level of the PCI device meets the preset level conditions, the configuration space of the PCI device can be accessed and the configuration information of the PCI device can be output. If the level of the PCI device does not meet the preset level conditions, the self-test procedure can continue.

[0135] Sub-step 2053: Continue the self-test process of the next interface according to the identification order list.

[0136] In the embodiment of the present application, after one PCI device is identified, the self-test process of the next interface is continued based on the new identification order list.

[0137] Referring to Figure 4, a flowchart for identifying PCI device information provided by an embodiment of the present application is shown, which includes: PCI initialization, determining the current CPU and port number and recording the output, obtaining the device BDF number and recording the output, obtaining the device type and manufacturer information and recording the output, determining the output level, and if the level is level 1, accessing the configuration space to capture registers such as CE / UE / HOT PLUG, and presenting the device configuration information as much as possible and outputting it. If the level is level 0, resources are released and the self-test process continues.

[0138] In an embodiment of the present application, a configuration file of the processor is obtained; the identification order of each interface is determined according to the configuration file, and an identification order list is generated; in response to an identification order modification request, the identification order of the target interface in the identification order list is modified in the basic input and output system, and the order of the port resource identifiers corresponding to the interfaces whose identification order has changed is adjusted to generate a new identification order list; the PCI devices connected to the processor are scanned according to the new identification order list. The present application provides a solution that can modify the PCI scan order through BIOS, without the need to modify the device plug-in method offline or to cut off the power supply. By modifying the scan order of the PCI device at the software level and synchronously modifying the order of the port resource identifiers corresponding to the interfaces whose identification order has changed, the correctness of the asset information corresponding to the PCI device is ensured. Since there is no need to worry about the performance of the hardware being affected by the identification order, the recognition order of the PCI device can be changed without affecting the performance.

[0139] Optionally, the port resource identifier includes: a bandwidth port identifier and an asset information port identifier.

[0140] In the embodiment of the present application, the computer interface card generally uses computer resources such as I / O ports, memory space, interrupts and DMA. PCI interface cards are allocated resources by software. To achieve this function, in addition to reading and writing I / O space and memory space, the PCI protocol also defines reading and writing configuration space (C / BE0~C / BE3=1010, 1011). The so-called configuration space refers to the 256-byte special function register mapped to each interface card. After the motherboard is powered on, the PnP-Bios (Plug and Play BIOS, a basic input and output system that supports plug-and-play) reads the configuration space of each card, allocates the resources they need in a coordinated manner, and then writes the allocation results back to the corresponding configuration space address to complete the automatic configuration.

[0141] Optionally, the address identifier is a BDF number, which includes a bus number, a device number, and a function number.

[0142] In an embodiment of the present application, if you want to access the configuration space of a PCI device, you must know the physical connection status of the device in the system. The data BDF number (Bus, Device, Function) that describes this connection status is the "bus number", "device number" and "function number". A system can have 256 PCI buses, each bus can have 32 devices, and each device can have 8 functions (each function is a PCI device). When these three data are determined, a PCI device can be uniquely identified in the system. Write the bus number (8 bits), device number (5 bits), function number (3 bits) and offset address of the configuration space of the PCI device to 0xCF8, and you can access the configuration value of the corresponding position through the 0xCFC port. Accessing PCI devices under DOS generally uses the PCI BIOS service function, and the PCI BIOS can be called by executing the INT 1AH instruction.

[0143] Specifically, BUS: Bus number. A maximum of 256 bus numbers can be assigned by the configuration software. The initial bus number, Bus 0, is typically assigned to the Root Complex by hardware. Bus 0 consists of a virtual PCI bus with integrated endpoints and a virtual PCI-to-PCI bridge (P2P) with hard-coded device and function numbers. Each P2P bridge creates a new bus to which additional PCIe devices can connect. Each bus must be assigned a unique bus number. The configuration software begins assigning bus numbers by searching for a bridge starting at Bus 0, Device 0, Function 0. When a bridge is found, the software assigns the new bus a unique bus number that is greater than the bus number of the bridge. Once a new bus is assigned a bus number, the software begins searching for bridges on the new bus before continuing to scan for more bridges on the current bus.

[0144] Device: Device number. PCI Express allows up to 32 device numbers on a single PCI bus. However, PCI Express's point-to-point nature means only a single device can be directly connected to a PCI link, and this device always ends up with device 0. RCs and switches have virtual PCI buses, allowing multiple devices to be "connected" to the bus. Each device must implement Function 0, which may contain a collection of up to eight functions. When a device contains two or more functions, it is called a multifunction device.

[0145] Function: As mentioned above, functions are included in each device. These functions may include a hard disk interface, a display controller, an Ethernet controller, a USB controller, and so on. Devices with multiple functions do not need to implement them in order. For example, a device may implement Function 0, 2, and 7. Therefore, when software detects a multifunction device, it must check each possible function to see which ones are present. Each function also has its own configuration address space, which is used to set up associated resources.

[0146] Referring to FIG5 , FIG5 shows another flowchart of changing the PCI device identification order provided by an embodiment of the present application, which includes: powering on the computer, determining whether the PCI scan order option has changed, and if so, exchanging the corresponding bandwidth allocation and asset information allocation content, and then continuing to execute the self-test program; if no change has occurred, executing the self-test program normally; if the PCI scan order has been modified in setup, restarting the device, restarting the computer, and confirming whether the scan order has changed. This application significantly enhances the practicality of the BIOS, and realizes remote modification of the PCI scan order without the need to go offline to the site, so that the recognition order of PCI devices can be changed without affecting performance, greatly improving the practicality of the BIOS and meeting the needs of customers in various testing scenarios.

[0147] The method of this application can also be applied to special testing at the operating system and other software levels when user services change or the order of PCI devices in the operating system needs to be repeatedly switched. It is difficult to modify the plug-in method in batches offline in a short period of time. For example, large-scale modifications require a lot of manpower and power outages. If it is a switch model, there may be certain requirements for the plug-in method. Changing the position of the switch board may have a significant impact on performance and the underlying CPLD firmware. In this case, the PCI device identification method of this application can quickly switch the order of PCI devices in the operating system without affecting hardware performance.

[0148] In an embodiment of the present application, a configuration file of the processor is obtained; the identification order of each interface is determined according to the configuration file, and an identification order list is generated; in response to an identification order modification request, the identification order of the target interface in the identification order list is modified in the basic input and output system, and the order of the port resource identifiers corresponding to the interfaces whose identification order has changed is adjusted to generate a new identification order list; the PCI devices connected to the processor are scanned according to the new identification order list. The present application provides a solution that can modify the PCI scan order through BIOS, without the need to modify the device plug-in method offline or to cut off the power supply. By modifying the scan order of the PCI device at the software level and synchronously modifying the order of the port resource identifiers corresponding to the interfaces whose identification order has changed, the correctness of the asset information corresponding to the PCI device is ensured. Since there is no need to worry about the performance of the hardware being affected by the identification order, the recognition order of the PCI device can be changed without affecting the performance.

[0149] 6 , which shows a block diagram of an apparatus for identifying a PCI device according to an embodiment of the present application, wherein the apparatus 30 includes:

[0150] The acquisition module 301 is configured to acquire a configuration file of the processor;

[0151] The generating module 302 is configured to determine the identification order of each interface according to the configuration file and generate an identification order list;

[0152] The modification module 303 is configured to modify the recognition order of the target interfaces in the recognition order list in the basic input / output system in response to the recognition order modification request, and adjust the order of the port resource identifiers corresponding to the interfaces whose recognition order has changed, thereby generating a new recognition order list;

[0153] The identification module 304 is configured to scan the PCI devices connected to the processor according to the new identification order list.

[0154] Optionally, modify the module to include:

[0155] a comparison submodule configured to, after the basic input / output system modifies the recognition order of the target interface in the recognition order list, compare the adjusted interface recognition order with the default recognition order list to determine whether the recognition order of any interface has changed;

[0156] The adjusting submodule is configured to adjust the order of the port resource identifiers corresponding to the interfaces whose identification order has changed when it is determined that the identification order of the interfaces has changed.

[0157] Optionally, adjust the submodules, including:

[0158] a determining unit configured to determine a target interface for a change in recognition order;

[0159] The modifying unit is configured to modify the order of the port resource identifiers so that the order of the port resource identifiers corresponds to the modified identification order of the target interfaces.

[0160] Optionally, modify the module to include:

[0161] The first display submodule is configured to display a menu option for adjusting the recognition order on the basic input and output system setting interface;

[0162] a second display submodule configured to display a default recognition order list in response to a first input to a menu option;

[0163] The modification submodule is configured to modify the recognition order of the target interfaces in the recognition order list in response to a recognition order modification request for the recognition order list.

[0164] Optionally, modify the submodules to include:

[0165] The switching unit is configured to switch the recognition order of any two interfaces in the recognition order list in response to a recognition order modification request for the recognition order list.

[0166] Optionally, generate a module including:

[0167] A model determination module is configured to determine a processor model according to a configuration file;

[0168] The recognition order determination module is configured to generate a recognition order list according to the processor model.

[0169] Optionally, the model determination module includes:

[0170] The reading unit is configured to read the model identification of the processor from the configuration file;

[0171] The model determining unit is configured to determine the model of the processor according to the model identifier.

[0172] Optionally, the recognition sequence determination module includes:

[0173] A topology order determination module is configured to determine the interface topology order of the processor according to the processor model;

[0174] The sorting module is configured to convert the interface topology order into a sequential arrangement and generate an identification sequence list.

[0175] Optionally, the identification module includes:

[0176] The address acquisition submodule is configured to scan the PCI device according to the new identification sequence list and obtain the address identifier of the PCI device;

[0177] The device information acquisition submodule is configured to obtain and output relevant information of the PCI device according to the address identifier;

[0178] The self-test submodule is configured to continue the self-test process of the next interface according to the identification sequence list.

[0179] Optionally, the device information acquisition submodule includes:

[0180] A first output unit is configured to obtain device type and manufacturer information of the PCI device according to the address identifier and output the information;

[0181] The second output unit is configured to access the configuration space of the PCI device and output the configuration information of the PCI device when the level of the PCI device meets the preset level condition.

[0182] Optionally, the port resource identifier includes: a bandwidth port identifier and an asset information port identifier.

[0183] Optionally, the address identifier is a BDF number, which includes a bus number, a device number, and a function number.

[0184] In an embodiment of the present application, a configuration file of the processor is obtained; the identification order of each interface is determined according to the configuration file, and an identification order list is generated; in response to an identification order modification request, the identification order of the target interface in the identification order list is modified in the basic input and output system, and the order of the port resource identifiers corresponding to the interfaces whose identification order has changed is adjusted to generate a new identification order list; the PCI devices connected to the processor are scanned according to the new identification order list. The present application provides a solution that can modify the PCI scan order through BIOS, without the need to modify the device plug-in method offline or to cut off the power supply. By modifying the scan order of the PCI device at the software level and synchronously modifying the order of the port resource identifiers corresponding to the interfaces whose identification order has changed, the correctness of the asset information corresponding to the PCI device is ensured. Since there is no need to worry about the performance of the hardware being affected by the identification order, the recognition order of the PCI device can be changed without affecting the performance.

[0185] 7 is a block diagram of an electronic device 600 according to some embodiments of the present application. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0186] 7 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0187] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 602 may include one or more modules to facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.

[0188] The memory 604 is used to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, multimedia, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0189] The power supply assembly 606 provides power to the various components of the electronic device 600. The power supply assembly 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0190] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of touch or slide actions, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0191] The audio component 610 is used to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), which is used to receive external audio signals when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0192] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.

[0193] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of components, such as the display and keypad of the electronic device 600. The sensor assembly 614 can also detect changes in the position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and temperature changes of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0194] The communication component 616 is used to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G or 5G), or a combination thereof. In some embodiments, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In some embodiments, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0195] In some embodiments, the electronic device 600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to implement a method for identifying PCI devices provided in an embodiment of the present application.

[0196] In some embodiments, a non-transitory computer-readable non-volatile storage medium including instructions is further provided, such as a memory 604 including instructions, which can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0197] FIG8 is a block diagram of an electronic device 700 according to some embodiments of the present application. For example, the electronic device 700 can be provided as a server. Referring to FIG8 , the electronic device 700 includes a processing component 722, which further includes one or more processors, and a memory resource represented by a memory 732 for storing instructions that can be executed by the processing component 722, such as an application. The application stored in the memory 732 can include one or more modules, each of which corresponds to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform a method for identifying a PCI device provided in an embodiment of the present application.

[0198] The electronic device 700 may further include a power supply component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input / output (I / O) interface 758. The electronic device 700 may operate based on an operating system stored in the memory 732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.

[0199] An embodiment of the present application also provides a computer program product, including a computer program, which implements a method for identifying a PCI device when the computer program is executed by a processor.

[0200] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0201] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for identifying a PCI device, characterized in that: The method comprises: Get the processor's configuration file; Determine the recognition order of each interface according to the configuration file, and generate a recognition order list; In response to the identification order modification request, modifying the identification order of the target interfaces in the identification order list in the basic input / output system, and adjusting the order of the port resource identifiers corresponding to the interfaces whose identification order has changed, to generate a new identification order list; The PCI devices connected to the processor are scanned according to the new identification order list.

2. The method according to claim 1, characterized in that The step of modifying the identification order of the target interfaces in the identification order list in the basic input / output system and adjusting the order of the port resource identifiers corresponding to the interfaces whose identification order has changed includes: After the basic input / output system modifies the recognition order of the target interface in the recognition order list, the adjusted interface recognition order is compared with the default recognition order list to determine whether the recognition order of any interface has been changed; When it is determined that the identification order of the interfaces has changed, the order of the port resource identifiers corresponding to the interfaces whose identification order has changed is adjusted.

3. The method according to claim 2, characterized in that When it is determined that the identification order of the interfaces has changed, adjusting the order of the port resource identifiers corresponding to the interfaces whose identification order has changed includes: Determine the target interface for identifying sequence changes; The order of the port resource identifiers is modified so that the order of the port resource identifiers corresponds to the modified identification order of the target interfaces.

4. The method according to claim 1, characterized in that: The step of modifying the identification order of the target interfaces in the identification order list in the basic input / output system in response to the identification order modification request includes: In the basic input and output system settings interface, a menu option for adjusting the recognition order is displayed; In response to a first input of the menu option, displaying a default recognition order list; In response to an identification order modification request for the identification order list, the identification order of the target interfaces in the identification order list is modified.

5. The method according to claim 4, characterized in that The identification sequence is remotely modified by the basic input and output system.

6. The method according to claim 4, characterized in that The first input is an input for entering the menu for adjusting the recognition order.

7. The method according to claim 4, characterized in that The modifying the identification order of the target interfaces in the identification order list in response to the identification order modification request for the identification order list comprises: In response to an identification order modification request for the identification order list, the identification order of any two interfaces in the identification order list is exchanged.

8. The method according to claim 1, characterized in that Determining the identification order of each interface according to the configuration file and generating an identification order list includes: Determine the model of the processor according to the configuration file; An identification sequence list is generated according to the processor model.

9. The method according to claim 8, characterized in that Determining the model of the processor according to the configuration file includes: Reading a processor model identifier from the configuration file; The model of the processor is determined according to the model identifier.

10. The method according to claim 8, characterized in that The step of generating an identification sequence list according to the processor model includes: Determining the interface topology order of the processor according to the model of the processor; The interface topology sequence is converted into a sequential arrangement to generate an identification sequence list.

11. The method according to claim 1, characterized in that: The step of scanning the PCI devices connected to the processor according to the new identification order list includes: Scanning PCI devices according to the new identification order list and obtaining address identifiers of the PCI devices; According to the address identifier, obtain relevant information of the PCI device and output it; According to the identification sequence list, the self-test process of the next interface is continued.

12. The method according to claim 11, characterized in that The obtaining and outputting the relevant information of the PCI device according to the address identifier includes: According to the address identifier, obtain the device type and manufacturer information of the PCI device and output them; When the level of the PCI device meets the preset level condition, the configuration space of the PCI device is accessed and the configuration information of the PCI device is output.

13. The method according to claim 12, characterized in that The method further includes: when the level of the PCI device does not meet the preset level condition, continuing the self-check procedure.

14. The method according to claim 12, characterized in that The configuration space is mapped to registers on each interface card.

15. The method according to claim 14, characterized in that The method further comprises: When the mainboard is powered on, the basic input and output system reads the configuration space of each interface card; The basic input and output system allocates resources required by each of the interface cards to obtain an allocation result; The basic input / output system writes the allocation result into the address of the configuration space corresponding to each of the interface cards, thereby completing the automatic configuration of each of the interface cards.

16. The method according to claim 2, characterized in that The port resource identifier includes: a bandwidth port identifier and an asset information port identifier.

17. The method according to claim 12, characterized in that The address identifier is a BDF number, and the BDF number includes a bus number, a device number, and a function number.

18. A device for identifying a PCI device, characterized in that: The device comprises: An acquisition module is configured to acquire a configuration file of a processor; A generating module, configured to determine the identification order of each interface according to the configuration file, and generate an identification order list; a modification module configured to modify the recognition order of the target interfaces in the recognition order list in the basic input / output system in response to the recognition order modification request, and to adjust the order of the port resource identifiers corresponding to the interfaces whose recognition order has changed, so as to generate a new recognition order list; The identification module is configured to scan the PCI devices connected to the processor according to the new identification order list.

19. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 17 are implemented.

20. A non-volatile readable storage medium, characterized in that: The non-volatile readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 17 are implemented.

Citation Information

Patent Citations

  • Method and device for disk management in ARM equipment and ARM equipment

    CN108008914A

  • Server BIOS startup item sequence sorting method and medium

    CN112905252A

  • Network port sorting method, device and equipment and storage medium

    CN113904930A

  • Hard disk sequence adjusting method, device and system, electronic equipment and storage medium

    CN115904251A

  • Method and device for identifying PCI (Peripheral Component Interconnect) equipment, electronic equipment and readable storage medium

    CN117348947A