Test methods and test board

By identifying the test mode and obtaining configuration information when the board under test is electrically connected to the fixture, bandwidth is directly allocated to the PCIe device, solving the problem of excessive BIOS allocation time and improving testing and output efficiency.

CN117909148BActive Publication Date: 2026-11-17XFUSION DIGITAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311704871.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-12
Publication Date
2026-11-17
Estimated Expiration
2043-12-12

AI Technical Summary

Technical Problem

During the production of server motherboards, the large number of PCIe devices in the fixture leads to excessively long BIOS bandwidth allocation time, which in turn results in excessively long BIOS boot time, reducing single-board testing efficiency and production efficiency.

Method used

By identifying the test mode when the board under test is electrically connected to the fixture, and obtaining the bandwidth of each PCIe interface connection in the functional test mode, the configuration information is directly obtained from the BIOS operation log. The bandwidth is allocated to each PCIe device according to the preset bandwidth, reducing the BIOS bandwidth allocation time and shortening the BIOS initialization progress.

Benefits of technology

This improved the efficiency of functional testing, shortened the time for FT testing, and thus accelerated the production efficiency of the tested boards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117909148B_ABST
    Figure CN117909148B_ABST
Patent Text Reader

Abstract

This application provides a testing method and a test board. The method determines the test mode of the test board when it is electrically connected to a fixture. The test board is equipped with a central processing unit and multiple high-speed serial computer expansion bus standard PCIe interfaces. These PCIe interfaces are used to electrically connect to multiple PCIe devices during testing. The fixture is used to fix a first circuit board on which multiple PCIe devices are inserted. If the test mode is a functional test mode, the bandwidth corresponding to the PCIe device connected to each PCIe interface is obtained, and functional testing is performed on the test board based on the bandwidth of each PCIe device. When the test mode of the test board is in functional test mode, this method allocates corresponding bandwidth to each PCIe device connected to each PCIe interface according to pre-acquired configuration information, which helps reduce the time spent by the BIOS allocating bandwidth and improves the efficiency of functional testing of the test board.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computing devices, and more particularly to a test method and a test board. Background Technology

[0002] Currently, the production process for server motherboards consists of the following steps: board fabrication, functional testing (FT), and board production.

[0003] A fixture can be used for Fourier Transmission (FT) testing of a single-board computer. In related technologies, it is assumed that fixture A has N high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCIe) devices, where N is a positive integer. Each PCIe device in fixture A can connect to one PCIe interface of the board under test. The FT testing process using fixture A is as follows: Start the Basic Input Output System (BIOS) on the board under test; read device information 1 of the PCIe device corresponding to the first PCIe interface in the board through the BIOS, and allocate bandwidth to the first PCIe interface based on device information 1; then read device information 2 of the PCIe device corresponding to the second PCIe interface, and allocate bandwidth to the second PCIe interface based on device information 2; ...; read device information N of the PCIe device corresponding to the Nth PCIe interface, and allocate bandwidth to the Nth PCIe interface based on device information N; restart the BIOS to establish a connection between the BIOS and each PCIe device in the fixture.

[0004] However, under this testing method, if there are too many PCIe devices in the fixture, it will cause the BIOS to spend too much time allocating bandwidth, which in turn will cause the BIOS to wait too long for the entire machine to boot, reducing the efficiency of single-board testing and thus reducing the output efficiency of single boards. Summary of the Invention

[0005] This application provides a testing method and a test board, which can improve testing efficiency.

[0006] In a first aspect, embodiments of this application provide a testing method, the method comprising:

[0007] With the test board electrically connected to the fixture, the test mode of the test board is determined. The test board is equipped with a central processing unit and multiple high-speed serial computer expansion bus standard PCIe interfaces. The multiple PCIe interfaces are used to electrically connect to multiple PCIe devices when the test board is being tested. The fixture is used to fix a first circuit board on which the multiple PCIe devices are inserted. If the test mode is a functional test mode, the bandwidth corresponding to the PCIe device connected to each PCIe interface is obtained, and the functional test is performed on the test board according to the bandwidth corresponding to each PCIe device.

[0008] In the above technical solution, the current test mode of the board under test can be identified. When the test mode of the board under test is identified as the functional test mode, the corresponding bandwidth is allocated to each PCIe device connected to the PCIe interface according to the pre-acquired configuration information. It is no longer necessary to obtain the device information of each PCIe device connected to the PCIe interface sequentially through the BIOS of the board under test, and to allocate bandwidth to each PCIe device according to the device information of each PCIe interface. This can reduce the time for BIOS to allocate bandwidth during the FT test, speed up the BIOS initialization process, shorten the FT test time, improve the FT test efficiency, and thus help speed up the production efficiency of the board under test.

[0009] In one possible implementation, the board under test is provided with a mode register; determining the test mode of the board under test includes: obtaining a register value from the mode register; and determining the test mode based on the register value.

[0010] In the above technical solution, the test mode of the board under test can be distinguished by the register value of the mode register, and different methods can be selected to allocate bandwidth to the PCIe devices connected to each PCIe interface on the board under test according to the current test mode, thereby improving the flexibility of bandwidth allocation.

[0011] In one possible implementation, the fixture is provided with a first interface, and the board under test is provided with a mode register interface, wherein, when the mode register interface is electrically connected to the first interface, the central processing unit obtains the register value from the mode register, and the register value is determined by the mode register interface through the level value of the first interface.

[0012] In the above technical solution, when the mode register interface is electrically connected to the first interface, the mode register interface in the board under test can determine the register value of the mode register through the level value of the first interface in the fixture, so as to distinguish the test mode of the board under test according to the register value, and select different methods to allocate bandwidth to the PCIe devices connected to each PCIe interface in the board under test according to the current test mode of the board under test, which is beneficial to improving the flexibility of bandwidth allocation.

[0013] In one possible implementation, the central processing unit is used to run a basic input / output system BIOS; the functional testing of the board under test includes: initializing the BIOS according to the bandwidth corresponding to each PCIe device, and performing functional testing on the board under test after the BIOS initialization is completed.

[0014] In the above technical solution, during functional testing, the central processing unit in the board under test can obtain the bandwidth corresponding to the PCIe devices connected to each PCIe interface, and initialize the BIOS based on the bandwidth of each PCIe device. This eliminates the need for the BIOS in the board under test to sequentially obtain the device information of each PCIe device connected to each PCIe interface and allocate bandwidth to each PCIe device based on the device information of each PCIe device. This helps to reduce the time for BIOS to allocate bandwidth, speed up the BIOS initialization process, shorten the FT test time, improve the FT test efficiency, and thus help to speed up the production efficiency of the board under test.

[0015] In one possible implementation, initializing the BIOS based on the bandwidth corresponding to each PCIe device specifically includes: determining at least one target PCIe interface among the plurality of PCIe interfaces, wherein the target PCIe interface is successfully connected to the corresponding target PCIe device in the first circuit board; obtaining the bandwidth corresponding to the target PCIe device connected to each target PCIe interface; and initializing the BIOS based on the bandwidth corresponding to each target PCIe device.

[0016] In the above technical solution, the connection status between each PCIe interface on the test board and the corresponding PCIe device on the first circuit board can be detected, at least one target PCIe interface can be identified among multiple PCIe interfaces, and the corresponding bandwidth can be allocated to the target PCIe device connected to each target PCIe interface to initialize the BIOS, which helps to ensure the accuracy of bandwidth allocation.

[0017] In one possible implementation, initializing the BIOS based on the bandwidth corresponding to each target PCIe device includes: the BIOS allocating bandwidth to each target PCIe device based on the bandwidth corresponding to each target PCIe device; the BIOS restarting and establishing a link with each target PCIe device to complete the initialization of the BIOS.

[0018] In the above technical solution, during functional testing, the central processing unit in the board under test can allocate bandwidth to each target PCIe device according to the bandwidth corresponding to each target PCIe device. This eliminates the need for the BIOS in the board under test to sequentially obtain the device information of each target PCIe device connected to each target PCIe interface and allocate bandwidth to each target PCIe device based on the device information. This reduces the time for BIOS to allocate bandwidth, speeds up BIOS initialization, shortens FT test time, improves FT test efficiency, and thus helps to accelerate the production efficiency of the board under test.

[0019] In one possible implementation, after completing the BIOS initialization, the step of performing functional testing on the board under test specifically includes: the central processing unit (CPU) distributing corresponding bandwidth resources to each target PCIe interface connected to the target PCIe device according to the bandwidth corresponding to each target PCIe device, and detecting whether the target PCIe device is operating normally.

[0020] In the above technical solution, after the BIOS initialization is completed, the central processing unit can allocate the corresponding bandwidth resources to each target PCIe interface connected to the target PCIe device according to the bandwidth corresponding to each target PCIe device, and detect whether the target PCIe device is running normally, so as to discover the problems of the board under test in time and perform maintenance on the board under test.

[0021] In one possible implementation, obtaining the bandwidth corresponding to the target PCIe device connected to each target PCIe interface further includes: obtaining the BIOS operation log of the BIOS; obtaining configuration information from the BIOS operation log; and obtaining the bandwidth corresponding to the target PCIe device connected to each target PCIe interface from the configuration information.

[0022] In the above technical solution, configuration information can be obtained from the BIOS operation log, and the bandwidth corresponding to the target PCIe device connected to each target PCIe interface can be determined according to the configuration information. It is no longer necessary to obtain the device information of each target PCIe device connected to each target PCIe interface sequentially through the BIOS of the board under test, and to allocate bandwidth to each target PCIe device according to the device information of each target PCIe device. This helps to reduce the time of BIOS bandwidth allocation, speed up the BIOS initialization process, shorten the FT test time, improve the FT test efficiency, and thus help to speed up the production efficiency of the board under test.

[0023] In one possible implementation, the central processing unit (CPU) is used to run the BIOS; if the test mode is a system test mode, the method further includes: the CPU obtaining corresponding device information from each PCIe device connected to each PCIe interface; the CPU allocating corresponding bandwidth to each PCIe device according to the device information of each PCIe device; the BIOS restarting and establishing a link with each PCIe device connected to the PCIe interface to complete the initialization of the BIOS.

[0024] In the above technical solution, the system test mode of the board under test can also be identified through the register value of the mode register. When performing system testing on the board under test, the PCIe devices connected to each PCIe interface may differ depending on user requirements. Therefore, in system test mode, it is necessary to obtain the device information corresponding to the PCIe device connected to each PCIe interface on the board under test through the BIOS, and allocate corresponding bandwidth to each PCIe device according to the device information. The BIOS is then restarted, and a connection is established with the PCIe device connected to each PCIe interface to complete BIOS initialization. After BIOS initialization is complete, system testing is performed on the board under test to facilitate timely detection and maintenance of any problems.

[0025] Secondly, embodiments of this application provide a central processing unit, the central processing unit comprising:

[0026] The determination module is used to determine the test mode of the test board when the test board is electrically connected to the fixture. The test board is provided with a central processing unit and multiple high-speed serial computer expansion bus standard PCIe interfaces. The multiple PCIe interfaces are used to electrically connect to multiple PCIe devices when the test board is being tested. The fixture is used to fix a first circuit board on which the multiple PCIe devices are inserted.

[0027] The acquisition module is used to acquire the bandwidth of each PCIe device connected to each PCIe interface if the test mode is a functional test mode.

[0028] The test module is used to perform functional tests on the board under test based on the bandwidth corresponding to each PCIe device.

[0029] In the above technical solution, the current test mode of the board under test can be identified. When the test mode of the board under test is identified as the functional test mode, the corresponding bandwidth is allocated to each PCIe device connected to the PCIe interface according to the pre-acquired configuration information. It is no longer necessary to obtain the device information of each PCIe device connected to the PCIe interface sequentially through the BIOS of the board under test, and to allocate bandwidth to each PCIe device according to the device information of each PCIe interface. This can reduce the time for BIOS to allocate bandwidth during the FT test, speed up the BIOS initialization process, shorten the FT test time, improve the FT test efficiency, and thus help speed up the production efficiency of the board under test.

[0030] In one possible implementation, the board under test is provided with a mode register; the determining module is specifically used to: obtain a register value from the mode register; and determine the test mode based on the register value.

[0031] In the above technical solution, the test mode of the board under test can be distinguished by the register value of the mode register, and different methods can be selected to allocate bandwidth to the PCIe devices connected to each PCIe interface on the board under test according to the current test mode, thereby improving the flexibility of bandwidth allocation.

[0032] In one possible implementation, the fixture is provided with a first interface, and the board under test is provided with a mode register interface, wherein, when the mode register interface is electrically connected to the first interface, the central processing unit obtains the register value from the mode register, and the register value is determined by the mode register interface through the level value of the first interface.

[0033] In the above technical solution, when the mode register interface is electrically connected to the first interface, the mode register interface in the board under test can determine the register value of the mode register through the level value of the first interface in the fixture, so as to distinguish the test mode of the board under test according to the register value, and select different methods to allocate bandwidth to the PCIe devices connected to each PCIe interface in the board under test according to the current test mode of the board under test, which is beneficial to improving the flexibility of bandwidth allocation.

[0034] In one possible implementation, the central processing unit is used to run the basic input / output system BIOS; the test module is specifically used to: initialize the BIOS according to the bandwidth corresponding to each PCIe device, and perform functional tests on the board under test after the BIOS initialization is completed.

[0035] In the above technical solution, during functional testing, the central processing unit in the board under test can obtain the bandwidth corresponding to the PCIe devices connected to each PCIe interface, and initialize the BIOS based on the bandwidth of each PCIe device. This eliminates the need for the BIOS in the board under test to sequentially obtain the device information of each PCIe device connected to each PCIe interface and allocate bandwidth to each PCIe device based on the device information of each PCIe device. This helps to reduce the time for BIOS to allocate bandwidth, speed up the BIOS initialization process, shorten the FT test time, improve the FT test efficiency, and thus help to speed up the production efficiency of the board under test.

[0036] In one possible implementation, the test module is further configured to: determine at least one target PCIe interface among the plurality of PCIe interfaces, wherein the target PCIe interface is successfully connected to a corresponding target PCIe device in the first circuit board; obtain the bandwidth corresponding to the target PCIe device connected to each target PCIe interface; and initialize the BIOS according to the bandwidth corresponding to each target PCIe device.

[0037] In the above technical solution, the connection status between each PCIe interface on the test board and the corresponding PCIe device on the first circuit board can be detected, at least one target PCIe interface can be identified among multiple PCIe interfaces, and the corresponding bandwidth can be allocated to the target PCIe device connected to each target PCIe interface to initialize the BIOS, which helps to ensure the accuracy of bandwidth allocation.

[0038] In one possible implementation, the test module is further configured to: allocate bandwidth to each target PCIe device according to the bandwidth corresponding to each target PCIe device; and restart the BIOS and establish a connection with each target PCIe device to complete the initialization of the BIOS.

[0039] In the above technical solution, during functional testing, the central processing unit in the board under test can allocate bandwidth to each target PCIe device according to the bandwidth corresponding to each target PCIe device. This eliminates the need for the BIOS in the board under test to sequentially obtain the device information of each target PCIe device connected to each target PCIe interface and allocate bandwidth to each target PCIe device based on the device information. This reduces the time for BIOS to allocate bandwidth, speeds up BIOS initialization, shortens FT test time, improves FT test efficiency, and thus helps to accelerate the production efficiency of the board under test.

[0040] In one possible implementation, the test module is further configured to: the central processing unit distributes corresponding bandwidth resources to each target PCIe interface connected to the target PCIe device according to the bandwidth corresponding to each target PCIe device, and detects whether the target PCIe device is operating normally.

[0041] In the above technical solution, after the BIOS initialization is completed, the central processing unit can allocate the corresponding bandwidth resources to each target PCIe interface connected to the target PCIe device according to the bandwidth corresponding to each target PCIe device, and detect whether the target PCIe device is running normally, so as to discover the problems of the board under test in time and perform maintenance on the board under test.

[0042] In one possible implementation, the acquisition module is specifically used to: acquire the BIOS operation log of the BIOS; acquire the configuration information from the BIOS operation log; and acquire the bandwidth corresponding to the target PCIe device connected to each target PCIe interface from the configuration information.

[0043] In the above technical solution, configuration information can be obtained from the BIOS operation log, and the bandwidth corresponding to the target PCIe device connected to each target PCIe interface can be determined according to the configuration information. It is no longer necessary to obtain the device information of each target PCIe device connected to each target PCIe interface sequentially through the BIOS of the board under test, and to allocate bandwidth to each target PCIe device according to the device information of each target PCIe device. This helps to reduce the time of BIOS bandwidth allocation, speed up the BIOS initialization process, shorten the FT test time, improve the FT test efficiency, and thus help to speed up the production efficiency of the board under test.

[0044] In one possible implementation, the central processing unit (CPU) is used to run the BIOS; if the test mode is a system test mode, the CPU further includes an allocation module and an initialization module, wherein...

[0045] The acquisition module is also used to acquire corresponding device information from each PCIe device connected to each PCIe interface;

[0046] The allocation module is used to allocate corresponding bandwidth to each PCIe device according to the device information of each PCIe device.

[0047] The initialization module is used to restart the BIOS and establish a link with each PCIe device connected to the PCIe interface to complete the initialization of the BIOS.

[0048] In the above technical solution, the system test mode of the board under test can also be identified through the register value of the mode register. When performing system testing on the board under test, the PCIe devices connected to each PCIe interface may differ depending on user requirements. Therefore, in system test mode, it is necessary to obtain the device information corresponding to the PCIe device connected to each PCIe interface on the board under test through the BIOS, and allocate corresponding bandwidth to each PCIe device according to the device information. The BIOS is then restarted, and a connection is established with the PCIe device connected to each PCIe interface to complete BIOS initialization. After BIOS initialization is complete, system testing is performed on the board under test to facilitate timely detection and maintenance of any problems.

[0049] Thirdly, embodiments of this application provide a test board, including a central processing unit (CPU) and multiple high-speed serial computer expansion bus standard PCIe interfaces. The CPU is connected to each of the PCIe interfaces and is used to run a basic input / output system BIOS.

[0050] The plurality of PCIe interfaces are used to electrically connect to a plurality of PCIe devices respectively when testing the board under test;

[0051] The central processing unit is used to perform the method as described in any of the first aspects.

[0052] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions that, when executed by a computer, implement the method as described in any one of the first aspects.

[0053] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the method described in any of the first aspects.

[0054] This application provides a testing method and a test board. The method determines the test mode of the test board when it is electrically connected to a fixture. When the test mode is functional mode, configuration information is obtained from the BIOS operation log. This configuration information may include the PCIe devices connected to each PCIe interface and the preset bandwidth of each PCIe device. Based on the preset bandwidth of each PCIe device in the configuration information, corresponding bandwidth is allocated to each PCIe device. The BIOS is initialized based on the bandwidth corresponding to each PCIe device. After the BIOS initialization of the test board is completed, an FT test can be performed on the test board. This FT test can be used to verify whether the PCIe interfaces on the test board function normally and whether the CPU can allocate corresponding bandwidth resources to the PCIe devices on the first circuit board. This method can identify the current test mode of the board under test. When the test mode of the board under test is identified as functional mode, the corresponding bandwidth is allocated to each PCIe device connected to the PCIe interface according to the pre-acquired configuration information. It is no longer necessary to obtain the device information of each PCIe device connected to the PCIe interface sequentially through the BIOS of the board under test, and to allocate bandwidth to each PCIe device according to the device information of each PCIe device. This can reduce the time for BIOS to allocate bandwidth during the FT test, speed up the BIOS initialization process, shorten the FT test time, improve the FT test efficiency, and thus help speed up the production efficiency of the board under test. Attached Figure Description

[0055] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0056] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of this application;

[0057] Figure 2 This is a schematic diagram illustrating another application scenario provided by an embodiment of this application;

[0058] Figure 3 A schematic diagram of the BIOS initialization process of the FT test phase of a test board in a related art, provided as an embodiment of this application;

[0059] Figure 4 Flowchart of the testing method provided in the embodiments of this application Figure 1 ;

[0060] Figure 5 Flowchart of the testing method provided in the embodiments of this application Figure 2 ;

[0061] Figure 6 A schematic diagram of the structure of a central processing unit provided in an embodiment of this application;

[0062] Figure 7 This is a schematic diagram of another central processing unit provided in an embodiment of this application;

[0063] Figure 8 This is a schematic diagram of the hardware structure of a test board provided in an embodiment of this application. Detailed Implementation

[0064] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with those of this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this application as detailed in the appended claims.

[0065] To facilitate understanding, let's first combine... Figure 1 The application scenarios involved in the embodiments of this application will be described.

[0066] Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this application. Please refer to [link / reference]. Figure 1 It includes the board under test, the first circuit board, and the fixture.

[0067] The board under test may include a central processing unit (CPU), multiple PCIe interfaces and mode register interfaces, with the CPU electrically connected to each PCIe interface and mode register.

[0068] A BIOS may run within a central processing unit (CPU). This BIOS is used to configure hardware and prepare for the operation of the operating system (OS). The BIOS may include functions such as controlling the power-on and self-test of the board under test (BUT), initializing the CPU and memory on the BUT, detecting input / output devices and bootable devices on the BUT, and booting the OS. For example, the BUT could be a server motherboard.

[0069] The fixture can be used to provide a signal to the board under test (BUT) so that the BUT determines that an Fourier Transform (FT) test will be performed based on the signal. The fixture may be provided with a first interface that can be electrically connected to the mode register interface of the BUT; when the mode register interface is electrically connected to the first interface, the central processing unit (CPU) retrieves a register value from the mode register, the register value being determined by the level value of the mode register interface through the first interface.

[0070] For example, in the FT test scenario, the fixture can trigger a control signal to make the output level of the first interface and the mode register interface high. When the CPU detects that the output level of the mode register interface is high, it sets the register value of the mode register to 1. In one implementation, the first interface can also be connected to a high-level signal. When the mode register interface is electrically connected to the first interface, the mode register interface is also set to high level, so that the register value of the mode register is set to 1.

[0071] The fixture can also be used to secure the first circuit board. The first circuit board may include multiple PCIe slots, each of which can be electrically connected to a corresponding PCIe interface on the board under test. Each PCIe slot can be used to insert a PCIe device, which can be a standalone network card, graphics card, sound card, NVMe (Non-Volatile Memory Express) card, etc. For example, the PCIe device can be an Open Compute Project (OCP) network card, a Non-Volatile Memory Express (NVMe) hard drive, or a Solid State Disk (SSD), etc.

[0072] In one possible implementation, the clamp can be used to fix multiple first circuit boards, each of which may include at least one PCIe slot. The PCIe devices inserted into the PCIe slots of the same circuit board are of the same type; for example, all PCIe devices inserted into the same first circuit board may be OCP network cards. For ease of understanding, the following will be combined with... Figure 2 The test scenario for a fixture with multiple first circuit boards fixed to it and the test board is described.

[0073] Figure 2 This is a schematic diagram illustrating another application scenario provided by an embodiment of this application. Please refer to... Figure 2 It includes the test board, the fixture, the first circuit board 1 and the first circuit board 2.

[0074] The board under test may include a CPU, n first PCIe interfaces, m second PCIe interfaces, and a mode register interface, where n and m are positive integers. The CPU is electrically connected to each first PCIe interface, each second PCIe interface, and the mode register interface, and the CPU may run a BIOS.

[0075] The fixture may include a first interface, which can be used to provide a signal to the board under test (BUT) so that the BUT determines that an FT test is to be performed based on the signal. In the FT test scenario, the first interface on the first circuit board can be electrically connected to the mode register interface of the BUT.

[0076] The fixture can be used to fix the first circuit board 1 and the first circuit board 2. The first circuit board 1 may include n first PCIe slots, each of which can be electrically connected to the corresponding first PCIe interface on the board under test. Each first PCIe slot can be used to install an NVMe hard drive. The NVMe hard drives installed in different first PCIe slots may have the same or different bandwidths.

[0077] The first circuit board 2 may include m second PCIe slots, each of which can be electrically connected to a corresponding second PCIe interface on the board under test. Each second PCIe slot can be used to install an OCP network card, and the bandwidth of the OCP network cards installed in different second PCIe slots may be the same or different.

[0078] For example, the bandwidth corresponding to OCP network card 1 and OCP network card 2 can be ×8, and the bandwidth corresponding to OCP network card 3 can be ×16.

[0079] It should be noted that the clamp can be used to fix at least one first circuit board. This embodiment describes the number of first circuit boards as two, but in other embodiments, the number of first circuit boards can be three, four, five, ... . This embodiment does not limit the number of first circuit boards. Furthermore, in this embodiment, the number of PCIe slots on each first circuit board can also be at least one; this embodiment does not limit the number of PCIe slots on the first circuit board.

[0080] During the FT test phase of the board under test, the BIOS of the board under test needs to be initialized first. FT testing can only be performed after the BIOS initialization is complete. Below, we will combine... Figure 3 This paper describes the BIOS initialization process of the FT test phase of the test board in related technologies.

[0081] Figure 3 This is a schematic diagram illustrating the BIOS initialization process during the FT test phase of a test board in a related art, as provided in an embodiment of this application. Please refer to... Figure 3 The process specifically includes:

[0082] S301. Start the BIOS on the board under test.

[0083] The board under test has N PCIe slots, where N is a positive integer.

[0084] S302. The BIOS identifies the i-th PCIe device connected to the i-th PCIe interface of the board under test and obtains the device information of the i-th PCIe device.

[0085] Please see Figure 1 During the FT test phase of the board under test, each PCIe interface of the board under test can be electrically connected to the corresponding PCIe slot in the first circuit board, and each PCIe slot can be connected to a PCIe device. The i-th PCIe device is the PCIe device connected to the i-th PCIe interface through the corresponding PCIe slot. For example, the PCIe device can be a PCIe network card or a PCIe graphics card, etc.

[0086] Device information can be used to determine the bandwidth corresponding to a PCIe device. For example, device information may include the model of the PCIe device and the bandwidth corresponding to the PCIe device.

[0087] S303: The BIOS allocates the corresponding bandwidth to the i-th PCIe device based on the device information of the i-th PCIe device.

[0088] S304. Determine if i is less than N.

[0089] If so, then execute S305;

[0090] If not, then execute S306.

[0091] S305, Update i to i+1.

[0092] After S305, return to execute S303.

[0093] S306. The BIOS restarts and establishes a link with each PCIe device connected to the PCIe interface to complete the BIOS initialization.

[0094] After the BIOS initialization is complete, the board under test can be subjected to FT testing using a fixture and a first circuit board.

[0095] exist Figure 3During the BIOS initialization process shown, the BIOS needs to sequentially obtain device information for each PCIe device connected to a PCIe interface and allocate bandwidth to each device based on this information. However, in this way, if there are many PCIe interfaces in the BIOS, the time required for the BIOS to identify each connected PCIe device and allocate bandwidth to each device will be too long. This results in excessive BIOS initialization waiting time, which in turn leads to a longer FT test time for the board under test, resulting in lower FT test efficiency.

[0096] In view of this, embodiments of this application provide a testing method to solve the problem that the FT test time of the board under test is long due to the excessive BIOS initialization waiting time, resulting in low FT test efficiency. The testing method provided in this application embodiment can determine the test mode of the board under test when it is electrically connected to the fixture; when the test mode is a functional test mode, configuration information is obtained from the BIOS operation log, which may include the PCIe devices connected to each PCIe interface and the preset bandwidth of each PCIe device; according to the preset bandwidth of each PCIe device in the configuration information, a corresponding bandwidth is allocated to each PCIe device; and the BIOS is initialized according to the bandwidth corresponding to each PCIe device. After the BIOS initialization of the board under test is completed, an FT test can be performed on the board under test. This FT test can be used to verify whether the PCIe interface on the board under test is functioning normally. For example, whether the PCIe interface can communicate normally with the PCIe device connected to it, and whether the CPU can allocate the corresponding bandwidth resources to the PCIe device on the first board. For example, the operation of the PCIe device on the first board can be used to determine whether the CPU can allocate the corresponding bandwidth resources to the PCIe device on the first board. If the PCIe device on the first board is operating normally, it means that the CPU's function of allocating the corresponding bandwidth resources to the PCIe device on the first board is normal; otherwise, it is abnormal. This method can identify the current test mode of the board under test. When the test mode of the board under test is identified as functional mode, the corresponding bandwidth is allocated to each PCIe device connected to the PCIe interface according to the pre-acquired configuration information. It is no longer necessary to obtain the device information of each PCIe device connected to the PCIe interface sequentially through the BIOS of the board under test, and to allocate bandwidth to each PCIe device according to the device information of each PCIe device. This can reduce the time for BIOS to allocate bandwidth during the FT test, speed up the BIOS initialization process, shorten the FT test time, improve the FT test efficiency, and thus help speed up the production efficiency of the board under test.

[0097] The technical solutions of the embodiments of this application will be described in detail below with specific examples. These specific examples can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0098] Figure 4 Flowchart of the testing method provided in the embodiments of this application Figure 1 Please see. Figure 4 The method may include:

[0099] The execution entity of this method can be Figure 1 The CPU in the test board can also be a test device installed within the CPU. The test device can be implemented through software or a combination of software and hardware.

[0100] S401. With the test board electrically connected to the fixture, determine the test mode of the test board.

[0101] The board under test can be equipped with a CPU and multiple PCIe interfaces. The multiple PCIe interfaces are used to electrically connect to multiple PCIe devices when testing the board under test. The fixture is used to fix the first circuit board, on which multiple PCIe devices are inserted.

[0102] The board under test may also include a mode register interface, and the fixture may include a first interface that can be electrically connected to the mode register interface on the board under test. When the mode register interface is electrically connected to the first interface, the central processing unit obtains a register value from the mode register, which can be determined by the mode register interface through the voltage level of the first interface.

[0103] For example, the board under test can be Figure 1 or Figure 2 The test board shown can be fitted with a fixture. Figure 1 or Figure 2 The fixture shown can have a first circuit board that can be Figure 1 or Figure 2 The first circuit board shown.

[0104] The test mode can be either functional (FT) test mode or system (ST) test mode.

[0105] Optionally, the board under test may have a mode register, which can be used to determine the test mode of the board under test. In one example, S401 may also include steps S4011 and S4012 as shown below:

[0106] S4011. Obtain the register value from the mode register.

[0107] The register values ​​stored in the mode register differ depending on the test mode. The corresponding register values ​​can be pre-set for each test mode.

[0108] For example, when the test mode is functional test mode, the register value can be a preset value, for example, the preset value can be 1; when the test mode is system test mode, the register value can be an initial value, for example, the preset value can be 0.

[0109] S4012. Determine the test mode based on the register value.

[0110] In one example, if the register value is a preset value, the test mode is determined to be a functional test mode; if the register value is an initial value, the test mode is determined to be a system test mode.

[0111] Understandably, after the board under test is separated from the fixture, the mode register interface is separated from the first interface, and the register value of the mode register can be initialized to the initial value.

[0112] For example, when the test mode is functional test mode, the register value can be 1; when the test mode is system test mode, the register value can be 0.

[0113] S402. If the test mode is the functional test mode, obtain the bandwidth corresponding to the PCIe device connected to each PCIe interface, and perform functional tests on the board under test according to the bandwidth corresponding to each PCIe device.

[0114] Optionally, the bandwidth corresponding to each PCIe device connected to a PCIe interface can be obtained in the following way: obtain the BIOS operation log of the BIOS; obtain the configuration information from the BIOS operation log, and obtain the bandwidth corresponding to each PCIe device connected to a PCIe interface from the configuration information.

[0115] For example, the BIOS operation log may include configuration information, and the BIOS operation log may also include the identifier of the board under test, the identifier of the PCIe interface on the board under test, the identifier of the first circuit board, and the identifier of the PCIe slot of each first circuit board and the identifier of the PCIe device inserted in each slot.

[0116] The configuration information may include the preset bandwidth corresponding to the PCIe devices connected to each PCIe interface. For example, the configuration information may be as shown in Table 1:

[0117] Table 1

[0118] PCIe interface identifier PCIe device identification Preset bandwidth PCIe interface 1 PCIe device 1 Bandwidth 1 PCIe interface 2 PCIe device 2 Bandwidth 2 …… …… …… PCIe interface PCIe devices Bandwidth n

[0119] The testing method provided in this application embodiment can determine the test mode of the test board in response to the connection between the test board and the fixture. When the test mode is a functional test mode, configuration information can be obtained from the BIOS operation log, and the preset bandwidth of each PCIe interface connected to the PCIe device can be determined according to the configuration information. Based on the preset bandwidth of each PCIe device, the corresponding bandwidth is allocated to each PCIe device, and the BIOS is initialized. This method can allocate the corresponding bandwidth to each PCIe interface connected to the PCIe device according to the pre-obtained configuration information when the test mode is identified as a functional test mode. It eliminates the need for the BIOS in the test board to sequentially request the device information of each PCIe interface connected to the first circuit board and allocate bandwidth to each PCIe interface based on the device information of each PCIe interface. This reduces the time for BIOS to allocate bandwidth during the functional test phase, speeds up the BIOS initialization process, shortens the functional test duration, and improves the efficiency of FT testing.

[0120] Figure 5 Flowchart of the testing method provided in the embodiments of this application Figure 2 Please see. Figure 5 The method specifically includes:

[0121] The execution entity of this method can be Figure 1 The CPU in the test board can also be a test device installed within the CPU. The test device can be implemented through software or a combination of software and hardware.

[0122] S501. With the test board electrically connected to the fixture, start the BIOS.

[0123] After confirming the electrical connection between the board under test and the fixture, the BIOS can be started by triggering the BIOS bootloader. This can be done automatically or manually by the tester.

[0124] S502, Obtain the register value from the mode register.

[0125] The BIOS can store preset instructions, which can be used to control the BIOS to read the register values ​​in the mode register after the BIOS is started, and to determine the test mode based on the register values.

[0126] S503. Determine whether the register value is the preset value.

[0127] In one possible implementation, the register value corresponding to the functional test mode can be a preset value, and the register value corresponding to the system test mode can be an initial value. The CPU can control the BIOS to determine whether the register value is a preset value in order to determine the test mode.

[0128] If so, then execute S504 to S509;

[0129] If not, then execute S510 to S512.

[0130] In functional test mode, the BIOS can be initialized according to the bandwidth of each PCIe device. The following section, in conjunction with steps S504 to S509, explains the process of initializing the BIOS when the test mode is functional test mode.

[0131] S504. Determine the test mode as the functional test mode, and identify at least one target PCIe interface among multiple PCIe interfaces.

[0132] The target PCIe interface has been successfully connected to the corresponding target PCIe device on the first circuit board.

[0133] The CPU can use the BIOS to identify whether each PCIe interface is successfully connected to the corresponding PCIe device.

[0134] For any given PCIe interface, if the CPU detects through the BIOS that the PCIe interface is successfully connected to the corresponding PCIe device, then the CPU designates the PCIe interface and the corresponding PCIe device as the target PCIe interface. If the CPU detects through the BIOS that the PCIe interface is not successfully connected to the corresponding PCIe device, the BIOS will generate an error message for that PCIe interface.

[0135] This error message is used to inform testers that the PCIe interface has failed to connect to the corresponding PCIe device.

[0136] In one example, the bandwidth corresponding to the target PCIe device connected to each target PCIe interface can be obtained by performing steps S505 and S506 as shown below.

[0137] S505, Obtain the BIOS operation log.

[0138] The test board can be configured with a preset storage space, from which the central processing unit can obtain the BIOS operation log.

[0139] S506. Obtain configuration information from the BIOS runtime log, and obtain the bandwidth corresponding to the target PCIe device connected to each target PCIe interface from the configuration information.

[0140] It should be understood that when the server model is different, the model of the board under test will also be different. For multiple boards under test of the same model, the first circuit board is the same when performing functional tests on boards of that model.

[0141] Before performing functional tests on multiple test boards of the same model, the device information of the PCIe devices connected to each PCIe interface of the test board of that model can be obtained in advance. Based on the device information of each PCIe device, the bandwidth corresponding to each PCIe device can be determined, and a BIOS operation log can be generated.

[0142] Since the device parameters (e.g., number, location, etc.) of the PCIe interfaces on the same type of test board are identical, the first circuit board is the same. Therefore, when performing functional tests on other test boards of the same type, the BIOS operation log of the BIOS in the test board that has already undergone FT testing and whose FT functional test was normal can be copied to the storage space of the test board to be tested. In this way, the CPU can obtain the BIOS operation log in the storage space, extract the configuration information from the BIOS operation log, and pre-lock the configuration information in the BIOS of each test board, so that the BIOS can read the configuration information after startup and determine the bandwidth of the PCIe devices connected to each PCIe interface of the test board based on the configuration information.

[0143] S507 and BIOS allocate bandwidth to each target PCIe device based on the bandwidth corresponding to each target PCIe device.

[0144] S508 restarts the BIOS and establishes a connection with each target PCIe device to complete the BIOS initialization.

[0145] After determining the bandwidth allocation for each target device, the BIOS can be restarted via the central processing unit.

[0146] After confirming that the BIOS has successfully established a connection with each target device, the BIOS initialization is completed. If the BIOS fails to establish a connection with any target PCIe device, an error message is displayed to inform the tester that the BIOS initialization has failed.

[0147] S509. After completing the BIOS initialization, perform functional tests on the board under test.

[0148] In one possible implementation, the central processing unit (CPU) allocates bandwidth resources to each target PCIe interface connected to the target PCIe device according to the bandwidth corresponding to each target PCIe device, and detects whether the target PCIe device is operating normally.

[0149] It should be understood that when testing the board under test, the test mode can be either functional test mode or system test mode.

[0150] In functional test mode, functional tests can be performed on the board under test. When performing functional tests on the board under test, multiple boards of the same model are typically tested using the same first circuit board. Therefore, the bandwidth corresponding to each PCIe interface on each board of the same model remains unchanged. A preset bandwidth can be allocated to each PCIe interface on each board of the same model, and the test can verify that the PCIe devices connected to each PCIe interface can communicate normally with the motherboard according to the allocated bandwidth.

[0151] In system test mode, system tests can be performed on the board under test. The following section, combining steps S510 to S512, explains the BIOS initialization process when the test mode is system test mode.

[0152] S510. Determine the test mode as system test mode, and obtain the corresponding device information from the PCIe devices connected to each PCIe interface.

[0153] The central processing unit can control the BIOS to sequentially identify each PCIe device connected to a PCIe interface and obtain the device information corresponding to that PCIe device.

[0154] Device information may include the bandwidth corresponding to the PCIe device, or it may include the device model of the PCIe device.

[0155] S511. Allocate corresponding bandwidth to each PCIe device based on the device information of each PCIe device.

[0156] If the device information includes the bandwidth of the PCIe devices, the BIOS can allocate bandwidth to each PCIe device based on the bandwidth of each PCIe device in the device information.

[0157] If the device information includes the PCIe device model, the BIOS can query the bandwidth corresponding to that PCIe device model and allocate the corresponding bandwidth to the PCIe device based on that bandwidth.

[0158] S512, BIOS restarts, and establishes links with each PCIe device connected to the PCIe interface to complete BIOS initialization.

[0159] After executing S512, system testing can be performed on the board under test.

[0160] When performing system testing on the test board, the PCIe devices connected to each PCIe interface may be different depending on the user's requirements. Therefore, it is necessary to obtain the device information corresponding to the PCIe device connected to each PCIe interface on the test board through the BIOS, and allocate the corresponding bandwidth to each PCIe device through the BIOS according to the device information of each PCIe device, and test whether each PCIe interface can communicate normally with the motherboard according to the allocated bandwidth.

[0161] The testing method provided in this application embodiment can read the register value in the mode register of the BIOS after BIOS startup. If the register value of the mode register is a preset value, the test mode of the board under test is determined to be the functional test mode, and the corresponding bandwidth is allocated to each PCIe device connected to the PCIe interface according to the pre-acquired configuration information. If the register value of the mode register is not a preset value, the test mode of the board under test is determined to be the system test mode, and the device information corresponding to each PCIe device connected to the PCIe interface is obtained, and the corresponding bandwidth is allocated to each PCIe device according to the device information. After allocating the corresponding bandwidth to each PCIe device, the BIOS is restarted, and a link is established with each target PCIe device connected to the target PCIe interface to complete the BIOS initialization. After the BIOS is initialized, the board under test can be subjected to functional testing or system testing using a fixture. This method can distinguish between the functional test stage and the system test stage by reading the register value of the mode register of the BIOS, and select different methods to allocate bandwidth to each PCIe device connected to the PCIe interface of the board under test according to the current test mode, thereby improving the flexibility of bandwidth allocation. During the functional testing phase, bandwidth is allocated to each PCIe device connected to a PCIe interface based on the pre-acquired configuration information. This eliminates the need for the BIOS on the board under test to sequentially obtain device information for each PCIe device connected to a PCIe interface from the first circuit board fixed on the fixture. This reduces the time for BIOS to allocate bandwidth, speeds up BIOS initialization, and helps to shorten the FT test duration and improve FT test efficiency.

[0162] Figure 6 A schematic diagram of a central processing unit (CPU) provided in an embodiment of this application. This CPU can be applied to a test board; please refer to [link / reference]. Figure 6 The central processing unit 10 may include:

[0163] The determination module 11 is used to determine the test mode of the test board when the test board is electrically connected to the fixture. The test board is provided with a central processing unit and multiple high-speed serial computer expansion bus standard PCIe interfaces. The multiple PCIe interfaces are used to be electrically connected to multiple PCIe devices when the test board is being tested. The fixture is used to fix a first circuit board on which the multiple PCIe devices are inserted.

[0164] The acquisition module 12 is used to acquire the bandwidth corresponding to each PCIe device connected to each PCIe interface if the test mode is a functional test mode.

[0165] Test module 13 is used to perform functional tests on the board under test according to the bandwidth corresponding to each PCIe device.

[0166] The central processing unit provided in this application embodiment can be used to execute the technical solutions shown in the above embodiments. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0167] In one possible implementation, the board under test is provided with a mode register; the determining module 11 is specifically used for:

[0168] Obtain the register value from the mode register;

[0169] If the register value is a preset value, then the test mode is determined to be the functional mode.

[0170] In one possible implementation, the fixture is provided with a first interface, and the board under test is provided with a mode register interface, wherein...

[0171] When the mode register interface is electrically connected to the first interface, the central processing unit obtains the register value from the mode register, and the register value is determined by the mode register interface through the level value of the first interface.

[0172] In one possible implementation, the central processing unit is used to run the Basic Input / Output System BIOS; the test module 13 is specifically used for:

[0173] The BIOS is initialized according to the bandwidth corresponding to each PCIe device, and functional tests are performed on the board under test after the BIOS initialization is completed.

[0174] In one possible implementation, the test module 13 is further used for:

[0175] At least one target PCIe interface is identified among the plurality of PCIe interfaces, and the target PCIe interface is successfully connected to the corresponding target PCIe device in the first circuit board.

[0176] Obtain the bandwidth corresponding to the target PCIe device connected to each target PCIe interface;

[0177] The BIOS is initialized based on the bandwidth corresponding to each target PCIe device.

[0178] In one possible implementation, the test module 13 is further used for:

[0179] The BIOS allocates bandwidth to each target PCIe device based on the bandwidth corresponding to each target PCIe device.

[0180] The BIOS restarts and establishes a link with each target PCIe device to complete the BIOS initialization.

[0181] In one possible implementation, the test module 13 is further used for:

[0182] According to the bandwidth corresponding to each target PCIe device, the corresponding bandwidth resources are distributed to each target PCIe device connected to the target PCIe interface, and the normal operation of the target PCIe device is detected.

[0183] In one possible implementation, the acquisition module 12 is specifically used for:

[0184] Obtain the BIOS runtime log;

[0185] The configuration information is obtained from the BIOS operation log, and the bandwidth corresponding to the target PCIe device connected to each target PCIe interface is obtained from the configuration information.

[0186] The central processing unit provided in this application embodiment can be used to execute the technical solutions shown in the above embodiments. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0187] Figure 7 This is a schematic diagram of another central processing unit provided in an embodiment of this application. Please refer to... Figure 7 ,exist Figure 6 Based on the structure of the central processing unit shown, the central processing unit is used to run the BIOS; if the test mode is a system test mode, the central processing unit 10 may further include an allocation module 14 and an initialization module 15, wherein:

[0188] The acquisition module 12 is also used to acquire corresponding device information from each PCIe device connected to each PCIe interface;

[0189] The allocation module 14 is used to allocate corresponding bandwidth to each PCIe device according to the device information of each PCIe device.

[0190] The initialization module 15 is used to restart the BIOS and establish a link with each PCIe device connected to the PCIe interface to complete the initialization of the BIOS.

[0191] The central processing unit provided in this application embodiment can be used to execute the technical solutions shown in the above embodiments. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0192] Figure 8 This is a schematic diagram of the hardware structure of a test board provided in an embodiment of this application. Please refer to... Figure 8 The board under test 20 may include: a central processing unit (CPU), multiple high-speed serial computer expansion bus standard PCIe interfaces, with the CPU connected to each PCIe interface. The CPU is used to run the Basic Input / Output System (BIOS).

[0193] Multiple PCIe interfaces are used to electrically connect to multiple PCIe devices when testing the board under test;

[0194] The central processing unit is used to execute the test methods shown in any of the above method embodiments. The implementation principle and technical effect are similar, and will not be described in detail here.

[0195] Optionally, the test board 20 may also be equipped with a mode register interface. For example, the hardware structure of the test board 20 may also be as follows: Figure 1 and Figure 2 As shown.

[0196] Optionally, the test board 20 may further include a memory, wherein the central processing unit and the memory can communicate; for example, the processor and the memory communicate via a communication bus, the memory being used to store computer execution instructions, and the processor being used to invoke the computer execution instructions in the memory to execute the test method shown in any of the above method embodiments.

[0197] Optionally, the board under test may also include a communication interface, which may include a transmitter and / or a receiver.

[0198] This application provides a computer-readable storage medium storing computer-executable instructions; the computer-executable instructions are used to implement the test method as described in any of the above embodiments.

[0199] This application provides a computer program product, which includes a computer program that, when executed, causes a computer to perform the testing method described in any of the above embodiments.

[0200] All or part of the steps in the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, it performs the steps of the above method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disk, and any combination thereof.

[0201] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable terminal device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable terminal device, generate instructions for implementing the flowchart. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0202] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable terminal device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0203] These computer program instructions can also be loaded onto a computer or other programmable terminal device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0204] Obviously, those skilled in the art can make various modifications and variations to the embodiments of this application without departing from the spirit and scope of the embodiments of this application. Therefore, if these modifications and variations to the embodiments of this application fall within the scope of the claims of this application and their equivalents, the embodiments of this application are also intended to include these modifications and variations.

[0205] In the embodiments of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. The term "or" and its variations can mean "and / or." In the embodiments of this application, the terms "first," "second," etc., are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. In the embodiments of this application, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0206] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the invention disclosed in the specification and in practice. The embodiments of this application are intended to cover any variations, uses, or adaptations of the embodiments of this application that follow the general principles of the embodiments of this application and include common knowledge or customary technical means in the art not disclosed in the embodiments of this application.

Claims

1. A testing method, characterized in that, The method includes: With the test board electrically connected to the fixture, the test mode of the test board is determined. The test board is provided with a central processing unit and multiple high-speed serial computer expansion bus standard PCIe interfaces. The multiple PCIe interfaces are used to electrically connect to multiple PCIe devices when the test board is being tested. The fixture is used to fix a first circuit board on which the multiple PCIe devices are inserted. If the test mode is the functional test mode, obtain the bandwidth corresponding to the PCIe device connected to each PCIe interface, and perform functional tests on the board under test according to the bandwidth corresponding to each PCIe device. The central processing unit is used to run the Basic Input / Output System (BIOS); the functional testing of the board under test includes: The BIOS is initialized according to the bandwidth corresponding to each PCIe device, and after the BIOS initialization is completed, the board under test is functionally tested. Obtain the bandwidth corresponding to the target PCIe device connected to each target PCIe interface, including: Obtain the BIOS runtime log; Obtain configuration information from the BIOS operation log, and obtain the bandwidth corresponding to the target PCIe device connected to each target PCIe interface from the configuration information; The central processing unit is used to run the BIOS; if the test mode is a system test mode, the method further includes: The central processing unit obtains the corresponding device information from each PCIe device connected to each PCIe interface; The central processing unit allocates corresponding bandwidth to each PCIe device based on the device information of each PCIe device. The BIOS restarts and establishes a link with each PCIe device connected to a PCIe interface to complete the BIOS initialization.

2. The method according to claim 1, characterized in that, The board under test is equipped with a mode register; Determining the test mode of the board under test includes: Obtain the register value from the mode register; The test mode is determined based on the register value.

3. The method according to claim 2, characterized in that, The fixture is provided with a first interface, and the board under test is provided with a mode register interface. When the mode register interface is electrically connected to the first interface, the central processing unit obtains the register value from the mode register, and the register value is determined by the mode register interface through the level value of the first interface.

4. The method according to claim 1, characterized in that, The step of initializing the BIOS based on the bandwidth corresponding to each PCIe device specifically includes: At least one target PCIe interface is identified among the plurality of PCIe interfaces, and the target PCIe interface is successfully connected to the corresponding target PCIe device in the first circuit board. Obtain the bandwidth corresponding to the target PCIe device connected to each target PCIe interface; The BIOS is initialized based on the bandwidth corresponding to each target PCIe device.

5. The method according to claim 4, characterized in that, The step of initializing the BIOS based on the bandwidth corresponding to each target PCIe device includes: The BIOS allocates bandwidth to each target PCIe device based on the bandwidth corresponding to each target PCIe device. The BIOS restarts and establishes a link with each target PCIe device to complete the BIOS initialization.

6. The method according to claim 5, characterized in that, After completing the BIOS initialization, the board under test is subjected to functional testing, which specifically includes: The central processing unit distributes the corresponding bandwidth resources to each target PCIe device connected to the target PCIe interface according to the bandwidth corresponding to each target PCIe device, and detects whether the target PCIe device is operating normally.

7. A test board, characterized in that, It includes a central processing unit (CPU), multiple high-speed serial computer expansion bus standard PCIe interfaces, the CPU being connected to each of the PCIe interfaces, and the CPU being used to run the Basic Input / Output System (BIOS). The plurality of PCIe interfaces are used to electrically connect to a plurality of PCIe devices respectively when testing the board under test; The central processing unit is used to perform the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • PCIE (Peripheral Component Interface Express) resource allocation method and device and medium

    CN116360995A

  • PCIE interface verification board and test system

    CN216388068U