PCIe equipment debugging method, system and device, equipment and medium

By setting up an AXI router in the BMC, collecting and using the data information between the AXI slave and the multiplexer and between the multiplexer and the AXI host, the PCIe equipment in the BMC chip is debugged, solving the existing technology problem. It solves the problem of slow debugging speed and achieves detailed data transmission status acquisition and rapid debugging.

CN118819983APending Publication Date: 2024-10-22SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411004195.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

The existing technology cannot accurately debug the PCIe interface between the server host and the BMC board, which affects the speed of BMC chip development and debugging.

Method used

By setting up an AXI router in the BMC, collect the total data information transmitted between the AXI slave and the multiplexer and the slave data information transmitted between the multiplexer and the AXI host, and use these data to debug the target PCIe device.

Benefits of technology

It achieves accurate debugging of PCIe devices in BMC chips and obtains detailed data transmission conditions to facilitate rapid and accurate device development and debugging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118819983A_ABST
    Figure CN118819983A_ABST
Patent Text Reader

Abstract

The invention discloses a PCIe equipment debugging method, system, device and equipment and a medium, and relates to the technical field of servers. First total data information transmitted between an AXI slave in an AXI router and a multiplexer is collected; acquiring first slave data information transmitted between a multiplexer in the AXI router and the AXI host; debugging the target PCIe device according to the first total data information and the first slave data information; wherein the AXI router is arranged in a BMC (Baseboard Management Controller); the AXI slave machine is connected with the PCIe slave machine in the BMC; and the AXI host is connected with the target PCIe equipment in the BMC. According to the method and the device, the bus data and the slave line data in the BMC chip can be accurately collected, so that the detailed data transmission condition in the BMC is obtained, and the target PCIe equipment in the BMC can be accurately debugged according to the first total data information and the first slave data information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and more specifically, to a PCIe device debugging method, system, device, equipment and medium. Background Art

[0002] PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) provides a high-speed, flexible and reliable connection method, provides a powerful external device interface for computer systems, and supports various data transmission requirements. BMC (Baseboard Management Controller) is a microcontroller integrated on the server motherboard, which can be used as a PCIe device for the server host. The PCIe interface can be connected to the server host, improving the transmission rate between the server host and the BMC, and providing a guarantee for the normal use of the BMC.

[0003] However, the interface between the server host's mainboard and the BMC board is not a standard PCIe interface, and a PCIe logic analyzer cannot be used between the two. Therefore, the PCIe devices in the BMC chip cannot be analyzed, which seriously affects the speed of BMC chip development and debugging.

[0004] In summary, how to accurately debug the PCIe device in the BMC chip is a problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0005] The purpose of this application is to provide a PCIe device debugging method, which can solve the technical problem of how to accurately debug the PCIe device in the BMC chip to a certain extent. This application also provides a PCIe device debugging system, device, electronic device and computer readable storage medium.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] A PCIe device debugging method, comprising:

[0008] Collecting first total data information transmitted between an AXI slave and a multiplexer in an AXI router;

[0009] Collecting first slave data information transmitted between the multiplexer in the AXI router and the AXI host;

[0010] Debugging the target PCIe device according to the first total data information and the first slave data information;

[0011] The AXI router is arranged in the BMC; the AXI slave is connected to the PCIe slave in the BMC; and the AXI host is connected to the target PCIe device in the BMC.

[0012] In an exemplary embodiment, obtaining target data information on a target AXI bus includes:

[0013] In response to monitoring that a valid signal and a ready signal on a read address channel on the target AXI bus are both valid, recording corresponding read address information on the read channel of the target AXI bus, the read address information including araddr, arburst, arid, arsize, and arlen;

[0014] Waiting for valid signals and ready signals on the read data channel of the target AXI bus;

[0015] In response to both a valid signal and a ready signal on the read data channel being valid, recording corresponding read data information on the read channel, the read data information including rdata and rlast;

[0016] In response to monitoring that a valid signal and a ready signal on a write address channel on the target AXI bus are both valid, recording corresponding write address information on the write channel of the target AXI bus, wherein the write address information includes awaddr, awburst, awid, awsize, and awlen;

[0017] In response to monitoring that a valid signal and a ready signal on a write data channel on the target AXI bus are both valid, recording corresponding write data information on the write data channel, the write data information including wdata, wid, wstrb, and wlast;

[0018] Waiting for a valid signal and a ready signal on the write response channel of the target AXI bus;

[0019] In response to both a valid signal and a ready signal on the write response channel being valid, recording corresponding write response data on the write response channel, wherein the write response data includes bresp;

[0020] taking the read address information, the read data information, the write address information, the write data information and the write response data as the target data information;

[0021] When the target AXI bus is located between the AXI slave and the multiplexer, the target data information is the first total data information; when the target AXI bus is located between the multiplexer and the AXI master, the target data information is the first slave data information.

[0022] In an exemplary embodiment, the acquiring target data information on the target AXI bus further includes:

[0023] At the rising edge of the clock, detect whether there is a channel on the target AXI bus with both valid signals and ready signals being valid at the same time;

[0024] If yes, the target data information of the target AXI bus at the rising edge of the clock is recorded.

[0025] In an exemplary embodiment, the acquiring target data information on the target AXI bus further includes:

[0026] At the rising edge of the clock, detect whether there is a channel on the target AXI bus with both valid signals and ready signals being valid at the same time;

[0027] If yes, the clock cycle is recorded, and the target data information of the target AXI bus in the clock cycle is recorded, where the clock cycle includes the cycle at which the rising edge of the clock is located.

[0028] In an exemplary embodiment, before collecting the first total data information transmitted between the AXI slave and the multiplexer in the AXI router, the method further includes:

[0029] Intercepting the request sent by the AXI host;

[0030] Sending protocol response information corresponding to the request to the AXI host;

[0031] Acquire injection information, where the injection information includes an operation type and operation information;

[0032] The data on the AXI bus is generated and sent according to the injection information.

[0033] In an exemplary embodiment, debugging the target PCIe device according to the first total data information and the first slave data information includes:

[0034] Determining a target operation of the target PCIe device;

[0035] Parsing the first total data information and the first sub-data information to obtain the target address information and the target data information corresponding to the target operation;

[0036] Analyzing the target address information to estimate a first data volume included in the target data information;

[0037] Determining a second data amount included in the target data information;

[0038] Detecting whether the first data amount is consistent with the second data amount, and if not, generating a debugging result indicating that the target PCIe device is abnormal;

[0039] When the target operation is a read operation, the target address information includes read address information, and the target data information includes read data information; when the target operation is a write operation, the target address information includes write address information, and the target data information includes write data information.

[0040] A PCIe device debugging system, comprising:

[0041] A first acquisition module, used for acquiring first total data information transmitted between the AXI slave and the multiplexer in the AXI router;

[0042] A second acquisition module, used for acquiring first slave data information transmitted between the multiplexer in the AXI router and the AXI host;

[0043] A first debugging module, configured to debug a target PCIe device according to the first total data information and the first slave data information;

[0044] The AXI router is arranged in the BMC; the AXI slave is connected to the PCIe slave in the BMC; and the AXI host is connected to the target PCIe device in the BMC.

[0045] A PCIe debugging device, comprising:

[0046] a first AXI monitor connected between the AXI slave and the multiplexer in the AXI router, and configured to collect first total data information transmitted between the AXI slave and the multiplexer;

[0047] a second AXI monitor connected between the multiplexer in the AXI router and a corresponding AXI host, and configured to collect first slave data information transmitted between the multiplexer and the AXI host;

[0048] a debugger connected to the first AXI monitor and the second AXI monitor respectively, for debugging a target PCIe device according to the first total data information and the first slave data information;

[0049] The AXI router is arranged in the BMC; the AXI slave is connected to the PCIe slave in the BMC; and the AXI host is connected to the target PCIe device in the BMC.

[0050] An electronic device, comprising:

[0051] Memory for storing computer programs;

[0052] A processor is used to implement the steps of any of the above PCIe device debugging methods when executing the computer program.

[0053] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above PCIe device debugging methods are implemented.

[0054] The present application provides a PCIe device debugging method, which collects the first total data information transmitted between the AXI slave and the multiplexer in the AXI router; collects the first slave data information transmitted between the multiplexer and the AXI host in the AXI router; debugs the target PCIe device according to the first total data information and the first slave data information; wherein the AXI router is set in the BMC; the AXI slave is connected to the PCIe slave in the BMC; the AXI host is connected to the target PCIe device in the BMC. The present application can collect the first total data information to clarify the bus data transmitted between the AXI slave and the multiplexer in the AXI router, and can collect the first slave data information to clarify the slave line data transmitted between the multiplexer and the AXI host in the AXI router, so as to accurately collect the bus data and slave line data in the BMC chip, so as to know the detailed data transmission situation in the BMC, and then accurately debug the target PCIe device in the BMC according to the first total data information and the first slave data information. The PCIe device debugging system, apparatus, electronic device and computer-readable storage medium provided in this application also solve corresponding technical problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0056] Figure 1 A flowchart of a PCie device debugging method provided in an embodiment of the present application;

[0057] Figure 2 This is a schematic diagram of the architecture between the BMC and the server in this application;

[0058] Figure 3 It is a schematic diagram of the structure of the AXI router;

[0059] Figure 4 It is a schematic diagram for obtaining the read channel data on the target AXI bus;

[0060] Figure 5 A schematic diagram for obtaining write channel data on the target AXI bus;

[0061] Figure 6 A flowchart to preserve the sequential relationship between data and its operations;

[0062] Figure 7 A flowchart to preserve the timing relationship of data and operations;

[0063] Figure 8 A schematic diagram of the structure of a PCIe device debugging system provided in an embodiment of the present application;

[0064] Fig. 9 A schematic diagram of the structure of a PCIe debugging device provided in an embodiment of the present application;

[0065] Fig.10 A schematic diagram of the structure of the PCIe debugging device provided by the present application in practical applications;

[0066] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0067] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0069] See also Figure 1 , Figure 1 A flowchart of a PCie device debugging method provided in an embodiment of the present application.

[0070] A PCIe device debugging method provided in an embodiment of the present application may include the following steps:

[0071] Step S101: collecting first total data information transmitted between an AXI slave and a multiplexer in an AXI router.

[0072] Step S102: collecting first slave data information transmitted between the multiplexer in the AXI router and the AXI host.

[0073] In practical applications, the first total data information transmitted between the AXI slave and the multiplexer in the AXI router can be collected to reflect the bus data transmitted in the BMC with the help of the first total data information; the first slave data information transmitted between the multiplexer and the AXI host in the AXI router can be collected to reflect the specific slave line data in the BMC with the help of the first slave data information; wherein, the content of the first total data information and the first slave data information can be flexibly determined according to the application scenario.

[0074] Step S103: Debugging the target PCIe device according to the first total data information and the first slave data information; wherein the AXI router is set in the BMC; the AXI slave is connected to the PCIe slave in the BMC; and the AXI host is connected to the target PCIe device in the BMC.

[0075] In practical applications, after the first total data information and the first slave data information are collected, the target PCIe device can be debugged according to the first total data information and the first slave data information.

[0076] It should be noted that the architecture between the BMC and the server in this application can be as follows: Figure 2 As shown, the server host has a PCIe RC, i.e., a PCIe master device, which is used to initiate read and write requests. The baseboard management controller contains a PCIe EP, i.e., a PCIe slave device, which receives read and write requests sent by the master device and then sends them to each PCIe device. In the baseboard management controller, the AXI bus from the PCIe EP is sent to different PCIe devices through an AXI router. In this application, the structure of the AXI router is as follows Figure 3 As shown in the figure, the AXI router includes an AXI Slave, which receives the AXI information sent by the PCIe slave, sends the AXI information for accessing different PCIe devices to different AXI Masters through the Addr MUX, and finally sends it to the corresponding PCIe device.

[0077] In actual applications, in the process of obtaining target data information on the target AXI bus, such as Figure 4 and Figure 5As shown, in response to monitoring that the valid signal and the ready signal on the read address channel of the target AXI bus are both valid, the corresponding read address information on the read channel of the target AXI bus can be recorded, and the read address information includes araddr, arburst, arid, arsize, and arlen; wait for the valid signal and the ready signal on the read data channel of the target AXI bus; in response to the valid signal and the ready signal on the read data channel being both valid, record the corresponding read data information on the read channel, and the read data information includes rdata and rlast; in response to monitoring that the valid signal and the ready signal on the write address channel of the target AXI bus are both valid, record the corresponding write address information on the write channel of the target AXI bus, and the write address information includes awaddr, awburst, awid, awsize, awlen; in response to monitoring that the valid signal and the ready signal on the write data channel of the target AXI bus are both valid, record the corresponding write data information on the write data channel, and the write data information includes wdata, wid, wstrb, and wlast; wait for the valid signal and the ready signal on the write response channel of the target AXI bus; in response to the valid signal and the ready signal on the write response channel being both valid, record the corresponding write response data on the write response channel, and the write response data includes bresp; use the read address information, the read data information, the write address information, the write data information, and the write response data as the target data information; wherein, when the target AXI bus is located between the AXI slave and the multiplexer, the target data information is the first total data information; when the target AXI bus is located between the multiplexer and the AXI host, the target data information is the first slave data information.

[0078] From this implementation process, it can be seen that when the valid signal and the ready signal on the read address channel of the target AXI bus are both valid, the application records the corresponding read address information on the read channel of the target AXI bus, and the read address information includes araddr, arburst, arid, arsize, and arlen, so as to accurately record the read address data on the read channel of the target AXI bus with the help of the read address information; when the valid signal and the ready signal on the read data channel are both valid, the corresponding read data information on the read channel is recorded, and the read data information includes rdata and rlast, so as to accurately record the read data transmitted by the read channel with the help of the read data information; when the valid signal and the ready signal on the write address channel of the target AXI bus are both valid, the corresponding write address information on the write channel of the target AXI bus is recorded, and the write address information includes awaddr, awburst st, awid, awsize, and awlen are used to accurately record the write address data on the write channel through the write address information; when it is monitored that the valid signal and the ready signal on the write data channel on the target AXI bus are both valid, the corresponding write data information on the write data channel is recorded, and the write data information includes wdata, wid, wstrb, and wlast, so as to accurately record the write data transmitted by the write channel with the help of the write data information; when the valid signal and the ready signal on the write response channel are both valid, the corresponding write response data on the write response channel is recorded, and the write response data includes bresp, so as to accurately record the response data transmitted by the write response channel with the help of the write response data; finally, if the read address information, read data information, write address information, write data information, and write response data are used as the target data information, the read and write data transmitted by the target AXI bus can be accurately and comprehensively counted. When the target AXI bus is located between the AXI slave and the multiplexer, the target data information is the first total data information; when the target AXI bus is located between the multiplexer and the AXI host, the target data information is the first slave data information. In other words, the first total data information and the first slave data information can be accurately and comprehensively counted.

[0079] In a specific application scenario, in the process of acquiring the target data information on the target AXI bus, it is also possible to detect whether there is a channel on the target AXI bus with both valid and ready signals at the rising edge of the clock; if so, the target data information of the target AXI bus at the rising edge of the clock is recorded. Figure 6As shown, at the rising edge of the clock, it is detected whether there is a moment when the valid signal and the ready signal on at least one channel are valid at the same time, and then all the signals on the AXI channel at this moment are stored in the FIFO. If neither the valid nor the ready are valid at this moment, the next clock is entered for judgment. Finally, the data in the FIFO is stored uniformly to retain the order of data and its operations, so as to facilitate the subsequent application of the order of data and its operations to debug the target PCIe device.

[0080] In a specific application scenario, in the process of acquiring the target data information on the target AXI bus, it is also possible to detect whether there is a channel on the target AXI bus with both valid and ready signals at the rising edge of the clock; if so, the clock cycle is recorded, and the target data information of the target AXI bus within the clock cycle is recorded. The clock cycle includes the cycle at the rising edge of the clock. At this time, the data acquisition process is as follows: Figure 7 As shown, it is detected at the rising edge of the clock whether there is a channel with valid and ready at the same time. If not, 0 is written in the timing FIFO and the detection continues to the next rising edge of the clock; if it is detected at the rising edge of the clock that valid and ready of at least one channel are valid at the same time, the data in the clock cycle is written into the FIFO, and 1 is written in the timing FIFO, and the detection continues to the next rising edge of the clock; finally, the data in the FIFO is stored uniformly to retain the timing relationship between the data and the operation, so as to facilitate the subsequent debugging of the target PCIe device according to the timing relationship between the data and the operation.

[0081] In actual applications, before collecting the first total data information transmitted between the AXI slave and the multiplexer in the AXI router, the request sent by the AXI host can also be intercepted; the protocol response information corresponding to the request is sent to the AXI host; the injection information is obtained, and the injection information includes the operation type, operation information, etc. The operation information may include burst type, size, len and other information; data on the AXI bus is generated and sent according to the injection information, so as to debug the target PCie device by injecting AXI bus read / write operations.

[0082] In practical applications, in the process of debugging the target PCIe device according to the first total data information and the first slave data information, the target operation of the target PCIe device can be determined; the target address information and the target data information corresponding to the target operation are parsed out from the first total data information and the first slave data information; the target address information is analyzed to estimate the first data volume contained in the target data information; the second data volume contained in the target data information is determined; it is detected whether the first data volume is consistent with the second data volume, and if not, a debugging result characterizing the abnormality of the target PCIe device is generated; wherein, when the target operation is a read operation, the target address information includes the read address information, and the target data information includes the read data information; when the target operation is a write operation, the target address information includes the write address information, and the target data information includes the write data information. That is, for read operations, the signal on the read address can be detected, including the burst type, size information, and len information, so as to determine how many data should be included in the expected read data response, and then wait for the read data response to see whether the number of received data meets the expected number; for write operations, the signal on the write address can be detected, including the burst type, size information, and len information, so as to determine how many data should be included in the expected write data channel, and then wait for the data on the write data channel to see whether the number of data sent meets the expected number, and wait for the signal of the write response channel to determine whether the slave has received the data correctly.

[0083] In actual applications, after debugging the target PCIe device according to the first total data information and the first slave data information, the debugging result obtained after debugging the target PCIe device can also be obtained, and the debugging result is sent to the CPU of the BMC in the form of a register, and the configuration information sent by this CPU is received in the form of a register, and performance configuration is performed according to this configuration information.

[0084] From this implementation process, it can be seen that the present application can conveniently send the debugging result of the target PCIe device to the CPU of the BMC in the form of a register, so that the CPU can process the target PCIe device according to the debugging result, which is convenient for the BMC to accurately and quickly control the target PCIe device; and can conveniently receive the configuration information sent by the CPU in the form of a register, and perform performance configuration according to the configuration information, so as to quickly respond to the CPU's control over the debugging of the PCIe device, and prepare for the next PCIe device debugging. In addition, the register form is not easily affected by external interference, which can improve the CPU's control efficiency and accuracy in debugging the PCIe device.

[0085] The present application provides a PCIe device debugging method, which collects the first total data information transmitted between the AXI slave and the multiplexer in the AXI router; collects the first slave data information transmitted between the multiplexer and the AXI host in the AXI router; debugs the target PCIe device according to the first total data information and the first slave data information; wherein the AXI router is set in the BMC; the AXI slave is connected to the PCIe slave in the BMC; the AXI host is connected to the target PCIe device in the BMC. The present application can collect the first total data information to clarify the bus data transmitted between the AXI slave and the multiplexer in the AXI router, and can collect the first slave data information to clarify the slave line data transmitted between the multiplexer and the AXI host in the AXI router, so as to accurately collect the bus data and slave line data in the BMC chip, so as to know the detailed data transmission situation in the BMC, and then accurately debug the target PCIe device in the BMC according to the first total data information and the first slave data information.

[0086] See also Figure 8 , Figure 8 A schematic diagram of the structure of a PCIe device debugging system provided in an embodiment of the present application.

[0087] A PCIe device debugging system provided in an embodiment of the present application may include:

[0088] The first collection module 101 is used to collect first total data information transmitted between the AXI slave and the multiplexer in the AXI router;

[0089] The second collection module 102 is used to collect the first slave data information transmitted between the multiplexer in the AXI router and the AXI host;

[0090] A first debugging module 103, configured to debug a target PCIe device according to the first total data information and the first slave data information;

[0091] The AXI router is set in the BMC; the AXI slave is connected to the PCIe slave in the BMC; and the AXI host is connected to the target PCIe device in the BMC.

[0092] In a PCIe device debugging system provided in an embodiment of the present application, a first acquisition module may include:

[0093] A first recording unit is used for recording corresponding read address information on the read channel of the target AXI bus in response to monitoring that a valid signal and a ready signal on the read address channel of the target AXI bus are both valid, where the read address information includes araddr, arburst, arid, arsize, and arlen;

[0094] A first waiting unit, used for waiting for a valid signal and a ready signal on a read data channel of a target AXI bus;

[0095] A second recording unit is used for recording corresponding read data information on the read channel in response to the valid signal and the ready signal on the read data channel being both valid, where the read data information includes rdata and rlast;

[0096] A third recording unit is used for recording corresponding write address information on the write channel of the target AXI bus in response to monitoring that both the valid signal and the ready signal on the write address channel of the target AXI bus are valid, where the write address information includes awaddr, awburst, awid, awsize, and awlen;

[0097] A fourth recording unit is used for recording corresponding write data information on the write data channel in response to monitoring that both a valid signal and a ready signal on the write data channel on the target AXI bus are valid, where the write data information includes wdata, wid, wstrb, and wlast;

[0098] A second waiting unit is used to wait for a valid signal and a ready signal on a write response channel on a target AXI bus;

[0099] a fifth recording unit, configured to record corresponding write response data on the write response channel in response to both a valid signal and a ready signal on the write response channel being valid, wherein the write response data includes a bresp;

[0100] A first setting unit, configured to use the read address information, the read data information, the write address information, the write data information and the write response data as the target data information;

[0101] When the target AXI bus is located between the AXI slave and the multiplexer, the target data information is the first total data information; when the target AXI bus is located between the multiplexer and the AXI master, the target data information is the first slave data information.

[0102] In a PCIe device debugging system provided by an embodiment of the present application, the first acquisition module can be specifically used to: at the rising edge of the clock, detect whether there is a channel on the target AXI bus with both the valid signal and the ready signal being valid at the same time; if so, record the target data information of the target AXI bus at the rising edge of the clock.

[0103] In a PCIe device debugging system provided by an embodiment of the present application, the first acquisition module can be specifically used to: at the rising edge of the clock, detect whether there is a channel on the target AXI bus with both a valid signal and a ready signal being valid at the same time; if so, record the clock cycle and record the target data information of the target AXI bus within the clock cycle, where the clock cycle includes the cycle at the rising edge of the clock.

[0104] A PCIe device debugging system provided in an embodiment of the present application may further include:

[0105] A first interception module is used to intercept a request sent by the AXI host before the first acquisition module acquires the first total data information transmitted between the AXI slave and the multiplexer in the AXI router;

[0106] A first sending module, used for sending protocol response information corresponding to the request to the AXI host;

[0107] A first acquisition module is used to acquire injection information, where the injection information includes an operation type and operation information;

[0108] The second sending module is used to generate and send data on the AXI bus according to the injected information.

[0109] An embodiment of the present application provides a PCIe device debugging system, wherein the first debugging module may include:

[0110] A first determining unit, configured to determine a target operation of a target PCIe device;

[0111] A first parsing unit, configured to parse the first total data information and the first sub-data information to obtain target address information and target data information corresponding to the target operation;

[0112] A first analysis unit, configured to analyze the target address information and estimate a first data volume included in the target data information;

[0113] A second determining unit, used to determine a second data amount included in the target data information;

[0114] A first detection unit, used to detect whether the first data volume is consistent with the second data volume, and if not, generate a debugging result indicating that the target PCIe device is abnormal;

[0115] When the target operation is a read operation, the target address information includes read address information, and the target data information includes read data information; when the target operation is a write operation, the target address information includes write address information, and the target data information includes write data information.

[0116] See also Fig. 9 , Fig. 9A structural schematic diagram of a PCIe debugging device provided in an embodiment of the present application, wherein AXI_S represents an AXI slave, Monitor represents a monitor, and AXI_M represents an AXI host.

[0117] A PCIe debugging device provided in an embodiment of the present application may include:

[0118] a first AXI monitor connected between the AXI slave and the multiplexer in the AXI router, and configured to collect first total data information transmitted between the AXI slave and the multiplexer;

[0119] a second AXI monitor connected between the multiplexer in the AXI router and the corresponding AXI host, and used for collecting the first slave data information transmitted between the multiplexer and the AXI host;

[0120] a debugger connected to the first AXI monitor and the second AXI monitor respectively, for debugging the target PCIe device according to the first total data information and the first slave data information;

[0121] The AXI router is set in the BMC; the AXI slave is connected to the PCIe slave in the BMC; and the AXI host is connected to the target PCIe device in the BMC.

[0122] The corresponding description of the PCIe debugging device provided in the embodiment of the present application can be found in the above embodiment and will not be repeated here.

[0123] It should be noted that the PCIe debugging device provided in this application can be structurally adjusted according to needs. For example, in practical applications, the PCIe debugging device provided in this application can be as follows: Fig.10 As shown, including:

[0124] The control module is an AHB register configuration interface for receiving configurations from the CPU in the baseboard management controller. The control module can receive upstream configurations in the form of registers and report the status of the PCIe debugging device to the upstream controller in the form of registers. On the other hand, the upstream configuration information can be converted into control information of each internal module and sent to each module.

[0125] The data storage module is used to receive the monitoring protocol data sent from each AXI Monitor (detector), and temporarily store the data in the module after collating it, waiting to be sent to the outside, such as to the memory;

[0126] The protocol data output interface is used to send the data in the data storage module to external storage, such as memory or external storage device;

[0127] The protocol data injection module is used to inject protocol data, thereby simulating the read and write operations sent by the host to each device to verify the validity of the data channel.

[0128] The present application also provides an electronic device and a computer-readable storage medium, both of which have the corresponding effects of the PCIe debugging method provided in the embodiment of the present application. Fig.11 , Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0129] An electronic device provided in an embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer program. When the processor 202 executes the computer program, the steps of the PCIe debugging method described in any of the above embodiments are implemented.

[0130] See also Fig.12 , another electronic device provided in the embodiment of the present application may also include: an input port 203 connected to the processor 202, for transmitting commands input from the outside to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing results of the processor 202 to the outside; a communication module 205 connected to the processor 202, for realizing communication between the electronic device and the outside. The display unit 204 can be a display panel, a laser scanning display, etc.; the communication method adopted by the communication module 205 includes but is not limited to mobile high-definition link technology (Mobile High-Definition Link, MHL), Universal Serial Bus (Universal Serial Bus, USB), High-Definition Multimedia Interface (High-DefinitionMultimedia Interface, HDMI), wireless connection: wireless fidelity technology (WIreless Fidelity, WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, and communication technology based on IEEE802.11s.

[0131] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the PCIe debugging method described in any of the above embodiments are implemented.

[0132] The computer-readable storage medium involved in this application includes random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs (Compact Disc Read-Only Memory), or any other form of storage medium known in the technical field.

[0133] A computer program product provided in an embodiment of the present application includes a computer program / instruction. When the computer program / instruction is executed by a processor, the following steps are implemented:

[0134] Collecting first total data information transmitted between an AXI slave and a multiplexer in an AXI router;

[0135] Collecting first slave data information transmitted between a multiplexer in an AXI router and an AXI host;

[0136] Debugging the target PCIe device according to the first total data information and the first slave data information;

[0137] The AXI router is set in the BMC; the AXI slave is connected to the PCIe slave in the BMC; and the AXI host is connected to the target PCIe device in the BMC.

[0138] A computer program product provided by an embodiment of the present application includes a computer program / instruction. When the computer program / instruction is executed by a processor, the following steps are implemented: in response to monitoring that a valid signal and a ready signal on a read address channel on a target AXI bus are both valid, recording corresponding read address information on the read channel of the target AXI bus, where the read address information includes araddr, arburst, arid, arsize, and arlen; waiting for a valid signal and a ready signal on a read data channel of the target AXI bus; in response to the valid signal and the ready signal on the read data channel being both valid, recording corresponding read data information on the read channel, where the read data information includes rdata and rlast; in response to monitoring that a valid signal and a ready signal on a write address channel on the target AXI bus are both valid, recording corresponding write address information on the write channel of the target AXI bus, where the write address information includes awa ddr, awburst, awid, awsize, awlen; in response to monitoring that the valid signal and the ready signal on the write data channel of the target AXI bus are both valid, record the corresponding write data information on the write data channel, and the write data information includes wdata, wid, wstrb, wlast; wait for the valid signal and the ready signal on the write response channel of the target AXI bus; in response to the valid signal and the ready signal on the write response channel being both valid, record the corresponding write response data on the write response channel, and the write response data includes bresp; use the read address information, the read data information, the write address information, the write data information and the write response data as the target data information; wherein, when the target AXI bus is located between the AXI slave and the multiplexer, the target data information is the first total data information; when the target AXI bus is located between the multiplexer and the AXI host, the target data information is the first slave data information.

[0139] A computer program product provided by an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: at the rising edge of the clock, detect whether there is a channel on the target AXI bus with both a valid signal and a ready signal valid at the same time; if so, record the target data information of the target AXI bus at the rising edge of the clock.

[0140] A computer program product provided by an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: obtaining target data information on a target AXI bus, and at a rising edge of a clock, detecting whether there is a channel on the target AXI bus with both a valid signal and a ready signal being valid at the same time; if so, recording the clock cycle and recording the target data information of the target AXI bus within the clock cycle, wherein the clock cycle includes the cycle at the rising edge of the clock.

[0141] A computer program product provided by an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: before collecting the first total data information transmitted between the AXI slave and the multiplexer in the AXI router, intercepting the request sent by the AXI host; sending protocol response information corresponding to the request to the AXI host; obtaining injection information, the injection information including the operation type and the operation information; generating data on the AXI bus according to the injection information and sending it.

[0142] A computer program product provided by an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: determining a target operation of a target PCIe device; parsing target address information and target data information corresponding to the target operation from first total data information and first sub-data information; analyzing the target address information to estimate a first data volume contained in the target data information; determining a second data volume contained in the target data information; detecting whether the first data volume is consistent with the second data volume, and if not, generating a debugging result characterizing an abnormality of the target PCIe device; wherein, when the target operation is a read operation, the target address information includes read address information, and the target data information includes read data information; when the target operation is a write operation, the target address information includes write address information, and the target data information includes write data information.

[0143] For the description of the relevant parts of a PCIe device debugging system, apparatus, electronic device, computer-readable storage medium, and computer program product provided in the embodiments of the present application, please refer to the detailed description of the corresponding parts in a PCIe device debugging method provided in the embodiments of the present application, which will not be repeated here. In addition, the parts of the above technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive elaboration.

[0144] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0145] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A PCIe device debugging method, characterized in that: include: Collecting first total data information transmitted between an AXI slave and a multiplexer in an AXI router; Collecting first slave data information transmitted between the multiplexer in the AXI router and the AXI host; Debugging the target PCIe device according to the first total data information and the first slave data information; Wherein, the AXI router is arranged in the BMC; The AXI slave is connected to the PCIe slave in the BMC; the AXI host is connected to the target PCIe device in the BMC.

2. The method according to claim 1, characterized in that: Get the target data information on the target AXI bus, including: In response to monitoring that a valid signal and a ready signal on a read address channel on the target AXI bus are both valid, recording corresponding read address information on the read channel of the target AXI bus, the read address information including araddr, arburst, arid, arsize, and arlen; Waiting for valid signals and ready signals on the read data channel of the target AXI bus; In response to both a valid signal and a ready signal on the read data channel being valid, recording corresponding read data information on the read channel, the read data information including rdata and rlast; In response to monitoring that a valid signal and a ready signal on a write address channel on the target AXI bus are both valid, recording corresponding write address information on the write channel of the target AXI bus, wherein the write address information includes awaddr, awburst, awid, awsize, and awlen; In response to monitoring that a valid signal and a ready signal on a write data channel on the target AXI bus are both valid, recording corresponding write data information on the write data channel, the write data information including wdata, wid, wstrb, and wlast; Waiting for a valid signal and a ready signal on the write response channel of the target AXI bus; In response to both a valid signal and a ready signal on the write response channel being valid, recording corresponding write response data on the write response channel, wherein the write response data includes bresp; taking the read address information, the read data information, the write address information, the write data information and the write response data as the target data information; When the target AXI bus is located between the AXI slave and the multiplexer, the target data information is the first total data information; when the target AXI bus is located between the multiplexer and the AXI master, the target data information is the first slave data information.

3. The method according to claim 2, characterized in that The acquiring of target data information on the target AXI bus further includes: At the rising edge of the clock, detect whether there is a channel on the target AXI bus with both valid signals and ready signals being valid at the same time; If yes, the target data information of the target AXI bus at the rising edge of the clock is recorded.

4. The method according to claim 2, characterized in that: The acquiring of target data information on the target AXI bus further includes: At the rising edge of the clock, detect whether there is a channel on the target AXI bus with both valid signals and ready signals being valid at the same time; If yes, the clock cycle is recorded, and the target data information of the target AXI bus in the clock cycle is recorded, where the clock cycle includes the cycle at which the rising edge of the clock is located.

5. The method according to claim 1, characterized in that Before collecting the first total data information transmitted between the AXI slave and the multiplexer in the AXI router, the method further includes: Intercepting the request sent by the AXI host; Sending protocol response information corresponding to the request to the AXI host; Acquire injection information, where the injection information includes an operation type and operation information; The data on the AXI bus is generated and sent according to the injection information.

6. The method according to claim 1, characterized in that The debugging of the target PCIe device according to the first total data information and the first slave data information includes: Determining a target operation of the target PCIe device; Parsing the first total data information and the first sub-data information to obtain the target address information and the target data information corresponding to the target operation; Analyzing the target address information to estimate a first data volume included in the target data information; Determining a second data amount included in the target data information; Detecting whether the first data amount is consistent with the second data amount, and if not, generating a debugging result indicating that the target PCIe device is abnormal; When the target operation is a read operation, the target address information includes read address information, and the target data information includes read data information; when the target operation is a write operation, the target address information includes write address information, and the target data information includes write data information.

7. A PCIe device debugging system, characterized in that: include: A first acquisition module, used for acquiring first total data information transmitted between the AXI slave and the multiplexer in the AXI router; A second acquisition module, used for acquiring first slave data information transmitted between the multiplexer in the AXI router and the AXI host; A first debugging module, configured to debug a target PCIe device according to the first total data information and the first slave data information; Wherein, the AXI router is arranged in the BMC; The AXI slave is connected to the PCIe slave in the BMC; the AXI host is connected to the target PCIe device in the BMC.

8. A PCIe debugging device, characterized in that: include: a first AXI monitor connected between the AXI slave and the multiplexer in the AXI router, and configured to collect first total data information transmitted between the AXI slave and the multiplexer; a second AXI monitor connected between the multiplexer in the AXI router and a corresponding AXI host, and configured to collect first slave data information transmitted between the multiplexer and the AXI host; a debugger connected to the first AXI monitor and the second AXI monitor respectively, for debugging a target PCIe device according to the first total data information and the first slave data information; Wherein, the AXI router is arranged in the BMC; The AXI slave is connected to the PCIe slave in the BMC; the AXI host is connected to the target PCIe device in the BMC.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the PCIe device debugging method according to any one of claims 1 to 6 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the PCIe device debugging method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • PCIe debugger, PCIe switch and debugging method thereof

    CN121309509A