Search

CN-121365026-B - PCIe P2P system and PCIe switch

CN121365026BCN 121365026 BCN121365026 BCN 121365026BCN-121365026-B

Abstract

The application provides a PCIe P2P system and a PCIe switch, which use PCIe hardware IP as a bottom layer to provide a basic PCIe interface function for physical layer and link layer management, and complete data transmission between endpoints connected with the PCIe P2P IP based on a constructed routing information table through the PCIe P2P IP mounted on the PCIe hardware IP. The application provides flexible point-to-point communication function, so that a plurality of endpoints can directly exchange data, and data transmission delay and bandwidth bottleneck through a host are reduced. The application can replace the existing PCIe P2P IP of manufacturers, provides higher flexibility and expansibility, obtains better balance in the aspect of cost control, and is suitable for various applications requiring large-scale PCIe equipment connection, virtualization and high-speed data exchange.

Inventors

  • Request for anonymity
  • Request for anonymity
  • Request for anonymity

Assignees

  • 上海光羽芯辰科技有限公司

Dates

Publication Date
20260508
Application Date
20251223

Claims (7)

  1. 1. A PCIe P2P system comprising: the PCIe P2P IP is provided with a plurality of endpoints; the PCIe P2P IP is used for forwarding a request message sent by one end point to a corresponding end point under the P2P transmission environment based on the constructed routing information table; the PCIe P2P IP is also provided with an upstream port, a switch module and a plurality of downstream ports, wherein the downstream port is used for connecting an endpoint, the endpoint firstly carries out P2P judgment after receiving a request message from a user side, carries out address query operation if the obtained P2P judgment result is P2P support and carries out corresponding transmission on the request message according to the query result, and if the obtained P2P judgment result is P2P support, directly sends the request message to the switch module; The method comprises the steps of executing address query operation and corresponding transmission of the request message according to a query result, wherein the query is carried out in an ATC or PTE based on the address of the request message, if the query is hit, the address of the request message is converted according to the ATC or PTE, the request message after address conversion is sent to a switch module through a corresponding downstream port, if the query is not hit, a P2P request mark in the request message is modified, and the modified request message is sent to the switch module through the corresponding downstream port.
  2. 2. The PCIe P2P system of claim 1 wherein the P2P determination comprises: If the request report has a P2P request mark and the end point starts a P2P function, a P2P judgment result supporting P2P is obtained; If the request message does not have the P2P request mark or the end point does not start the P2P function, a P2P judgment result which does not support P2P is obtained.
  3. 3. The PCIe P2P system according to claim 1 wherein the means for checking the P2P transmission environment specifically comprises: if the request message has a P2P request mark and the address is converted, determining an endpoint to be sent based on the routing information table, further judging whether the endpoint to be sent starts a P2P function, if so, providing a P2P transmission environment, otherwise, not providing the P2P transmission environment; if the request message does not have the P2P request mark, the request message does not have the P2P transmission environment.
  4. 4. The PCIe P2P system of claim 3 wherein the routing information table comprises a mapping relationship of each physical address to its correspondingly configured endpoint.
  5. 5. The PCIe P2P system of claim 1, further comprising a management module for managing the routing information table, the ATC, and the PTE.
  6. 6. The PCIe P2P system according to claim 1, wherein the endpoint is provided with a configuration space for turning on and off P2P functions.
  7. 7. A PCIe switch, comprising the PCIe P2P system of any one of claims 1 to 6.

Description

PCIe P2P system and PCIe switch Technical Field The application relates to the technical field of PCIe, in particular to a PCIe P2P system and a PCIe switch. Background The prior PCIE SWITCH mainly comprises an ASIC chip product and an implementation scheme based on an FPGA, and the two have advantages and disadvantages in performance and flexibility, but have obvious short boards. The ASIC chip is used as a highly integrated finished product hardware, can provide high performance, low power consumption, stable connection and strong management capability in commercial terminal products, and has the characteristics of high bandwidth, strong expansion and low delay. However, the product attribute determines that the product cannot be flexibly integrated into other systems, and the function modification and customization can only depend on the existing functions of manufacturers, and the autonomy is lacking. And the cost is high, the method is only suitable for large-scale batch production, the development period is long, and the market change is difficult to respond quickly. In contrast, although the FPGA allows developers to customize functions and modify and optimize at any time with high flexibility and programmability, and meets special requirements and research and development test projects, it is difficult to meet the special ASIC chip in the requirements specification and power consumption, and cannot meet the application scenario with strict requirements on performance and power consumption. Therefore, implementing PCIe P2P functionality on PCIE SWITCH of the two schemes also continues the inherent contradictions and limitations of the respective schemes in terms of performance, power consumption and flexibility. Disclosure of Invention In view of the above drawbacks of the prior art, an object of the present application is to provide a PCIe P2P system and a PCIe switch, which are used for solving the problems of poor flexibility and high cost of the existing PCIe P2P system. To achieve the above and other related objects, a first aspect of the present application provides a PCIe P2P system, including a PCIe P2P IP mounted on a PCIe hardware IP, where the PCIe P2P IP is provided with a plurality of endpoints, and the PCIe P2P IP is configured to forward a request packet sent by an endpoint to a corresponding endpoint in a P2P transmission environment based on a constructed routing information table. In some embodiments of the first aspect of the present application, the PCIe P2P IP is further provided with an upstream port, a switch module, and a plurality of downstream ports, where the downstream ports are used for connecting endpoints. In some embodiments of the first aspect of the present application, the endpoint first performs P2P judgment after receiving the request packet from the user side, performs an address query operation if the obtained P2P judgment result is that P2P is supported, and performs corresponding transmission on the request packet according to the query result, and directly sends the request packet to the switch module if the obtained P2P judgment result is that P2P is not supported. In some embodiments of the first aspect of the present application, the P2P determination includes obtaining a P2P determination result supporting P2P if the request packet has a P2P request flag and the endpoint opens a P2P function, and obtaining a P2P determination result not supporting P2P if the request packet does not have a P2P request flag or the endpoint does not open a P2P function. In some embodiments of the first aspect of the present application, performing an address query operation and transmitting the request packet according to a query result includes querying an ATC or a PTE based on an address of the request packet, if the query hits, converting the address of the request packet according to the ATC or the PTE and transmitting the address-converted request packet to the switch module through a corresponding downstream port, and if the query does not hit, modifying a P2P request flag in the request packet and transmitting the modified request packet to the switch module through the corresponding downstream port. In some embodiments of the first aspect of the present application, the method for checking the P2P transmission environment specifically includes determining an endpoint to be sent based on the routing information table if the request packet has a P2P request flag and the address is converted, further determining whether the endpoint to be sent starts a P2P function, if so, providing the P2P transmission environment, otherwise, not providing the P2P transmission environment, and if the request packet does not have the P2P request flag, not providing the P2P transmission environment. In some embodiments of the first aspect of the present application, the routing information table includes a mapping relationship between each physical address and its corresponding configure