CN-121979821-A - Hot plug system of cross-generation PCIe bridging device
Abstract
The invention discloses a hot plug system of a cross-generation PCIe bridging device, which is used for bridging a host supporting hot plug and equipment not supporting hot plug, wherein the hot plug system of the cross-generation PCIe bridging device comprises a first plug-out mode, when a state detection module detects that the host is connected with the cross-generation PCIe bridging device and the equipment is connected with the cross-generation PCIe bridging device, the hot plug system of the cross-generation PCIe bridging device is triggered to enter the first plug-out mode, and when the hot plug system of the cross-generation PCIe bridging device enters the first plug-out mode, the hot plug system of the cross-generation PCIe bridging device is configured to report a hot plug event to the host first and then conduct controlled power-off on the equipment end of the cross-generation PCIe bridging device.
Inventors
- XU YONGLEI
- LI BAOLONG
- LUO ZHENGZHONG
- SU MINGYI
Assignees
- 上海芯力基半导体有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251027
Claims (10)
- 1. A hot plug system of a cross-generation PCIe bridging device is characterized in that the cross-generation PCIe bridging device is used for bridging a host supporting hot plug and equipment not supporting hot plug, the hot plug system of the cross-generation PCIe bridging device comprises a first plug mode, when a state detection module detects that the host is connected with the cross-generation PCIe bridging device intermittently, and the equipment is connected with the cross-generation PCIe bridging device, the hot plug system of the cross-generation PCIe bridging device is triggered to enter the first plug mode, and when the hot plug system of the cross-generation PCIe bridging device enters the first plug mode, the hot plug system of the cross-generation PCIe bridging device is configured to report a hot plug event to the host first, and then the equipment end of the cross-generation PCIe bridging device is controlled to be powered off.
- 2. The hot plug system of a cross-generation PCIe bridge device of claim 1, wherein the hot plug system of the cross-generation PCIe bridge device is triggered to enter the first unplug mode when the hot plug system of the cross-generation PCIe bridge device receives a first button command.
- 3. The system of claim 1, wherein the system comprises a host-side hot plug virtualization control module configured to report to the host, the host-side hot plug virtualization control module is configured to handshake with a power gating module in the first unplugged mode in a whole process to ensure that the order of power failure and reporting is correct.
- 4. The hot plug system of a cross-generation PCIe bridge device of claim 1, wherein said state detection module determines a connection state between said cross-generation PCIe bridge device and said host and a connection state between said cross-generation PCIe bridge device and said device by one or more of bit contacts, load current, voltage, temperature indicators in combination with time debounce.
- 5. The hot plug system of a cross-generation PCIe bridge device of claim 1, wherein, upon the hot plug system of the cross-generation PCIe bridge device entering the first unplug mode, it is configured to perform the steps of: The strategy state module is switched to a ready-to-pull state; the transaction convergence module performs transaction convergence and freezing on the equipment end of the cross-generation PCIe bridging device, and notifies the reset and clock arrangement module, the power gating module and the host end hot plug virtualization control module after completion; After receiving the completed signal fed back by the transaction convergence module, the host side hot plug virtualization control module reports a hot plug event to the host; the host informs an operating system to carry out driving unloading, and after receiving a signal that the operating system finishes unloading, the host-side hot plug virtualization control module returns an instruction to the strategy state module so as to enable the strategy state module to be switched to a pluggable state; The reset and clock arrangement module resets the reference clock and the strategy state module and then disconnects the reference clock after receiving the completed signal fed back by the transaction convergence module; after receiving the completed signal fed back by the transaction convergence module, the power gating module performs controlled power off on the equipment end of the cross-generation PCIe bridging device; The cross-generation PCIe bridging device sends out an indication signal to prompt a user to pull out.
- 6. The system of claim 5, wherein in the first unplugged mode, the host-side hot plug virtualization control module is in handshake communication with the transaction convergence module, the power gating module, and the reset and clock orchestration module to ensure transaction convergence and freezing are completed before reporting a hot plug event to the host, and finally disconnecting the reference clock and powering off.
- 7. The hot plug system of a cross-generation PCIe bridge device of claim 5, wherein: the cross-generation PCIe bridging device is plugged back after being unplugged from the host, and a hot plug system of the cross-generation PCIe bridging device is configured to execute the following steps: When the state detection module detects that the host establishes connection with the cross-generation PCIe bridging device and the equipment is kept connected with the cross-generation PCIe bridging device, triggering a hot plug system of the cross-generation PCIe bridging device to enter a first plug-in mode; the power gating module performs controlled power-on the equipment end of the cross-generation PCIe bridging device; The reset and clock arrangement module firstly keeps the reference clock and the strategy state module to be reset, and after the power supply is stable, the reference clock is connected and reset is released; the transaction convergence module releases transaction freezing of the equipment end of the cross-generation PCIe bridging device; The host side hot plug virtualization control module sends signals inserted by the cross-generation PCIe bridging device and the equipment to the host; the host informs the operating system of re-enumeration and retrains a link between the host and the cross-generation PCIe bridging device; the policy state module switches to an in-place state.
- 8. The hot plug system of the cross-generation PCIe bridge device of claim 5, wherein when the transaction convergence module performs transaction convergence and freezing, further comprising notifying a link state machine at an equipment end of the cross-generation PCIe bridge device to return from a working state to a detection state.
- 9. The system of claim 5, wherein when the transaction convergence module performs transaction convergence and freezing comprises prohibiting new read-write and direct memory access requirements, returning an error completion response to an outstanding read request, and intercepting or absorbing a write request.
- 10. The hot plug system of the cross-generation PCIe bridge device of claim 5, wherein the controlled power-down means that the power gating module provides power from 12 volts to 3.3 volts to the equipment end of the cross-generation PCIe bridge device, and/or the equipment end of the cross-generation PCIe bridge device is provided with a diode structure for blocking reverse charging.
Description
Hot plug system of cross-generation PCIe bridging device RELATED APPLICATIONS The application relates to a divisional application with the application number of CN202511534743.1 and the application date of 2025, 10 and 27, and the name of a hot plug system of a cross-generation PCIe bridging device. Technical Field The invention relates to the technical field of computers, in particular to a hot plug system of a cross-generation PCIe bridging device. Background In recent years, as the demands for I/O bandwidth and maintainability by applications such as data centers, AI acceleration, storage, and high-speed networks continue to increase, systems employing PCI Express (PCIe) as a high-speed interconnect between a host and a peripheral are widely deployed. Meanwhile, PCIe Hot Plug (Hot-Plug) capability of a host side (especially a server/industrial computing platform) is becoming popular, allowing Plug maintenance to be performed on an external device without shutdown, so as to reduce downtime and improve usability. In complex systems, it is often desirable to access devices of different agents or modalities (e.g., PCIe 4.0 peripherals) to a host platform supporting higher agents or different modality interfaces through a cross-agent bridging/interface multiplexing means. Applicant has proposed a PCIe protocol adaptation method in patent CN 202511277034. X. However, when the method is used as a device, a key engineering problem is exposed that the main board has hot plug capability, and the rear-connection equipment often does not have hot plug electrical/protocol capability, so that mismatch of the two in plug behavior, power supply time sequence and a link state machine can bring a series of reliability problems. The foregoing background is only for the purpose of providing an understanding of the principles and concepts of the application and is not necessarily related to the prior art or is not necessarily taught by the present application, but is not intended to be used for the purposes of assessing the novelty and creativity of the present application without express evidence that such matter has been disclosed prior to the filing date of the present application. Disclosure of Invention The invention aims to provide a hot plug system of a cross-generation PCIe bridging device. In order to achieve the above purpose, the invention adopts the following technical scheme: A hot plug system of a cross-generation PCIe bridging device is used for bridging a host supporting hot plug and equipment not supporting hot plug, the hot plug system of the cross-generation PCIe bridging device comprises a first plug-out mode and a second plug-out mode, when a state detection module detects that the host is connected with the cross-generation PCIe bridging device intermittently, and the equipment is connected with the cross-generation PCIe bridging device, the hot plug system of the cross-generation PCIe bridging device is triggered to enter the first plug-out mode, and when the state detection module detects that the host is connected with the cross-generation PCIe bridging device and the equipment is disconnected with the cross-generation PCIe bridging device, the hot plug system of the cross-generation PCIe bridging device is triggered to enter the second plug-out mode. In one embodiment, when the hot plug system of the cross-generation PCIe bridge device receives a first button command, the hot plug system of the cross-generation PCIe bridge device is triggered to enter the first pull mode, and when the hot plug system of the cross-generation PCIe bridge device receives a second button command, the hot plug system of the cross-generation PCIe bridge device is triggered to enter the second pull mode. In an embodiment, after the hot plug system of the cross-generation PCIe bridge device enters the first unplug mode, the hot plug system of the cross-generation PCIe bridge device is configured to report a hot plug event to the host first, and then perform controlled power-off on an equipment end of the cross-generation PCIe bridge device. In an embodiment, after the hot plug system of the cross-generation PCIe bridge device enters the second unplug mode, the hot plug system of the cross-generation PCIe bridge device is configured to perform controlled power-off on an equipment end of the cross-generation PCIe bridge device first, and then report a hot plug event to the host. In an embodiment, the power supply control system comprises a host side hot plug virtualization control module for reporting to the host, wherein the host side hot plug virtualization control module is in handshake communication with the power supply gating module in the first and second pull modes in the whole course to ensure that the sequence of power failure and reporting is correct. In an embodiment, the state detection module determines the connection state between the cross-generation PCIe bridge device and the host and determines the connectio