PCIe component identification device
By designing a PCIe component identification device in the server, and using CPLD and indicator lights to identify and restrict illegal PCIe components, the bug problems caused by user adaptation are solved and the stable operation of the server is ensured.
Patent Information
- Application Number
- CN202420638410.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2034-03-29
AI Technical Summary
In actual applications, users modify the untested PCIe components on their own, resulting in unpredictable bugs and affecting the server's operation stability.
Design a PCIe component identification device, connects the I2C link between the BMC chip and the PCA chip through CPLD, reads the PCIe component asset information of the BIOS chip for legality verification, and prompts the illegal components through the indicator light to control the I2C of the illegal components Port is disabled.
It realizes identification and restrictions on illegal PCIe components in the server, avoids bugs caused by illegal components, and ensures the stable operation of the server.
Smart Images

Figure CN222014747U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the technical field of servers, and in particular relates to a PCIe component identification device. Background Art
[0002] The server can be equipped with PCIe components that have passed the platform product test and run stably. However, in actual application scenarios, there are cases where users modify the server by themselves. Users install untested PCIe components on the server, and the server does not identify and restrict these untested PCIe components, which often leads to many unpredictable bugs when customers expand the configuration by themselves, seriously affecting the operation stability of the server. Utility Model Content
[0003] In view of the above-mentioned deficiencies in the prior art, the utility model provides a PCIe component identification device to solve the above-mentioned technical problems.
[0004] The utility model provides a PCIe component identification device, comprising:
[0005] CPLD, the CPLD is connected to the BMC chip via an I2C link, and the CPLD is communicatively connected to the PCA chip;
[0006] The PCA chip expands multiple I2C links, and multiple I2C ports corresponding to the multiple I2C links are respectively connected to multiple PCIe connectors, and the PCIe connectors are used to connect PCIe components;
[0007] The BMC chip is connected to the flash memory of the BIOS chip through the KCS channel, the BMC chip reads the PCIe component asset information identified by the BIOS chip from the flash memory, performs a validity check on the PCIe component asset information, and sends the check result to the CPLD through the I2C link;
[0008] The CPLD is electrically connected to an indicator light, and the indicator light is used to indicate whether there is an illegal PCIe component;
[0009] The CPLD controls the state of the indicator light based on the verification result, and controls the PCA chip to set the I2C port corresponding to the illegal PCIe component to be disabled.
[0010] In an optional implementation, the multiple PCIe connectors correspond to the multiple indicator lights respectively, and the enable drivers of the multiple indicator lights are electrically connected to the CPLD.
[0011] In an optional implementation, the indicator light is a red and green dual-color LED light, and the red and green dual-color LED light is installed on the corresponding PCIe connector.
[0012] In an optional implementation, the CPLD, the BMC chip, and the PCA chip are interconnected via an I2C link.
[0013] In an optional implementation, the single-chip microcomputer of the I2C link includes a special function register, and the special function register coordinates the multi-master competition state of the I2C link.
[0014] In an optional implementation, the CPLD is connected to the PCA chip via an I2C link.
[0015] In an optional implementation, the indicator light is a non-polarity red and green bicolor light.
[0016] In an optional embodiment, the positive pole of the power supply is electrically connected to one end of the first switch and one end of the second switch, and the other end of the first switch is electrically connected to the input end of the non-polarity red and green bicolor light and one end of the third switch; the output end of the non-polarity red and green bicolor light is electrically connected to one end of the fourth switch; the other end of the second switch is electrically connected to one end of the fourth switch; the other end of the third switch and the other end of the fourth switch are both electrically connected to the negative pole of the power supply; the power supply is a 5V power supply for the server; and the CPLD controls the on and off states of the first switch, the second switch, the third switch and the fourth switch.
[0017] In an optional implementation, the non-polarity red and green bicolor lamp includes a base, and the base is fixedly mounted on the server chassis by screws.
[0018] The beneficial effect of the utility model is that the PCIe component identification device provided by the utility model realizes the identification and restriction of the PCIe components of the server by adding CPLD and indicator lights and combining the original functions of BMC and BIOS. The indicator lights are used to prompt the existence of illegal PCIe components in the server in a timely manner, and the illegal PCIe components are restricted, thereby avoiding bugs caused by illegal PCIe components and affecting the stable operation of the server.
[0019] In addition, the utility model has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the utility model or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 It is a schematic architecture diagram of a PCIe component identification device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0024] The key terms appearing in the present invention are explained below.
[0025] BMC, the server remote management controller, is called Baseboard Management Controller in English. It can perform firmware upgrades, check machine equipment, and other operations on the machine when the machine is not turned on. Fully implementing IPMI functions in BMC requires a powerful 16-bit or 32-bit microcontroller, RAM for data storage, flash memory for non-volatile data storage, and firmware, which can provide basic remote manageability in terms of safe remote restart, safe power-on, LAN warning, and system health monitoring. In addition to basic IPMI functions and system operation monitoring functions, mBMC can also realize the selection and protection of BIOS fast components by using one of the two flash memories to store the previous BIOS. For example, when the system cannot be started after a remote BIOS upgrade, the remote administrator can switch back to the previously working BIOS image to start the system. Once the BIOS is upgraded, the BIOS image can also be locked to effectively prevent viruses from invading it.
[0026] The I2C link is a simple, bidirectional, two-wire synchronous serial bus developed by Philips. It only requires two wires to transmit information between devices connected to the bus. The master device is used to start the bus to transmit data and generate a clock to open the transmitting device. At this time, any addressed device is considered a slave device. The relationship between the master and slave, send and receive on the bus is not constant, but depends on the data transmission direction at this time. If the host wants to send data to the slave device, the host first addresses the slave device, then actively sends data to the slave device, and finally the host terminates the data transmission; if the host wants to receive data from the slave device, the master device first addresses the slave device. Then the host receives the data sent by the slave device, and finally the host terminates the receiving process. In this case, the host is responsible for generating the timing clock and terminating the data transmission.
[0027] BIOS is the abbreviation of "Basic Input Output System". The Chinese name is "Basic Input Output System". On IBM PC compatible systems, it is an industry-standard firmware interface. It is a set of programs fixed to a ROM chip on the motherboard of the computer. It stores the most important basic input and output programs of the computer, the self-test program after power-on, and the system self-starting program. It can read and write specific information of system settings from CMOS. Its main function is to provide the lowest-level and most direct hardware settings and control for the computer. In addition, BIOS also provides some system parameters to the operating system. Changes in system hardware are hidden by BIOS, and programs use BIOS functions instead of directly controlling hardware. Modern operating systems ignore the abstraction layer provided by BIOS and directly control hardware components.
[0028] PCI-Express (Peripheral Component Interconnect Express) is a high-speed serial computer expansion bus standard. PCIe is a high-speed serial point-to-point dual-channel high-bandwidth transmission. The connected devices are allocated exclusive channel bandwidth and do not share bus bandwidth. It mainly supports active power management, error reporting, end-to-end reliable transmission, hot plugging, and quality of service (QOS) and other functions.
[0029] PCA is an I2C expansion chip.
[0030] CPLD uses programming technologies such as CMOS EPROM, EEPROM, flash memory and SRAM to form a high-density, high-speed and low-power programmable logic device.
[0031] To facilitate understanding of the present invention, the PCIe component identification device provided by the present invention is further described below based on the principle of the PCIe component identification device of the present invention and in combination with an embodiment.
[0032] For details, please refer to Figure 1 , the PCIe component identification device comprises:
[0033] CPLD, CPLD connects BMC chip and PCA chip through I2C link; the microcontroller of I2C link includes special function registers, which coordinate the multi-master competition state of I2C link; thus, the interconnection of CPLD, BMC chip and PCA chip can be realized. Compared with the traditional architecture, CPLD is only connected to BMC chip, and BMC is connected to PCA chip as a transit chip, which reduces the data interaction of BMC chip. Among them, the special function register (sfr register) of the microcontroller of I2C link coordinates the multi-master competition state of I2C link, which is the built-in function of I2C link. The I2C link hardware and software protocol is very clever, and it can be used to form a multi-master system. When there are multiple I2C link interfaces in the system, complex state of multi-master competition will appear. The I2C link hardware and software protocol, as well as the sfr register in the I2C link microcontroller, ensure the coordinated management of multi-master competition. The state processing software package provided by I2C link can automatically handle 26 states appearing on the bus. When using the I2C link, these software are located in the program memory, and the standardized operation commands are compiled using these software, which is very simple and convenient to design.
[0034] The PCA chip expands multiple I2C links, and multiple I2C ports corresponding to the multiple I2C links are respectively connected to multiple PCIe connectors, and the PCIe connectors are used to connect PCIe components.
[0035] The BMC chip is connected to the flash memory of the BIOS chip through the KCS channel. The BMC chip reads the PCIe component asset information identified by the BIOS chip from the flash memory, performs a validity check on the PCIe component asset information, and sends the check result to the CPLD through the I2C link. Although the BMC chip and the BIOS chip can communicate through the IPMI service (Intelligent Platform Management Interface), the data exchange volume of the IPMI service is large. Therefore, in order not to increase the data exchange volume of the IPMI service and improve the efficiency of component identification, the BMC chip is connected to the flash memory of the BIOS chip through the KCS channel. The BIOS chip saves the component information identified during the boot process to the flash memory, and the BMC chip reads the PCIe component asset information through the KCS channel. The data reading function is a regular function of the BMC chip. The BMC chip performs a validity check on the PCIe component asset information by comparing the PCIe component asset information with the tested component information in the whitelist. This whitelist verification procedure is a mature existing technology.
[0036] CPLD electrical connection indicator, the indicator is used to indicate whether there are illegal PCIe components; the indicator can be installed in a conspicuous position on the chassis.
[0037] The CPLD controls the state of the indicator light based on the verification result, and controls the PCA chip to set the I2C port corresponding to the illegal PCIe component to be disabled.
[0038] Among them, multiple PCIe connectors correspond to multiple indicator lights respectively, and the enable drivers of the multiple indicator lights are electrically connected to the CPLD. The indicator lights use red and green dual-color LED lights, which are installed on the corresponding PCIe connectors. This indicator light deployment method can locate and display illegal PCIe components, making it easy for users to replace them. When the CPLD controls the indicator lights, the indicator lights corresponding to the illegal PCIe components light up red, and the indicator lights corresponding to the legal PCIe components light up green. The control program of multiple red and green dual-color LED lights is a prior art.
[0039] The PCA chip adopts PCA9548, and the method of disabling the I2C port is a prior art, which requires only modifying the parameters in the I2C status register STAT.
[0040] The parameters of the I2C status register STAT are as follows:
[0041] (1) Bit 0 (MSTPENDING) is the host suspend flag, which is a read-only attribute. When the value is 0, it means that communication is in progress, the host function is busy, and it cannot accept commands at present. When the value is 1, it means that it is suspended, the host function needs software service, or it is in an idle state.
[0042] (2) Bits 1 to 3 (MSTSTATE) are the host status code. These bits are read-only. When the MSTPENDING bit (bit 0) is set (i.e., the host is suspended or in idle state), the host status code is used to reflect the specific state of the host. Values from 0x0 to 0x4 represent idle, ready to receive, ready to send, NACK address, and NACK data, respectively. (3) Bit 4 (MSTARBLOSS) is the host arbitration loss flag. Writing 1 can clear this flag. When the value is 0, it means that no arbitration loss has occurred. When the value is 1, it means that the host function has suffered arbitration loss. At this time, the host function stops driving the bus and enters the idle state. (4) Bit 5 is a reserved bit. Only 0 can be written when writing. (5) Bit 6 (MSTSTSTPERR) is the host start / stop error flag. Writing 1 can clear this flag. When the value is 0, it means that no start / stop error has occurred. When the value is 1, it means that the host function has suffered a start / stop error. The host interface has stopped driving the bus and entered the idle state. No operation is required. (6) Bit 7 is a reserved bit and can only be written as 0. (7) Bit 8 (SLVPENDING) is the slave suspend bit, which is a read-only attribute. When the value is 0, it means that the slave function does not need service at present. When the value is 1, it means that the slave function is waiting to continue communicating on the I2C link and requires software service. Information about the required service can be found in the adjacent SLVSTATE field (bits 9 and 10). (8) Bits 9 to 10 (SLVSTATE) are slave status codes. These bits are read-only attributes. Each value in this field indicates the specific service required by the slave function. Values from 0x0 to 0x3 represent slave address, slave reception, slave transmission, and reserved, respectively. (9) Bit 11 (SLVNOTSTR) is the slave not performing stretching flag. This bit is a read-only attribute. This bit indicates when the slave function is stretching the I2C clock. This is required in order to be able to freely call deep sleep or power-down mode during slave operation. A value of 0 indicates that the slave function is currently stretching the I2C link clock and cannot enter deep sleep or power-down mode. A value of 1 indicates that the slave function is not currently stretching the I2C link clock and can enter deep sleep or power-down mode.
[0043] (10) Bits 12 to 13 (SLVIDX) are the slave address match index. These bits are read-only. This field is valid when the I2C slave function is selected by receiving an address that matches one of the slave addresses (determined by any enabled slave address register) and identifies the matching address. There may be more than one matching address, but only one matching address can be reported here. Values from 0x0 to 0x3 represent slave addresses 0, 1, 2, and 3, respectively. (11) Bit 14 (SLVSEL) is the slave selection flag. This bit is read-only. SLVSEL is set after the address matches when the software instructs the slave function to confirm the address. It is cleared when an address that does not match the enabled address on the slave function appears in another address cycle, when the slave software decides to NACK a matching address, or when Stop is detected on the bus. If the software NACKs the data, SLVSEL will not be cleared. A value of 0 indicates that the slave function is not currently selected, and a value of 1 indicates that the slave function is currently selected. (12) Bit 15 (SLVDESEL) is the slave deselect flag. Writing 1 clears this flag. When the value is 0, it indicates that the slave function has not been deselected. When the value is 1, it indicates that the slave function has been deselected. If this flag is enabled by INTENSET, it will cause an interrupt when it is set. (13) Bit 16 (MONRDY) is the monitor ready flag. This bit is read-only. This flag is cleared when the MONRXDAT register is read. When the value is 0, it indicates that the monitor function currently has no data available. When the value is 1, it indicates that the monitor function contains data to be read. (14) Bit 17 (MONOV) is the monitor overflow flag. Writing 1 clears this flag. When the value is 0, it indicates that the monitor data has not overflowed. When the value is 1, it indicates that the monitor data has overflowed. This happens only when the monitor clock stretching is not enabled by the MONCLKSTR bit in the CFG register. (15) Bit 18 (MONACTIVE) is the monitor active flag. This bit is read-only. This flag shows when the monitor considers the I2C link to be active. A value of 0 indicates that the monitor function considers the I2C link to be inactive, and a value of 1 indicates that the monitor function considers the I2C link to be active. (16) Bit 19 (MONIDLE) is the monitor idle flag, which can be cleared by writing 1. This flag is set when the monitor function confirms that the I2C link has changed from an active state to an inactive state. Software can use it to confirm when to process the data stored by the monitor function. If this flag is enabled through the INTENSET register, it will cause an interrupt when it is set. A value of 0 indicates that the I2C link is not idle, or this flag has been cleared by software. A value of 1 indicates that the I2C link has been idle at least once since this bit was last cleared by software. (17) Bits 20 to 23 are reserved bits and can only be written as 0.(18) Bit 24 (EVENTTIMEOUT) is the event timeout interrupt flag. Writing 1 clears this flag. This bit indicates when the time between events is longer than the time specified in the TIMEOUT register. Events include Start, Stop, and clock edge. Writing 1 to this bit clears this flag. When the I2C link is idle, no timeout is created. A value of 0 indicates that the I2C link event did not cause a timeout, and a value of 1 indicates that the time between I2C link events is longer than the time specified in the I2C TIMEOUT register. (19) Bit 25 (SCLTIMEOUT) is the SCL timeout interrupt flag. Writing 1 clears this flag. This bit indicates when the SCL remains low for longer than the time specified in the TIMEOUT register. A value of 0 indicates that the SCL low time has not caused a timeout, and a value of 1 indicates that the SCL low time has caused a timeout. (20) Bits 26 to 31 are reserved bits. Only 0 can be written when writing.
[0044] Obviously, when disabling the I2C port, you only need to set the 8th bit in the corresponding status register to 0.
[0045] The indicator light adopts a non-polarity red and green bicolor light. The positive pole of the power supply is electrically connected to one end of the first switch and one end of the second switch respectively, and the other end of the first switch is electrically connected to the input end of the non-polarity red and green bicolor light and one end of the third switch respectively; the output end of the non-polarity red and green bicolor light is electrically connected to one end of the fourth switch; the other end of the second switch is electrically connected to one end of the fourth switch; the other end of the third switch and the other end of the fourth switch are both electrically connected to the negative pole of the power supply; the power supply is a 5V power supply of the server; the CPLD controls the on and off states of the first switch, the second switch, the third switch and the fourth switch. The non-polarity red and green bicolor light includes a base, which is fixedly mounted on the server chassis by screws.
[0046] Different combinations of switches S1~S4 can control the direction of the current passing through the non-polarity bicolor LED lamp (D1). When switches S1 and S4 are closed at the same time, the current will pass through the non-polarity bicolor LED lamp from left to right. When switches S2 and S3 are closed at the same time, the current will pass through the non-polarity bicolor LED lamp from right to left. Due to the characteristics of the non-polarity bicolor LED lamp, when the current flows through the non-polarity bicolor LED lamp from different directions, the lamp will show different colors.
[0047] Although the utility model is described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the utility model is not limited thereto. Without departing from the spirit and essence of the utility model, ordinary technicians in the field can make various equivalent modifications or substitutions to the embodiments of the utility model, and these modifications or substitutions should be within the scope of the utility model / any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the utility model, which should be included in the protection scope of the utility model. Therefore, the protection scope of the utility model shall be based on the protection scope of the claims.
Claims
1. A PCIe component identification device, characterized in that: include: CPLD, the CPLD is connected to the BMC chip via an I2C link, and the CPLD is communicatively connected to the PCA chip; The PCA chip expands multiple I2C links, and multiple I2C ports corresponding to the multiple I2C links are respectively connected to multiple PCIe connectors, and the PCIe connectors are used to connect PCIe components; The BMC chip is connected to the flash memory of the BIOS chip through the KCS channel, the BMC chip reads the PCIe component asset information identified by the BIOS chip from the flash memory, performs a validity check on the PCIe component asset information, and sends the check result to the CPLD through the I2C link; The CPLD is electrically connected to an indicator light, and the indicator light is used to indicate whether there is an illegal PCIe component; The CPLD controls the state of the indicator light based on the verification result, and controls the PCA chip to set the I2C port corresponding to the illegal PCIe component to be disabled.
2. The PCIe component identification device according to claim 1, characterized in that: The multiple PCIe connectors correspond to the multiple indicator lights respectively, and the enable drivers of the multiple indicator lights are electrically connected to the CPLD.
3. The PCIe component identification device according to claim 2, characterized in that: The indicator light adopts a red and green dual-color LED light, and the red and green dual-color LED light is installed on the corresponding PCIe connector.
4. The PCIe component identification device according to claim 1, characterized in that: The PCA chip expands 8 I2C links.
5. The PCIe component identification device according to claim 1, characterized in that: The CPLD, BMC chip and PCA chip are interconnected through an I2C link.
6. The PCIe component identification device according to claim 1, characterized in that: The single-chip microcomputer of the I2C link includes a special function register, and the special function register coordinates the multi-master competition state of the I2C link.
7. The PCIe component identification device according to claim 1, characterized in that: The CPLD is connected to the PCA chip via an I2C link.
8. The PCIe component identification device according to claim 1, characterized in that: The indicator light adopts a non-polarity red and green two-color light.
9. The PCIe component identification device according to claim 8, characterized in that: The positive pole of the power supply is electrically connected to one end of the first switch and one end of the second switch respectively, and the other end of the first switch is electrically connected to the input end of the non-polarity red and green bicolor light and one end of the third switch respectively; the output end of the non-polarity red and green bicolor light is electrically connected to one end of the fourth switch; the other end of the second switch is electrically connected to one end of the fourth switch; the other end of the third switch and the other end of the fourth switch are both electrically connected to the negative pole of the power supply; the power supply is a 5V power supply for the server; the CPLD controls the on and off states of the first switch, the second switch, the third switch and the fourth switch.
10. The PCIe component identification device according to claim 9, characterized in that: The non-polarity red and green bicolor lamp comprises a base, and the base is fixedly mounted on the server chassis by screws.
