CN113760623A - Method and device for testing TCG (trusted computing group) protocol function of solid state disk and computer equipment - Google Patents

Method and device for testing TCG (trusted computing group) protocol function of solid state disk and computer equipment Download PDF

Info

Publication number
CN113760623A
CN113760623A CN202111060731.1A CN202111060731A CN113760623A CN 113760623 A CN113760623 A CN 113760623A CN 202111060731 A CN202111060731 A CN 202111060731A CN 113760623 A CN113760623 A CN 113760623A
Authority
CN
China
Prior art keywords
tcg
restart
solid state
state disk
test request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111060731.1A
Other languages
Chinese (zh)
Inventor
王飞
韩道静
付东松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Shenzhen Union Memory Information System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Union Memory Information System Co Ltd filed Critical Shenzhen Union Memory Information System Co Ltd
Priority to CN202111060731.1A priority Critical patent/CN113760623A/en
Publication of CN113760623A publication Critical patent/CN113760623A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a method and a device for testing the TCG protocol function of a solid state disk, a computer device and a storage medium, wherein the method comprises the following steps: acquiring a TCG protocol function test request of a solid state disk, wherein the TCG protocol function test request of the solid state disk comprises a LockOnReset function test request and a DoneOnReset function test request; initializing the TCG according to the TCG protocol function test request of the solid state disk; performing a plurality of different types of restarting behaviors on the solid state disk to be tested according to the type of the TCG protocol function test request of the solid state disk; and after the corresponding type of restart is executed, checking whether the state of the TCG is in accordance with an expected state. The invention realizes the special automatic test based on the SSD TCG LockOnReset/DoneOnReset function, and effectively improves the test efficiency.

Description

Method and device for testing TCG (trusted computing group) protocol function of solid state disk and computer equipment
Technical Field
The invention relates to the technical field of hard disk testing, in particular to a method and a device for testing TCG protocol functions of a solid state disk, computer equipment and a storage medium.
Background
With the development of computer technology, computer equipment has become the most powerful utility tool for people today, and the safety and stability of computer equipment are necessary guarantees when people work with computers. Nowadays, the solid state disk is also more and more widely applied due to the characteristics of quick reading and writing, light weight, low energy consumption, small size and the like. The solid state disk is one of core hardware devices in the computer device, and the stability and reliability of the solid state disk greatly affect the security and stability of the whole computer device, so the solid state disk in the computer device needs to be tested before the computer device leaves a factory.
At present, as people pay more and more attention to computer security, more and more SSD products need to support tcg (trusted Computing group) protocol. The lockOnReset/DoneOnReset function in the TCG is one of the important components of the protocol, and a special test script with complete functions is lacked, so that the quick test of the lockOnReset/DoneOnReset function is difficult to realize.
Disclosure of Invention
Therefore, it is necessary to provide a method and an apparatus for testing the TCG protocol function of a solid state disk, a computer device, and a storage medium for solving the above technical problems.
A method for testing the TCG protocol function of a solid state disk comprises the following steps:
acquiring a TCG protocol function test request of a solid state disk, wherein the TCG protocol function test request of the solid state disk comprises a LockOnReset function test request and a DoneOnReset function test request;
initializing the TCG according to the TCG protocol function test request of the solid state disk;
performing a plurality of different types of restarting behaviors on the solid state disk to be tested according to the type of the TCG protocol function test request of the solid state disk;
and after the corresponding type of restart is executed, checking whether the state of the TCG is in accordance with an expected state.
In one embodiment, the method further comprises:
acquiring a LockOnReset function test request;
LockingSP is enabled, TCG HW Reset is added to LockOnReset Table;
setting Read _ lock _ enable and Write _ lock _ enable to True, and setting Read _ locked and Write _ locked to True;
restarting the equipment by selecting one restart type from power-on again after power failure, software restart, PCIe hot restart and NVMe subsystem restart, and polling once for each restart type;
the states of Read _ locked and Write _ locked are checked.
In one embodiment, the method further comprises:
acquiring a function test request of the DoneOnReset;
LockingSP is enabled, TCG HW Reset is added to the DoneOnReset Table;
setting MBR _ enable and MBR _ done as True;
restarting the equipment by selecting one restart type from power-on again after power failure, software restart, PCIe hot restart and NVMe subsystem restart, and polling once for each restart type;
the status of MBR _ enable and MBR _ done is checked.
In one embodiment, the LockOnReset is a sub-state of LockingSP, and is used for representing a collection of receivable TCG restart types under the condition that LockingSP is enabled; the DoneOnReset represents a collection of acceptable TCG restart categories on condition that the MBR function is turned on and authentication is successful.
A solid state disk TCG protocol function testing device, the device includes:
the device comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a TCG protocol function test request of the solid state disk, and the TCG protocol function test request of the solid state disk comprises a LockOnReset function test request and a DoneOnReset function test request;
the initialization module is used for initializing the TCG according to the TCG protocol function test request of the solid state disk;
the restarting module is used for carrying out a plurality of different types of restarting behaviors on the solid state disk to be tested according to the type of the TCG protocol function test request of the solid state disk;
and the checking module is used for checking whether the state of the TCG accords with an expected state after the corresponding type of restart execution is finished.
In one embodiment, the apparatus further comprises a first testing module configured to:
acquiring a LockOnReset function test request;
LockingSP is enabled, TCG HW Reset is added to LockOnReset Table;
setting Read _ lock _ enable and Write _ lock _ enable to True, and setting Read _ locked and Write _ locked to True;
restarting the equipment by selecting one restart type from power-on again after power failure, software restart, PCIe hot restart and NVMe subsystem restart, and polling once for each restart type;
the states of Read _ locked and Write _ locked are checked.
In one embodiment, the apparatus further comprises a second testing module configured to:
acquiring a function test request of the DoneOnReset;
LockingSP is enabled, TCG HW Reset is added to the DoneOnReset Table;
setting MBR _ enable and MBR _ done as True;
restarting the equipment by selecting one restart type from power-on again after power failure, software restart, PCIe hot restart and NVMe subsystem restart, and polling once for each restart type;
the status of MBR _ enable and MBR _ done is checked.
In one embodiment, the LockOnReset is a sub-state of LockingSP, and is used for representing a collection of receivable TCG restart types under the condition that LockingSP is enabled; the DoneOnReset represents a collection of acceptable TCG restart categories on condition that the MBR function is turned on and authentication is successful.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the above methods when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of any of the methods described above.
According to the method and the device for testing the TCG protocol function of the solid state disk, the computer equipment and the storage medium, the TCG protocol function test request of the solid state disk is obtained, wherein the TCG protocol function test request of the solid state disk comprises a LockOnReset function test request and a DoneOnReset function test request; initializing the TCG according to the TCG protocol function test request of the solid state disk; performing a plurality of different types of restarting behaviors on the solid state disk to be tested according to the type of the TCG protocol function test request of the solid state disk; and after the corresponding type of restart is executed, checking whether the state of the TCG is in accordance with an expected state. The invention realizes the special automatic test based on the SSD TCG LockOnReset/DoneOnReset function by performing various restarting behaviors on the solid state disk to be tested and checking whether the state of the TCG is in accordance with the expectation, thereby effectively improving the test efficiency.
Drawings
Fig. 1 is a conceptual diagram of a method for testing a TCG protocol function of a solid state disk in an embodiment;
fig. 2 is a schematic flowchart illustrating a method for testing a TCG protocol function of a solid state disk in an embodiment;
fig. 3 is a schematic flowchart of a method for testing a TCG protocol function of a solid state disk in another embodiment;
FIG. 4 is a flowchart illustrating a method for testing TCG protocol functions of a solid state disk in accordance with yet another embodiment;
FIG. 5 is a schematic flow chart illustrating a LockOnReset function testing method according to an embodiment;
FIG. 6 is a flow chart illustrating a method for testing the function of a DoneOnReset in one embodiment;
FIG. 7 is a block diagram illustrating an exemplary apparatus for testing TCG protocol functionality of a solid state drive;
FIG. 8 is a block diagram of a device for testing TCG protocol functions of a solid state disk in another embodiment;
FIG. 9 is a block diagram of a TCG protocol function testing device in a solid state disk according to still another embodiment;
FIG. 10 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
At present, as people pay more and more attention to computer security, more and more SSD products need to support tcg (trusted Computing group) protocol. The lockOnReset/DoneOnReset function in the TCG is one of the important components of the protocol, and a special test script with complete functions is lacked, so that the quick test of the lockOnReset/DoneOnReset function is difficult to realize.
Based on this, the invention provides a method for testing the TCG protocol function of the solid state disk, and the overall concept schematic diagram of the method is shown in FIG. 1. Specifically, first, a solid state disk TCG (Trusted Computing Group) protocol function test request is obtained, where the solid state disk TCG protocol function test request includes a LockOnReset function test request and a DoneOnReset function test request. Then, the TCG initial state is set according to different test requests. Then, various Reset (restart) behaviors are carried out on the solid state disk to be tested. Finally, the state of the TCG is checked for expectations.
In one embodiment, as shown in fig. 2, a solid state disk TCG protocol functional test is provided, where the method includes:
step 202, acquiring a solid state disk TCG protocol function test request, wherein the solid state disk TCG protocol function test request comprises a LockOnReset function test request and a DoneOnReset function test request;
step 204, initializing the TCG according to the TCG protocol function test request of the solid state disk;
step 206, performing a plurality of different types of restarting behaviors on the solid state disk to be tested according to the type of the TCG protocol function test request of the solid state disk;
in step 208, after the corresponding type of restart is completed, it is checked whether the state of the TCG is in accordance with the expected state.
In this embodiment, a method for testing a TCG protocol function of a solid state disk is provided, where the method includes the following specific implementation steps:
firstly, a solid state disk TCG (Trusted Computing Group) protocol function test request is obtained, where the solid state disk TCG protocol function test request includes a LockOnReset function test request and a DoneOnReset function test request.
In one embodiment, the LockOnReset is a sub-state of LockingSP, and is used for representing a collection of receivable TCG restart types under the condition that LockingSP is enabled; the DoneOnReset represents a collection of acceptable TCG restart categories on condition that the MBR function is turned on and authentication is successful.
Specifically, SP in LockingSP is an abbreviation of Security Provider, and SP can be specifically classified into AdminSP and LockingSP. LockOnReset: in one sub-state of LockingSP, this state represents the collection of TCG Reset types that can be received with LockingSP enabled. MBR indicates a function of TCG, which maps a specific code interval to the address where LBA0 starts, and when the host boots, the host preferentially reads the specific code interval to execute the corresponding authentication procedure. DoneOnReset: and under the condition that the MBR function is started and the authentication is successful, receiving the collection of the TCG Reset Type.
And then, initializing the TCG according to the TCG protocol function test request of the solid state disk. Specifically, if the test request is a LockOnReset test, the initialization process is as follows: LockingSP is enabled, TCG HW Reset is added to LockOnReset Table; setting Read _ lock _ enable and Write _ lock _ enable to True; set Read _ locked and Write _ locked to True. If the test request is a DoneOnReset test, the initialization process is as follows: LockingSP is enabled, TCG HW Reset is added to the DoneOnReset Table; and setting MBR _ enable and MBR _ done to True.
And then, carrying out a plurality of different types of restarting behaviors on the solid state disk to be tested according to the type of the TCG protocol function test request of the solid state disk. Specifically, the different types of restart behavior may include restarting the device by selecting a Reset Type from PowerCycle, Programmatic Reset, PERST, NVMe Subsystem Reset, each of which is polled once. Wherein, PowerCycle represents to power on again after power off; programming represents software restart; NVMe subsystem Reset means NVMe subsystem restart PERST means PCIe arm Reset. And finally, after the corresponding type of restart execution is finished, checking whether the state of the TCG accords with an expected state.
In the embodiment, a solid state disk TCG protocol function test request is obtained, wherein the solid state disk TCG protocol function test request comprises a LockOnReset function test request and a DoneOnReset function test request; initializing the TCG according to the TCG protocol function test request of the solid state disk; performing a plurality of different types of restarting behaviors on the solid state disk to be tested according to the type of the TCG protocol function test request of the solid state disk; and after the corresponding type of restart is executed, checking whether the state of the TCG is in accordance with an expected state. According to the scheme, various restarting behaviors are carried out on the solid state disk to be tested, whether the state of the TCG is in accordance with expectations is checked, special automatic testing based on the SSD TCG LockOnReset/DoneOnReset function is achieved, and testing efficiency is effectively improved.
In one embodiment, as shown in fig. 3, a solid state disk TCG protocol functional test is provided, where the method further includes:
step 302, acquiring a LockOnReset function test request;
step 304, enabling lockingSP, adding TCG HW Reset into LockOnReset Table;
step 306, setting Read _ lock _ enable and Write _ lock _ enable to True, and setting Read _ locked and Write _ locked to True;
step 308, selecting one restart type from power-on again after power-off, software restart, PCIe hot restart and NVMe subsystem restart to restart the equipment, and polling once for each restart type;
at step 310, the states of Read _ locked and Write _ locked are checked.
In this embodiment, referring to fig. 5, a method for implementing a LockOnReset function test is provided, and the specific implementation steps are as follows:
first, lockingSP is enabled and TCG HW Reset is added to the LockOnReset Table.
Then, Read _ lock _ enable and Write _ lock _ enable are set to True, and Read _ locked and Write _ locked are set to True. Specifically, LockOnReset represents a sub-state in LockingSP that represents a collection of TCG Reset types that can be received with LockingSP enabled. Read _ lock _ enable indicates whether the Read _ locked function is enabled; the read _ locked is a read locking function, and the value of True indicates that no read operation can be performed after locking. Write _ lock _ enabel indicates whether the function of Write _ locked is enabled, Write _ locked is the Write lock function, and True indicates that Write operation cannot be performed after locking.
Then, a Reset Type is selected from PowerCycle, Programming Reset, PERST, NVMe Subsystem Reset to restart the device, and each Reset Type is polled once.
Finally, the states of Read _ locked and Write _ locked are checked.
In the embodiment, the automatic special test of the SSD TCG LockOnReset function based on the DriverMaster is realized.
In one embodiment, as shown in fig. 4, a solid state disk TCG protocol functional test is provided, where the method further includes:
step 402, obtaining a DoneOnReset function test request;
step 404, enable lockingSP, add TCG HW Reset to the DoneOnReset Table;
step 406, setting MBR _ enable and MBR _ done to True;
step 408, selecting one restart type from power-on again after power-off, software restart, PCIe hot restart and NVMe subsystem restart to restart the equipment, and polling once for each restart type;
step 410, checking the status of MBR _ enable and MBR _ done.
In this embodiment, referring to fig. 6, a method for implementing a DoneOnReset function test is provided, which includes the following specific implementation steps:
first, lockingSP is enabled, adding TCG HW Reset to the DoneOnReset Table.
Next, MBR _ enable and MBR _ done are set to True. Specifically, the DoneOnReset represents a collection of acceptable TCG Reset types on the condition that the MBR function is turned on and the authentication is successful. MBR is a function of TCG that maps a specific code interval to the address where LBA0 starts, and when the host boots, the host preferentially reads the specific code interval to perform the corresponding authentication procedure. MBR _ enable indicates the function of starting MBR, mapping a specific code interval to the address where LBA0 starts. MBR done indicates that the specific code execution is complete and the authentication is successful.
Then, a Reset Type is selected from PowerCycle, Programming Reset, PERST, NVMe Subsystem Reset to restart the device, and each Reset Type is polled once.
Finally, the status of MBR _ enable and MBR _ done is checked.
In the embodiment, the automatic special test of the SSD TCG DoneOnReset function based on the DriverMaster is realized.
It should be understood that although the various steps in the flow charts of fig. 1-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, there is provided a solid state disk TCG protocol function testing apparatus 700, including:
an obtaining module 701, configured to obtain a TCG protocol function test request for a solid state disk, where the TCG protocol function test request for the solid state disk includes a LockOnReset function test request and a DoneOnReset function test request;
an initialization module 702, configured to initialize the TCG according to the TCG protocol function test request;
a restarting module 703, configured to perform a plurality of different types of restarting behaviors on the solid state disk to be tested according to the type of the TCG protocol function test request of the solid state disk;
a checking module 704, configured to check whether the state of the TCG meets an expected state after the corresponding type of reboot is completed.
In one embodiment, as shown in fig. 8, there is provided a solid state disk TCG protocol function testing apparatus 700, which further includes a first testing module 705 configured to:
acquiring a LockOnReset function test request;
LockingSP is enabled, TCG HW Reset is added to LockOnReset Table;
setting Read _ lock _ enable and Write _ lock _ enable to True, and setting Read _ locked and Write _ locked to True;
restarting the equipment by selecting one restart type from power-on again after power failure, software restart, PCIe hot restart and NVMe subsystem restart, and polling once for each restart type;
the states of Read _ locked and Write _ locked are checked.
In one embodiment, as shown in fig. 9, there is provided a solid state disk TCG protocol function testing apparatus 700, which further includes a second testing module 706, configured to:
acquiring a function test request of the DoneOnReset;
LockingSP is enabled, TCG HW Reset is added to the DoneOnReset Table;
setting MBR _ enable and MBR _ done as True;
restarting the equipment by selecting one restart type from power-on again after power failure, software restart, PCIe hot restart and NVMe subsystem restart, and polling once for each restart type;
the status of MBR _ enable and MBR _ done is checked.
In one embodiment, the LockOnReset is a sub-state of LockingSP, and is used for indicating a collection of receivable TCG restart types under the condition that LockingSP is enabled; the DoneOnReset represents a collection of acceptable TCG restart categories on condition that the MBR function is turned on and authentication is successful.
For specific limitations of the solid state disk TCG protocol function testing apparatus, reference may be made to the above limitations of the solid state disk TCG protocol function testing method, which is not described herein again.
In one embodiment, a computer device is provided, the internal structure of which may be as shown in FIG. 10. The computer apparatus includes a processor, a memory, and a network interface connected by a device bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The nonvolatile storage medium stores an operating device, a computer program, and a database. The internal memory provides an environment for the operation device in the nonvolatile storage medium and the execution of the computer program. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a method for testing the TCG protocol function of the solid state disk.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method embodiments when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above respective method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for testing the TCG protocol function of a solid state disk is characterized by comprising the following steps:
acquiring a TCG protocol function test request of a solid state disk, wherein the TCG protocol function test request of the solid state disk comprises a LockOnReset function test request and a DoneOnReset function test request;
initializing the TCG according to the TCG protocol function test request of the solid state disk;
performing a plurality of different types of restarting behaviors on the solid state disk to be tested according to the type of the TCG protocol function test request of the solid state disk;
and after the corresponding type of restart is executed, checking whether the state of the TCG is in accordance with an expected state.
2. The method for testing the TCG protocol function of the solid state disk according to claim 1, further comprising:
acquiring a LockOnReset function test request;
LockingSP is enabled, TCG HW Reset is added to LockOnReset Table;
setting Read _ lock _ enable and Write _ lock _ enable to True, and setting Read _ locked and Write _ locked to True;
restarting the equipment by selecting one restart type from power-on again after power failure, software restart, PCIe hot restart and NVMe subsystem restart, and polling once for each restart type;
the states of Read _ locked and Write _ locked are checked.
3. The method for testing the TCG protocol function of the solid state disk according to claim 2, wherein the method further comprises:
acquiring a function test request of the DoneOnReset;
LockingSP is enabled, TCG HW Reset is added to the DoneOnReset Table;
setting MBR _ enable and MBR _ done as True;
restarting the equipment by selecting one restart type from power-on again after power failure, software restart, PCIe hot restart and NVMe subsystem restart, and polling once for each restart type;
the status of MBR _ enable and MBR _ done is checked.
4. The method for testing the protocol functions of the TCG on the solid state disk of any one of claims 1 to 3, wherein the LockOnReset is a sub-state of LockingSP for representing a collection of acceptable TCG restart types in case of LockingSP enabled; the DoneOnReset represents a collection of acceptable TCG restart categories on condition that the MBR function is turned on and authentication is successful.
5. The utility model provides a solid state disk TCG agreement function test device which characterized in that, the device includes:
the device comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a TCG protocol function test request of the solid state disk, and the TCG protocol function test request of the solid state disk comprises a LockOnReset function test request and a DoneOnReset function test request;
the initialization module is used for initializing the TCG according to the TCG protocol function test request of the solid state disk;
the restarting module is used for carrying out a plurality of different types of restarting behaviors on the solid state disk to be tested according to the type of the TCG protocol function test request of the solid state disk;
and the checking module is used for checking whether the state of the TCG accords with an expected state after the corresponding type of restart execution is finished.
6. The device for testing the TCG protocol functionality of the solid state disk according to claim 5, further comprising a first testing module, wherein the first testing module is configured to:
acquiring a LockOnReset function test request;
LockingSP is enabled, TCG HW Reset is added to LockOnReset Table;
setting Read _ lock _ enable and Write _ lock _ enable to True, and setting Read _ locked and Write _ locked to True;
restarting the equipment by selecting one restart type from power-on again after power failure, software restart, PCIe hot restart and NVMe subsystem restart, and polling once for each restart type;
the states of Read _ locked and Write _ locked are checked.
7. The device for testing the functionality of the TCG protocol on the solid state disk of claim 6, further comprising a second testing module, wherein the second testing module is configured to:
acquiring a function test request of the DoneOnReset;
LockingSP is enabled, TCG HW Reset is added to the DoneOnReset Table;
setting MBR _ enable and MBR _ done as True;
restarting the equipment by selecting one restart type from power-on again after power failure, software restart, PCIe hot restart and NVMe subsystem restart, and polling once for each restart type;
the status of MBR _ enable and MBR _ done is checked.
8. The TCG protocol function testing apparatus of any one of claims 5 to 7, wherein the LockOnReset is a sub-state of LockingSP for indicating a collection of acceptable TCG restart types in case of LockingSP enabling; the DoneOnReset represents a collection of acceptable TCG restart categories on condition that the MBR function is turned on and authentication is successful.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202111060731.1A 2021-09-10 2021-09-10 Method and device for testing TCG (trusted computing group) protocol function of solid state disk and computer equipment Pending CN113760623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111060731.1A CN113760623A (en) 2021-09-10 2021-09-10 Method and device for testing TCG (trusted computing group) protocol function of solid state disk and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111060731.1A CN113760623A (en) 2021-09-10 2021-09-10 Method and device for testing TCG (trusted computing group) protocol function of solid state disk and computer equipment

Publications (1)

Publication Number Publication Date
CN113760623A true CN113760623A (en) 2021-12-07

Family

ID=78794686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111060731.1A Pending CN113760623A (en) 2021-09-10 2021-09-10 Method and device for testing TCG (trusted computing group) protocol function of solid state disk and computer equipment

Country Status (1)

Country Link
CN (1) CN113760623A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116719668A (en) * 2023-08-07 2023-09-08 江苏华存电子科技有限公司 Automatic testing method and testing system for RAID (redundant array of independent disks) of NVMe (non-volatile media management) solid-state disk group

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427326A (en) * 2019-07-31 2019-11-08 东莞记忆存储科技有限公司 Solid state hard disk password test method and apparatus based on Driver Master
US20200034281A1 (en) * 2017-01-11 2020-01-30 Smartlytics Llc, Dba Quantyzd System and method for automated intelligent mobile application testing
CN111104275A (en) * 2019-12-24 2020-05-05 湖南国科微电子股份有限公司 Automatic testing method and device for flash SSD hard disk power supply
CN111128290A (en) * 2019-12-24 2020-05-08 深圳忆联信息系统有限公司 Method and device for testing APST (advanced persistent storage) characteristics of solid state disk and computer equipment
CN113051117A (en) * 2021-03-23 2021-06-29 深圳忆联信息系统有限公司 SSD Block SID function test method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200034281A1 (en) * 2017-01-11 2020-01-30 Smartlytics Llc, Dba Quantyzd System and method for automated intelligent mobile application testing
CN110427326A (en) * 2019-07-31 2019-11-08 东莞记忆存储科技有限公司 Solid state hard disk password test method and apparatus based on Driver Master
CN111104275A (en) * 2019-12-24 2020-05-05 湖南国科微电子股份有限公司 Automatic testing method and device for flash SSD hard disk power supply
CN111128290A (en) * 2019-12-24 2020-05-08 深圳忆联信息系统有限公司 Method and device for testing APST (advanced persistent storage) characteristics of solid state disk and computer equipment
CN113051117A (en) * 2021-03-23 2021-06-29 深圳忆联信息系统有限公司 SSD Block SID function test method, device, computer equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
TCG PUBLISHED: "TCG Storage Enterprise SSC Feature SetLocking LBA Ranges Control", TRUSTED COMPUTING GROUP, 2 May 2014 (2014-05-02), pages 1 - 30 *
TCG PUBLISHED: "TCG Storage Opal Family Feature Set: Shadow MBR for Multiple Namespaces", TRUSTED COMPUTING GROUP, 7 October 2020 (2020-10-07), pages 1 - 16 *
李思思;吴非;胡迪青;夏峰;: "固态盘测试系统的设计与实现", 计算机研究与发展, no. 1, 15 December 2014 (2014-12-15) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116719668A (en) * 2023-08-07 2023-09-08 江苏华存电子科技有限公司 Automatic testing method and testing system for RAID (redundant array of independent disks) of NVMe (non-volatile media management) solid-state disk group

Similar Documents

Publication Publication Date Title
CN106990958B (en) Expansion assembly, electronic equipment and starting method
US11281768B1 (en) Firmware security vulnerability verification service
CN113110891B (en) Firmware loading method and device for solid state disk, computer equipment and storage medium
CN110618819B (en) Method, device and computer equipment for automatic batch deployment of WINPE (WINPE) system
CN111341380B (en) Test method and device for resetting SSD (solid State disk) controller and computer equipment
CN110765032A (en) Method for reading and writing I2C memory based on system management bus interface
CN113760623A (en) Method and device for testing TCG (trusted computing group) protocol function of solid state disk and computer equipment
CN114880177A (en) Method and device for testing complete machine abnormal power failure of solid state disk and computer equipment
CN114625584A (en) Test verification method and device for dynamic conversion of data transmission rate of solid state disk
CN111176757B (en) SoC starting method and device based on JTAG
CN113064646A (en) BIOS starting method, system and related device
CN112463466B (en) Computer testing method
CN111596964A (en) Method and device for realizing batch deployment of Windows systems based on wireless network
CN116312730A (en) UFS storage device monomer test driving method and device based on MT6891 platform
CN113900722A (en) Automatic deployment method and device of trust and creation platform, computer equipment and storage medium
CN113805953A (en) UEFI environment deployment implementation method and device, computer equipment and storage medium
CN115659883A (en) Verification device and verification method for memory controller, storage medium and chip
CN110908725B (en) Application program starting method and device, electronic equipment and readable medium
CN113672526B (en) Method and device for acquiring triggering times of power-down protection of solid state disk and computer equipment
CN114253618B (en) BIOS modification method and device based on different manufacturers, computer equipment and storage medium
CN113408845B (en) Processing method and device of production flow, computer equipment and storage medium
CN115859392A (en) Method, system, optical module and medium for preventing error erasing of optical module data storage area
CN113032193A (en) Hard disk testing method and device under DOS (disk operating System), computer equipment and storage medium
CN114065224A (en) Method for repairing security loophole and mainboard management controller
CN117093414A (en) PCI peripheral equipment repairing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination