Storage device information collection method, system and electronic device

By setting up the I2C module and Gigabit network interface in the FPGA/CPLD chip, the problem of high time consumption of NVME SSD out-of-band information collection and low reliability of the I2C bus is solved, achieving efficient and reliable storage device information collection and supporting a large number of storage devices. Real-time temperature monitoring and troubleshooting.

CN114721593BActive Publication Date: 2024-10-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202210272868.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-18
Publication Date
2024-10-15
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

In the existing technology, the out-of-band information collection method of NVME SSD has the problems of high time consumption and low reliability of the I2C bus. Especially when the number of storage devices increases, it leads to a decrease in the timeliness of temperature refresh and an increase in the probability of failure, resulting in the baseboard management controller Unable to obtain the temperature information of all SSDs, causing computer system abnormalities.

Method used

Set up a preset number of I2C modules in the FPGA/CPLD chip. Each module includes a programmable memory and an I2C main interface. The storage device is connected through the I2C bus. The baseboard management controller accesses the programmable memory to collect information and collects information through the Gigabit network interface. Accelerate data transfer, configure the status register to count the number of hang-ups and temperature reading frequency, and ensure independent reset and health status judgment.

Benefits of technology

It improves the efficiency of storage device information collection, reduces the possibility of I2C bus failure, ensures real-time acquisition of temperature information of storage devices, solves the problem of fault diffusion caused by I2C bus hang, and supports information collection of 100 or more storage devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114721593B_ABST
    Figure CN114721593B_ABST
Patent Text Reader

Abstract

The present application provides a storage information collection method: a preset number of I2C modules are set in an FPGA / CPLD chip, each I2C module includes a programmable memory and an I2C master interface; the I2C master interface is connected to a storage device via an I2C bus, and the I2C master interface corresponds to the storage device; each I2C module queries the corresponding storage device information via the I2C bus and stores it in its own programmable memory; a baseboard management controller accesses the programmable memory in each I2C module to collect storage device information. There is no need for the baseboard controller to constantly switch the I2C bus to query all storage devices one by one, thereby improving the efficiency of collecting storage device information. The possibility of failure due to too many slave devices on a single I2C bus is reduced, and the reliability of the I2C bus is improved. The I2C corresponding to each storage device can be reset independently to solve the problem of being unable to access the storage device due to the I2C bus being hung.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing data, and in particular to a storage device information collection method, system and electronic device. Background Art

[0002] Currently, NVME (Non-Volatile Memory express) SSD (Solid State Disk) is widely used in data center storage devices. The out-of-band information of NVME SSD generally includes the model, serial number, manufacturer, real-time temperature and other information of SSD, and may even include error and fault information in the future. The out-of-band information of NVME SSD is usually collected by the baseboard management controller (BMC), because the I2C (Inter-Integrated Circuit, bidirectional two-wire synchronous serial bus) interface of the baseboard management controller is limited, and the I2C interface also needs to connect to many other devices. Currently, the baseboard management controller is mainly expanded into a multi-channel I2C bus through the I2C expansion chip PCA9548 or CPLD for collection (the device usually has 24 SSDs, requiring 24 channels, PCA9548 has only 8 channels, and at least 3 expansion chips are required), such as patents CN109144914A; CN111865411A; CN113434442A, etc.

[0003] There are two prominent problems in the current methods of collecting out-of-band information of SSDs: the out-of-band information reading of SSDs requires the baseboard management controller to continuously switch 24 I2Cs to poll all SSDs one by one. One of the problems is that it is time-consuming. The I2C bus is a low-speed signal, with a standard speed of 100kbps, a fast mode of 400kbps, and a high-speed mode of 3.4Mbps. For reliability, the I2C bus actually uses 400Kbps or even 100Kbps. However, with the development of NVME HDDs and SSDs, the number of disk slots supported by the device is constantly being refreshed and broken through. If the storage device has 100 NVME HDDs / HDDs or even more disk slots, it will seriously affect the timeliness of the SSD / HDD temperature refresh; another problem is that the I2C bus has low reliability and is easy to hang. After the chip is expanded, the number of slave devices on a single I2C bus increases a lot, and the possibility of failure increases. If the data line SDA is pulled by the SSD slave device, the control circuit of the expansion chip cannot operate, causing the baseboard management controller to lose the ability to reset the SSD. Therefore, if any SSD accidentally pulls the data line SDA of the I2C bus due to untimely response, it can easily cause the fault to spread. The baseboard management controller will not be able to obtain the temperatures of many SSDs, and the computer system will have problems such as SSD temperature reading failure alarm and abnormal fan speed.

[0004] Based on the above problems, the present invention proposes a storage device collection method to effectively solve the above problems. Summary of the invention

[0005] In order to solve the deficiencies of the prior art, the main purpose of the present invention is to provide a storage device information collection method and system to solve the above-mentioned technical problems of the prior art.

[0006] In order to achieve the above object, the present invention provides a storage device information collection method in a first aspect, the method comprising:

[0007] A preset number of I2C modules are arranged in the FPGA / CPLD chip, each of the I2C modules comprising a programmable memory and an I2C master interface;

[0008] Connecting the I2C master interface to the storage device via an I2C bus, wherein the I2C master interface corresponds to the storage device in a one-to-one manner;

[0009] Each of the I2C modules queries the corresponding storage device information through the I2C bus and stores it in its own programmable memory;

[0010] The baseboard management controller accesses the programmable memory in each of the I2C modules to collect the storage device information.

[0011] In some embodiments, the baseboard management controller accesses the programmable memory in each of the I2C modules to collect the storage device information, including:

[0012] The FPGA / CPLD chip is provided with a gigabit high-speed network interface for connecting the FPGA / CPLD chip and the baseboard management controller;

[0013] The baseboard management controller accesses the programmable memory through the gigabit high-speed network based on the gigabit high-speed network interface to collect the storage device information.

[0014] In some embodiments, a preset number of I2C modules are set in the FPGA / CPLD chip, and the I2C module includes a programmable memory and an I2C master interface, and further includes:

[0015] Configuring a general input and output interface in the programmable memory;

[0016] Setting a control register and a status register in the programmable memory;

[0017] The universal input and output interface is used to transmit a presence signal, a power control signal, a reset signal and a fault lighting signal.

[0018] In some embodiments, the setting of the control register and the status register in the programmable memory further includes:

[0019] Setting the bus dead flag bit of the status register;

[0020] If the I2C bus is hung, the bus hung flag is set to 1;

[0021] The bus dead count flag of the status register is set to count the number of dead times of the I2C bus to reflect the health status of the I2C bus.

[0022] In some embodiments, the setting of the control register and the status register in the programmable memory further includes:

[0023] The temperature reading frequency flag bit of the control register is set to adjust the temperature reading frequency.

[0024] In some embodiments, the setting of the control register and the status register in the programmable memory further includes:

[0025] The power-on and power-off count flag of the status register is set to count the number of power-off and power-on times to reflect the health status of the storage device.

[0026] In some embodiments, the method further comprises:

[0027] The FPGA / CPLD chip is cascaded by a switching chip, and the FPGA / CPLD chip is not unique;

[0028] The baseboard management controller accesses each of the cascaded FPGA / CPLD chips to obtain the storage device information corresponding to each of the FPGA / CPLD chips.

[0029] In some embodiments, the method further comprises:

[0030] The CPU is connected to the baseboard management controller via a gigabit network interface and / or a PCIE bus;

[0031] The CPU obtains the storage device information collected by the baseboard management controller, and determines the health status of the storage device according to the storage device information.

[0032] In a second aspect, the present application provides a storage device information collection system, the system comprising:

[0033] At least one FPGA / CPLD chip, wherein the FPGA / CPLD chip is connected to a baseboard management controller;

[0034] Wherein, the FPGA / CPLD chip is provided with an I2C module, and each of the I2C modules includes an I2C master interface and a programmable memory;

[0035] The I2C master interface is connected to the storage device via the I2C bus, and the I2C master interface corresponds to the storage device one by one;

[0036] The programmable memory is used to refresh and store the storage device information in real time;

[0037] The baseboard management controller is used to access the programmable memory and collect storage device information.

[0038] In a third aspect, the present application provides an electronic device, the electronic device comprising:

[0039] one or more processors;

[0040] and a memory associated with the one or more processors, the memory being used to store program instructions, the program instructions when read and executed by the one or more processors performing the following operations:

[0041] A preset number of I2C modules are arranged in the FPGA / CPLD chip, each of the I2C modules comprising a programmable memory and an I2C master interface;

[0042] Connecting the I2C master interface to the storage device via an I2C bus, wherein the I2C master interface corresponds to the storage device in a one-to-one manner;

[0043] Each of the I2C modules queries the corresponding storage device information through the I2C bus and stores it in its own programmable memory;

[0044] The baseboard management controller accesses the programmable memory in each of the I2C modules to collect the storage device information.

[0045] The beneficial effects achieved by this application are:

[0046] The present application provides a storage information collection method, including setting a preset number of I2C modules in an FPGA / CPLD chip, each of the I2C modules including a programmable memory and an I2C master interface; connecting the I2C master interface and the storage device through an I2C bus, and the I2C master interface corresponds to the storage device one by one; each of the I2C modules queries the corresponding storage device information through the I2C bus and stores it in its own programmable memory; the baseboard management controller accesses the programmable memory in each of the I2C modules to collect the storage device information. The present application is based on an FPGA / CPLD chip, and sets an I2C module corresponding to the number of storage devices. One I2C master interface corresponds to one storage device, and there is no need to switch the I2C bus, that is, there is no need for the baseboard controller to continuously switch the I2C bus to query all storage devices one by one, thereby improving the efficiency of collecting storage device information. In addition, the present application reduces the possibility of an I2C bus failure due to an excessive number of slave devices on a single I2C bus, and improves the reliability of the I2C bus. And the I2C corresponding to each storage device can be reset independently, solving the problem of being unable to access the storage device due to the I2C bus being hung.

[0047] Furthermore, the present application also proposes to configure a gigabit network interface for the FPGA / CPLD chip to connect to the baseboard management controller, which greatly improves the speed at which the baseboard management controller collects storage device information. In addition, the present application can also support 100 or more storage devices by cascading FPGA / CPLD chips through a switching chip.

[0048] Not all products in this application need to have all the above effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0050] Figure 1 is a schematic diagram of a storage device information collection system provided in an embodiment of the present application;

[0051] Figure 2 It is a schematic diagram of the flag position improved in the embodiment of the present application;

[0052] Figure 3 It is a cascade schematic diagram provided in an embodiment of the present application;

[0053] Figure 4 is a flow chart of the method provided in the embodiment of the present application;

[0054] Figure 5 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0056] It should be understood that in the description of the present application, unless the context clearly requires otherwise, words such as "include", "comprises", and the like in the entire specification and claims should be interpreted as inclusive rather than exclusive or exhaustive; that is, the meaning of "including but not limited to".

[0057] It should also be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, "plurality" means two or more.

[0058] It should be noted that the terms "S1", "S2", etc. are only used for the purpose of describing the steps, and do not specifically refer to the order or sequence, nor are they used to limit the present application. They are only for the convenience of describing the method of the present application, and cannot be understood as indicating the order of the steps. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present application.

[0059] As described in the background technology, there are two problems in the prior art because the baseboard management controller needs to continuously switch the 24-way I2C bus to query all SSDs one by one. One is that it takes too long to collect all SSD out-of-band information. The other problem is that after the I2C bus is hung by the SSD slave device, the SSD cannot be reset, resulting in the spread of the fault, which further makes it impossible for the baseboard management controller to obtain the temperature of all SSDs, resulting in unsatisfactory information collection effect, and even causes problems such as abnormal computer fan speed.

[0060] In order to solve the above technical problems, the present application provides a method for collecting out-of-band information of storage devices based on FPGA (Field Programmable Gate Array) / CPLD (Complex Programmable logic device) chips. It is mainly through configuring a preset number of I2C modules in the chip, each I2C module is provided with an I2C master interface to connect to the storage device through the I2C bus; at the same time, the I2C module is also provided with a programmable memory for real-time refreshing and storing storage device information; in addition, some general input and output interfaces are also configured in the programmable memory to assist in controlling the storage device. When any storage device is hung on the corresponding I2C bus, the baseboard management controller can independently reset the I2C bus connected to the storage device. And the baseboard management controller accesses the programmable memory storing the storage device information inside the FPGA / CPLD chip through the gigabit network, which can realize the rapid transmission of storage device information.

[0061] Embodiment 1

[0062] like Figure 1 As shown, an embodiment of the present application provides a storage device information collection system, which is described by taking an FPGA chip as an example. Specifically, the system includes at least one FPGA chip 1100, a baseboard management controller 1200, a CPU 1300, and a storage device 1400.

[0063] Specifically, the FPGA chip 1100 is provided with a preset number of I2C modules 1110 (not shown in the figure), and the I2C modules can program a memory 1111 and an I2C master interface 1112. A computer device usually mounts 24 storage devices 1400. Preferably, in this application, 25 I2C modules 1110 are provided on the FPGA chip 1100, and each I2C module 1110 is provided with an I2C master interface 1112. Each I2C module 1110 is connected to 25 storage devices 1140 through an I2C bus to query and obtain storage device information in real time. The I2C module 1110 refreshes the storage device information obtained by the query in real time and stores it in the programmable memory 1111 for acquisition by the baseboard management controller 1200; the storage device information at least includes the model, serial number, manufacturer, temperature and other information of the storage device 1400.

[0064] The baseboard management controller 1200 uses the gigabit network to read the storage device information stored in the programmable memory 1111 through the gigabit network interface 1120 set on the FPGA chip 1100. Preferably, after collecting all the storage device information, the baseboard management controller 1200 transmits the storage device information to the CPU 1300 through the gigabit network interface and / or the PCIE bus, and the CPU 1300 uses the storage device information to determine the health status of the storage device 1400 and the corresponding connected I2C bus.

[0065] In some implementation scenarios, the CPU 1300 is connected to the storage device 1400 via a PCIE bus to implement operations such as writing data to the storage device 1400 .

[0066] In some implementation scenarios, the programmable memory 1111 is also provided with a general purpose input and output interface (GPIO, General Purpose Input Output) (not shown in the figure) to assist in controlling the storage device 1400. Preferably, four general purpose input and output interfaces can be provided to transmit a presence signal, a power control signal, a reset signal, and a fault lighting signal.

[0067] In some implementation scenarios, the programmable memory 1111 is provided with a control register and a status register. The control register and the status register can be set by the user, and this application does not limit this. Preferably, this application embodiment lists a setting method for illustration:

[0068] The first 16 bits in the configuration programmable memory 1111 are control registers and status registers, which are defined as follows: Figure 2Bit 15 is the in-place flag, which is used to indicate the in-place information of the storage device 1400. The default value is 0, and it will become 1 after the corresponding storage device 1400 is inserted. It is worth noting that the baseboard management controller 1200 first confirms whether the storage device 1400 is in place through the gigabit network, and only reads and analyzes other information after it is in place.

[0069] Bit 14 is set as the power-on enable flag, which defaults to 0. After detecting that the storage device 1400 is inserted in place, it will be set to 1 after a delay of 500ms for the power control signal to be issued. Through the baseboard management controller 1200, the CPU 1300 can confirm whether the power-on of the storage device 1400 has been issued. In addition, when the storage device 1400 is abnormal, such as the I2C bus is hung or the PCIE (peripheral component interconnect express, high-speed serial computer expansion bus standard) link between the storage device 1400 and the CPU 1300 is not connected, the CPU 1300 can use the baseboard management controller 1200 to first write the power-on enable flag to 0, and then write 1, so that the storage device 1400 can be powered on and off to try to repair it.

[0070] Bit 13 is set as the bus dead flag, which defaults to 0. If both the in-position flag and the power-on enable flag are 1, and the data line SDA (Serial Data) of the I2C bus is pulled dead by the storage device 1400, the bus dead flag is set to 1, which is convenient for the baseboard management controller 1200 to query the fault status. The data line SDA of the I2C bus is pulled dead by the storage device 1400, that is, the I2C bus connected to the storage device 1400 is dead. At this time, the CPU 1300 can send a reset instruction to the storage device 1400 through the PCIE bus to control the storage device 1400 to power on and off again for reset, so as to solve the problem that the storage device 1400 cannot be accessed after the I2C bus is hung.

[0071] Bit 12 is the link status flag of the PCIE link between the CPU 1300 and the storage device 1400, and the default value is 0. After obtaining the link status of the PCIE link through the I2C bus, if it is set to 1, if the storage device 1400 does not support linking to the CPU 1300, it is a reserved status bit, that is, the link status flag is 0.

[0072] Bits 11 to 8 are set as bus hang count flags, with a default setting of 0000, 1 hang count is 0001, 2 hang counts are 0010, and the maximum count is 1111, supporting 15 counts. The bus hang count can be used to count the health status of the I2C bus connected to the storage device 1400, and further used to support product production quality inspection.

[0073] Bit 7 is the reset enable flag, which is set to 0 by default. After the power-on enable flag is set to 1, it is set to 1 after a delay of 200ms, which complies with the power-on timing of the PCIE device.

[0074] Bit 6 to bit 4 are set as power-on and power-off count flags, which are set to 000 by default, and power-off and power-on once is counted as 001, twice is counted as 010, and the maximum is 111, supporting 8 power-off and power-on counts. The power-off and power-on count can be used to count the number of times the storage device 1400 attempts to repair, and to assist the CPU 1300 in determining the health status of the storage device 1400.

[0075] Bit 3 is set as the fault light enable flag, and the default setting is 0. After the CPU 1300 determines that the storage device 1400 is faulty, the fault warning light on the storage device 1400 is turned on through the link of the CPU 1300-baseboard management controller 1200-FPGA chip 1100-storage device 1400 to locate the fault.

[0076] Bit 2 to bit 0 are set as the temperature reading frequency flag, which is used to set the reading frequency of the temperature of the storage device 1400. The default setting is 001, that is, the temperature reading frequency is maintained at 1s. 010 is the reading frequency at intervals of 2S, 011 is the reading frequency at intervals of 3S, and so on. 111 is the reading frequency at intervals of 7S, and the maximum supported storage device 1400 temperature reading frequency setting is 7S.

[0077] Other register flags of the programmable memory 1111 are used to store information such as the manufacturer, model, serial number, production date, temperature, etc. of the storage device. When it is necessary to collect storage device information, the I2C master interface 1112 of the FPGA chip 1100 queries and reads the storage device information from the storage device 1400 in advance through the I2C bus, puts it in the programmable memory 1111, and waits for the baseboard management controller 1200 to obtain it through the gigabit network.

[0078] It is worth noting that Figure 3 As shown, the present application can also easily support the information of 100 or more storage devices 1400 of mobile phones by switching chips and cascading multiple FPGA chips. The above storage device 1400 can be NVME SSD or NVME HDD (Hard Disk Drive).

[0079] The method of collecting storage device information using a CPLD chip is the same as the method of collecting storage device information using an FPGA chip, and will not be repeated here.

[0080] Embodiment 2

[0081] Corresponding to the storage information collection system disclosed in the above embodiment, Embodiment 2 of the present application provides a storage device information processing method, the method comprising:

[0082] S100. Query storage device information through FPGA / CPLD / CPLD chip.

[0083] An I2C module is provided in the FPGA / CPLD chip, and preferably, the number of storage devices corresponding to the device can be 25; each I2C module includes a programmable memory and an I2C master interface. The FPGA / CPLD chip is connected to the storage device via the I2C master interface, and the I2C module queries and obtains the storage device information via the I2C bus connecting the I2C master interface and the storage device. The I2C module stores the storage device information obtained by the query in a corresponding position in the programmable memory in real time, wherein the programmable memory is also provided with a general input and output interface to realize auxiliary control of the storage device. The specific storage device information storage and the general input and output interface auxiliary control storage device related technical content have been described in Example 1, and will not be repeated here.

[0084] S200: The baseboard management controller accesses the FPGA / CPLD chip to collect corresponding storage device information.

[0085] Specifically, the baseboard management controller accesses the FPGA / CPLD chip through a gigabit high-speed network interface provided on the FPGA / CPLD chip, and reads the storage device information stored in real time in the writable memory.

[0086] S300: The CPU determines the health status of the storage device according to the storage device information collected by the baseboard management controller.

[0087] The CPU is connected to the baseboard controller through a gigabit network interface and / or a PCIE bus to obtain the storage device information collected by the baseboard controller. The storage device information includes power-on enable flag data, bus hang flag data, link link status flag data, hang count flag data, reset enable flag data, power-off and power-on count flag data, fault lighting enable flag data, the manufacturer, model, serial number, production date, temperature and other information of the storage device. The CPU obtains the number of bus hangs according to the hang technology flag data to count the health status of the I2C bus connected to the storage device to support product production quality inspection. If the number of I2C bus hangs is too many, it means that the I2C bus may have problems during production and needs to be replaced. The CPU counts the number of times the storage device attempts to repair according to the power-off and power-on count flag data to assist in judging the health status of the storage device. If the storage device is repaired many times, it means that the storage device may fail. After the CPU determines that the storage device fails, the fault instruction and FPGA / CPLD chip are transmitted to the corresponding storage device through the baseboard management controller and the corresponding fault alarm is lit.

[0088] Embodiment 3

[0089] Corresponding to all the above-mentioned embodiments 1 and 2, embodiment 3 of the present application provides a storage device information collection method, such as Figure 4 As shown, including:

[0090] 4100. Set a preset number of I2C modules in the FPGA / CPLD chip, each of the I2C modules including a programmable memory and an I2C master interface;

[0091] Preferably, a preset number of I2C modules are set in the FPGA / CPLD chip, each of the I2C modules includes a programmable memory and an I2C master interface, and further includes:

[0092] 4110. Configuring a general input and output interface in the programmable memory;

[0093] 4120. Setting a control register and a status register in the programmable memory;

[0094] Preferably, the step of setting a control register and a status register in the programmable memory further comprises:

[0095] 4121. Set the bus dead flag bit of the status register;

[0096] 4122. If the I2C bus is hung, set the bus hung flag to 1;

[0097] 4123. Set the bus dead count flag of the status register to count the number of dead times of the I2C bus to reflect the health status of the I2C bus.

[0098] 4124. Set the temperature reading frequency flag of the control register to adjust the temperature reading frequency.

[0099] 4125. Set the power-on and power-off count flag of the status register to count the number of power-off and power-on times to reflect the health status of the storage device.

[0100] 4130. The universal input and output interface is used to transmit a presence signal, a power control signal, a reset signal and a fault lighting signal.

[0101] 4200. Connect the I2C master interface and the storage device through an I2C bus, wherein the I2C master interface and the storage device correspond one to one;

[0102] 4300. Query corresponding storage device information through the I2C bus and store it in respective programmable memories;

[0103] 4400. The baseboard management controller accesses the programmable memory in each of the I2C modules to collect the storage device information.

[0104] Preferably, the baseboard management controller accesses the programmable memory in each of the I2C modules to collect the storage device information, including:

[0105] 4410. The FPGA / CPLD chip is provided with a gigabit high-speed network interface for connecting the FPGA / CPLD chip and the baseboard management controller;

[0106] 4420. The baseboard management controller accesses the programmable memory through the gigabit high-speed network based on the gigabit high-speed network interface to collect the storage device information.

[0107] Preferably, the method further comprises

[0108] 4510. cascading the FPGA / CPLD chip by a switching chip, wherein the FPGA / CPLD chip is not unique;

[0109] 4520. The baseboard management controller accesses each of the cascaded FPGA / CPLD chips to obtain the storage device information corresponding to each of the FPGA / CPLD chips.

[0110] Preferably, the method further comprises

[0111] 4610. The CPU is connected to the baseboard management controller via a gigabit network interface and / or a PCIE bus;

[0112] 4620. The CPU obtains the storage device information collected by the baseboard management controller, and determines the health status of the storage device according to the storage device information.

[0113] Embodiment 4

[0114] Corresponding to all the above embodiments, Embodiment 4 of the present application further provides an electronic device, including:

[0115] One or more processors; and a memory associated with the one or more processors, the memory being used to store program instructions, the program instructions when read and executed by the one or more processors, performing the following operations:

[0116] A preset number of I2C modules are arranged in the FPGA / CPLD chip, each of the I2C modules comprising a programmable memory and an I2C master interface;

[0117] Connecting the I2C master interface to the storage device via an I2C bus, wherein the I2C master interface corresponds to the storage device in a one-to-one manner;

[0118] Each of the I2C modules queries the corresponding storage device information through the I2C bus and stores it in its own programmable memory;

[0119] The baseboard management controller accesses the programmable memory in each of the I2C modules to collect the storage device information.

[0120] in, Figure 5 The architecture of the electronic device is shown as an example, which may include a processor 510, a video display adapter 511, a disk drive 512, an input / output interface 513, a network interface 514, and a memory 520. The processor 510, the video display adapter 511, the disk drive 512, the input / output interface 513, the network interface 514, and the memory 520 may be communicatively connected via a bus 530.

[0121] Among them, the processor 510 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solution provided in this application.

[0122] The memory 520 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 520 can store an operating system 521 for controlling the execution of the electronic device 500, and a basic input and output system (BIOS) 522 for controlling the low-level operations of the electronic device 500. In addition, a web browser 523, a data storage management system 524, and an icon font processing system 525, etc. can also be stored. The above-mentioned icon font processing system 525 can be an application program that specifically implements the operations of the aforementioned steps in the embodiment of the present application. In short, when the technical solution provided in the present application is implemented by software or firmware, the relevant program code is stored in the memory 520 and is called and executed by the processor 510.

[0123] The input / output interface 513 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0124] The network interface 514 is used to connect to a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0125] The bus 530 comprises a pathway for transmitting information between the various components of the device (eg, the processor 510, the video display adapter 511, the disk drive 512, the input / output interface 513, the network interface 514, and the memory 520).

[0126] In addition, the electronic device 500 can also obtain information on specific collection conditions from the virtual resource object collection condition information database for use in condition judgment, etc.

[0127] It should be noted that, although the above device only shows a processor 510, a video display adapter 511, a disk drive 512, an input / output interface 513, a network interface 514, a memory 520, a bus 530, etc., in the specific implementation process, the device may also include other components necessary for normal execution. In addition, it can be understood by those skilled in the art that the above device may also only include components necessary for implementing the solution of the present application, and does not necessarily include all the components shown in the figure.

[0128] It can be seen from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a cloud service end, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0129] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0130] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A method for collecting storage device information, It is characterized in that The method comprises: A preset number of I2C modules are arranged in the FPGA / CPLD chip, each of the I2C modules comprising a programmable memory and an I2C master interface; Connecting the I2C master interface to the storage device via an I2C bus, wherein the I2C master interface corresponds to the storage device in a one-to-one manner; Each of the I2C modules queries the corresponding storage device information through the I2C bus and stores it in its own programmable memory; The baseboard management controller accesses the programmable memory in each of the I2C modules to collect the storage device information; The baseboard management controller accesses the programmable memory in each of the I2C modules to collect the storage device information, including: The FPGA / CPLD chip is provided with a gigabit high-speed network interface for connecting the FPGA / CPLD chip and the baseboard management controller; The baseboard management controller accesses the programmable memory through the gigabit high-speed network based on the gigabit high-speed network interface to collect the storage device information.

2. The method according to claim 1, It is characterized in that The FPGA / CPLD chip is provided with a preset number of I2C modules, each of which includes a programmable memory and an I2C master interface, and further includes: Configuring a general input and output interface in the programmable memory; Setting a control register and a status register in the programmable memory; The universal input and output interface is used to transmit a presence signal, a power control signal, a reset signal and a fault lighting signal.

3. The method according to claim 2, It is characterized in that The control register and the status register are set in the programmable memory, and further comprises: Setting the bus dead flag bit of the status register; If the I2C bus is hung, the bus hung flag is set to 1; The bus dead flag bit of the status register is set to 4 bits, and the number of dead times of the I2C bus is counted to reflect the health status of the I2C bus and the health status of the storage device.

4. The method according to claim 2, It is characterized in that The control register and the status register are set in the programmable memory, and further comprises: The temperature reading frequency flag bit of the control register is set to 3 bits to adjust the temperature reading frequency.

5. The method according to claim 2, It is characterized in that The control register and the status register are set in the programmable memory, and further comprises: The power-on and power-off count flag bit of the status register is set to 3 bits, and the number of power-off and power-on times is counted to reflect the health status of the storage device.

6. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: The FPGA / CPLD chip is cascaded by a switching chip, and the FPGA / CPLD chip is not unique; The baseboard management controller accesses each of the cascaded FPGA / CPLD chips to obtain the storage device information corresponding to each of the FPGA / CPLD chips.

7. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: The CPU is connected to the baseboard management controller via a gigabit network interface and / or a PCIE bus; The CPU obtains the storage device information collected by the baseboard management controller, and determines the health status of the storage device according to the storage device information.

8. A storage device information collection system, It is characterized in that The system comprises: At least one FPGA / CPLD chip, wherein the FPGA / CPLD chip is connected to a baseboard management controller; Wherein, an I2C module is arranged in the FPGA / CPLD chip, and each of the I2C modules includes an I2C master interface and a programmable memory; The I2C master interface is connected to the storage device via the I2C bus, and the I2C master interface corresponds to the storage device one by one; The programmable memory is used to refresh and store the storage device information in real time; The baseboard management controller is used to access the programmable memory and collect storage device information; The FPGA / CPLD chip is provided with a gigabit high-speed network interface for connecting the FPGA / CPLD chip and the baseboard management controller; The baseboard management controller accesses the programmable memory through the gigabit high-speed network based on the gigabit high-speed network interface to collect the storage device information.

9. An electronic device, It is characterized in that The electronic device comprises: one or more processors; And a memory associated with the one or more processors, the memory is used to store program instructions, and when the program instructions are read and executed by the one or more processors, the method according to any one of claims 1-7 is executed.

Citation Information

Patent Citations

  • Storage server, communication method between motherboard and hard disk, and cpld

    CN109144914A

  • Switch optical module monitoring method, switch optical module monitoring device and related components

    CN111865411A

  • Switch and data access method

    CN113434442A

  • Memory device capable of remotely deleting data and use method thereof

    CN105022972A

  • Acceleration card based on CPLD, data acquisition method and device

    CN109240966A