CN112073213A - Method for flexibly and safely configuring PCIe switch - Google Patents
Method for flexibly and safely configuring PCIe switch Download PDFInfo
- Publication number
- CN112073213A CN112073213A CN202010751501.9A CN202010751501A CN112073213A CN 112073213 A CN112073213 A CN 112073213A CN 202010751501 A CN202010751501 A CN 202010751501A CN 112073213 A CN112073213 A CN 112073213A
- Authority
- CN
- China
- Prior art keywords
- control unit
- pcie switch
- double
- selection unit
- flash memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000015654 memory Effects 0.000 claims abstract description 44
- 238000012795 verification Methods 0.000 claims abstract description 10
- 230000006870 function Effects 0.000 abstract 1
- 230000002093 peripheral effect Effects 0.000 abstract 1
- 238000013461 design Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0866—Checking the configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0889—Techniques to speed-up the configuration process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Storage Device Security (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method for flexibly and safely configuring a PCIe (peripheral component interface express) switch, which is characterized in that a double-selection unit and a control unit are introduced between the PCIe switch and a plurality of flash memories, the double-selection unit is respectively connected with the PCIe switch and the flash memories, and the control unit is respectively connected with an equipment end, the PCIe switch and the double-selection unit; the control unit gates the channels of the double selection units according to the application scene of the equipment end, the control unit is connected to the corresponding flash memories through the double selection units and verifies the configuration files in the corresponding flash memories, and after verification is successful, the control unit switches the channels of the double selection units to enable the PCIe switch to be loaded to the corresponding flash memories. Through the mode, the configuration file of the PCIe switch can be flexibly selected according to the application scene through the introduction of the double selection units and the control unit, the verification function can be realized, and the loading of wrong burning files is avoided.
Description
Technical Field
The invention relates to the technical field of PCIe switch expansion, in particular to a method for flexibly and safely configuring a PCIe switch.
Background
In order to improve the performance of the traditional CPU server, a heterogeneous computing mode formed by combining processors such as a CPU, a GPU, an FPGA, and an ASIC is often used for data training or reasoning. The general computing module and the heterogeneous computing module are interconnected by a PCIe bus, the PCIe resource of a CPU is limited generally, and a PCIe switch is required to be used for expansion. In practical application, different service scenarios have different topological requirements for heterogeneous computing, and a PCIe switch is configured correspondingly through an SPI Flash according to the application topological requirements of the system, where the SPI Flash is a communication interface and the SPI Flash is a Flash memory using SPI communication. When the system works, the PCIe switch loads the configuration file in the corresponding SPI flash aiming at a specific application scene to complete the allocation of PCIe Port resources, so that the system works according to the topology of the system design. The existing method has the following defects: firstly, each flash can only store a configuration file aiming at a certain application scene, and if the application scene is changed, a tool needs to be reused to burn the configuration file in the flash; secondly, the configuration file in the flash can be changed at will, and if the PCIe switch loads an incorrect configuration file, damage to the system may be caused.
Disclosure of Invention
The invention mainly solves the technical problem of providing a method for flexibly and safely configuring the PCIe switch, which can flexibly select the configuration file of the PCIe switch according to the practical application scene without using a tool to burn again; when the configuration file burned in the flash memory is not matched with the preset design, the PCIe switch does not work, so that damage to the system is avoided.
In order to solve the technical problems, the invention adopts a technical scheme that: a method of flexibly and securely configuring a PCIe switch is provided, comprising: introducing a double-selection unit and a control unit between the PCIe switch and the plurality of flash memories, wherein the double-selection unit is respectively connected with the PCIe switch and the flash memories, and the control unit is respectively connected with the equipment terminal, the PCIe switch and the double-selection unit; the control unit gates the channels of the double selection units according to the application scene of the equipment end, the control unit is connected to the corresponding flash memories through the double selection units and verifies the configuration files in the corresponding flash memories, and after verification is successful, the control unit switches the channels of the double selection units to enable the PCIe switch to be loaded to the corresponding flash memories.
Furthermore, the double selection units comprise a first selection unit and a second selection unit which are connected with each other, the first selection unit is respectively connected with the PCIe switch and the control unit, and the second selection unit is respectively connected with the control unit and the plurality of flash memories.
Furthermore, each flash memory is burned with a configuration file corresponding to a certain application scene, and each flash memory has a corresponding flash memory check code; a plurality of ID signals corresponding to application scenes are designed on the equipment side, and each ID signal corresponds to one flash memory check code.
Further, the control unit samples an ID signal of the equipment end, gates a channel of the double selection unit according to the ID signal, is connected to a flash memory of a flash memory check code corresponding to the ID signal through the double selection unit, checks whether a configuration file of the flash memory corresponds to an application scene, and if so, checks successfully.
Further, before the control unit samples the ID signal of the device side, the control unit controls the PCIe switch to be in a reset state, and at the same time, the control unit controls a channel in the first selection unit, which is connected to the control unit and the second selection unit.
Further, the control unit gates a channel in the selection unit II, which is connected with the selection unit I, according to the ID signal, gates a channel of a flash memory which is connected with a flash memory check code corresponding to the ID signal, and checks whether a configuration file in the connected flash memory is a file to be burned in an application scene, if so, the check is successful, otherwise, the check is failed, and if so, the LED is lighted to be in a normally-on state; and if the verification fails, the LED is lightened to be in a flashing state.
Furthermore, after the verification is successful, the control unit switches the channel which is originally connected with the control unit in the first selection unit into the channel which is connected with the PCIe switch, the control unit releases a reset signal of the PCIe switch, and the PCIe switch loads the configuration file in the flash memory.
The invention has the beneficial effects that: the PCIe switch can be quickly and flexibly adapted to different application scenes without burning the configuration file in the flash memory again through a tool; the control unit checks whether the configuration file in the flash memory is correct or not, and avoids unnecessary damage to the system caused by loading of the wrong configuration file.
Drawings
FIG. 1 is a flow diagram of a preferred embodiment of a method for flexibly and securely configuring a PCIe switch in accordance with the present invention;
FIG. 2 is an architecture diagram illustrating one method of flexibly and securely configuring a PCIe switch;
fig. 3 is a comparison table of application scenarios, ID signals and flash check codes in the method for flexibly and securely configuring the PCIe switch.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
Referring to fig. 1 to 3, an embodiment of the present invention includes:
a method of flexible secure configuration of a PCIe switch, comprising: after the power is on, the control unit controls the PCIe switch to be in a reset state, controls the first selection unit to gate the 2-3 channels, samples an ID signal of the equipment end, designs an application scene, an ID signal and a Flash check code comparison table on the equipment end in advance aiming at the equipment end to which three different application scenes can be accessed, and is shown in figure 3, the channel of the second selection unit is selected according to the ID signal, if the sampling ID signal is 00, the 4-1 channel of the second selection unit is gated, the control unit checks whether a configuration file in Flash1 is a file to be burned in the application scene 1, if the check is successful, the LED is lightened to represent that the burning content in the Flash is checked, then the first selection unit is switched to the 1-3 channel, the reset signal of the PCIe switch is released, and the PCIe switch loads the configuration file in Flash 1. The PCIe switch can be quickly and flexibly adapted to different application scenes without burning the configuration file in the flash memory again through a tool; the control unit checks whether the configuration file in the flash memory is correct or not, and avoids unnecessary damage to the system caused by loading of the wrong configuration file.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (9)
1. A method for flexible secure configuration of a PCIe switch, comprising: introducing a double-selection unit and a control unit between the PCIe switch and the plurality of flash memories, wherein the double-selection unit is respectively connected with the PCIe switch and the flash memories, and the control unit is respectively connected with the equipment terminal, the PCIe switch and the double-selection unit; the control unit gates the channels of the double selection units according to the application scene of the equipment end, the control unit is connected to the corresponding flash memories through the double selection units and verifies the configuration files in the corresponding flash memories, and after verification is successful, the control unit switches the channels of the double selection units to enable the PCIe switch to be loaded to the corresponding flash memories.
2. The method of claim 1, wherein the method comprises: the double-selection unit comprises a first selection unit and a second selection unit which are connected with each other, the first selection unit is respectively connected with the PCIe switch and the control unit, and the second selection unit is respectively connected with the control unit and the plurality of flash memories.
3. The method of claim 2, wherein the method comprises: each flash memory is burned with a configuration file corresponding to a certain application scene, and each flash memory is provided with a corresponding flash memory check code; a plurality of ID signals corresponding to application scenes are designed on the equipment side, and each ID signal corresponds to one flash memory check code.
4. The method of claim 3, wherein the method comprises: the control unit samples an ID signal of the equipment end, gates a channel of the double selection unit according to the ID signal, is connected to a flash memory of a flash memory check code corresponding to the ID signal through the double selection unit, checks whether a configuration file of the flash memory corresponds to an application scene, and if so, checks successfully.
5. The method of claim 4, wherein the method comprises: before the control unit samples the ID signal of the equipment end, the control unit controls the PCIe switch to be in a reset state, and meanwhile, the control unit controls a channel connected with the control unit and the selection unit in the selection unit I.
6. The method of claim 5, wherein the method comprises: the control unit gates a channel connected with the selection unit I in the selection unit II according to the ID signal, gates a channel connected with a flash memory check code corresponding to the ID signal, and checks whether a configuration file in the communicated flash memory is a file to be burned in an application scene, if so, the check is successful, and otherwise, the check is failed.
7. The method of claim 6, wherein the method comprises: after the verification is successful, the control unit switches the channel which is originally connected with the control unit in the first selection unit into the channel which is connected with the PCIe switch, the control unit releases a reset signal of the PCIe switch, and the PCIe switch loads the configuration file in the flash memory.
8. The method of claim 6, wherein the method comprises: and after the verification fails, the PCIe switch stops working.
9. The method of claim 6, wherein the method comprises: the control unit is connected with an LED, and when the verification is successful, the control unit lights the LED to be in a normally-on state; when the verification fails, the control unit lights the LED to be in a flashing state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010751501.9A CN112073213B (en) | 2020-07-30 | 2020-07-30 | Method for flexibly and safely configuring PCIe switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010751501.9A CN112073213B (en) | 2020-07-30 | 2020-07-30 | Method for flexibly and safely configuring PCIe switch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112073213A true CN112073213A (en) | 2020-12-11 |
CN112073213B CN112073213B (en) | 2022-12-27 |
Family
ID=73656359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010751501.9A Active CN112073213B (en) | 2020-07-30 | 2020-07-30 | Method for flexibly and safely configuring PCIe switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112073213B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114125902A (en) * | 2021-11-30 | 2022-03-01 | 上海移远通信技术股份有限公司 | WWAN equipment and configuration method, device and storage medium thereof |
CN114912107A (en) * | 2022-07-15 | 2022-08-16 | 飞腾信息技术有限公司 | Access management method, related device, system and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103117929A (en) * | 2013-01-31 | 2013-05-22 | 中国科学院计算技术研究所 | Communication method and system based on PCIe (peripheral component interconnect express) data exchange |
CN106528462A (en) * | 2016-11-07 | 2017-03-22 | 天津津航计算技术研究所 | Data readback device for high-capacity data recorder |
CN107645457A (en) * | 2017-10-19 | 2018-01-30 | 济南浪潮高新科技投资发展有限公司 | A kind of PCIe switch system and method |
CN110377556A (en) * | 2019-06-26 | 2019-10-25 | 苏州浪潮智能科技有限公司 | The adaptive device and method of common calculation module and Heterogeneous Computing module based on Retimer |
-
2020
- 2020-07-30 CN CN202010751501.9A patent/CN112073213B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103117929A (en) * | 2013-01-31 | 2013-05-22 | 中国科学院计算技术研究所 | Communication method and system based on PCIe (peripheral component interconnect express) data exchange |
CN106528462A (en) * | 2016-11-07 | 2017-03-22 | 天津津航计算技术研究所 | Data readback device for high-capacity data recorder |
CN107645457A (en) * | 2017-10-19 | 2018-01-30 | 济南浪潮高新科技投资发展有限公司 | A kind of PCIe switch system and method |
CN110377556A (en) * | 2019-06-26 | 2019-10-25 | 苏州浪潮智能科技有限公司 | The adaptive device and method of common calculation module and Heterogeneous Computing module based on Retimer |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114125902A (en) * | 2021-11-30 | 2022-03-01 | 上海移远通信技术股份有限公司 | WWAN equipment and configuration method, device and storage medium thereof |
CN114912107A (en) * | 2022-07-15 | 2022-08-16 | 飞腾信息技术有限公司 | Access management method, related device, system and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112073213B (en) | 2022-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112073213B (en) | Method for flexibly and safely configuring PCIe switch | |
US5579220A (en) | Method of updating a supplementary automation system | |
CN102360311B (en) | Computer system | |
CN110908682B (en) | Firmware upgrading method and system for vehicle controller, vehicle and storage medium | |
CN104750510A (en) | Chip start method and multi-core processor chip | |
CN106843982B (en) | Data processing method and device based on FPGA | |
US5463743A (en) | Method of improving SCSI operations by actively patching SCSI processor instructions | |
CN104881312A (en) | FPGA (Field Programmable Gate Array) logic code iterable upgrading method and circuit | |
US20100070260A1 (en) | Verification device, verifying apparatus and verification system | |
CN109375941B (en) | Novel master-slave flash boot loader software upgrading method applied to combination instrument | |
US11604635B2 (en) | Online program updating method | |
US11650950B2 (en) | Control system, switch, and method for controlling execution device | |
CN115904418A (en) | System and method for burning firmware of PCIE (peripheral component interface express) cascade chip | |
CN111008102B (en) | FPGA accelerator card high-speed interface SI test control device, system and method | |
CN112631678B (en) | Dynamic loading method based on zynq | |
CN116501688A (en) | FPGA virtual link debugging system and method of heterogeneous acceleration system | |
CN112559041B (en) | Compatible processing method for ground direct instruction and satellite autonomous instruction | |
CN114265786A (en) | Automatic testing method and device, computer equipment and readable storage medium | |
CN114579155A (en) | Online updating method and system for multi-FPGA system and computer equipment | |
CN114741347B (en) | PCIe card control method and device and PCIe card | |
CN112463670A (en) | Storage controller access method and related device | |
CN112099609A (en) | Multi-node server power-on time sequence control system | |
CN108009113B (en) | Method for realizing debugging serial port in double-master control system | |
CN116432574B (en) | Method and device for automatically reading back FLASH data by FPGA configuration controller | |
CN114153663B (en) | USB communication line switching device and vehicle-mounted TBOX |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |