Method and apparatus for improving efficiency of ufs background operation processing mechanism

By marking bad blocks, utilizing the BKOPS function and the MTK platform, the problem of long verification time in the UFS background operation status was solved, enabling rapid entry into different status levels to improve verification efficiency.

CN115963991BActive Publication Date: 2026-07-31SHENZHEN YILIAN INFORMATION SYST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN YILIAN INFORMATION SYST CO LTD
Filing Date
2022-12-26
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

Traditional technologies often involve time-consuming verification of the processing mechanisms and performance of UFS background operations at different levels. High host latency makes it difficult to quickly enter different levels, thus hindering effective verification of the processing mechanisms and performance of UFS background operations.

Method used

By marking different numbers of bad blocks, UFS is made to enter non-critical, performance being impacted, and critical states. The processing mechanism and performance of UFS are verified in these states. The enabling, clearing, and resetting of the BKOPS function are used in conjunction with the vendor cmd of the MTK platform to mark bad blocks.

Benefits of technology

It significantly reduces the time required to verify the UFS backend operation processing mechanism and performance, improves testing efficiency, and enables quick entry into different levels of status for effective verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115963991B_ABST
    Figure CN115963991B_ABST
Patent Text Reader

Abstract

This application relates to a method, apparatus, computer device, and storage medium for improving the efficiency of verifying UFS background operation processing mechanisms. The method includes: obtaining a request to improve the efficiency of verifying UFS background operation processing mechanisms; enabling UFS background operation and verifying whether the BKOPS function is enabled; if the BKOPS function is enabled, clearing UFS data and resetting the BKOPS state; marking different numbers of bad blocks to allow UFS to enter different levels of background operation states, and verifying the UFS processing mechanism and performance under different levels of background operation states. This invention, by marking bad blocks and occupying a certain number of spare blocks, allows UFS to enter different levels of background operation states more quickly, effectively reducing the time required to test the background operation processing mechanism and performance, thereby improving the testing efficiency of this function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of UFS storage system technology, and in particular to a method, apparatus, computer device, and storage medium for improving the efficiency of the verification UFS background operation processing mechanism. Background Technology

[0002] UFS (Universal Flash Storage) is short for UNIX file system, a standard specification for embedded memory. UFS uses serial data transfer technology, has only two data channels but its speed surpasses eMMC. Whether in data transfer technology or operating mode, UFS is comprehensively superior to eMMC.

[0003] Currently, traditional technologies primarily verify the processing mechanism and performance of UFS background operations at different levels by issuing write commands from the host. The main drawbacks include: long processing time; and if the host latency is high and the command issuance speed is slow, it is difficult for UFS to reach different background operation levels, making it difficult to verify the processing mechanism and performance of UFS background operations. Summary of the Invention

[0004] Therefore, it is necessary to provide a method, apparatus, computer equipment, and storage medium for improving the efficiency of the verification UFS backend operation processing mechanism to address the aforementioned technical problems.

[0005] A method for improving the efficiency of the verification UFS backend operation processing mechanism, the method comprising:

[0006] Request an improvement request to enhance the efficiency of the UFS backend operation processing mechanism;

[0007] Enable UFS background operations and verify whether the BKOPS function has been enabled;

[0008] If the BKOPS function is enabled, clear the UFS data and reset the BKOPS state;

[0009] By marking different numbers of bad blocks, UFS is put into different levels of background operation states, and the UFS processing mechanism and performance are verified under different levels of background operation states.

[0010] In one embodiment, the step of entering different levels of background operation states by marking different numbers of bad blocks in the UFS includes:

[0011] The UFS under test is soldered onto the MTK development board, and a vendor command is issued through the MTK platform to mark different numbers of bad blocks.

[0012] In one embodiment, the step of marking different numbers of bad blocks to put UFS into different levels of background operation states, and verifying the UFS processing mechanism and performance under different levels of background operation states, includes:

[0013] By marking different numbers of bad blocks, UFS can be made to enter non-critical, performance-impacted, and critical states respectively.

[0014] In one embodiment, the step of marking different numbers of bad blocks to put the UFS into non-critical, performance being impacted, and critical states respectively further includes:

[0015] The UFS processing mechanism and performance were verified under non-critical, performance being impacted, and critical states, respectively.

[0016] An apparatus for improving the efficiency of a UFS background operation processing mechanism, the apparatus comprising:

[0017] The acquisition module is used to acquire requests to improve the efficiency of the UFS backend operation processing mechanism for verification.

[0018] The enable verification module is used to enable UFS background operations and verify whether the BKOPS function has been enabled.

[0019] A state reset module is used to clear UFS data and reset the BKOPS state if the BKOPS function is enabled.

[0020] The marking module is used to mark different numbers of bad blocks to enable UFS to enter different levels of background operation states, and to verify the UFS processing mechanism and performance under different levels of background operation states.

[0021] In one embodiment, the apparatus further includes a command issuing module, the command issuing module being used to:

[0022] The UFS under test is soldered onto the MTK development board, and a vendor command is issued through the MTK platform to mark different numbers of bad blocks.

[0023] In one embodiment, the marking module is further configured to:

[0024] By marking different numbers of bad blocks, UFS can be made to enter non-critical, performance-impacted, and critical states respectively.

[0025] In one embodiment, the apparatus further includes a performance verification module, the performance verification module being used for:

[0026] The UFS processing mechanism and performance were verified under non-critical, performance being impacted, and critical states, respectively.

[0027] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the methods described above.

[0028] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above methods.

[0029] The aforementioned method, apparatus, computer device, and storage medium for improving the efficiency of the UFS background operation processing mechanism involve: obtaining a request to improve the efficiency of the UFS background operation processing mechanism; enabling UFS background operation and verifying whether the BKOPS function is enabled; if the BKOPS function is enabled, clearing UFS data and resetting the BKOPS state; and marking different numbers of bad blocks to allow UFS to enter different levels of background operation states, and verifying the UFS processing mechanism and performance under different levels of background operation states. This invention, by marking bad blocks and occupying a certain number of spare blocks, allows UFS to enter different levels of background operation states more quickly, effectively reducing the time required to test the background operation processing mechanism and performance, thereby improving the testing efficiency of this function. Attached Figure Description

[0030] Figure 1 This is a flowchart illustrating a method for improving the efficiency of the verification UFS backend operation processing mechanism in one embodiment.

[0031] Figure 2 This is a flowchart illustrating a method for improving the efficiency of the verification UFS background operation processing mechanism in another embodiment.

[0032] Figure 3 This is a flowchart illustrating a method for improving the efficiency of the verification UFS background operation processing mechanism in another embodiment.

[0033] Figure 4This is a structural block diagram of an implementation device for improving the efficiency of the verification UFS background operation processing mechanism in one embodiment;

[0034] Figure 5 This is a structural block diagram of an apparatus for improving the efficiency of the verification UFS background operation processing mechanism in another embodiment;

[0035] Figure 6 A structural block diagram of an apparatus for improving the efficiency of the verification UFS background operation processing mechanism in another embodiment;

[0036] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0037] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0038] Currently, traditional technologies primarily verify the processing mechanism and performance of UFS background operations at different levels by issuing write commands from the host. The main drawbacks include: long processing time; and if the host latency is high and the command issuance speed is slow, it is difficult for UFS to reach different background operation levels, making it difficult to verify the processing mechanism and performance of UFS background operations.

[0039] Based on this, the present invention proposes an implementation method to improve the efficiency of the verification UFS backend operation processing mechanism, which aims to reduce the time of the verification backend operation processing mechanism and improve testing efficiency.

[0040] In one embodiment, such as Figure 1 As shown, a method for improving the efficiency of the verification UFS backend operation processing mechanism is provided, the method including:

[0041] Step 102: Obtain a request to improve the efficiency of the verification UFS backend operation processing mechanism;

[0042] Step 104: Enable UFS background operation and verify whether the BKOPS function has been enabled;

[0043] Step 106: If the BKOPS function is enabled, clear the UFS data and reset the BKOPS status;

[0044] Step 108: By marking different numbers of bad blocks, UFS is put into different levels of background operation states, and the UFS processing mechanism and performance are verified under different levels of background operation states.

[0045] In this embodiment, a method for improving the efficiency of the verification UFS backend operation processing mechanism is provided. This method can be applied to the functional feature verification of UFS products on the MTK platform.

[0046] To verify different background operation processing mechanisms of UFS, ordinary write operations consume a lot of time and flash program / erase count. However, the method provided in this embodiment can effectively reduce the time for verifying background operation processing mechanisms and greatly improve testing efficiency.

[0047] Specifically, first, obtain a request to improve the efficiency of the UFS background operation processing mechanism; enable UFS background operation and verify whether the BKOPS function has been enabled; if the BKOPS function has been enabled, clear the UFS data and reset the BKOPS state.

[0048] The UFS background operation processing mechanism is verified as needed. Based on the background operation level, different numbers of normal blocks are marked as bad blocks, and the number of spare blocks is consumed to make UFS quickly enter non-critical, performance being impacted, and critical states.

[0049] In one embodiment, before the step of putting the UFS into different levels of background operation state by marking different numbers of bad blocks, the method further includes: soldering the UFS under test to the MTK development board, issuing a vendor cmd through the MTK platform, and marking different numbers of bad blocks.

[0050] In this embodiment, the specific application method is as follows: the UFS under test is soldered to the MTK development board, and the vendor cmd is issued through the MTK platform to mark different numbers of bad blocks, so that the UFS enters different background operation state levels to verify the processing mechanism and performance of the UFS in this state.

[0051] In the above embodiments, a UFS storage device unit test request is obtained; network connectivity of multiple clients is checked, and it is determined whether the unit test script has been correctly deployed; if the unit test script has been correctly deployed, the UFS character device selection in the Linux system is performed first, followed by configuration of the unit test environment; the unit test script is used for testing, and result analysis and report output are performed after the unit test script is completed. This invention enables one-click distributed deployment of test scripts for UFS unit testing, fully automating the testing and outputting graphical interface statistics of test results, without requiring human intervention throughout the entire process.

[0052] In one embodiment, such as Figure 2As shown, a method for improving the efficiency of verifying the UFS background operation processing mechanism is provided. This method involves marking different numbers of bad blocks to induce different levels of background operation states in the UFS, and then verifying the UFS processing mechanism and performance under these different background operation states. The steps include:

[0053] Step 202: By marking different numbers of bad blocks, the UFS is made to enter the non-critical, performance-being-impacted, and critical states respectively;

[0054] Step 204: Verify the UFS processing mechanism and performance under non-critical, performance being impacted, and critical states respectively.

[0055] In one embodiment, reference Figure 3 The specific implementation process for improving the efficiency of the verification UFS backend operation processing mechanism is as follows:

[0056] 3.1 Enable UFS background operations.

[0057] 3.2 The BKOPS verification function is enabled.

[0058] 3.3 Clear UFS data to make BKOPS state a state where no background operation is required.

[0059] 3.4 Mark N blocks to make them obsolete, and UFS enters a non-critical state.

[0060] 3.5 Mark NA blocks to put these NA blocks in an abandoned state, and UFS enters the performance-being-impacted state.

[0061] 3.6 Mark NB blocks, making these NB blocks obsolete, and UFS enters the critical state.

[0062] In this embodiment, it is possible to quickly verify whether UFS can support four different states, and to verify the UFS processing mechanism and its impact on performance under the four state conditions.

[0063] It should be understood that, although Figure 1-3 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1-3 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0064] In one embodiment, such as Figure 4 As shown, an implementation device 400 is provided to improve the efficiency of the verification UFS background operation processing mechanism. The device includes:

[0065] Acquisition module 401, the acquisition module is used to acquire requests to improve the efficiency of the verification UFS backend operation processing mechanism;

[0066] Enable verification module 402, which is used to enable UFS background operation and verify whether the BKOPS function has been enabled;

[0067] The state reset module 403 is used to clear UFS data and reset the BKOPS state if the BKOPS function is enabled.

[0068] The marking module 404 is used to mark different numbers of bad blocks to enable UFS to enter different levels of background operation states, and to verify the UFS processing mechanism and performance under different levels of background operation states.

[0069] In one embodiment, such as Figure 5 As shown, an implementation device 400 is provided to improve the efficiency of the verification UFS background operation processing mechanism. This device further includes a command issuing module 405, which is used for:

[0070] The UFS under test is soldered onto the MTK development board, and a vendor command is issued through the MTK platform to mark different numbers of bad blocks.

[0071] In one embodiment, the marking module 404 is further configured to:

[0072] By marking different numbers of bad blocks, UFS can be made to enter non-critical, performance-impacted, and critical states respectively.

[0073] In one embodiment, such as Figure 4 As shown, an implementation device 400 is provided to improve the efficiency of the verification UFS background operation processing mechanism. This device further includes a performance verification module 406, which is used for:

[0074] The UFS processing mechanism and performance were verified under non-critical, performance being impacted, and critical states, respectively.

[0075] For specific limitations on the implementation device for improving the efficiency of the verification UFS background operation processing mechanism, please refer to the limitations on the implementation method for improving the efficiency of the verification UFS background operation processing mechanism mentioned above, which will not be repeated here.

[0076] In one embodiment, a computer device is provided, the internal structure of which can be shown as follows: Figure 7 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a method to improve the efficiency of the verification UFS background operation processing mechanism.

[0077] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0078] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in the various method embodiments described above.

[0079] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the various method embodiments described above.

[0080] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. 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 various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0081] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0082] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for improving the efficiency of the verification UFS background operation processing mechanism, the method comprising: Get a request to improve the efficiency of the UFS backend operation processing mechanism for verification. Enable UFS background operations and verify whether the BKOPS function has been enabled; If the BKOPS function is enabled, clear the UFS data and reset the BKOPS state so that the BKOPS state does not require background operation. By marking different numbers of bad blocks, UFS is put into different levels of background operation states, and the UFS processing mechanism and performance are verified under different levels of background operation states. 2.The method for improving efficiency of UFS background operation processing mechanism with verification according to claim 1, wherein, The process includes the following steps before the step of marking different numbers of bad blocks to put the UFS into different levels of background operation states: The UFS under test is soldered onto the MTK development board, and a vendor command is issued through the MTK platform to mark different numbers of bad blocks. 3.The method of claim 2, wherein, The steps of marking different numbers of bad blocks to put UFS into different levels of background operation states, and verifying the UFS processing mechanism and performance under different levels of background operation states, include: By marking different numbers of bad blocks, UFS can be made to enter non-critical, performance-impacted, and critical states respectively.

4. The method of claim 3, wherein the method further comprises: Following the step of marking different numbers of bad blocks to put the UFS into non-critical, performance-being-impacted, and critical states respectively, the following is also included: The UFS processing mechanism and performance were verified under non-critical, performance being impacted, and critical states, respectively.

5. An implementation device for improving the efficiency of a UFS background operation processing mechanism, characterized in that, The apparatus for improving the efficiency of the verification UFS backend operation processing mechanism includes: The acquisition module is used to acquire requests to improve the efficiency of the UFS backend operation processing mechanism for verification. The enable verification module is used to enable UFS background operations and verify whether the BKOPS function has been enabled. The state reset module is used to clear UFS data and reset the BKOPS state if the BKOPS function is enabled, so that the BKOPS state is a state that does not require background operation. The marking module is used to mark different numbers of bad blocks to enable UFS to enter different levels of background operation states, and to verify the UFS processing mechanism and performance under different levels of background operation states.

6. The implementation of mechanism to improve efficiency of UFS background operation for verification according to claim 5, characterized in that, The device further includes a command issuing module, which is used for: The UFS under test is soldered onto the MTK development board, and a vendor command is issued through the MTK platform to mark different numbers of bad blocks.

7. The implementation of mechanism to improve efficiency of UFS background operation for verification according to claim 6, characterized in that, The marking module is also used for: By marking different numbers of bad blocks, UFS can be made to enter non-critical, performance-impacted, and critical states respectively.

8. The apparatus for improving the efficiency of the verification UFS backend operation processing mechanism according to claim 7, characterized in that, The device further includes a performance verification module, which is used for: The UFS processing mechanism and performance were verified under non-critical, performance being impacted, and critical states, respectively.

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, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.