A self-adaptive storage system and method
By designing an adaptive storage system, using the hard disk port adaptation module and the adaptive storage protocol program compilation module, the problem of inability to compatible with multiple hard disk types in traditional technology is solved, and compatibility with SAS, SATA, and NVME hard disks is achieved. Reduces design costs and improves user experience.
Patent Information
- Application Number
- CN202411566615.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-11-05
AI Technical Summary
Traditional technology cannot be compatible with SAS, SATA, and NVME hard disks at the same time, and the compatibility is poor, resulting in users needing to replace the hardware interface circuit or redesign the hardware interface circuit, which increases design costs and user troubles.
An adaptive storage system is designed, including a CPU module, an adaptive storage management control module, an FPGA module, a hard disk port adapter, a program burner, a program storage unit and an adaptive storage protocol program compilation module. Hard disk information is collected through the hard disk port adapter module, determine whether the current hard disk protocol and driver are adapted, compile and burn the adapter program, and make the FPGA module and CPU module adapt to different types of hard disks.
Compatibility with SAS, SATA, and NVME hard disks is achieved, and the replacement of hardware interface circuits and the modification of the operating system's hard disk drive is avoided, design costs and user troubles are reduced, and data processing efficiency and user experience are improved.
Smart Images

Figure CN119065730B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of server storage, and in particular to a self-adaptive storage system and method. Background Art
[0002] With the rapid development of modern network communication technology, storage hard disks have developed rapidly. Since hard disks store large amounts of data, when hard disks are used in network communication systems, the data in the hard disk can be transmitted to external network devices, and external network devices can also transmit network data to the hard disk to achieve communication and interconnection between the hard disk and the network communication device; the network communication system can access the network data of the external hard disk to perform corresponding network functions; in traditional technologies, the network communication system provides network data to the network device through an external hard disk, and the network device can receive the memory data in the hard disk in real time. The network device executes the user's operating instructions according to the network data, and the hard disk ensures the safe and stable operation of the network communication system. The hard disk has extremely high practical value.
[0003] However, with the rapid development of science and technology and the update of corresponding network communication protocols, technicians have successively designed three different types of solid-state hard disks: SAS (Serial Attached Small Computer System Interface, serial connection small computer system interface) hard disk, SATA (Serial Advanced Technology Attachment, serial advanced technology attachment) hard disk, NVME (Non-Volatile Memory Express, non-volatile memory host controller interface) hard disk. These three types of hard disks are the most mainstream application hard disks in the current communication system. Each hard disk has a variety of communication interface protocols. Under different communication interface protocols, each hard disk has different communication data transmission methods, and the data transmission methods of different hard disks also have large differences; however, since the hardware interface circuit in the traditional technology can only be compatible with a single type of hard disk or two types of hard disks, but cannot be compatible with three types of hard disks at the same time, the types of hard disks in the server system are relatively limited and single; if the user needs to use a hard disk with a different interface type, the hardware interface circuit can only be replaced or redesigned, and the corresponding hard disk driver needs to be added to the operating system, causing unnecessary trouble and design costs. The compatibility of the hardware interface circuit in the traditional technology is low, and the hard disk driver is not compatible. Summary of the invention
[0004] The present invention provides an adaptive storage system and method, aiming to solve the problem that the traditional technical solution cannot be compatible with three hard disks, namely, SAS, SATA and NVME hard disks, and has poor compatibility.
[0005] In a first aspect, a self-adaptive storage system is provided, comprising:
[0006] CPU module, adaptive storage management control module, FPGA module, hard disk port adapter module, program burner, program storage unit and adaptive storage protocol program compilation module;
[0007] A hard disk port conversion module is used to convert the hard disk protocol of the inserted hard disk into a universal protocol;
[0008] The adaptive storage management control module is used to collect first hard disk information of the hard disk through the hard disk port adapter module, and determine whether the current hard disk protocol of the FPGA module and the current hard disk drive of the CPU module are adapted to the hard disk; when the current hard disk protocol of the FPGA module is not adapted to the hard disk, and / or the current hard disk drive of the CPU module is not adapted to the hard disk, determine a new hard disk protocol adapted to the hard disk and / or an adapter program corresponding to the new hard disk drive according to the first hard disk information, and send an adapter program compilation instruction of the adapter program to the adaptive storage protocol program compilation module;
[0009] The adaptation storage protocol program compiling module is used to compile the program according to the adaptation program compiling instruction to obtain the adaptation program and save it to the program storage unit;
[0010] The adaptive storage management control module is also used to send an adaptive program burning instruction to the program burner after identifying that the adaptive program is saved successfully through the IIC bus;
[0011] The program burner is used to scan the program storage unit according to the adapter program burning instruction, and update and burn the scanned adapter program to the FPGA module and / or the CPU module respectively; so that the new hard disk protocol of the FPGA module and / or the new hard disk drive of the CPU module are adapted to the hard disk.
[0012] Furthermore, the adaptive storage system also includes:
[0013] The PCIE Switch unit module establishes a PCIE expansion link with the FPGA module;
[0014] The adaptive storage management control module is further used to calculate the data transmission bandwidth requirement according to the first hard disk information, and send a PCIE resource dynamic allocation instruction to the PCIE Switch unit module according to the data transmission bandwidth requirement;
[0015] The PCIE Switch unit module is used to allocate link resources of the PCIE extension link according to the PCIE resource dynamic allocation instruction.
[0016] Furthermore, the adaptive storage management control module includes:
[0017] The hard disk protocol judgment unit is connected to the FPGA module via a protocol verification bus;
[0018] The hard disk protocol judgment unit is used to obtain the current hard disk protocol of the I / O port of the FPGA module through the protocol verification bus; and judge whether the current hard disk protocol is compatible with the hard disk.
[0019] Furthermore, the adaptive storage management control module also includes:
[0020] The hard disk protocol burning control unit is used to determine an adapter program of a new hard disk protocol that is adapted to the hard disk according to the first hard disk information when the current hard disk protocol is not adapted to the hard disk, and send an adapter program compiling instruction of the adapter program corresponding to the new hard disk protocol to the adaptive storage protocol program compiling module;
[0021] The adaptation storage protocol program compiling module is specifically used to compile the program according to the adaptation program compiling instruction to obtain the adaptation program of the new hard disk protocol, and save it to the program storage unit;
[0022] The hard disk protocol burning control unit is also used to send an adapter program burning instruction to the program burner after the adapter program of the new hard disk protocol is successfully saved through the IIC bus;
[0023] The program burner is used to scan the program storage unit according to the adapter program burning instruction, and update and burn the adapter program of the scanned new hard disk protocol into the FPGA module.
[0024] Furthermore, the CPU module includes:
[0025] CPU module, data processor, BIOS system module and BIOS hard disk drive module;
[0026] BIOS system module, used to store all drivers for normal operation of the CPU module;
[0027] BIOS hard disk drive module, used to store the current hard disk drive;
[0028] A data processor is used to store all drivers of the BIOS system module, and refresh the hard disk driver of the BIOS hard disk driver module in real time, so as to integrate the drivers of the BIOS system module and the BIOS hard disk driver module;
[0029] The CPU module is used to obtain the current hard disk drive through the data processor when the hard disk protocol is adapted to the hard disk, use the current hard disk drive to identify and scan the hard disk, obtain the second hard disk information, and send the second hard disk information to the self-adaptive storage management control module.
[0030] Furthermore, the adaptive storage management control module also includes:
[0031] The hard disk drive judgment unit is used to obtain the second hard disk information fed back by the CPU module; judge whether the second hard disk information is consistent with the first hard disk information; if they are consistent, determine that the current hard disk drive is compatible with the hard disk; if they are inconsistent, determine that the current hard disk drive is not compatible with the hard disk.
[0032] Furthermore, the adaptive storage management control module also includes:
[0033] The hard disk drive burning control unit is used to determine the adapter program of the new hard disk drive that is adapted to the hard disk according to the first hard disk information when the current hard disk drive is not adapted to the hard disk, and send an adapter program compilation instruction of the adapter program corresponding to the new hard disk drive to the adaptation storage protocol program compilation module;
[0034] The adaptation storage protocol program compiling module is specifically used to compile the program according to the adaptation program compiling instruction to obtain the adaptation program of the new hard disk drive, and save it to the program storage unit;
[0035] The hard disk drive burning control unit is also used to send an adapter program burning instruction to the program burner after the adapter program of the new hard disk drive is successfully saved through the IIC bus;
[0036] A program burner is used to scan the program storage unit according to the adapter program burning instruction, and update and burn the adapter program of the scanned new hard disk drive into the BIOS hard disk drive module;
[0037] The data processor is further used to call the new hard disk driver of the BIOS hard disk driver module and merge the driver of the BIOS system module with the new hard disk driver;
[0038] The CPU module is used to obtain a new hard disk drive through a data processor.
[0039] Furthermore, the adaptive storage management control module also includes:
[0040] The sleep control unit is used to control and keep the PCIE Switch unit module, FPGA module, and hard disk port adapter module in working state when the current hard disk drive is adapted to the hard disk, and control the program burner, program storage unit, and adaptation storage protocol program compilation module to be in sleep state.
[0041] Furthermore, the type of the hard disk includes one or more of a SAS hard disk, a SATA hard disk or an NVME hard disk.
[0042] In a second aspect, an adaptive storage method is provided, which is applied to the adaptive storage system of the first aspect, and the adaptive storage method includes:
[0043] The adaptive storage management control module collects first hard disk information of the hard disk through the hard disk port adapter module, and determines whether the current hard disk protocol of the FPGA module and the current hard disk drive of the CPU module are adapted to the hard disk;
[0044] When the current hard disk protocol of the FPGA module is not compatible with the hard disk, and / or the current hard disk drive of the CPU module is not compatible with the hard disk, a new hard disk protocol for adapting the hard disk and / or an adapter program corresponding to the new hard disk drive are determined according to the first hard disk information, and an adapter program compilation instruction of the adapter program is sent to the adapter storage protocol program compilation module;
[0045] The adaptation storage protocol program compiling module compiles the program according to the adaptation program compiling instruction to obtain the adaptation program, and saves the adaptation program to the program storage unit;
[0046] After the adaptive storage management control module recognizes that the adaptive program is saved successfully through the IIC bus, it sends an adaptive program burning instruction to the program burner;
[0047] The program burner scans the program storage unit according to the adapter program burning instruction, and updates and burns the scanned adapter program to the FPGA module and / or the CPU module respectively; so that the new hard disk protocol of the FPGA module and / or the new hard disk drive of the CPU module adapt to the hard disk.
[0048] Beneficial effects of the present invention:
[0049] The adaptive storage system of the present invention comprises a CPU module, an adaptive storage management control module, an FPGA module, a hard disk port adapter module, a program burner, a program storage unit and an adaptive storage protocol program compilation module; the hard disk port adapter module is used to convert the hard disk protocol of the hard disk inserted into the hard disk into a universal protocol; the adaptive storage management control module is used to collect the first hard disk information of the hard disk through the hard disk port adapter module, and judge whether the current hard disk protocol of the FPGA module and the current hard disk drive of the CPU module are adapted to the hard disk; the adaptive storage management control module is also used to determine the adapted hard disk according to the first hard disk information when the current hard disk protocol of the FPGA module is not adapted to the hard disk and / or the current hard disk drive of the CPU module is not adapted to the hard disk. The adapter program corresponding to the new hard disk protocol and / or the new hard disk drive sends the adapter program compilation instruction of the adapter program to the adapter storage protocol program compilation module; the adapter storage protocol program compilation module is used to compile the program according to the adapter program compilation instruction to obtain the adapter program, and save the adapter program to the program storage unit; the self-adaptive storage management control module is also used to identify the adapter program through the IIC bus and send the adapter program burning instruction to the program burner after the successful saving; the program burner is used to scan the program storage unit according to the adapter program burning instruction, and update the scanned adapter program to the FPGA module and / or the CPU module respectively; so that the new hard disk protocol of the FPGA module and / or the new hard disk drive of the CPU module are adapted to the hard disk. The self-adaptive storage management control module can collect the first hard disk information inserted into the hard disk through the hard disk port adapter module, and with the assistance of the adapter storage protocol program compilation module, compile adapter programs for different types of hard disks, which overcomes the problem that traditional technical solutions are not compatible with multiple types of hard disks;
[0050] The adaptive storage management control module can calculate the data transmission bandwidth requirements based on the hard disk information and dynamically allocate PCIE resources according to the requirements, saving the system's available resources and improving the efficiency of data processing;
[0051] The present invention overcomes the problem of data loss caused by the need to shut down the system and restart to refresh the hard disk information each time a new hard disk is inserted in the prior art solution. The information of the inserted new hard disk can be dynamically updated without restarting the system, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.
[0053] Figure 1is a structural diagram of the self-adaptive storage system of the present invention;
[0054] Figure 2 is another structural diagram of the self-adaptive storage system of the present invention;
[0055] Figure 3 is another structural diagram of the self-adaptive storage system of the present invention;
[0056] Figure 4 is a flow chart of the self-adaptive storage method of the present invention;
[0057] Figure 5 It is a schematic diagram of the specific implementation process of the self-adaptive storage method of the present invention. DETAILED DESCRIPTION
[0058] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0059] like Figure 1 As shown, this embodiment provides an adaptive storage system, including:
[0060] CPU module 101, adaptive storage management control module 102, FPGA module 103, hard disk port adapter module 104, program burner 105, program storage unit 106 and adaptive storage protocol program compilation module 107;
[0061] The hard disk port switching module 104 is used to convert the hard disk protocol of the inserted hard disk into a universal protocol;
[0062] The adaptive storage management control module 102 is used to collect the first hard disk information of the hard disk through the hard disk port adapter module 104, and determine whether the current hard disk protocol of the FPGA module 103 and the current hard disk drive of the CPU module 101 are adapted to the hard disk; when the current hard disk protocol of the FPGA module 103 is not adapted to the hard disk, and / or the current hard disk drive of the CPU module 101 is not adapted to the hard disk, determine the new hard disk protocol adapted to the hard disk and / or the adapter program corresponding to the new hard disk drive according to the first hard disk information, and send the adapter program compilation instruction of the adapter program to the adaptive storage protocol program compilation module 107; wherein the hard disk port adapter module 104 is connected to the hard disk port, and what is connected to the hard disk port may be a single hard disk or a heterogeneous hard disk storage matrix, and the type of the hard disk includes one or more of a SAS hard disk, a SATA hard disk or an NVME hard disk;
[0063] The adaptation storage protocol program compiling module 107 is used to compile the program according to the adaptation program compiling instruction to obtain the adaptation program, and save it to the program storage unit 106;
[0064] The adaptive storage management control module 102 is also used to send an adaptive program burning instruction to the program burner 105 after the adaptive program is successfully saved through the IIC (Inter-Integrated Circuit) bus;
[0065] The program burner 105 is used to scan the program storage unit 106 according to the adapter program burning instruction, and update and burn the scanned adapter program to the FPGA module 103 and / or the CPU module 101 respectively; so that the new hard disk protocol of the FPGA module 103 and / or the new hard disk drive of the CPU module 101 adapt to the hard disk.
[0066] The beneficial effects of the embodiments of the present invention are:
[0067] The adaptive storage management control module 102 can collect the first hard disk information inserted into the hard disk through the hard disk port adapter module 104, and compile adaptation programs for different types of hard disks with the assistance of the adaptive storage protocol program compilation module 107, thus overcoming the problem that traditional technical solutions are not compatible with multiple types of hard disks.
[0068] Combined with the above Figure 1 The embodiment shown, as Figure 2 As shown, the self-adaptive storage system also includes:
[0069] PCIE Switch unit module 201 establishes a PCIE extension link with FPGA module 103;
[0070] The adaptive storage management control module 102 is further used to calculate the data transmission bandwidth requirement according to the first hard disk information, and send a PCIE resource dynamic allocation instruction to the PCIE Switch unit module 201 according to the data transmission bandwidth requirement;
[0071] The PCIE Switch unit module 201 is used to allocate link resources of the PCIE extension link according to the PCIE resource dynamic allocation instruction.
[0072] In this embodiment, the PCIE Switch unit module 201 can improve the utilization rate of PCIE link resources and effectively improve the data bandwidth rate.
[0073] Combined with the above Figure 1 In the embodiment shown, the adaptive storage management control module 102 specifically performs the burning process of the new hard disk protocol as follows:
[0074] The adaptive storage management control module 102 includes:
[0075] A hard disk protocol judgment unit connected to the FPGA module 103 via a protocol verification bus;
[0076] The hard disk protocol judgment unit is used to obtain the current hard disk protocol of the I / O port of the FPGA module 103 through the protocol verification bus; and judge whether the current hard disk protocol is compatible with the hard disk.
[0077] The adaptive storage management control module 102 also includes:
[0078] The hard disk protocol burning control unit is used to determine an adapter program of a new hard disk protocol that is adapted to the hard disk according to the first hard disk information when the current hard disk protocol is not adapted to the hard disk, and send an adapter program compiling instruction of the adapter program corresponding to the new hard disk protocol to the adaptive storage protocol program compiling module 107;
[0079] The adaptation storage protocol program compiling module 107 is specifically used to compile the program according to the adaptation program compiling instruction to obtain the adaptation program of the new hard disk protocol, and save it to the program storage unit 106;
[0080] The hard disk protocol burning control unit is also used to send an adapter program burning instruction to the program burner 105 after the adapter program of the new hard disk protocol is successfully saved through the IIC bus;
[0081] The program burner 105 is used to scan the program storage unit 106 according to the adapter program burning instruction, and update and burn the adapter program of the new hard disk protocol obtained by the scan into the FPGA module 103.
[0082] Combined with the above Figure 1 and Figure 2 The embodiment shown, as Figure 3 As shown, in some embodiments of the present invention, the CPU module 101 includes:
[0083] CPU module 301, data processor 302, BIOS system module 303 and BIOS hard disk drive module 304;
[0084] BIOS system module 303, used to store all drivers for normal operation of CPU module 301;
[0085] BIOS hard disk drive module 304, used to store the current hard disk drive;
[0086] The data processor 302 is used to store all drivers of the BIOS system module 303, and refresh and call the hard disk driver of the BIOS hard disk driver module 304 in real time, so as to merge the drivers of the BIOS system module 303 and the BIOS hard disk driver module 304;
[0087] The CPU module 301 is used to obtain the current hard disk drive through the data processor when the hard disk protocol is adapted to the hard disk, use the current hard disk drive to identify and scan the hard disk, obtain the second hard disk information, and send the second hard disk information to the adaptive storage management control module 102.
[0088] Combined with the above Figure 3 In some embodiments of the present invention, the adaptive storage management control module 102 further includes:
[0089] The hard disk drive judgment unit is used to obtain the second hard disk information fed back by the CPU module 301; judge whether the second hard disk information is consistent with the first hard disk information; if they are consistent, determine that the current hard disk drive is compatible with the hard disk; if they are inconsistent, determine that the current hard disk drive is not compatible with the hard disk.
[0090] The adaptive storage management control module 102 also includes:
[0091] The hard disk drive burning control unit is used to determine the adapter program of the new hard disk drive that is adapted to the hard disk according to the first hard disk information when the current hard disk drive is not adapted to the hard disk, and send an adapter program compilation instruction of the adapter program corresponding to the new hard disk drive to the adaptation storage protocol program compilation module 107;
[0092] The adaptation storage protocol program compiling module 107 is specifically used to compile the program according to the adaptation program compiling instruction to obtain the adaptation program of the new hard disk drive, and save it to the program storage unit 106;
[0093] The hard disk drive burning control unit is also used to send an adapter program burning instruction to the program burner 105 after the adapter program of the new hard disk drive is successfully saved through the IIC bus;
[0094] The program burner 105 is used to scan the program storage unit 106 according to the adapter program burning instruction, and update and burn the adapter program of the scanned new hard disk drive to the BIOS hard disk drive module 304;
[0095] The data processor 302 is further used to call the new hard disk driver of the BIOS hard disk driver module 304 and merge the driver of the BIOS system module 303 with the new hard disk driver;
[0096] The CPU module 301 is used to obtain a new hard disk drive through the data processor 302 .
[0097] Combined with the above Figure 2 and Figure 3 In some embodiments of the present invention, the adaptive storage management control module 102 further includes:
[0098] The sleep control unit is used to control and keep the PCIE Switch unit module 201, the FPGA module 103, and the hard disk port adapter module 104 in working state when the current hard disk drive is adapted to the hard disk, and control the program burner 105, the program storage unit 106, and the adaptation storage protocol program compilation module 107 to be in sleep state.
[0099] Based on the above described embodiments, the beneficial effects of the adaptive storage system in the present invention are as follows:
[0100] The adaptive storage management control module can collect the first hard disk information inserted into the hard disk through the hard disk port adapter module, and compile the adaptation program of different types of hard disks with the assistance of the adaptive storage protocol program compilation module, thus overcoming the problem that the traditional technical solution cannot be compatible with multiple types of hard disks;
[0101] The adaptive storage management control module can calculate the data transmission bandwidth requirements based on the hard disk information and dynamically allocate PCIE resources according to the requirements, saving the system's available resources and improving the efficiency of data processing;
[0102] The present invention overcomes the problem of data loss caused by the need to shut down the system and restart to refresh the hard disk information each time a new hard disk is inserted in the prior art solution. The information of the inserted new hard disk can be dynamically updated without restarting the system, thereby improving the user experience.
[0103] In the above Figure 1-Figure 3 In the illustrated embodiment, an adaptive storage system is described. The adaptive storage method applied to the adaptive storage system is described below through an embodiment.
[0104] like Figure 4 As shown, this embodiment provides a self-adaptive storage method, including:
[0105] 401, the adaptive storage management control module collects first hard disk information of the hard disk through the hard disk port adapter module, and determines whether the current hard disk protocol of the FPGA module and the current hard disk drive of the CPU module are adapted to the hard disk;
[0106] 402, when the current hard disk protocol of the FPGA module is not compatible with the hard disk, and / or the current hard disk drive of the CPU module is not compatible with the hard disk, determine a new hard disk protocol for adapting the hard disk and / or an adapter program corresponding to the new hard disk drive according to the first hard disk information, and send an adapter program compilation instruction of the adapter program to the adaptation storage protocol program compilation module;
[0107] 403, the adaptation storage protocol program compiling module compiles the program according to the adaptation program compiling instruction to obtain the adaptation program, and saves the adaptation program to the program storage unit;
[0108] 404, after the adaptive storage management control module recognizes that the adapter program is successfully saved through the IIC bus, it sends an adapter program burning instruction to the program burner;
[0109] 405, the program burner scans the program storage unit according to the adapter program burning instruction, and updates and burns the scanned adapter program to the FPGA module and / or the CPU module respectively, so that the new hard disk protocol of the FPGA module and / or the new hard disk drive of the CPU module are adapted to the hard disk.
[0110] exist Figure 4 In the embodiment shown, in step 402, it is determined whether the current hard disk protocol of the FPGA module and the current hard disk drive of the CPU module are compatible with the hard disk. In fact, they are sequential. Therefore, after refinement, the following is obtained: Figure 5 The schematic diagram of the specific implementation process of the self-adaptive storage method of the embodiment shown is as follows:
[0111] 501, the adaptive storage management control module collects first hard disk information of the hard disk through the hard disk port adapter module;
[0112] 502, the adaptive storage management control module obtains the current hard disk protocol of the I / O port of the FPGA module through the protocol inspection bus; determines whether the current hard disk protocol is compatible with the hard disk; if it is not compatible, execute step 503; if it is compatible, execute step 505;
[0113] 503, the adaptive storage management control module determines the adapter program of the new hard disk protocol of the adaptive hard disk according to the first hard disk information, and sends the adapter program compilation instruction of the adapter program corresponding to the new hard disk protocol to the adaptive storage protocol program compilation module; the adaptive storage protocol program compilation module compiles the program according to the adapter program compilation instruction to obtain the adapter program of the new hard disk protocol, and saves it to the program storage unit; after the adaptive storage management control module recognizes that the adapter program of the new hard disk protocol is successfully saved through the IIC bus, it sends the adapter program burning instruction to the program burner;
[0114] 504, the program burner scans the program storage unit according to the adapter program burning instruction, and updates and burns the adapter program of the scanned new hard disk protocol into the FPGA module;
[0115] After the FPGA module has burned the new hard disk protocol, it returns to step 502 to perform hard disk protocol adaptation judgment again until the hard disk protocol of the FPGA module is adapted to the hard disk;
[0116] 505, obtaining the second hard disk information fed back by the CPU module; determining whether the second hard disk information is consistent with the first hard disk information; if consistent, determining that the current hard disk drive is compatible with the hard disk, and executing step 508; if inconsistent, determining that the current hard disk drive is not compatible with the hard disk, and executing step 506;
[0117] 506, the adaptive storage management control module determines the adapter program of the new hard disk drive that is adapted to the hard disk according to the first hard disk information, and sends an adapter program compilation instruction corresponding to the adapter program of the new hard disk drive to the adaptive storage protocol program compilation module; the adaptive storage protocol program compilation module compiles the program according to the adapter program compilation instruction to obtain the adapter program of the new hard disk drive, and saves it to the program storage unit; the hard disk drive burning control unit is further used to identify that the adapter program of the new hard disk drive is successfully saved through the IIC bus, and then send the adapter program burning instruction to the program burner;
[0118] 507, the program burner scans the program storage unit according to the adapter program burning instruction, and updates and burns the adapter program of the scanned new hard disk drive into the BIOS hard disk drive module;
[0119] The data processor calls the new hard disk driver of the BIOS hard disk driver module to merge the driver of the BIOS system module and the new hard disk driver; the CPU module obtains the new hard disk driver through the data processor; after burning the new hard disk driver, it returns to step 505 again to perform hard disk driver adaptation judgment until the hard disk is adapted;
[0120] 508, the adaptive storage management control module controls and keeps the PCIE Switch unit module, the FPGA module, and the hard disk port adapter module in working state, and controls the program burner, the program storage unit, and the adaptive storage protocol program compilation module to be in a dormant state.
[0121] It should be understood that in the embodiments of the present invention, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the type of device.
[0122] The readable storage medium is a computer-readable storage medium, which may be an internal storage unit of the controller described in any of the foregoing embodiments, such as a hard disk or memory of the controller. The readable storage medium may also be an external storage device of the controller, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the controller. Furthermore, the readable storage medium may also include both an internal storage unit of the controller and an external storage device. The readable storage medium is used to store the computer program and other programs and data required by the controller. The readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0123] Based on this understanding, the technical solution of the present invention, in essence or in other words, the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., various media that can store program codes.
[0124] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0125] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. An adaptive storage system, characterized in that: include: CPU module, adaptive storage management control module, FPGA module, hard disk port adapter module, program burner, program storage unit and adaptive storage protocol program compilation module; The hard disk port adapter module is used to convert the hard disk protocol of the inserted hard disk into a universal protocol; the self-adaptive storage management control module is used to collect the first hard disk information of the hard disk through the hard disk port adapter module, and determine whether the current hard disk protocol of the FPGA module and the current hard disk drive of the CPU module are adapted to the hard disk; when the current hard disk protocol of the FPGA module is not adapted to the hard disk, and / or the current hard disk drive of the CPU module is not adapted to the hard disk, determine a new hard disk protocol adapted to the hard disk and / or an adapter program corresponding to the new hard disk drive according to the first hard disk information, and send an adapter program compilation instruction of the adapter program to the adaptive storage protocol program compilation module; The adaptation storage protocol program compiling module is used to compile the program according to the adaptation program compiling instruction to obtain the adaptation program, and save it to the program storage unit; The self-adaptive storage management control module is also used to send an adapter program burning instruction to the program burner after identifying that the adapter program is successfully saved through the IIC bus; The program burner is used to scan the program storage unit according to the adaptation program burning instruction, and update and burn the scanned adaptation program to the FPGA module and / or the CPU module respectively; so that the new hard disk protocol of the FPGA module and / or the new hard disk drive of the CPU module adapts to the hard disk.
2. The adaptive storage system according to claim 1, characterized in that: The self-adaptive storage system also includes: A PCIE Switch unit module establishes a PCIE extension link with the FPGA module; The adaptive storage management control module is further used to calculate the data transmission bandwidth requirement according to the first hard disk information, and send a PCIE resource dynamic allocation instruction to the PCIE Switch unit module according to the data transmission bandwidth requirement; The PCIE Switch unit module is used to allocate link resources of the PCIE extension link according to the PCIE resource dynamic allocation instruction.
3. The adaptive storage system according to claim 1, characterized in that: The adaptive storage management control module includes: A hard disk protocol judgment unit connected to the FPGA module via a protocol verification bus; The hard disk protocol judgment unit is used to obtain the current hard disk protocol of the I / O port of the FPGA module through a protocol verification bus; and judge whether the current hard disk protocol is compatible with the hard disk.
4. The adaptive storage system according to claim 3, characterized in that: The adaptive storage management control module also includes: A hard disk protocol burning control unit, used for determining an adapter program for a new hard disk protocol adapted to the hard disk according to the first hard disk information when the current hard disk protocol is not compatible with the hard disk, and sending an adapter program compiling instruction of the adapter program corresponding to the new hard disk protocol to the adaptive storage protocol program compiling module; The adaptation storage protocol program compiling module is specifically used to compile the program according to the adaptation program compiling instruction to obtain the adaptation program of the new hard disk protocol, and save it to the program storage unit; The hard disk protocol burning control unit is further used to send an adapter program burning instruction to the program burner after the adapter program of the new hard disk protocol is successfully saved through the IIC bus; The program burner is used to scan the program storage unit according to the adapter program burning instruction, and update and burn the adapter program of the new hard disk protocol obtained by the scan into the FPGA module.
5. The adaptive storage system according to claim 4, characterized in that: The CPU module includes: CPU module, data processor, BIOS system module and BIOS hard disk drive module; The BIOS system module is used to store all drivers for normal operation of the CPU module; The BIOS hard disk drive module is used to store the current hard disk drive; The data processor is used to store all drivers of the BIOS system module, and refresh and call the hard disk driver of the BIOS hard disk driver module in real time, so as to merge the drivers of the BIOS system module and the BIOS hard disk driver module; The CPU module is used to obtain the current hard disk drive through the data processor when the hard disk protocol is adapted to the hard disk, use the current hard disk drive to identify and scan the hard disk, obtain the second hard disk information, and send the second hard disk information to the self-adaptive storage management control module.
6. The adaptive storage system according to claim 5, characterized in that: The adaptive storage management control module also includes: The hard disk drive judgment unit is used to obtain the second hard disk information fed back by the CPU module; judge whether the second hard disk information is consistent with the first hard disk information; if they are consistent, determine that the current hard disk drive is compatible with the hard disk; if they are inconsistent, determine that the current hard disk drive is not compatible with the hard disk.
7. The adaptive storage system according to claim 6, characterized in that: The adaptive storage management control module also includes: A hard disk drive burning control unit, used for determining an adapter program of a new hard disk drive adapted to the hard disk according to the first hard disk information when the current hard disk drive is not adapted to the hard disk, and sending an adapter program compiling instruction of the adapter program corresponding to the new hard disk drive to the adaptation storage protocol program compiling module; The adaptation storage protocol program compiling module is specifically used to compile the program according to the adaptation program compiling instruction to obtain the adaptation program of the new hard disk drive, and save it to the program storage unit; The hard disk drive burning control unit is further used to send an adapter program burning instruction to the program burner after the adapter program of the new hard disk drive is successfully saved through the IIC bus; The program burner is used to scan the program storage unit according to the adapter program burning instruction, and update and burn the adapter program of the new hard disk drive obtained by the scan into the BIOS hard disk drive module; The data processor is further used to call the new hard disk driver of the BIOS hard disk driver module to merge the driver of the BIOS system module with the new hard disk driver; The CPU module is used to obtain a new hard disk drive through the data processor.
8. The adaptive storage system according to claim 7, characterized in that: The adaptive storage management control module also includes: A sleep control unit is used to control and keep the PCIE Switch unit module, the FPGA module, and the hard disk port adapter module in a working state when the current hard disk drive is adapted to the hard disk, and to control the program burner, the program storage unit, and the adaptation storage protocol program compilation module to be in a sleep state.
9. The adaptive storage system according to any one of claims 1 to 8, characterized in that: The type of the hard disk includes one or more of a SAS hard disk, a SATA hard disk or an NVME hard disk.
10. A self-adaptive storage method, characterized in that: Applied to the adaptive storage system according to any one of claims 1 to 9 above, the adaptive storage method comprises: The adaptive storage management control module collects first hard disk information of the hard disk through the hard disk port adapter module, and determines whether the current hard disk protocol of the FPGA module and the current hard disk drive of the CPU module are adapted to the hard disk; When the current hard disk protocol of the FPGA module is not compatible with the hard disk, and / or the current hard disk drive of the CPU module is not compatible with the hard disk, a new hard disk protocol adapted to the hard disk and / or an adapter program corresponding to the new hard disk drive are determined according to the first hard disk information, and an adapter program compilation instruction of the adapter program is sent to the adaptation storage protocol program compilation module; The adaptation storage protocol program compiling module compiles the program according to the adaptation program compiling instruction to obtain the adaptation program, and saves the adaptation program to the program storage unit; After the adaptive storage management control module identifies that the adaptive program is successfully saved through the IIC bus, it sends an adaptive program burning instruction to the program burner; The program burner scans the program storage unit according to the adapter program burning instruction, and updates and burns the scanned adapter program to the FPGA module and / or the CPU module respectively; so that the new hard disk protocol of the FPGA module and / or the new hard disk drive of the CPU module adapts to the hard disk.
Citation Information
Patent Citations
Hard disk back plate supporting self-adaption hard disk interface
CN107688376A
Solid-state storage device, server mainboard and control method
CN111813599A