Compatibility testing method, system and device, medium and computer program product

By obtaining the configuration information of the NVMe protocol version, configuring the disk software model and pre-judging the compatibility of host commands, the problem of insufficient test coverage of the NVMe protocol version in the existing technology is solved, and efficient compatibility testing and scalability are achieved.

CN118394665BActive Publication Date: 2024-09-06INSPUR (SHANDONG) COMPUTER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410853490.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-06
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

The existing technology is difficult to implement compatibility testing between NVMe protocol versions and cannot cover the differences between multiple versions, resulting in low testing efficiency and insufficient coverage.

Method used

By obtaining the configuration information of the NVMe protocol version to be tested, configuring the disk software model, and pre-judging its compatibility before receiving host commands, the compatibility test results of the storage control card firmware are generated, which is suitable for compatibility testing of multiple NVMe protocol versions. .

Benefits of technology

It improves the coverage and efficiency of NVMe protocol version compatibility testing, is suitable for testing multiple different versions, and has scalability to adapt to subsequent updated protocol versions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394665B
    Figure CN118394665B
Patent Text Reader

Abstract

The present invention discloses a compatibility test method, system and device, medium and computer program product, and relates to the field of computer technology. The method comprises: obtaining configuration information corresponding to the non-volatile memory standard protocol version to be tested, and configuring the disk software model based on the configuration information; receiving a host command that complies with the non-volatile memory standard protocol sent by the storage control card firmware, judging whether the disk software model is compatible with the host command, and if so, sending the host command to the disk software model for execution; and generating a compatibility test result of the storage control card firmware to the non-volatile memory standard protocol version to be tested according to the judgment result and the execution result. The present invention can be applied to the compatibility test of different non-volatile memory standard protocol versions, improves the coverage of the compatibility test, improves the compatibility test efficiency, and can be applied to the subsequent updated non-volatile memory standard protocol version, and improves the scalability of the compatibility test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and more specifically, to a compatibility testing method, system and device, medium and computer program product. Background Art

[0002] The NVMe (Non-Volatile Memory express) storage system consists of a host and an NVMe SSD (Solid State Drive) disk. A storage control card is often added between the host and the SSD disk to flexibly implement the host's array management of the disk, thereby improving the capacity, performance, and reliability of the storage system. The firmware of the storage control card, especially the NVMe driver, is often restricted by the version differences of the NVMe protocol, so the multi-version compatibility design of the NVMe driver is critical. There are many NVMe versions supported by SSD disks on the market, and these versions are more or less different and cannot be absolutely backward compatible.

[0003] In the related art, the technical solution for the protocol compatibility test of the firmware NVMe driver is: to provide the object under test with a software model that simulates a real disk. These models often only support a certain specific NVMe version and fail to meet the compatibility coverage requirements.

[0004] Therefore, how to improve the coverage of NVMe protocol version compatibility testing is a technical problem that technical personnel in this field need to solve. Summary of the invention

[0005] The object of the present invention is to provide a compatibility testing method, system and device, medium and computer program product, which improve the coverage of NVMe protocol version compatibility testing.

[0006] To achieve the above-mentioned purpose, the present invention provides a compatibility testing method, including: obtaining configuration information corresponding to the non-volatile memory standard protocol version to be tested, and configuring the disk software model based on the configuration information; receiving a host command that complies with the non-volatile memory standard protocol and is sent by a storage control card firmware, and determining whether the disk software model is compatible with the host command; if so, sending the host command to the disk software model for execution; and generating a compatibility test result of the storage control card firmware for the non-volatile memory standard protocol version to be tested based on the determination result and the execution result.

[0007] The step of obtaining configuration information corresponding to the standard protocol version of the non-volatile memory to be tested includes: reading static parameters of the storage control card firmware as the configuration information corresponding to the standard protocol version of the non-volatile memory to be tested.

[0008] The step of obtaining configuration information corresponding to the standard protocol version of the non-volatile memory to be tested includes: obtaining configuration information corresponding to the standard protocol version of the non-volatile memory to be tested through an input interface.

[0009] The host command includes any one or a combination of any several of register access commands, management commands and input / output commands.

[0010] Among them, if the host command is a register access command, then judging whether the disk software model is compatible with the host command includes: determining the access address corresponding to the register access command, and judging whether the disk software model has a register definition corresponding to the access address; if so, judging whether the disk software model is compatible with the register access command.

[0011] The management command includes any one or a combination of any several of a set attribute command, an asynchronous event request command, a get data structure command, a firmware update command, and a self-test command.

[0012] Among them, if the host command is a set attribute command, then judging whether the disk software model is compatible with the host command includes: determining the target attribute set by the set attribute command, and judging whether the disk software model supports the setting function of the target attribute; if so, judging whether the disk software model is compatible with the set attribute command.

[0013] Among them, if the host command is an asynchronous event request command, then judging whether the disk software model is compatible with the host command includes: determining the target event type of the event requested by the asynchronous event request command, and judging whether the disk software model supports events of the target event type; if so, judging whether the disk software model is compatible with the asynchronous event request command.

[0014] Among them, if the host command is a command to obtain data structure, then judging whether the disk software model is compatible with the host command includes: determining the target information type of the information obtained by the command to obtain data structure, and judging whether the disk software model supports information of the target information type; if so, judging whether the disk software model is compatible with the command to obtain data structure.

[0015] If the host command is a firmware update command, determining whether the disk software model is compatible with the host command includes: determining whether the disk software model supports non-reset upgrade; if so, determining whether the disk software model is compatible with the firmware update command.

[0016] If the host command is a self-test command, determining whether the disk software model is compatible with the host command includes: determining whether the disk software model supports a self-test function; if so, determining whether the disk software model is compatible with the self-test command.

[0017] The input / output command includes any one or a combination of any two of a write command, a refresh command, and a data set management command.

[0018] If the host command is a write command, determining whether the disk software model is compatible with the host command includes: determining whether the disk software model supports a metadata function; if so, determining whether the disk software model is compatible with the write command.

[0019] If the host command is a refresh command, determining whether the disk software model is compatible with the host command includes: determining whether the disk software model supports executing the refresh command in a broadcast manner; if so, determining whether the disk software model is compatible with the refresh command.

[0020] Among them, if the host command is a data set management command, then judging whether the disk software model is compatible with the host command includes: judging whether the target field of the data set management command points to the list corresponding to the disk software model, and whether the range quantity of the data set management command conforms to the limitation of the disk software model; if so, judging whether the disk software model is compatible with the data set management command.

[0021] To achieve the above-mentioned purpose, the present invention provides a compatibility testing device, including: a configuration module, used to obtain configuration information corresponding to the non-volatile memory standard protocol version to be tested, and configure the disk software model based on the configuration information; a judgment module, used to receive a host command that complies with the non-volatile memory standard protocol and is sent by the storage control card firmware, and judge whether the disk software model is compatible with the host command. If so, the host command is sent to the disk software model for execution; a generation module, used to generate a compatibility test result of the storage control card firmware to the non-volatile memory standard protocol version to be tested based on the judgment result and the execution result.

[0022] The configuration module is specifically used to read static parameters of the storage control card firmware as configuration information corresponding to the standard protocol version of the non-volatile memory to be tested.

[0023] The configuration module is specifically used to obtain configuration information corresponding to the standard protocol version of the non-volatile memory to be tested through an input interface.

[0024] The host command includes any one or a combination of any several of register access commands, management commands and input / output commands.

[0025] Among them, if the host command is a register access command, the judgment module is specifically used to: determine the access address corresponding to the register access command, and judge whether the disk software model has a register definition corresponding to the access address; if so, determine whether the disk software model is compatible with the register access command.

[0026] The management command includes any one or a combination of any several of a set attribute command, an asynchronous event request command, a get data structure command, a firmware update command, and a self-test command.

[0027] Among them, if the host command is a set attribute command, the judgment module is specifically used to: determine the target attribute set by the set attribute command, and judge whether the disk software model supports the setting function of the target attribute; if so, determine whether the disk software model is compatible with the set attribute command.

[0028] Among them, if the host command is an asynchronous event request command, the judgment module is specifically used to: determine the target event type of the event requested by the asynchronous event request command, and judge whether the disk software model supports events of the target event type; if so, determine whether the disk software model is compatible with the asynchronous event request command.

[0029] Among them, if the host command is a data structure acquisition command, the judgment module is specifically used to: determine the target information type of the information acquired by the data structure acquisition command, and judge whether the disk software model supports information of the target information type; if so, determine whether the disk software model is compatible with the data structure acquisition command.

[0030] If the host command is a firmware update command, the determination module is specifically used to: determine whether the disk software model supports non-reset upgrade; if so, determine whether the disk software model is compatible with the firmware update command.

[0031] If the host command is a self-test command, the judgment module is specifically used to: judge whether the disk software model supports the self-test function; if so, determine whether the disk software model is compatible with the self-test command.

[0032] The input / output command includes any one or a combination of any two of a write command, a refresh command, and a data set management command.

[0033] If the host command is a write command, the determination module is specifically used to: determine whether the disk software model supports the metadata function; if so, determine whether the disk software model is compatible with the write command.

[0034] If the host command is a refresh command, the determination module is specifically used to: determine whether the disk software model supports executing the refresh command in a broadcasting manner; if so, determine whether the disk software model is compatible with the refresh command.

[0035] Among them, if the host command is a data set management command, the judgment module is specifically used to: judge whether the target field of the data set management command points to the list corresponding to the disk software model, and whether the range quantity of the data set management command conforms to the limitation of the disk software model; if so, determine whether the disk software model is compatible with the data set management command.

[0036] To achieve the above-mentioned purpose, the present invention provides a compatibility testing system, including a host, a storage control card chip model, and a disk-side software platform, wherein the storage control card chip model is a software platform based on storage control card chip simulation, and storage control card firmware runs on the storage control card chip model; the host is used to send host commands to the storage control card firmware; the storage control card firmware is used to parse the host commands, encapsulate the host commands into host commands that comply with the non-volatile memory standard protocol, and send the host commands that comply with the non-volatile memory standard protocol to the disk-side software platform; the disk-side software platform is used to execute the steps of the above-mentioned compatibility testing method.

[0037] To achieve the above-mentioned purpose, the present invention provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of the above-mentioned compatibility testing method when executing the computer program.

[0038] To achieve the above-mentioned object, the present invention provides a non-volatile storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the compatibility testing method as described above are implemented.

[0039] To achieve the above object, the present invention provides a computer program product, including a computer program, which implements the steps of the above compatibility testing method when executed by a processor.

[0040] It can be seen from the above scheme that a compatibility testing method provided by the present invention includes: obtaining configuration information corresponding to the non-volatile memory standard protocol version to be tested, and configuring the disk software model based on the configuration information; receiving a host command that complies with the non-volatile memory standard protocol sent by the storage control card firmware, and judging whether the disk software model is compatible with the host command, and if so, sending the host command to the disk software model for execution; and generating a compatibility test result of the storage control card firmware to the non-volatile memory standard protocol version to be tested based on the judgment result and the execution result.

[0041] The beneficial effects of the present invention are as follows: the compatibility testing method provided by the present invention configures the disk software model according to the configuration information corresponding to the selected NVMe protocol version to be tested, and before the host command is sent to the disk software model for execution, it is pre-determined whether the disk software model is compatible with the host command, and then the storage control card firmware is determined whether it is compatible with the NVMe protocol version corresponding to the disk software model, thereby improving the efficiency of the compatibility test. During the compatibility test process, different NVMe protocol versions to be tested can be selected in turn, and different disk software models can be configured in turn. The differences between different NVMe protocol versions to be tested can be aligned by the disk software model, thereby achieving compatibility testing of multiple different NVMe protocol versions to be tested. It can be seen that the compatibility testing method provided by the present invention is suitable for compatibility testing of multiple different NVMe protocol versions, improving the coverage of compatibility testing, and can also be applied to subsequently updated NVMe protocol versions, thereby improving the scalability of compatibility testing. The present invention also discloses a compatibility testing device, an electronic device, a non-volatile storage medium, and a computer program product, which can also achieve the above-mentioned technical effects.

[0042] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific implementation methods, they are used to explain the present disclosure, but do not constitute a limitation to the present disclosure.

[0044] Figure 1 The figure is a flow chart of a compatibility testing method according to an exemplary embodiment.

[0045] Figure 2 The figure is a structural diagram of a compatibility testing device according to an exemplary embodiment.

[0046] Figure 3 The figure is a structural diagram of a compatibility testing system according to an exemplary embodiment.

[0047] Figure 4 The figure is a flow chart showing a configuration disk software model according to an exemplary embodiment.

[0048] Figure 5The present invention is a flowchart of an NVMe register read and write access according to an exemplary embodiment.

[0049] Figure 6 The present invention is a flowchart of an NVMe standard command execution according to an exemplary embodiment.

[0050] Figure 7 The figure is a structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In addition, in the embodiments of the present invention, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0052] The embodiment of the present invention discloses a compatibility testing method, which improves the coverage of NVMe protocol version compatibility testing. Figure 1 , a flowchart of a compatibility testing method is shown according to an exemplary embodiment.

[0053] S101: Acquire configuration information corresponding to the standard protocol version of the non-volatile memory to be tested, and configure the disk software model based on the configuration information.

[0054] The executor of this embodiment is the disk-side software platform in the compatibility test system. The compatibility test system includes a host, a storage control card chip model, and a disk-side software platform. The host is the initiator of the host command and can trigger the test task. The storage control card chip model is a software platform simulated based on a real storage control card chip, on which the storage control card firmware runs. The storage control card chip model can be connected to the disk-side software platform through a simulated PCIe (Peripheral Component Interconnect express, a high-speed serial computer expansion bus standard) link.

[0055] In the specific implementation, the NVMe protocol version to be tested is determined, the configuration information corresponding to the NVMe protocol version to be tested is obtained, and the disk software model is configured based on the configuration information corresponding to the NVMe protocol version to be tested, so that the disk software model reflects the difference of the NVMe protocol version to be tested and achieves the characteristics of the target SSD disk.

[0056] As a feasible implementation method, obtaining configuration information corresponding to the standard protocol version of the non-volatile memory to be tested includes: reading static parameters of the storage control card firmware as configuration information corresponding to the standard protocol version of the non-volatile memory to be tested. In a specific implementation, the static parameters of the storage control card firmware can be parsed as configuration information corresponding to the NVMe protocol version to be tested.

[0057] As another feasible implementation, obtaining configuration information corresponding to the standard protocol version of the non-volatile memory to be tested includes: obtaining configuration information corresponding to the standard protocol version of the non-volatile memory to be tested through an input interface. In a specific implementation, a manual configuration method can be used to input the configuration information corresponding to the NVMe protocol version to be tested through the input interface.

[0058] S102: receiving a host command that complies with a non-volatile memory standard protocol and is sent by the storage control card firmware, determining whether the disk software model is compatible with the host command, and if so, sending the host command to the disk software model for execution.

[0059] In a specific implementation, when the storage control card firmware receives a host command, it parses it, repackages it into a host command that complies with the non-volatile memory standard protocol, and sends it to the disk-side software platform. The disk-side software platform pre-determines whether the disk software model is compatible with the host command, and then determines whether the storage control card firmware is compatible with the NVMe protocol version to be tested corresponding to the disk software model. If it is compatible, the host command is sent to the disk software model for execution.

[0060] The host commands in this embodiment may include register access commands, management (admin) commands, and input / output (IO) commands, etc. The management commands may include set feature commands, asynchronous event request commands, identify commands, firmware update commands, self-test commands, etc. The input / output commands may include write commands, flush commands, and dataset management commands.

[0061] As a feasible implementation method, if the host command is a register access command, then determining whether the disk software model is compatible with the host command includes: determining an access address corresponding to the register access command, and determining whether the disk software model has a register definition corresponding to the access address; if so, determining whether the disk software model is compatible with the register access command.

[0062] In the specific implementation, during the interaction between the host and the NVMe device, the functional attributes and scenario settings of the NVMe device are set by accessing the NVMe registers, such as disk controller initialization, disk controller reset, normal shutdown of the disk, forced shutdown of the disk, etc. The differences in registers defined by different NVMe protocol versions are as follows: The registers defined by the NVMe protocol version 1.0 include CAP, VS, INTMS, INTMC, CC, CSTS, AQA, ASQ, ACQ; the registers defined by the NVMe protocol version 1.1 include CAP, VS, INTMS, INTMC, CC, CSTS, NSSR, AQA, ASQ, ACQ; the registers defined by the NVMe protocol version 1.2 include CAP, VS, INTMS, INTMC, CC, CSTS, NSSR, AQA, ASQ, ACQ, CMBLOC, CMBSZ; the registers defined by the NVMe protocol version 1.3 include CAP, VS, INTMS, INTMC, CC, CSTS, NSSR, AQA, ASQ, ACQ, CMBLOC, CMBSZ, BPINFO, BPRSEL, BPMBL. The registers defined in the 1.4 version of the NVMe protocol include CAP, VS, INTMS, INTMC, CC, CSTS, NSSR, AQA, ASQ, ACQ, CMBLOC, CMBSZ, BPINFO, BPRSEL, BPMBL, and CMBMSC. The registers defined in the 2.0 version of the NVMe protocol include CAP, VS, INTMS, INTMC, CC, CSTS, NSSR, AQA, ASQ, ACQ, CMBLOC, CMBSZ, BPINFO, BPRSEL, BPMBL, and CMBMSC.

[0063] Among them, CAP (Capabilities) is the controller capability register, starting address 0h, VS (Version) is the version register, starting address 8h, INTMS (Interrupt Status) is the interrupt status register, starting address Ch, INTMC (Interrupt Mask) is the interrupt mask register, starting address 10h, CC (Controller Configuration) is the controller configuration register, starting address 14h, CSTS (Controller Status) is the controller status register, starting address 1Ch, NSSR (Namespace Static Status Register) is the namespace static status register, starting address 20h, AQA (Admin Queue Attributes) is the management queue attributes register, starting address 24h, ASQ (Admin Submission Queue) is the management submission queue register, starting address 28h, ACQ (Admin Completion Queue) is the management completion queue register, starting address 30h, CMBLOC (Command Buffer Location) is the command buffer location register, starting address 38h, CMBSZ (Command BufferSize) is the command buffer size register, starting address is 3Ch, BPINFO (Boot Partition Information) is the boot partition information register, starting address is 40h, BPMBL (Boot Partition Memory BufferLocation) is the boot partition memory buffer location register, starting address is 48h, CMBMSC (Command BufferMemory Size and Count) is the command buffer memory size and count register, starting address is 50h.

[0064] When a register access command is received, the access address to be accessed is determined. If the disk software model has a register definition corresponding to the access address, it means that the disk software model is compatible with the register access command, and it is further sent to the disk software model for execution. Before the disk software model executes the register access command, it is pre-determined that the disk software model is compatible with the register access command, which avoids the disk software model from executing incompatible commands and improves the test efficiency.

[0065] As a feasible implementation method, if the host command is a setting attribute command, then determining whether the disk software model is compatible with the host command includes: determining the target attribute set by the setting attribute command, and determining whether the disk software model supports the setting function of the target attribute; if so, determining whether the disk software model is compatible with the setting attribute command.

[0066] In a specific implementation, when a set attribute command is received, the target attribute to be set is determined. If the disk software model supports the setting function of the target attribute, it means that the disk software model is compatible with the set attribute command, and the command is further sent to the disk software model for execution. Before the disk software model executes the set attribute command, it is pre-determined that the disk software model is compatible with the set attribute command, so as to avoid the disk software model from executing incompatible commands and improve the test efficiency.

[0067] As a feasible implementation method, if the host command is an asynchronous event request command, then determining whether the disk software model is compatible with the host command includes: determining the target event type of the event requested by the asynchronous event request command, and determining whether the disk software model supports events of the target event type; if so, determining whether the disk software model is compatible with the asynchronous event request command.

[0068] In a specific implementation, when an asynchronous event request command is received, the target event type of the event to be requested is determined. If the disk software model supports events of the target event type, it means that the disk software model is compatible with the asynchronous event request command, and the command is further sent to the disk software model for execution. Before the disk software model executes the asynchronous event request command, it is pre-determined that the disk software model is compatible with the asynchronous event request command, so as to avoid the disk software model from executing incompatible commands and improve the test efficiency.

[0069] As a feasible implementation method, if the host command is a command to obtain a data structure, then determining whether the disk software model is compatible with the host command includes: determining the target information type of the information obtained by the command to obtain a data structure, and determining whether the disk software model supports information of the target information type; if so, determining whether the disk software model is compatible with the command to obtain a data structure.

[0070] In a specific implementation, when receiving a command to obtain a data structure, the controller or namespace structure id is checked to determine the target information type of the information to be obtained. If the disk software model supports information of the target information type, it means that the disk software model is compatible with the command to obtain a data structure, and the command is further sent to the disk software model for execution. Before the disk software model executes the command to obtain a data structure, it is pre-determined that the disk software model is compatible with the command to obtain a data structure, thereby avoiding the disk software model from executing incompatible commands and improving the test efficiency.

[0071] As a feasible implementation method, if the host command is a firmware update command, determining whether the disk software model is compatible with the host command includes: determining whether the disk software model supports upgrade without reset; if so, determining whether the disk software model is compatible with the firmware update command.

[0072] In a specific implementation, when a firmware update command is received, if the disk software model supports non-reset upgrade, that is, no restart is required when updating the firmware, it means that the disk software model is compatible with the firmware update command, and is further sent to the disk software model for execution. Before the disk software model executes the firmware update command, it is pre-determined that the disk software model is compatible with the firmware update command, so as to avoid the disk software model from executing incompatible commands and improve the test efficiency.

[0073] As a feasible implementation method, if the host command is a self-test command, determining whether the disk software model is compatible with the host command includes: determining whether the disk software model supports the self-test function; if so, determining whether the disk software model is compatible with the self-test command.

[0074] In a specific implementation, when a self-test command is received, if the disk software model supports the self-test function, it means that the disk software model is compatible with the self-test command, and is further sent to the disk software model for execution. Before the disk software model executes the self-test command, it is pre-determined that the disk software model is compatible with the self-test command, thereby avoiding the disk software model from executing incompatible commands and improving the test efficiency.

[0075] As a feasible implementation method, if the host command is a write command, determining whether the disk software model is compatible with the host command includes: determining whether the disk software model supports metadata function; if so, determining whether the disk software model is compatible with the write command.

[0076] In a specific implementation, when a write command is received, if the disk software model supports the metadata function, it means that the disk software model is compatible with the write command, and is further sent to the disk software model for execution. Before the disk software model executes the write command, it is pre-determined that the disk software model is compatible with the write command, thereby avoiding the disk software model from executing incompatible commands and improving the test efficiency.

[0077] As a feasible implementation method, if the host command is a refresh command, determining whether the disk software model is compatible with the host command includes: determining whether the disk software model supports executing the refresh command in a broadcast manner; if so, determining whether the disk software model is compatible with the refresh command.

[0078] In a specific implementation, when a refresh command is received, if the disk software model supports namespace id (namespace identifier) ​​to be executed in a broadcast manner, it means that the disk software model is compatible with the refresh command, and is further sent to the disk software model for execution. Before the disk software model executes the refresh command, it is pre-determined that the disk software model is compatible with the refresh command, thereby avoiding the disk software model from executing incompatible commands and improving the test efficiency.

[0079] As a feasible implementation method, if the host command is a dataset management command, then determining whether the disk software model is compatible with the host command includes: determining whether the target field of the dataset management command points to a list corresponding to the disk software model, and whether the range quantity of the dataset management command complies with the limitation of the disk software model; if so, determining whether the disk software model is compatible with the dataset management command.

[0080] In a specific implementation, when a data set management command is received, if the target field (prp2) of the data set management command points to the list (list) corresponding to the disk software model and the number of ranges (number ofranges) of the data set management command meets the restrictions of the disk software model, it means that the disk software model is compatible with the data set management command, and it is further sent to the disk software model for execution. Before the disk software model executes the data set management command, it is pre-determined that the disk software model is compatible with the data set management command, so as to avoid the disk software model from executing incompatible commands and improve the test efficiency.

[0081] S103: Generate a compatibility test result of the storage control card firmware with the non-volatile memory standard protocol version to be tested according to the judgment result and the execution result.

[0082] In a specific implementation, if it is judged that the disk software model is compatible with the host command, it means that the storage control card firmware is compatible with the NVMe protocol version to be tested corresponding to the disk software model; conversely, if it is judged that the disk software model is not compatible with the host command, it means that the storage control card firmware is not compatible with the NVMe protocol version to be tested corresponding to the disk software model. Then, the compatibility result of the storage control card firmware with the NVMe protocol version to be tested can be generated based on the judgment result and the execution result of the host command.

[0083] The compatibility testing method provided by the embodiment of the present invention configures the disk software model according to the configuration information corresponding to the selected NVMe protocol version to be tested, and before the host command is sent to the disk software model for execution, it is pre-determined whether the disk software model is compatible with the host command, and then the storage control card firmware is determined to be compatible with the NVMe protocol version corresponding to the disk software model, thereby improving the efficiency of the compatibility test. During the compatibility test process, different NVMe protocol versions to be tested can be selected in turn, and different disk software models can be configured in turn. The differences between different NVMe protocol versions to be tested are aligned by the disk software model, thereby achieving compatibility testing of multiple different NVMe protocol versions to be tested. It can be seen that the compatibility testing method provided by the embodiment of the present invention is suitable for compatibility testing of multiple different NVMe protocol versions, improving the coverage of compatibility testing, and can also be applied to subsequently updated NVMe protocol versions, thereby improving the scalability of compatibility testing.

[0084] A compatibility testing device provided by an embodiment of the present invention is introduced below. The compatibility testing device described below and the compatibility testing method described above can be referred to each other. Figure 2 , a structural diagram of a compatibility testing device according to an exemplary embodiment.

[0085] The configuration module 201 is used to obtain configuration information corresponding to the standard protocol version of the non-volatile memory to be tested, and configure the disk software model based on the configuration information.

[0086] In the specific implementation, the NVMe protocol version to be tested is determined, the configuration information corresponding to the NVMe protocol version to be tested is obtained, and the disk software model is configured based on the configuration information corresponding to the NVMe protocol version to be tested, so that the disk software model reflects the difference of the NVMe protocol version to be tested and achieves the characteristics of the target SSD disk.

[0087] The judgment module 202 is used to receive a host command that complies with the non-volatile memory standard protocol and is sent by the storage control card firmware, and judge whether the disk software model is compatible with the host command. If so, the host command is sent to the disk software model for execution.

[0088] In a specific implementation, when the storage control card firmware receives a host command, it parses it, repackages it into a host command that complies with the non-volatile memory standard protocol, and sends it to the disk-side software platform. The disk-side software platform pre-determines whether the disk software model is compatible with the host command, and then determines whether the storage control card firmware is compatible with the NVMe protocol version to be tested corresponding to the disk software model. If it is compatible, the host command is sent to the disk software model for execution.

[0089] The generating module 203 is used to generate a compatibility test result of the storage control card firmware to the non-volatile memory standard protocol version to be tested according to the judgment result and the execution result.

[0090] In a specific implementation, if it is judged that the disk software model is compatible with the host command, it means that the storage control card firmware is compatible with the NVMe protocol version to be tested corresponding to the disk software model; conversely, if it is judged that the disk software model is not compatible with the host command, it means that the storage control card firmware is not compatible with the NVMe protocol version to be tested corresponding to the disk software model. Then, the compatibility result of the storage control card firmware with the NVMe protocol version to be tested can be generated based on the judgment result and the execution result of the host command.

[0091] The compatibility testing device provided by the embodiment of the present invention configures the disk software model according to the configuration information corresponding to the selected NVMe protocol version to be tested, and before the host command is sent to the disk software model for execution, it pre-judges whether the disk software model is compatible with the host command, and then judges whether the storage control card firmware is compatible with the NVMe protocol version corresponding to the disk software model, thereby improving the efficiency of the compatibility test. During the compatibility test process, different NVMe protocol versions to be tested can be selected in turn, and different disk software models can be configured in turn. The differences between different NVMe protocol versions to be tested are aligned by the disk software model, thereby achieving compatibility testing of multiple different NVMe protocol versions to be tested. It can be seen that the compatibility testing device provided by the embodiment of the present invention is suitable for compatibility testing of multiple different NVMe protocol versions, improving the coverage of compatibility testing, and can also be applied to subsequently updated NVMe protocol versions, thereby improving the scalability of compatibility testing.

[0092] Based on the above embodiment, as a feasible implementation mode, the configuration module 201 is specifically used to: read static parameters of the storage control card firmware as configuration information corresponding to the standard protocol version of the non-volatile memory to be tested.

[0093] Based on the above embodiment, as a feasible implementation mode, the configuration module 201 is specifically used to: obtain configuration information corresponding to the standard protocol version of the non-volatile memory to be tested through an input interface.

[0094] Based on the above embodiment, as a feasible implementation mode, the host command includes any one or a combination of any several of a register access command, a management command and an input / output command.

[0095] Based on the above embodiment, as a feasible implementation method, if the host command is a register access command, the judgment module 202 is specifically used to: determine the access address corresponding to the register access command, and determine whether the disk software model has a register definition corresponding to the access address; if so, determine whether the disk software model is compatible with the register access command. In a specific implementation, when a register access command is received, the access address to be accessed is determined. If the disk software model has a register definition corresponding to the access address, it means that the disk software model is compatible with the register access command, and is further sent to the disk software model for execution.

[0096] Based on the above embodiment, as a feasible implementation mode, the management command includes any one or a combination of any several of the following: a set attribute command, an asynchronous event request command, a get data structure command, a firmware update command, and a self-test command.

[0097] Based on the above embodiment, as a feasible implementation, if the host command is a set attribute command, the judgment module 202 is specifically used to: determine the target attribute set by the set attribute command, and judge whether the disk software model supports the setting function of the target attribute; if so, determine whether the disk software model is compatible with the set attribute command. In a specific implementation, when receiving the set attribute command, the target attribute to be set is determined. If the disk software model supports the setting function of the target attribute, it means that the disk software model is compatible with the set attribute command, and further sent to the disk software model for execution.

[0098] Based on the above embodiment, as a feasible implementation method, if the host command is an asynchronous event request command, the judgment module 202 is specifically used to: determine the target event type of the event requested by the asynchronous event request command, and determine whether the disk software model supports the event of the target event type; if so, determine whether the disk software model is compatible with the asynchronous event request command. In a specific implementation, when an asynchronous event request command is received, the target event type of the event to be requested is determined. If the disk software model supports the event of the target event type, it means that the disk software model is compatible with the asynchronous event request command, and is further sent to the disk software model for execution.

[0099] Based on the above embodiment, as a feasible implementation method, if the host command is a command to obtain a data structure, the judgment module 202 is specifically used to: determine the target information type of the information obtained by the command to obtain a data structure, and determine whether the disk software model supports the information of the target information type; if so, determine whether the disk software model is compatible with the command to obtain a data structure. In a specific implementation, when the command to obtain a data structure is received, the controller or namespace structure id is checked to determine the target information type of the information to be obtained. If the disk software model supports the information of the target information type, it means that the disk software model is compatible with the command to obtain a data structure, and is further sent to the disk software model for execution.

[0100] Based on the above embodiment, as a feasible implementation method, if the host command is a firmware update command, the judgment module 202 is specifically used to: judge whether the disk software model supports non-reset upgrade; if so, determine whether the disk software model is compatible with the firmware update command. In a specific implementation, when receiving a firmware update command, if the disk software model supports non-reset upgrade, that is, no restart is required when updating the firmware, it means that the disk software model is compatible with the firmware update command, and is further sent to the disk software model for execution.

[0101] Based on the above embodiment, as a feasible implementation method, if the host command is a self-test command, the judgment module 202 is specifically used to: judge whether the disk software model supports the self-test function; if so, judge whether the disk software model is compatible with the self-test command. In a specific implementation, when a self-test command is received, if the disk software model supports the self-test function, it means that the disk software model is compatible with the self-test command, and is further sent to the disk software model for execution.

[0102] Based on the above embodiment, as a feasible implementation mode, the input and output command includes any one or a combination of any several of a write command, a refresh command, and a data set management command.

[0103] Based on the above embodiment, as a feasible implementation method, if the host command is a write command, the judgment module 202 is specifically used to: judge whether the disk software model supports the metadata function; if so, judge whether the disk software model is compatible with the write command. In a specific implementation, when a write command is received, if the disk software model supports the metadata function, it means that the disk software model is compatible with the write command, and is further sent to the disk software model for execution.

[0104] Based on the above embodiment, as a feasible implementation method, if the host command is a refresh command, the judgment module 202 is specifically used to: judge whether the disk software model supports the execution of the refresh command in a broadcasting manner; if so, determine whether the disk software model is compatible with the refresh command. In a specific implementation, when a refresh command is received, if the disk software model supports the execution of the namespace id in a broadcasting manner, it means that the disk software model is compatible with the refresh command, and is further sent to the disk software model for execution.

[0105] Based on the above embodiment, as a feasible implementation method, if the host command is a data set management command, the judgment module 202 is specifically used to: judge whether the target field of the data set management command points to the list corresponding to the disk software model, and whether the number of ranges of the data set management command meets the restrictions of the disk software model; if so, determine whether the disk software model is compatible with the data set management command. In a specific implementation, when a data set management command is received, if the target field (prp2) of the data set management command points to the list corresponding to the disk software model and the number of ranges of the data set management command meets the restrictions of the disk software model, it means that the disk software model is compatible with the data set management command, and it is further sent to the disk software model for execution.

[0106] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0107] This embodiment discloses a compatibility testing system. Figure 3 As shown, it includes a host, a storage control card chip model, and a disk-side software platform. The storage control card chip model is a software platform based on the storage control card chip simulation, and the storage control card firmware runs on the storage control card chip model; the host is used to send a host command to the storage control card firmware; the storage control card firmware is used to parse the host command, encapsulate the host command into a host command that complies with the non-volatile memory standard protocol, and send the host command that complies with the non-volatile memory standard protocol to the disk-side software platform; the disk-side software platform is used to execute the steps of the compatibility test method provided in the above embodiment.

[0108] In the specific implementation, the host is the initiator of the host command and can trigger the test task. The storage control card chip model is a software platform based on the simulation of the real storage control card chip, on which the storage control card firmware runs. The storage control card chip model can be connected to the disk side software platform through a simulated PCIe link.

[0109] The disk-side software platform includes a version compatibility analysis module and a disk model. The version compatibility analysis module and the disk model share the SSD controller. The version compatibility analysis module is responsible for receiving external configurations, selecting the NVMe protocol version that matches the disk side, and automatically aligning it to the NVMe protocol. When receiving a host command, it pre-judges whether the disk software model is compatible with the host command. If it is compatible, it is further sent to the disk model for execution, and finally generates a compatibility test report. The disk model is a software environment that uses software to simulate the behavior of a real physical disk, including an SSD controller, volatile storage, non-volatile storage, and a data transmission interface. The disk model includes a disk model configuration module and a disk software model. The disk model configuration module receives the configuration information of the NVMe protocol version of the version compatibility analysis module, and configures the disk software model based on the configuration information, that is, aligning the disk software model to the details involved in the NVMe protocol version, and quickly generating a series of disk models. After obtaining the version information, the corresponding register definition of the disk model can be modified to align with the corresponding version, instead of the existing disk model only defining a certain specific register list; for admin type commands, such as the identity command, which includes more than a dozen different types of data structures, after obtaining the NVMe version, the disk model configuration module can align the current disk model to the data structure list defined by the corresponding version, and give correct feedback when the firmware uses the identity command to obtain the data structure, and it is no longer the existing disk model that can only give a fixed data structure list and cannot achieve flexible configuration; for IO commands, after obtaining the NVMe version, such as the namespace id of some commands does not support broadcasting, the current disk software model is configured not to support it. Through the flexible configuration of the version configuration module, the disk model can quickly simulate the target SSD disk, that is, a series of disk software models are implemented, which improves the efficiency and accuracy of the test.

[0110] The flowchart of the configuration disk software model is as follows Figure 4 As shown, the storage control card firmware is started, and the version compatibility analysis module first reads the static parameters of the storage control card firmware or receives manual configuration, mainly to obtain the target disk version to be tested by the storage control card firmware, and then passes the version parameters to the disk model configuration module. The disk model configuration module configures the disk software model, that is, aligns the current disk software model to the details of the NVMe protocol version, so that the disk software model reflects the difference of the current version and achieves the characteristics of the target disk. After alignment, the version feedback prints the disk software model configuration result, and can receive register configuration and command sending.

[0111] The NVMe register read and write access process is as follows Figure 5As shown in the figure, when the storage control card firmware initiates register reading and writing, the disk-side software platform first receives the access, and the version compatibility analysis module screens the register address to be accessed by the storage control card firmware, and analyzes whether the NVMe protocol version defines the register address. If it has been defined, it will be reported to the version feedback device and sent to the disk model, and the access will be successful; if the register address has no register definition, the access will be intercepted and the mismatch or undefined result will be reported to the version feedback device, and the access will fail. Finally, the version feedback device generates a register access record and a compatibility report.

[0112] The NVMe standard command execution process is as follows Figure 6 As shown in the figure, there are two types of NVMe standard commands, one is the admin command, which is used by the Host to manage and control the SSD; the other is the I / O command, which is used to transmit data between the Host and the SSD. NVMe standard commands consist of a submission command and a completion command. The storage control card sends a submission command to the SSD disk, and the SSD disk returns a completion command to the storage control card. Both types of commands involve version differences. When the storage control card firmware initiates a command, the version compatibility analysis module of the disk-side software platform first parses the command, and parses each valid field of the command to determine whether the disk software model is compatible with the command. The performance screens whether the command is in the command list that is not supported by the current version of the disk software model. If not, it is considered to be compatible with this command, and then the command continues to be pushed to the disk model for execution and the details are reported to the version feedback device, whether it is backward compatible or only the current version matches, and the command is executed successfully; if it is not supported, the command is intercepted and the disk model is no longer sent, and the details of the unsupported are reported to the version feedback device, such as which fields of the submission command are filled in accordance with the provisions of the version, and the command execution fails. Finally, the version feedback device generates a command execution record and a compatibility report.

[0113] It can be seen that this embodiment adds a version compatibility analysis module on the basis of not changing the compatibility test system framework, and pre-analyzes whether the register access and commands sent to the disk end meet the requirements of the current version, thereby improving the test efficiency. The differences between different versions are reflected by aligning the NVMe protocol version with the disk software model, which ensures the accuracy and efficiency of the compatibility test and provides support for further automated testing of all target versions. The disk software model can easily update the NVMe protocol version, ensuring the scalability of the compatibility test system framework. The compatibility test system provided by this embodiment can effectively avoid compatibility logic errors, save time and cost, and reduce the risk of tape-out failure.

[0114] Based on the hardware implementation of the above program modules and in order to implement the method of the embodiment of the present invention, the embodiment of the present invention further provides an electronic device, Figure 7 FIG. 1 is a structural diagram of an electronic device according to an exemplary embodiment. Figure 7As shown, the electronic device includes: a communication interface 1, which can exchange information with other devices such as network devices; a processor 2, which is connected to the communication interface 1 to realize information exchange with other devices, and is used to execute the compatibility test method provided by one or more technical solutions when running a computer program. The computer program is stored in a memory 3.

[0115] Of course, in actual application, the various components in the electronic device are coupled together through the bus system 4. It can be understood that the bus system 4 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 4 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 7 Various buses are labeled as bus system 4.

[0116] The memory 3 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on the electronic device.

[0117] It can be understood that the memory 3 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAMbus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 3 described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable types of memories.

[0118] The method disclosed in the above embodiment of the present invention can be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 2 or the instruction in the form of software. The above processor 2 can be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 2 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 3. The processor 2 reads the program in the memory 3 and completes the steps of the above method in combination with its hardware.

[0119] When the processor 2 executes the program, the corresponding processes in the various methods of the embodiments of the present invention are implemented, which will not be described here for the sake of brevity.

[0120] In an exemplary embodiment, the embodiment of the present invention further provides a non-volatile storage medium storing a computer program, which can be executed by the processor 2 to complete the steps of the aforementioned method.

[0121] In an exemplary embodiment, the present invention further provides a computer program product, including a computer program, which is executed by the processor 2 to complete the steps of the aforementioned method.

[0122] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to computer program instructions, and the aforementioned computer program can be stored in a non-volatile storage medium. When the computer program is executed, it executes the steps of the above method embodiments. Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the embodiment of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a non-volatile storage medium and includes a number of instructions for an electronic device (which can be a personal computer, a server, a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention.

[0123] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A compatibility testing method, characterized in that: include: Acquire configuration information corresponding to the standard protocol version of the non-volatile memory to be tested, and configure the disk software model based on the configuration information; receiving a host command that complies with a non-volatile memory standard protocol and is sent by the storage control card firmware, determining whether the disk software model is compatible with the host command, and if so, sending the host command to the disk software model for execution; wherein the host command includes any one or a combination of any several of a register access command, a management command, and an input / output command; Generate a compatibility test result of the storage control card firmware to the non-volatile memory standard protocol version to be tested according to the judgment result and the execution result; Among them, during the compatibility test process, different non-volatile memory standard protocol versions to be tested are selected in turn and different disk software models are configured in turn. The differences between different non-volatile memory standard protocol versions to be tested are aligned through different disk software models to achieve compatibility testing of multiple different non-volatile memory standard protocol versions to be tested.

2. The compatibility testing method according to claim 1, characterized in that: Get the configuration information corresponding to the standard protocol version of the non-volatile memory to be tested, including: The static parameters of the storage control card firmware are read as configuration information corresponding to the standard protocol version of the non-volatile memory to be tested.

3. The compatibility testing method according to claim 1, characterized in that: Get the configuration information corresponding to the standard protocol version of the non-volatile memory to be tested, including: The configuration information corresponding to the standard protocol version of the non-volatile memory to be tested is obtained through the input interface.

4. The compatibility testing method according to claim 1, characterized in that: If the host command is a register access command, determining whether the disk software model is compatible with the host command includes: Determine an access address corresponding to the register access command, and judge whether the disk software model has a register definition corresponding to the access address; If so, it is determined whether the disk software model is compatible with the register access command.

5. The compatibility testing method according to claim 1, characterized in that: The management command includes any one or a combination of any several of the following: a set attribute command, an asynchronous event request command, a get data structure command, a firmware update command, and a self-test command.

6. The compatibility testing method according to claim 5, characterized in that: If the host command is a command for setting properties, determining whether the disk software model is compatible with the host command includes: Determine the target attribute set by the set attribute command, and judge whether the disk software model supports the setting function of the target attribute; If yes, it is determined whether the disk software model is compatible with the set attribute command.

7. The compatibility testing method according to claim 5, characterized in that: If the host command is an asynchronous event request command, determining whether the disk software model is compatible with the host command includes: Determine the target event type of the event requested by the asynchronous event request command, and judge whether the disk software model supports events of the target event type; If yes, it is determined whether the disk software model is compatible with the asynchronous event request command.

8. The compatibility testing method according to claim 5, characterized in that: If the host command is a command for obtaining a data structure, determining whether the disk software model is compatible with the host command includes: Determine the target information type of the information acquired by the acquire data structure command, and judge whether the disk software model supports information of the target information type; If yes, it is determined whether the disk software model is compatible with the get data structure command.

9. The compatibility testing method according to claim 5, characterized in that: If the host command is a firmware update command, determining whether the disk software model is compatible with the host command includes: Determining whether the disk software model supports non-reset upgrade; If so, it is determined whether the disk software model is compatible with the firmware update command.

10. The compatibility testing method according to claim 5, characterized in that: If the host command is a self-test command, determining whether the disk software model is compatible with the host command includes: Determining whether the disk software model supports a self-check function; If yes, it is determined whether the disk software model is compatible with the self-test command.

11. The compatibility testing method according to claim 1, characterized in that: The input and output commands include any one or a combination of any two of the following: write commands, refresh commands, and data set management commands.

12. The compatibility testing method according to claim 11, characterized in that: If the host command is a write command, determining whether the disk software model is compatible with the host command includes: Determining whether the disk software model supports a metadata function; If so, it is determined whether the disk software model is compatible with the write command.

13. The compatibility testing method according to claim 11, characterized in that: If the host command is a refresh command, determining whether the disk software model is compatible with the host command includes: Determining whether the disk software model supports executing a refresh command in a broadcasting manner; If yes, it is determined whether the disk software model is compatible with the refresh command.

14. The compatibility testing method according to claim 11, characterized in that: If the host command is a data set management command, determining whether the disk software model is compatible with the host command includes: Determine whether the target field of the data set management command points to the list corresponding to the disk software model and whether the range quantity of the data set management command complies with the limitation of the disk software model; If yes, it is determined whether the disk software model is compatible with the data set management command.

15. A compatibility testing device, characterized in that: include: A configuration module, used to obtain configuration information corresponding to the standard protocol version of the non-volatile memory to be tested, and configure the disk software model based on the configuration information; a judgment module, configured to receive a host command that complies with a non-volatile memory standard protocol and is sent by the storage control card firmware, and to judge whether the disk software model is compatible with the host command; if so, to send the host command to the disk software model for execution; wherein the host command includes any one or a combination of any several of a register access command, a management command, and an input / output command; A generating module, used for generating a compatibility test result of the storage control card firmware to the standard protocol version of the non-volatile memory to be tested according to the judgment result and the execution result; Among them, during the compatibility test process, different non-volatile memory standard protocol versions to be tested are selected in turn and different disk software models are configured in turn. The differences between different non-volatile memory standard protocol versions to be tested are aligned through different disk software models to achieve compatibility testing of multiple different non-volatile memory standard protocol versions to be tested.

16. A compatibility testing system, characterized in that: It includes a host, a storage control card chip model, and a disk-side software platform. The storage control card chip model is a software platform based on the simulation of the storage control card chip, and the storage control card firmware runs on the storage control card chip model; The host is used to send a host command to the storage control card firmware; The storage control card firmware is used to parse the host command, encapsulate the host command into a host command that complies with the non-volatile memory standard protocol, and send the host command that complies with the non-volatile memory standard protocol to the disk side software platform; The disk-side software platform is used to execute the steps of the compatibility testing method as described in any one of claims 1 to 14.

17. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the compatibility testing method as claimed in any one of claims 1 to 14 when executing the computer program.

18. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed, the steps of the compatibility testing method according to any one of claims 1 to 14 are implemented.

19. A computer program product, characterized in that It comprises a computer program, which implements the steps of the compatibility testing method according to any one of claims 1 to 14 when executed by a processor.