Block SID conversion state testing method, device, computer equipment and storage medium for solid-state hard disk

Through a series of steps and unit operations, the testing problem of SSD enabled and off status of SSD is solved, ensuring data security, achieving fast and efficient conversion status verification, and meeting users' experience and trust in secure storage products.

CN113990380BActive Publication Date: 2025-08-26SHENZHEN YILIAN INFORMATION SYST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111233211.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2025-08-26
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

The prior art is difficult to effectively test the enabled and off status of solid-state drive Block SID, resulting in the inability to guarantee user data security, and the complexity and confidentiality of BIOS source code, making it difficult to conduct secondary development and testing.

Method used

Through a series of steps and unit operations, including reading the state of Block SID, hardware reset and Locking SP, performing power cycles and reset events, judging the changes in the combined state, forming a specific combined state, and counting the test results to ensure the correctness of the Block SID conversion state.

Benefits of technology

It realizes rapid and efficient verification of the correctness of the conversion state after the SSD of the solid-state drive Block SID under power supply, restoration method, PCI thermal reset, NVMe subsystem reset and other events, meeting the user's needs for data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113990380B_ABST
    Figure CN113990380B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device, computer equipment, and storage medium for testing the Block SID conversion state of a solid-state drive. The method comprises: reading and maintaining the original states of the Block SID, hardware reset, and Locking SP; setting the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 0 to form a 100 combination state; executing a power cycle event; determining whether the 100 combination state changes to 000; and if so, calculating conversion state test results. The present invention can quickly and efficiently verify the correctness of the Block SID conversion state of a solid-state drive after events such as power-on and power-off, recovery methods, PCI hot reset, and NVMe subsystem reset.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Block SID conversion state testing, and in particular to a method, device, computer equipment, and storage medium for testing the Block SID conversion state of a solid-state drive. Background Art

[0002] Block SID (Block Security Identifier) ​​is an advanced data storage security policy developed by the Trusted Computer Group. It protects users' storage devices from ransomware attacks, malware attacks, and data tampering, thus preventing unnecessary losses. Any peripheral trusted storage SSD product compatible with Block SID must comply with the Trusted Computer Group's Block SID specification. This security policy utilizes hardware-based self-encryption, offering significantly higher performance and security than software-based encryption. When a Block SID-enabled SSD storage device communicates with a platform as a trusted peripheral, enabling Block SID authentication effectively prevents hackers and host software from using the default SID (Security Identifier) ​​to attack, ransom the SSD user, or steal and tamper with the SSD's data, effectively protecting the SSD user's data security. Therefore, it is crucial to test whether SSDs correctly enable Block SID authentication and disable it according to the conditions defined in the specification. If Block SID authentication-compatible peripheral trusted storage SSD products cannot enable and disable Block SID authentication according to the conditions defined in the specification, SSD users are likely to be subject to ransomware and malware attacks by hackers and data tampering, resulting in irreparable losses and greatly affecting users' experience and trust in secure storage products.

[0003] Currently, the enabling and disabling of Block SIDs is typically controlled by the BIOS (Basic Input Output System). The TCG_Storage-Feature_Set_Block_SID_Authentication specification, developed by the Trusted Computer Group (TCG), stipulates that Block SID security authentication should be disabled after a recovery method, a TCG hardware reset, or a platform power cycle. TCG hardware resets include multiple sub-events, such as a PCI (Peripheral Component Interconnect) hot reset and an NVMe subsystem reset. Without the BIOS source code, secondary development and testing of the various factors affecting Block SIDs is difficult. Furthermore, the confidentiality and cost of BIOS source code are extremely high, and its logical structure is complex. Secondary development of the code places extremely high demands on SSD testing professionals, making it difficult to meet these requirements. Summary of the Invention

[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a method, device, computer equipment and storage medium for testing the Block SID conversion state of a solid-state drive.

[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0006] The method for testing the Block SID conversion status of a solid-state drive includes the following steps:

[0007] Read and save the original status of Block SID, hardware reset and Locking SP;

[0008] Set the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 0 to form a 100 combination state;

[0009] Execute power cycle events;

[0010] Determine whether the 100 combination status changes to 000;

[0011] If yes, reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 0 to form a 100 combination state;

[0012] Execute the recovery method event;

[0013] Determine whether the 100 combination status changes to 000;

[0014] If yes, reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 0 to form a 100 combination state;

[0015] Execute the first set combination event;

[0016] Determine whether the 100 combination status is still 100;

[0017] If yes, power off and then power on the SSD, and set the Block SID enable bit to 1, the SID value status to 0, and the hardware reset bit to 1, forming a 101 combination state;

[0018] Executing the second set combination event;

[0019] Determine whether the 101 combination status changes to 000;

[0020] If so, reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 1 to form a 101 combination state;

[0021] Execute the third set combination event;

[0022] Determine whether the 101 combination status is still 101;

[0023] If so, reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 1 to form a 101 combination state;

[0024] Power off and then power on the SSD, and change the factory default password to form a 010 combination;

[0025] Execute the recovery method event;

[0026] Determine whether the 010 combination status changes to 000;

[0027] If yes, then the conversion state test results are counted.

[0028] Its further technical solution is: before the steps of reading and maintaining the Block SID, hardware reset and the original state of Locking SP, it also includes: reading the TCG state of the solid-state drive and determining whether TCG is supported; if so, powering off and then powering on the solid-state drive to activate Locking SP.

[0029] Its further technical solution is: the first setting combination event includes a PCI hot reset event, a PS4 advance and exit event, a shutdown notification plus a D3 hot advance and exit event, and an NVMe subsystem reset event; the PCI hot reset event, the PS4 advance and exit event, the shutdown notification plus a D3 hot advance and exit event, and the NVMe subsystem reset event are executed separately.

[0030] A further technical solution is: the second set combination event includes a power cycle event, a recovery method event and a PCI hot reset event; the power cycle event, the recovery method event and the PCI hot reset event are executed separately.

[0031] A device for testing the Block SID conversion state of a solid-state drive includes: a reading unit, a first setting unit, a first execution unit, a first judgment unit, a second setting unit, a second execution unit, a second judgment unit, a third setting unit, a third execution unit, a third judgment unit, a fourth setting unit, a fourth execution unit, a fourth judgment unit, a fifth setting unit, a fifth execution unit, a fifth judgment unit, a sixth setting unit, a modification unit, a sixth execution unit, a sixth judgment unit, and a statistical unit;

[0032] The reading unit is used to read and maintain the original status of Block SID, hardware reset and Locking SP;

[0033] The first setting unit is used to set the enable position of the Block SID to 1, the state of the SID value to 0, and the hardware reset position to 0 to form a 100 combination state;

[0034] The first execution unit is configured to execute a power cycle event;

[0035] The first judging unit is used to judge whether the combination state of 100 changes to 000;

[0036] The second setting unit is used to reset the enable position of the Block SID to 1, the state of the SID value to 0, and the hardware reset position to 0 to form a 100 combination state;

[0037] The second execution unit is used to execute a recovery method event;

[0038] The second judging unit is used to judge whether the combination state of 100 changes to 000;

[0039] The third setting unit is used to reset the enable position of the Block SID to 1, the state of the SID value to 0, and the hardware reset position to 0 to form a 100 combination state;

[0040] The third execution unit is configured to execute the first set combination event;

[0041] The third judging unit is used to judge whether the 100 combination state is still 100;

[0042] The fourth setting unit is used to power off and then power on the solid-state drive, and set the enable bit of the Block SID to 1, the state of the SID value to 0, and the hardware reset bit to 1 to form a 101 combination state;

[0043] The fourth execution unit is configured to execute a second set combination event;

[0044] The fourth judgment unit is used to judge whether the 101 combination state changes to 000;

[0045] The fifth setting unit is used to reset the enable position of the Block SID to 1, the state of the SID value to 0, and the hardware reset position to 1 to form a 101 combination state;

[0046] The fifth execution unit is configured to execute a third set combination event;

[0047] The fifth judging unit is used to judge whether the 101 combination state is still 101;

[0048] The sixth setting unit is used to reset the enable position of the Block SID to 1, the state of the SID value to 0, and the hardware reset position to 1 to form a 101 combination state;

[0049] The modification unit is used to power off and then power on the solid state drive, and modify the factory default password to form a 010 combination state;

[0050] The sixth execution unit is used to execute a recovery method event;

[0051] The sixth judgment unit is used to judge whether the 010 combination state changes to 000;

[0052] The statistical unit is used to collect statistics on the conversion state test results.

[0053] Its further technical solution is: it also includes: a reading judgment activation unit, which is used to read the TCG status of the solid state drive, determine whether it supports TCG, power off the solid state drive and then power it on again to activate the Locking SP.

[0054] Its further technical solution is: the first setting combination event includes a PCI hot reset event, a PS4 advance and exit event, a shutdown notification plus a D3 hot advance and exit event, and an NVMe subsystem reset event; the PCI hot reset event, the PS4 advance and exit event, the shutdown notification plus a D3 hot advance and exit event, and the NVMe subsystem reset event are executed separately.

[0055] A further technical solution is: the second set combination event includes a power cycle event, a recovery method event and a PCI hot reset event; the power cycle event, the recovery method event and the PCI hot reset event are executed separately.

[0056] A computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the method for testing the Block SID conversion state of a solid-state drive as described above is implemented.

[0057] A storage medium stores a computer program, wherein the computer program includes program instructions. When executed by a processor, the program instructions can implement the above-mentioned Block SID conversion state test method of a solid-state drive.

[0058] Compared with the existing technology, the beneficial effect of the present invention is that it can quickly and efficiently verify the correctness of the Block SID conversion state of the solid-state drive after events such as power-on and power-off, recovery method, PCI hot reset, and NVMe subsystem reset, which can better meet the needs.

[0059] The present invention will be further described below with reference to the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0061] Figure 1 A flowchart of a method for testing the Block SID conversion status of a solid-state drive provided by an embodiment of the present invention;

[0062] Figure 2 A schematic block diagram of a device for testing the Block SID conversion state of a solid-state drive provided by an embodiment of the present invention;

[0063] Figure 3 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0064] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0065] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0066] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in the specification and appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.

[0067] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0068] See also Figures 1 to 3 The specific embodiment shown, wherein see Figure 1 As shown, the present invention discloses a method for testing the Block SID conversion state of a solid-state drive, comprising the following steps:

[0069] S1, reads and maintains the original status of Block SID, hardware reset, and Locking SP;

[0070] Before step S1, the process also includes: powering on the computer, reading the TCG status of the solid-state drive, and determining whether TCG is supported; if so, powering off and then powering on the solid-state drive through a power cycle command to activate the Locking SP (secure provider).

[0071] S2, set the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 0, forming a 100 combination state;

[0072] S3, execute power cycle event;

[0073] S4, determine whether the 100 combination status changes to 000; if not, define it as bad and display the result, ending the test;

[0074] The result displayed is that the event does not meet the requirements for Block SID reset.

[0075] S5: If yes, reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 0, forming a 100 combination state.

[0076] S6, execute the recovery method event;

[0077] S7, determine whether the 100 combination status changes to 000; if not, define it as bad and display the result, ending the test;

[0078] The result displayed is that the event does not meet the requirements for Block SID reset.

[0079] S8, if yes, then reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 0, forming a 100 combination state;

[0080] S9, executing the first set combination event;

[0081] Among them, in this embodiment, the first setting combination event includes a PCI hot reset event, a PS4 advance and exit event, a shutdown notification plus a D3 hot advance and exit event, and an NVMe subsystem reset event; the PCI hot reset event, the PS4 advance and exit event, the shutdown notification plus a D3 hot advance and exit event, and the NVMe subsystem reset event are executed separately.

[0082] The execution processes of the PCI hot reset event, PS4 entry and exit event, shutdown notification plus D3 hot entry and exit event, and NVMe subsystem reset event are as follows:

[0083] Execute PCI hot reset event;

[0084] Determine whether the 100 combination status is still 100; if not, define it as bad and display the result, ending the test;

[0085] If so, execute the PS4 forward and backward events;

[0086] Determine whether the 100 combination status is still 100; if not, define it as bad and display the result, ending the test;

[0087] If so, execute the shutdown notification plus D3 hot in and out event;

[0088] Determine whether the 100 combination status is still 100; if not, define it as bad and display the result, ending the test;

[0089] If yes, the NVMe subsystem reset event is executed.

[0090] S10, determine whether the 100 combination status is still 100; if not, define it as bad and display the result, and end the test;

[0091] S11, if yes, then power off and then power on the solid-state drive, and set the enable bit of the Block SID to 1, the state of the SID value to 0, and the hardware reset bit to 1, forming a 101 combination state;

[0092] Specifically, because the previous state was 100, the Block SID was enabled. In order to switch to the 101 state, a power cycle event must be performed first to release the Block SID, and then the Locking SP must be activated. The previously activated Locking SP state has been released after the recovery method event. In order to subsequently test the recovery method event, the Locking SP must be reactivated, and then the enable bit of the Block SID is set to 1, the state of the SID value is 0, and the hardware reset is set to 0 to achieve the 101 state.

[0093] S12, executing the second set combination event;

[0094] In this embodiment, the second set combination event includes a power cycle event, a recovery method event, and a PCI hot reset event; and the power cycle event, the recovery method event, and the PCI hot reset event are executed separately.

[0095] The processes for executing power cycle events, recovery method events, and PCI hot reset events are as follows:

[0096] Execute power cycle events;

[0097] Determine whether the 101 combination status changes to 000; if not, define it as bad and display the result, ending the test;

[0098] If so, reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 1 to form a 101 combination state;

[0099] Execute the recovery method event;

[0100] Determine whether the 101 combination status changes to 000; if not, define it as bad and display the result, ending the test;

[0101] If so, reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 1 to form a 101 combination state;

[0102] Executes a PCI warm reset event.

[0103] S13, determine whether the 101 combination status changes to 000; if not, define it as bad and display the result, and end the test;

[0104] S14: If yes, then reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 1, forming a 101 combination state;

[0105] S15, executing the third set combination event;

[0106] Among them, in this embodiment, the third setting combination event includes PS4 entry and exit events, shutdown notification plus D3hot entry and exit events and NVMe subsystem reset events; the PS4 entry and exit events, shutdown notification plus D3 hot entry and exit events and NVMe subsystem reset events are executed separately.

[0107] The execution processes of the PS4 power on / off event, shutdown notification plus D3 hot power on / off event, and NVMe subsystem reset event are as follows:

[0108] Execute PS4 forward and backward events;

[0109] Determine whether the 101 combination status is still 101; if not, define it as bad and display the result, ending the test;

[0110] If so, execute the shutdown notification plus D3 hot in and out event;

[0111] Determine whether the 101 combination status is still 101; if not, define it as bad and display the result, ending the test;

[0112] If yes, the NVMe subsystem reset event is executed.

[0113] S16, determine whether the 101 combination status is still 101; if not, define it as bad and display the result, and end the test;

[0114] S17, if yes, then reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 1, forming a 101 combination state;

[0115] S18, power off and then power on the solid-state drive, and modify the factory default password to form a 010 combination state;

[0116] Among them, when the factory default password is changed, the 101 combination state changes to the 010 combination state.

[0117] S19, executing the recovery method event;

[0118] S20, determine whether the 010 combination status changes to 000; if not, define it as bad and display the result, and end the test;

[0119] S21: If yes, then count the test results of the conversion state.

[0120] The present invention utilizes ULINK's Driver Master software and its matching PSPA (PCIe Solid State Drive Power Adaptor) hardware to write scripts to test and verify various impact events of Block SID.

[0121] The hardware requirements used in this invention are: Tested computer: ASUS Strix Z590 desktop computer. Note: For the test computer, this invention requires the use of a desktop computer, but the specific model is not mandatory. The ASUS Strix Z590 desktop computer is preferred as the test computer.

[0122] The solid-state drive used for testing: a solid-state drive that supports PCIe NVMe and TCG Opal protocols.

[0123] Software requirements: Operating system: Windows 10 operating system; Test software: ULINK DriveMaster2018 NVMe; Test script: Self-written DriveMaster test script.

[0124] The present invention can quickly and efficiently verify the correctness of the Block SID conversion state of the solid-state drive after events such as power-on and power-off, recovery method, PCI hot reset, and NVMe subsystem reset, which can better meet the needs.

[0125] See also Figure 2 As shown, the present invention also discloses a Block SID conversion state test device for a solid-state hard disk, comprising: a reading unit 10, a first setting unit 20, a first execution unit 30, a first judgment unit 40, a second setting unit 50, a second execution unit 60, a second judgment unit 70, a third setting unit 80, a third execution unit 90, a third judgment unit 100, a fourth setting unit 110, a fourth execution unit 120, a fourth judgment unit 130, a fifth setting unit 140, a fifth execution unit 150, a fifth judgment unit 160, a sixth setting unit 170, a modification unit 180, a sixth execution unit 190, a sixth judgment unit 200 and a statistical unit 210;

[0126] The reading unit 10 is used to read and maintain the original status of Block SID, hardware reset and Locking SP;

[0127] The first setting unit 20 is used to set the enable position of the Block SID to 1, the state of the SID value to 0, and the hardware reset position to 0 to form a 100 combination state;

[0128] The first execution unit 30 is configured to execute a power cycle event;

[0129] The first judging unit 40 is used to judge whether the combination state of 100 changes to 000;

[0130] The second setting unit 50 is used to reset the enable position of the Block SID to 1, the state of the SID value to 0, and the hardware reset position to 0 to form a 100 combination state;

[0131] The second execution unit 60 is used to execute the recovery method event;

[0132] The second judging unit 70 is used to judge whether the combination state of 100 changes to 000;

[0133] The third setting unit 80 is used to reset the enable position of the Block SID to 1, the state of the SID value to 0, and the hardware reset position to 0 to form a 100 combination state;

[0134] The third execution unit 90 is used to execute the first set combination event;

[0135] The third judging unit 100 is used to judge whether the combination state of 100 is still 100;

[0136] The fourth setting unit 110 is used to power off and then power on the solid-state drive, and set the enable bit of the Block SID to 1, the state of the SID value to 0, and the hardware reset bit to 1 to form a 101 combination state;

[0137] The fourth execution unit 120 is configured to execute a second set combination event;

[0138] The fourth judgment unit 130 is used to judge whether the 101 combination state changes to 000;

[0139] The fifth setting unit 140 is used to reset the enable bit of the Block SID to 1, the state of the SID value to 0, and the hardware reset bit to 1 to form a 101 combination state;

[0140] The fifth execution unit 150 is configured to execute a third set combination event;

[0141] The fifth judging unit 160 is used to judge whether the combination state of 101 is still 101;

[0142] The sixth setting unit 170 is used to reset the enable bit of the Block SID to 1, the state of the SID value to 0, and the hardware reset bit to 1 to form a 101 combination state;

[0143] The modification unit 180 is used to power off and then power on the solid state drive and modify the factory default password to form a 010 combination state;

[0144] The sixth execution unit 190 is used to execute a recovery method event;

[0145] The sixth judgment unit 200 is used to judge whether the 010 combination state changes to 000;

[0146] The statistical unit 210 is used to collect statistics on the conversion state test results.

[0147] The device further includes: a reading judgment activation unit (not shown in the figure), which is used to read the TCG status of the solid state drive, determine whether TCG is supported, power off and then power on the solid state drive, and activate Locking SP.

[0148] Among them, the first setting combination event includes PCI hot reset event, PS4 advance and exit event, shutdown notification plus D3hot advance and exit event and NVMe subsystem reset event; the PCI hot reset event, PS4 advance and exit event, shutdown notification plus D3hot advance and exit event and NVMe subsystem reset event are executed separately.

[0149] The second set combination event includes a power cycle event, a recovery method event and a PCI hot reset event; and the power cycle event, the recovery method event and the PCI hot reset event are executed separately.

[0150] It should be noted that technical personnel in the relevant field can clearly understand that the specific implementation process of the BlockSID conversion state test device and each unit of the above-mentioned solid-state hard disk can refer to the corresponding description in the aforementioned method embodiment. For the convenience and brevity of the description, it will not be repeated here.

[0151] The above-mentioned solid state hard disk Block SID conversion state test device can be implemented in the form of a computer program. The computer program can be used in a computer program such as Figure 3 Runs on the computer equipment shown.

[0152] See also Figure 3 , Figure 3This is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 can be a terminal or a server. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, personal digital assistant, wearable device, or other electronic device with communication capabilities. The server can be a standalone server or a server cluster consisting of multiple servers.

[0153] See Figure 3 The computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0154] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, which, when executed, can enable the processor 502 to execute a method for testing the BlockSID conversion state of a solid state drive.

[0155] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.

[0156] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a method for testing the Block SID conversion state of the solid state drive.

[0157] The network interface 505 is used to communicate with other devices through the network. Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0158] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0159] Those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program includes program instructions, which can be stored in a storage medium that is computer-readable. The program instructions are executed by at least one processor in the computer system to implement the steps in the method of the above-described embodiment.

[0160] Therefore, the present invention further provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions, and when executed by a processor, the program instructions can implement the above-mentioned solid-state drive Block SID transition state test method.

[0161] The storage medium may be any computer-readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.

[0162] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the composition and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0163] In the several embodiments provided herein, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the various units is merely a logical functional division, and actual implementation may employ other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented.

[0164] The steps in the methods of the embodiments of the present invention may be adjusted in order, combined, or deleted as needed. The units in the devices of the embodiments of the present invention may be combined, divided, or deleted as needed. Furthermore, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit.

[0165] If this integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the existing technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the steps of the method described in various embodiments of the present invention.

[0166] The above embodiments are preferred implementation schemes of the present invention. In addition, the present invention can also be implemented in other ways. Any obvious replacement without departing from the concept of the present technical solution is within the scope of protection of the present invention.

Claims

1. A method for testing the Block SID conversion state of a solid-state drive, characterized in that: The following steps are involved: Read and save the original status of Block SID, hardware reset and Locking SP; Set the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 0 to form a 100 combination state; Execute power cycle events; Determine whether the 100 combination status changes to 000; If yes, reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 0 to form a 100 combination state; Execute the recovery method event; Determine whether the 100 combination status changes to 000; If yes, reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 0 to form a 100 combination state; Execute the first set combination event; Determine whether the 100 combination status is still 100; If yes, power off and then power on the SSD, and set the Block SID enable bit to 1, the SID value status to 0, and the hardware reset bit to 1, forming a 101 combination state; Executing the second set combination event; Determine whether the 101 combination status changes to 000; If so, reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 1 to form a 101 combination state; Execute the third set combination event; Determine whether the 101 combination status is still 101; If so, reset the Block SID enable bit to 1, the SID value state to 0, and the hardware reset bit to 1 to form a 101 combination state; Power off and then power on the SSD, and change the factory default password to form a 010 combination; Execute the recovery method event; Determine whether the 010 combination status changes to 000; If so, the conversion state test results are counted; Among them, the first setting combination event includes PCI hot reset event, PS4 advance and retreat event, shutdown notification plus D3 hot advance and retreat event and NVMe subsystem reset event; the second setting combination event includes power cycle event, recovery method event and PCI hot reset event; the third setting combination event includes PS4 advance and retreat event, shutdown notification plus D3 hot advance and retreat event and NVMe subsystem reset event; Block SID stands for Block Security Identifier, which blocks security identity authentication; Locking SP is a secure provider.

2. The method for testing the Block SID conversion state of a solid-state drive according to claim 1, wherein: Before the steps of reading and maintaining the Block SID, hardware reset and Locking SP original state, the method further includes: reading the TCG state of the solid state drive and determining whether TCG is supported; if so, powering off and then powering on the solid state drive to activate Locking SP.

3. The Block SID conversion state test device of the solid state drive is characterized by: include: a reading unit, a first setting unit, a first executing unit, a first judging unit, a second setting unit, a second executing unit, a second judging unit, a third setting unit, a third executing unit, a third judging unit, a fourth setting unit, a fourth executing unit, a fourth judging unit, a fifth setting unit, a fifth executing unit, a fifth judging unit, a sixth setting unit, a modifying unit, a sixth executing unit, a sixth judging unit, and a counting unit; The reading unit is used to read and maintain the original status of Block SID, hardware reset and Locking SP; The first setting unit is used to set the enable position of the Block SID to 1, the state of the SID value to 0, and the hardware reset position to 0 to form a 100 combination state; The first execution unit is configured to execute a power cycle event; The first judging unit is used to judge whether the combination state of 100 changes to 000; The second setting unit is used to reset the enable position of the Block SID to 1, the state of the SID value to 0, and the hardware reset position to 0 to form a 100 combination state; The second execution unit is used to execute a recovery method event; The second judging unit is used to judge whether the combination state of 100 changes to 000; The third setting unit is used to reset the enable position of the Block SID to 1, the state of the SID value to 0, and the hardware reset position to 0 to form a 100 combination state; The third execution unit is configured to execute the first set combination event; The third judging unit is used to judge whether the 100 combination state is still 100; The fourth setting unit is used to power off and then power on the solid-state drive, and set the enable bit of the Block SID to 1, the state of the SID value to 0, and the hardware reset bit to 1 to form a 101 combination state; The fourth execution unit is configured to execute a second set combination event; The fourth judgment unit is used to judge whether the 101 combination state changes to 000; The fifth setting unit is used to reset the enable position of the Block SID to 1, the state of the SID value to 0, and the hardware reset position to 1 to form a 101 combination state; The fifth execution unit is configured to execute a third set combination event; The fifth judging unit is used to judge whether the 101 combination state is still 101; The sixth setting unit is used to reset the enable position of the Block SID to 1, the state of the SID value to 0, and the hardware reset position to 1 to form a 101 combination state; The modification unit is used to power off and then power on the solid state drive, and modify the factory default password to form a 010 combination state; The sixth execution unit is used to execute a recovery method event; The sixth judgment unit is used to judge whether the 010 combination state changes to 000; The statistical unit is used to count the conversion state test results; Among them, the first setting combination event includes PCI hot reset event, PS4 advance and retreat event, shutdown notification plus D3 hot advance and retreat event and NVMe subsystem reset event; the second setting combination event includes power cycle event, recovery method event and PCI hot reset event; the third setting combination event includes PS4 advance and retreat event, shutdown notification plus D3 hot advance and retreat event and NVMe subsystem reset event; Block SID stands for Block Security Identifier, which blocks security identity authentication; Locking SP is a secure provider.

4. The device for testing the Block SID conversion state of a solid-state drive according to claim 3, wherein: Also includes: The read judgment activation unit is used to read the TCG status of the solid-state drive, determine whether TCG is supported, power off the solid-state drive and then power it on again to activate the Locking SP.

5. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the Block SID conversion state testing method of the solid-state hard disk according to any one of claims 1 to 2 when executing the computer program.

6. A storage medium, characterized in that The storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, the method for testing the Block SID conversion state of a solid-state drive according to any one of claims 1 to 2 can be implemented.

Citation Information

Patent Citations

  • Credible platform module test device

    CN101493870A

  • TCG data processing acceleration method and device based on solid state disk, computer equipment and storage medium

    CN111125715A