Lighting method and lighting system for NVMe hard disk based on Feiteng server
The board type and PCIE bridge are obtained through the motherboard CPLD, and the lighting instructions are obtained in combination with the motherboard BMC detection status, which solves the problem of the NVMe hard disk lighting protocol of Feiteng server and realizes effective NVMe hard disk lighting.
Patent Information
- Application Number
- CN202210767519.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2042-06-30
AI Technical Summary
The PCIE port of Feiteng server is limited and does not support the lighting protocol of NVMe hard disks. The existing hard disk backplane design cannot realize lighting of NVMe hard disks.
Obtain the board type through the motherboard CPLD, obtain the configuration information of the NVMe hard disk according to the preset comparison table, configure the PCIE bridge, and obtain the lighting command through the motherboard BMC to detect the hard disk status to transmit it to the backboard CPLD for lighting.
It solves the problem that Feiteng server has limited PCIE ports and does not support NVMe hard disk lighting, and realizes effective lighting of NVMe hard disk.
Smart Images

Figure CN115061884B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a lighting method and lighting system for an NVMe hard disk based on a Feiteng server. Background Art
[0002] Currently, Feiteng servers' central processing units (CPUs) support a limited number of PCIE (peripheral component interconnect express) ports, requiring expansion through a PCIE bridge. However, different motherboards require different port configurations, resulting in dynamic changes in the PCIE device number assigned by NVMe (NVM Express). Furthermore, existing hard drive backplane designs primarily utilize the SFF-8485 protocol to illuminate SAS / SATA hard drives. This protocol does not support the in-band pins of NVMe hard drives, so existing backplane designs do not support NVMe hard drive illumination.
[0003] At present, in the field of computer server technology, in Chinese patent documents, there is a patent application titled "A hard disk lighting method, device, electronic device and storage medium" with application number CN201910968215.5, which introduces a hard disk lighting method, the method comprising: obtaining the drive letter of the target hard disk, and judging whether the target hard disk is a hard disk directly connected to the PCH based on the drive letter; if so, determining the slot identifier corresponding to the target hard disk through hardware connection, and determining the I2C address corresponding to the slot identifier; switching the I2C switch to the channel connected to the CPLD, and sending a lighting command including the I2C address to the CPLD through the BMC, so that the CPLD sends a lighting command to the I2C address to complete the lighting operation of the target hard disk. The hard disk lighting method of this application realizes hard disk positioning through the hard disk drive letter. However, when encountering a hot plug action, the hard disk drive letter is reallocated, and there is a problem of hard disk positioning failure. Summary of the Invention
[0004] In order to solve at least one of the above problems, the first embodiment of the present invention provides a backplane lighting method for an NVMe hard drive based on a Feiteng server, comprising the following steps:
[0005] S20: Obtaining a card type of a card connected to a motherboard slot through a motherboard CPLD, and obtaining configuration information of the NVMe hard disk according to the card type and a pre-set first comparison table, wherein the first comparison table includes the card type and the configuration information corresponding to the card type;
[0006] S40: configuring the PCIE bridge chip through the mainboard CPLD according to the configuration information;
[0007] S60: The hard disk status of the NVMe hard disk detected by the motherboard BMC obtains the lighting instruction from the pre-set second comparison table, and transmits the lighting instruction to the backplane CPLD, so that the backplane CPLD lights up according to the lighting instruction. The second comparison table includes the NVMe hard disk status and the lighting instruction corresponding to the NVMe hard disk status.
[0008] For example, in the backplane lighting method provided in some embodiments of the present application, step S20 further includes:
[0009] The interface expansion chip is read through the mainboard CPLD to obtain the board identification of the board connected to the mainboard slot, and the corresponding board type is obtained according to the board identification.
[0010] For example, in the backplane lighting method provided in some embodiments of the present application, the mainboard CPLD reads the interface expansion chip through the I2C bus to obtain the board identification.
[0011] For example, in the backplane lighting method provided in some embodiments of the present application, the card identifier of the board connected to the mainboard slot is the port value formed after the board is connected.
[0012] For example, in the backplane lighting method provided in some embodiments of the present application, the configuration information includes the NVMe device number, the NVMe physical slot, the register address of the backplane CPLD, and the bus channel connected to the backplane CPLD.
[0013] For example, in the backplane lighting method provided in some embodiments of the present application, step S40 further includes: according to the configuration information, configuring the general input and output ports of the PCIE bridge chip through the motherboard CPLD to allocate the PCIE device number of the NVMe hard disk.
[0014] For example, in the backplane lighting method provided in some embodiments of the present application, step S60 further includes: the mainboard BMC transmits the lighting instruction to the mainboard low-speed connector through the I2C bus, transmits it to the backplane low-speed connector through the mainboard low-speed connector, and transmits it to the backplane CPLD through the backplane low-speed connector.
[0015] A second embodiment of the present invention provides a lighting system using the lighting method described in the first embodiment, comprising a main board and a back board, wherein:
[0016] The mainboard includes a mainboard CPLD, a mainboard BMC, a PCIE bridge chip, and a mainboard slot. The backplane includes a backplane CPLD, an NVMe physical slot, and multiple LED display lights. The mainboard is configured as follows:
[0017] Obtaining, through the motherboard CPLD, a board type of the board connected to the motherboard slot, and obtaining, according to the board type and a pre-set first comparison table, configuration information of the NVMe hard disk inserted into the NVMe physical slot of the backplane, wherein the first comparison table includes the board type and the configuration information corresponding to the board type;
[0018] Configuring the PCIE bridge chip through the mainboard CPLD according to the configuration information;
[0019] The hard disk status of the NVMe hard disk detected by the motherboard BMC obtains the lighting instruction from the pre-set second comparison table, and transmits the lighting instruction to the backplane CPLD, so that the backplane CPLD lights up the LED display light according to the lighting instruction. The second comparison table includes the NVMe hard disk status and the lighting instruction corresponding to the NVMe hard disk status.
[0020] A third embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method described in the first embodiment is implemented.
[0021] A fourth embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first embodiment when executing the program.
[0022] The beneficial effects of the present invention are as follows:
[0023] In response to the current existing problems, the present invention develops a backplane lighting method and lighting system for an NVMe hard drive based on a Feiteng server, and obtains the board type of the board connected to the motherboard slot, obtains the configuration information of the NVMe hard drive according to the board type and a pre-set first comparison table, and then configures the PCIE bridge chip through the motherboard CPLD according to the configuration information, and then obtains the lighting instruction from the pre-set second comparison table based on the hard drive status of the NVMe hard drive detected by the motherboard BMC, and transmits the lighting instruction to the backplane CPLD so that the backplane CPLD lights up according to the lighting instruction. The embodiment provided by the present invention can solve the problem that the PCIE port of the Feiteng server is limited and does not support the lighting protocol of the NVMe hard drive, and has practical application value. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 A flow chart showing a back panel lighting method according to an embodiment of the present invention;
[0026] Figure 2 A schematic structural diagram of a lighting system according to an embodiment of the present invention is shown;
[0027] Figure 3 A schematic structural diagram of a computer device according to another embodiment of the present invention is shown. DETAILED DESCRIPTION
[0028] In order to more clearly illustrate the present invention, the present invention is further described below in conjunction with preferred embodiments and accompanying drawings. Similar components in the accompanying drawings are represented by the same reference numerals. It should be understood by those skilled in the art that the following detailed description is illustrative rather than restrictive and should not be used to limit the scope of protection of the present invention.
[0029] In view of the problems existing in the existing technology, such as Figure 1 As shown, an embodiment of the present invention provides a backplane lighting method for an NVMe hard disk based on a Feiteng server, comprising the steps of:
[0030] S20: Obtaining a card type of a card connected to a motherboard slot through a motherboard CPLD, and obtaining configuration information of the NVMe hard disk according to the card type and a pre-set first comparison table, wherein the first comparison table includes the card type and the configuration information corresponding to the card type;
[0031] S40: configuring the PCIE bridge chip through the mainboard CPLD according to the configuration information;
[0032] S60: The hard disk status of the NVMe hard disk detected by the motherboard BMC obtains the lighting instruction from the pre-set second comparison table, and transmits the lighting instruction to the backplane CPLD, so that the backplane CPLD lights up according to the lighting instruction. The second comparison table includes the NVMe hard disk status and the lighting instruction corresponding to the NVMe hard disk status.
[0033] In this embodiment, the card type of the card connected to the motherboard slot is obtained, and the configuration information of the NVMe hard disk is obtained according to the card type and a pre-set first comparison table. Then, the PCIE bridge chip is configured through the motherboard CPLD according to the configuration information. Then, the hard disk status of the NVMe hard disk detected by the motherboard BMC is used to obtain a lighting instruction from a pre-set second comparison table, and the lighting instruction is transmitted to the backplane CPLD so that the backplane CPLD turns on the light according to the lighting instruction. The embodiment provided by the present invention can solve the problem that the PCIE port of Feiteng server is limited and does not support the lighting protocol of NVMe hard disk, and has practical application value.
[0034] In a specific example, Figure 2 The figure shows a lighting system, including a motherboard and a backplane, wherein the motherboard includes a motherboard CPLD, a motherboard BMC, a PCIE bridge chip and a motherboard slot, and the backplane includes a backplane CPLD, an NVMe physical slot, and multiple LED display lights. In this embodiment, the motherboard CPLD is used to start the Feiteng server, the motherboard BMC is used to send instructions to the backplane CPLD, the PCIE bridge chip is used to configure the PCIE port of the NVMe hard drive, and the motherboard slot is used to access the backplane; the backplane CPLD is used to control and manage the various components on the backplane, the NVMe physical slot is used to access the NVMe hard drive, and the multiple LED display lights are used to display the status of the NVMe hard drive; as shown in FIG. Figure 2 As shown, the mainboard also includes an interface expansion chip (IO EXPANDER) and a mainboard low-speed connector, and the backplane also includes a backplane low-speed connector. The mainboard CPLD reads the interface expansion chip through the I2C bus to obtain the board identifier of the board connected to the mainboard slot, and obtains the corresponding board type according to the board identifier; the mainboard low-speed connector is used to connect to the backplane low-speed connector to realize communication between the mainboard and the backplane.
[0035] In this embodiment, the board identifier is a port value formed after the board is connected. Specifically, the mainboard includes multiple input and output ports, wherein three input and output ports are provided with pull-up and pull-down resistors. When connected to different backplanes, the three input and output ports form a board identifier corresponding to the connected backplane. For example, as shown in Table 1, the three input and output ports form a 3-bit board identifier, which can represent 8 types of board types.
[0036] Table 1 First comparison table
[0037]
[0038] As shown in Table 1, this is a first comparison table pre-set in this embodiment. The first comparison table includes the board type and the configuration information corresponding to the board type. The configuration information includes the NVMe device number, the NVMe physical slot, the register address of the backplane CPLD, and the bus channel connected to the backplane CPLD.
[0039] In this embodiment, the lighting method specifically includes:
[0040] In the first step, the motherboard CPLD obtains the board type of the board connected to the motherboard slot, and obtains the configuration information of the NVMe hard disk inserted into the NVMe physical slot of the backplane according to the board type and the preset first comparison table.
[0041] The second step is to configure the PCIE bridge chip through the motherboard CPLD according to the configuration information. Specifically, according to the configuration information, the motherboard CPLD configures the general input and output ports of the PCIE bridge chip to allocate the PCIE device number of the NVMe hard drive.
[0042] The third step is to obtain the lighting instruction from the preset second comparison table through the hard disk status of the NVMe hard disk detected by the motherboard BMC, and transmit the lighting instruction to the backplane CPLD, so that the backplane CPLD lights up the LED display light according to the lighting instruction. The second comparison table includes the NVMe hard disk status and the lighting instruction corresponding to the NVMe hard disk status.
[0043] like Figure 2 As shown, specifically, the mainboard BMC transmits the lighting instruction to the mainboard low-speed connector through the I2C bus, transmits it to the backplane low-speed connector through the mainboard low-speed connector, and transmits it to the backplane CPLD through the backplane low-speed connector.
[0044] As shown in Table 2, the second comparison table includes the NVMe hard disk status and the lighting instruction corresponding to the NVMe hard disk status. The motherboard BMC generates a lighting instruction based on the detected NVMe hard disk status and the second comparison table, and transmits it to the backplane CPLD, thereby realizing control of each LED display light through the backplane CPLD, that is, lighting the corresponding LED indicator light according to the NVMe hard disk status, thereby solving the problem that the PCIE port of the Feiteng server is limited and does not support the lighting protocol of the NVMe hard disk, and has practical application value.
[0045] Table 2 Second comparison table
[0046] CPLD register values color Light Status Function Definition 0000 green Constantly on Idle state 0001 green Flashing 4hz There is data transmission 0010 blue Flashing 4hz position 0011 blue Extinguished normal 0100 orange color Flashing 1hz Rebuilding or hot-swapping 0101 orange color Flashing 0.25hz Hot swap completed 0110 orange color Constantly on Hard drive failure 0111 orange color Extinguished normal
[0047] To further illustrate the specific implementation of this application, a specific example is given below:
[0048] The first step is to identify the board type
[0049] After the motherboard is plugged into the power supply, the motherboard CPLD will perform I2C communication with the interface expansion chip IO EXPANDER chip, read the three general input and output ports to obtain the board identification 010, and confirm that the board type is 2 according to the first comparison table. The PCIE device numbers corresponding to the NVMe device are number 0, number 1, number 2, and number 3, respectively. Among them, the NVMe physical slot corresponding to number 0 is 0, the corresponding backplane CPLD register address is 0x70, and the corresponding I2C channel is channel 0. Similarly, the NVMe physical slot corresponding to number 1 is 1, the corresponding backplane CPLD register address is 0x71, and the corresponding I2C channel is channel 0. The NVMe physical slot corresponding to number 2 is 2, the corresponding backplane CPLD register address is 0x72, and the corresponding I2C channel is channel 0. The NVMe physical slot corresponding to number 3 is 3, the corresponding backplane CPLD register address is 0x73, and the corresponding I2C channel is channel 0.
[0050] That is, the motherboard CPLD reads the interface expansion chip through the I2C bus to obtain the board identification of the board connected to the motherboard slot, obtains the board type of the board according to the first comparison table, and then obtains the configuration information of the NVMe hard disk according to the board type and the first comparison table. The first comparison table includes the board type and the configuration information corresponding to the board type.
[0051] The second step is to configure the PCIE bridge chip on the motherboard CPLD
[0052] The motherboard CPLD performs PCIE configuration with the GPIO pins of the PCIE bridge, confirms that the PCIE device numbers corresponding to the NVMe devices are 0, 1, 2, and 3, respectively, and configures the PCIE bridge according to the corresponding configuration information. That is, based on the configuration information, the motherboard CPLD configures the general input and output ports of the PCIE bridge to allocate the PCIE device number of the NVMe hard drive.
[0053] The third step is to light the lamp.
[0054] First, according to the correspondence between the device number of the NVMe hard disk and the physical slot in the first comparison table of Table 1, for example, when the hard disk in physical slot 1 detected by the motherboard BMC is currently in the positioning state, according to the second comparison table, it can be known that the blue indicator light should be turned on. The motherboard BMC transmits the lighting instruction including 0010 to the motherboard low-speed connector through the I2C bus, and transmits it to the register address 0x71 of the backplane CPLD through the motherboard low-speed connector and the backplane low-speed connector.
[0055] Secondly, when the backplane CPLD detects that the register value in register address 0x71 is 0010, it will control the blue LED light of slot 1 to flash at a frequency of 4HZ, thereby lighting up according to the status of the NVMe hard drive.
[0056] Finally, when the motherboard BMC detects that the status of the NVMe hard disk has changed to normal, the lighting instruction including 0011 is again transmitted to the register of the register address 0x71 of the backplane CPLD according to Table 2, so that the blue LED light of the backplane CPLD control slot 1 is turned off, thereby realizing lighting according to the status of the NVMe hard disk.
[0057] That is, the hard disk status of the NVMe hard disk detected by the motherboard BMC obtains the lighting instruction from the pre-set second comparison table, and transmits the lighting instruction to the backplane CPLD, so that the backplane CPLD lights up according to the lighting instruction. The second comparison table includes the NVMe hard disk status and the lighting instruction corresponding to the NVMe hard disk status.
[0058] This embodiment obtains the board type of the board connected to the motherboard slot, obtains the configuration information of the NVMe hard disk according to the board type and a preset first comparison table, and then configures the PCIE bridge chip through the motherboard CPLD according to the configuration information. Then, the hard disk status of the NVMe hard disk detected by the motherboard BMC is obtained from the preset second comparison table, and the lighting instruction is transmitted to the backplane CPLD so that the backplane CPLD is turned on according to the lighting instruction. It can solve the problem that the PCIE port of the Feiteng server is limited and does not support the lighting protocol of the NVMe hard disk, and has practical application value.
[0059] Corresponding to the lighting method provided in the above-mentioned embodiment, an embodiment of the present application also provides a lighting system that applies the above-mentioned lighting method. Since the lighting system provided in the embodiment of the present application corresponds to the lighting methods provided in the above-mentioned embodiments, the previous implementation method is also applicable to the lighting system provided in this embodiment and will not be described in detail in this embodiment.
[0060] like Figure 2 As shown, an embodiment of the present application further provides a lighting system applying the above lighting method, comprising a main board and a back board, wherein:
[0061] The mainboard includes a mainboard CPLD, a mainboard BMC, a PCIE bridge chip, and a mainboard slot. The backplane includes a backplane CPLD, an NVMe physical slot, and multiple LED display lights. The mainboard is configured as follows:
[0062] Obtaining, through the motherboard CPLD, a board type of the board connected to the motherboard slot, and obtaining, according to the board type and a pre-set first comparison table, configuration information of the NVMe hard disk inserted into the NVMe physical slot of the backplane, wherein the first comparison table includes the board type and the configuration information corresponding to the board type;
[0063] Configuring the PCIE bridge chip through the mainboard CPLD according to the configuration information;
[0064] The hard disk status of the NVMe hard disk detected by the motherboard BMC obtains the lighting instruction from the pre-set second comparison table, and transmits the lighting instruction to the backplane CPLD, so that the backplane CPLD lights up the LED display light according to the lighting instruction. The second comparison table includes the NVMe hard disk status and the lighting instruction corresponding to the NVMe hard disk status.
[0065] The lighting system provided in this embodiment obtains the board type of the board connected to the motherboard slot, obtains the configuration information of the NVMe hard disk according to the board type and a preset first comparison table, and then configures the PCIE bridge chip through the motherboard CPLD according to the configuration information, and then obtains the lighting instruction from the preset second comparison table through the hard disk status of the NVMe hard disk detected by the motherboard BMC, and transmits the lighting instruction to the backplane CPLD so that the backplane CPLD lights up according to the lighting instruction; it can solve the problem that the PCIE port of Feiteng server is limited and does not support the lighting protocol of NVMe hard disk, and has practical application value.
[0066] Another embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements: obtaining the board type of the board connected to the motherboard slot through the motherboard CPLD, and obtaining the configuration information of the NVMe hard disk inserted into the NVMe physical slot of the backplane according to the board type and a pre-set first comparison table, wherein the first comparison table includes the board type and the configuration information corresponding to the board type; configuring the PCIE bridge chip through the motherboard CPLD according to the configuration information; obtaining a lighting instruction from a pre-set second comparison table based on the hard disk status of the NVMe hard disk detected by the motherboard BMC, and transmitting the lighting instruction to the backplane CPLD, so that the backplane CPLD lights up the LED display light according to the lighting instruction, wherein the second comparison table includes the NVMe hard disk status and the lighting instruction corresponding to the NVMe hard disk status.
[0067] In practical applications, the computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0068] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0069] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0070] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0071] like Figure 3As shown, a structural diagram of a computer device provided by another embodiment of the present invention. Figure 3 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0072] like Figure 3 As shown, computer device 12 is implemented as a general-purpose computing device. Components of computer device 12 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and a bus 18 that connects various system components (including system memory 28 and processing unit 16).
[0073] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0074] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0075] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be configured to read and write non-removable, non-volatile magnetic media ( Figure 3 Not shown, often called a "hard drive"). Although Figure 3 Not shown, a magnetic disk drive for reading and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.
[0076] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally implement the functions and / or methods of the embodiments described herein.
[0077] The computer device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may occur through an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. Figure 3 As shown, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. Figure 3 Not shown, other hardware and / or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0078] The processor unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing a lighting method provided by an embodiment of the present invention.
[0079] It should be noted that the order of the steps of the lighting method provided in the embodiment of the present invention can be appropriately adjusted, and the steps can be increased or decreased accordingly according to the situation. Any changes that can be easily obtained by any technician familiar with this technical field within the technical scope disclosed in this aspect should be covered within the scope of protection of the present invention, so they will not be repeated.
[0080] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not limitations on the implementation methods of the present invention. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the implementation methods here. All obvious changes or modifications derived from the technical solution of the present invention are still within the scope of protection of the present invention.
Claims
1. A lighting method for an NVMe hard drive based on a Feiteng server, characterized in that: Including steps: S20: Obtaining the board type of the board connected to the motherboard slot through the motherboard CPLD, and obtaining the configuration information of the NVMe hard disk according to the board type and a pre-set first comparison table, wherein the first comparison table includes the board type and the configuration information corresponding to the board type; further comprising: reading the interface expansion chip through the motherboard CPLD to obtain the board identifier of the board connected to the motherboard slot, obtaining the corresponding board type according to the board identifier, the motherboard CPLD reading the interface expansion chip through the I2C bus to obtain the board identifier, and the standard card identifier of the board connected to the motherboard slot is the port value formed after the board is connected; S40: Configuring a PCIE bridge chip through the motherboard CPLD according to the configuration information, wherein the configuration information includes an NVMe device number, an NVMe physical slot, a register address of a backplane CPLD, and a bus channel connected to the backplane CPLD; further comprising: configuring a general input and output port of the PCIE bridge chip through the motherboard CPLD according to the configuration information to allocate the PCIE device number of the NVMe hard drive; S60: The hard disk status of the NVMe hard disk detected by the motherboard BMC obtains the lighting instruction from the pre-set second comparison table, and transmits the lighting instruction to the backplane CPLD, so that the backplane CPLD lights up according to the lighting instruction. The second comparison table includes the NVMe hard disk status and the lighting instruction corresponding to the NVMe hard disk status.
2. The lighting method according to claim 1, wherein: Step S60 further includes: the mainboard BMC transmits the lighting instruction to the mainboard low-speed connector via the I2C bus, transmits it to the backplane low-speed connector via the mainboard low-speed connector, and transmits it to the backplane CPLD via the backplane low-speed connector.
3. A lighting system using the lighting method according to any one of claims 1 to 2, characterized in that: Including the main board and back board, The mainboard includes a mainboard CPLD, a mainboard BMC, a PCIE bridge chip, and a mainboard slot. The backplane includes a backplane CPLD, an NVMe physical slot, and multiple LED display lights. The mainboard is configured as follows: Obtaining the board type of the board connected to the motherboard slot through the motherboard CPLD, and obtaining the configuration information of the NVMe hard disk inserted into the NVMe physical slot of the backplane according to the board type and a pre-set first comparison table, wherein the first comparison table includes the board type and the configuration information corresponding to the board type; further configured as follows: reading the interface expansion chip through the motherboard CPLD to obtain the board identifier of the board connected to the motherboard slot, obtaining the corresponding board type according to the board identifier, the motherboard CPLD reading the interface expansion chip through the I2C bus to obtain the board identifier, and the standard card identifier of the board connected to the motherboard slot is the port value formed after the board is connected; According to the configuration information, the PCIE bridge is configured through the motherboard CPLD, where the configuration information includes an NVMe device number, an NVMe physical slot, a register address of a backplane CPLD, and a bus channel connected to the backplane CPLD; and further configured to: according to the configuration information, configure the general input and output ports of the PCIE bridge through the motherboard CPLD to allocate the PCIE device number of the NVMe hard drive; The hard disk status of the NVMe hard disk detected by the motherboard BMC obtains the lighting instruction from the pre-set second comparison table, and transmits the lighting instruction to the backplane CPLD, so that the backplane CPLD lights up the LED display light according to the lighting instruction. The second comparison table includes the NVMe hard disk status and the lighting instruction corresponding to the NVMe hard disk status.
4. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.
5. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 2 is implemented.
Citation Information
Patent Citations
Hard disk lighting method and device, electronic equipment and storage medium
CN110764978A
General PCIE device light-on method and system
CN108777897A
Method and device for reducing hard disk backboard cables in server
CN112069766A