UFS test method, electronic device, and computer-readable storage medium
By transmitting platform parameters and module function information on the UFS host side, creating partitions and threads, and controlling the threads to execute function modules in parallel, the problem of long testing cycles for UFS storage systems is solved, and efficient system testing compatibility is achieved.
Patent Information
- Application Number
- CN202611193953.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-07
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, the system testing cycle for UFS storage is too long, making it impossible to quickly detect relatively stable product defects.
The platform parameters are transmitted from the UFS host to the UFS storage, a partition is created, and threads are created according to the module function information. The threads are controlled to execute the functional modules in parallel for testing.
It improves the efficiency of system testing on UFS storage devices, is compatible with system testing on different platforms, and simplifies the testing process.
Smart Images

Figure CN123182739A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of memory testing technology, and in particular to a UFS testing method, electronic device, and computer-readable storage medium. Background Technology
[0002] Universal Flash Storage (UFS) is a high-performance, low-power, full-duplex serial storage interface standard device for mobile and embedded systems. It combines flash arrays, controllers, and high-speed serial links, becoming the default "hard drive" for high-end devices. UFS consists of a UFS host and a UFS device. In current technologies, system testing is a crucial step for UFS devices; however, system testing cannot quickly detect relatively stable product defects in a short period and requires a considerable amount of time, resulting in an excessively long system testing cycle for UFS devices. Summary of the Invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art.
[0004] To address this, the present invention proposes a UFS testing method that can shorten the system testing time for UFS storage.
[0005] The present invention also proposes an electronic device that applies the above-described UFS testing method.
[0006] The present invention also proposes a computer-readable storage medium that applies the above-described UFS testing method.
[0007] According to a first aspect of the present invention, a UFS testing method is applied to a UFS testing system, the UFS testing system including a UFS host and a UFS storage, the UFS host and the UFS storage being communicatively connected, the method comprising: The platform parameters obtained from the analysis are transmitted from the UFS host to the UFS storage. Several partitions are created using the UFS storage terminal based on the platform parameters; The UFS host creates several threads based on the received module function information, and assigns the corresponding function modules to the threads one by one. The UFS host controls each thread to execute the corresponding functional module in parallel according to the received test command, so as to perform test processing on the corresponding partition in the UFS storage.
[0008] According to some embodiments of the present invention, the step of controlling each thread to execute the corresponding functional module in parallel according to the received test command on the UFS host to perform test processing on the corresponding partition in the UFS storage includes: The test command is analyzed and processed by the UFS host to obtain the command depth; Based on the command depth and the number of threads, determine the number of tasks managed by each thread; Based on the number of tasks, the corresponding threads are controlled to execute the corresponding functional modules in parallel to perform test processing on the corresponding partitions in the UFS storage terminal.
[0009] According to some embodiments of the present invention, the thread includes a task execution thread and a task monitoring thread, and the step of controlling the corresponding threads to execute the corresponding functional modules in parallel according to the number of tasks to perform test processing on the corresponding partitions in the UFS storage terminal includes: Based on the number of tasks, the corresponding task execution threads are controlled to execute the corresponding functional modules in parallel to perform test processing on the corresponding partitions in the UFS storage terminal; The task monitoring thread monitors the task execution status of each task execution thread to determine whether the corresponding task execution thread is running normally.
[0010] According to some embodiments of the present invention, the step of monitoring the task execution status of each task execution thread through the task monitoring thread to determine whether the corresponding task execution thread is running normally includes: The execution time of each task execution thread is monitored and processed through the task monitoring thread; If the execution time of the task execution thread exceeds a preset time threshold, the corresponding task execution thread will be identified as a command processing exception. If the execution time of the task execution thread is less than or equal to a preset time threshold, the corresponding task execution thread is determined to be processing the command normally.
[0011] According to some embodiments of the present invention, the testing process for the corresponding partition in the UFS storage terminal includes: According to the functional type of the functional module, the corresponding partition in the UFS storage terminal is tested and processed.
[0012] According to some embodiments of the present invention, the step of testing the corresponding partition in the UFS storage terminal according to the functional type of the functional module includes: When the function type of the functional module is to send a write command to the partition, the corresponding partition in the UFS storage terminal is controlled to perform a write command test operation. When the function type of the functional module is to send a read command to the partition, the corresponding partition in the UFS storage terminal is controlled to perform a read command test operation. When the function type of the functional module is to send an erase command to the partition, the corresponding partition in the UFS storage terminal is controlled to perform an erase command test operation.
[0013] According to some embodiments of the present invention, the step of creating several partitions through the UFS storage terminal according to the platform parameters includes: The platform parameters are parsed and processed by the UFS storage terminal to obtain the partition configuration parameters; Create several partitions according to the partition configuration parameters.
[0014] According to some embodiments of the present invention, the step of creating several threads by the UFS host based on the received module function information includes: The number of modules is determined by the UFS host based on the received module function information; Create a corresponding number of threads based on the number of modules.
[0015] An electronic device according to a second aspect of the present invention 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 UFS testing method as described above.
[0016] According to a third aspect of the present invention, a computer-readable storage medium stores computer-executable instructions that, when executed by a control processor, implement the UFS testing method as described above.
[0017] The UFS testing method according to embodiments of the present invention has at least the following beneficial effects: During UFS testing, the analyzed platform parameters are first transmitted from the UFS host to the UFS storage terminal; then, the UFS storage terminal creates several partitions based on the platform parameters; combined with the UFS host creating several threads based on the received module function information, and assigning the corresponding functional modules to the created threads one-to-one; then, the UFS host controls each thread to execute the corresponding functional modules in parallel according to the received test commands, thereby testing the corresponding partitions in the UFS storage terminal. Through the above technical solution, partitions can be created based on different platform parameters, threads can be created based on module function information, and finally, each thread can be controlled to execute the corresponding functional modules in parallel to test the partitions in the UFS storage terminal. This method effectively supports system testing of UFS storage terminals on different platforms and improves the system testing efficiency of UFS storage terminals. Attached Figure Description
[0018] The accompanying drawings are provided to further understand the technical solutions of this disclosure and constitute a part of the specification. They are used together with the embodiments of this disclosure to explain the technical solutions of this disclosure and do not constitute a limitation on the technical solutions of this disclosure.
[0019] Figure 1 This is a flowchart of a UFS testing method provided in one embodiment of the present invention; Figure 2 This is a system architecture diagram of a method for executing UFS testing provided in one embodiment of the present invention; Figure 3 yes Figure 1 Step S400 method sub-flowchart; Figure 4 yes Figure 3 Step S430 method sub-flowchart; Figure 5 yes Figure 4 Step S432 method sub-flowchart; Figure 6 yes Figure 1 Another method flowchart for step S400; Figure 7 yes Figure 6 Step S440 method sub-flowchart; Figure 8 yes Figure 1 Step S200 method sub-flowchart; Figure 9 yes Figure 1 Step S300 method sub-flowchart; Figure 10This is a flowchart of a UFS testing method provided in one embodiment of the present invention; Figure 11 This is a schematic diagram of power consumption monitoring of module 9 provided in one embodiment of the present invention; Figure 12 This is a schematic diagram of the structure of an electronic device provided in one embodiment of the present invention. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0021] In the description of this invention, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0022] In the description of this invention, unless otherwise explicitly defined, terms such as "setting," "installing," and "connecting" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this invention in conjunction with the specific content of the technical solution.
[0023] This invention provides a UFS testing method, electronic device, and computer-readable storage medium. The method includes: during UFS testing, firstly, platform parameters obtained from analysis are transmitted from the UFS host to the UFS storage terminal; then, the UFS storage terminal creates several partitions based on the platform parameters; secondly, the UFS host creates several threads based on received module function information, and assigns the corresponding functional modules to the created threads; finally, the UFS host controls the threads to execute the corresponding functional modules in parallel according to received test commands to test the corresponding partitions in the UFS storage terminal. This technical solution enables the creation of partitions based on different platform parameters, the creation of threads based on module function information, and the control of the threads to execute the corresponding functional modules in parallel to test the partitions in the UFS storage terminal. This provides good compatibility for system testing of UFS storage terminals on different platforms and improves the system testing efficiency of UFS storage terminals.
[0024] The embodiments of the present invention will be further described below with reference to the accompanying drawings.
[0025] like Figure 1 As shown, Figure 1 This is a flowchart of the UFS testing method. The method includes, but is not limited to, steps S100, S200, S300, and S400: Step S100: Transmit the platform parameters obtained from the analysis to the UFS storage terminal via the UFS host terminal; Step S200: Create several partitions using the UFS storage device according to the platform parameters; Step S300: The UFS host creates several threads based on the received module function information and assigns the corresponding function modules to the threads one by one. In step S400, the UFS host controls each thread to execute the corresponding functional modules in parallel according to the received test command, so as to perform test processing on the corresponding partitions in the UFS storage.
[0026] It should be noted that during UFS testing, the platform parameters obtained from the analysis are first transmitted from the UFS host to the UFS storage. Then, the UFS storage creates several partitions based on the platform parameters. Simultaneously, the UFS host creates several threads based on the received module function information, assigning each thread a corresponding functional module. The UFS host then controls the threads to execute their respective functional modules in parallel according to received test commands, thus testing the corresponding partitions in the UFS storage. This technical solution allows for the creation of partitions based on different platform parameters, the creation of threads based on module function information, and the control of these threads to execute their respective functional modules in parallel for testing the partitions in the UFS storage. This approach effectively supports system testing of UFS storage on different platforms and improves the efficiency of UFS storage system testing.
[0027] like Figure 2As shown, the UFS testing method of this application embodiment is applied to a UFS testing system, which includes a UFS host and a UFS storage terminal, and the UFS host and the UFS storage terminal are communicatively connected. The UFS host, as the initiator of communication, is responsible for sending commands and requests; the UFS storage terminal passively receives and executes commands from the UFS host, and the UFS storage terminal can be a UFS storage chip. The UFS storage terminal includes a device controller, firmware, a flash conversion layer, storage medium, and logical units. The device controller is responsible for communicating with the UFS host, parsing commands, and managing data streams; the firmware is microcode running on the device controller, implementing functions such as the UFS protocol and the flash conversion layer; the flash conversion layer is the core module of the firmware, responsible for converting the host's logical address to the NAND flash physical address; the storage medium is the flash memory chip that actually stores the data; the logical units are multiple independent logical units divided within the UFS device, i.e., partitions in this application embodiment.
[0028] It should be noted that the UFS testing process in this application primarily focuses on testing the UFS storage side. Since system testing of the UFS storage side requires different platforms, and different platforms correspond to different partitions, this application first transmits the analyzed platform parameters to the UFS storage side via the UFS host, so that the UFS storage side can create the corresponding number of partitions based on the received platform parameters. This technical solution enables compatibility handling for testing scenarios on different platforms; only the platform parameters need to be modified, significantly simplifying the UFS testing process.
[0029] It is worth noting that during the thread creation process, the UFS host will also build a corresponding number of threads based on the number of modules in the module function information, and then allocate the corresponding function modules to the created threads so that each thread can execute one function module, providing basic support for the synchronous execution of subsequent commands.
[0030] It is worth noting that during the UFS testing process, the UFS host can control each thread to execute the corresponding functional modules in parallel according to the received test commands. Furthermore, each thread will also perform corresponding test operations on the corresponding partitions in the UFS storage during the execution of the functional modules, so as to achieve parallel testing of different partitions and greatly improve the efficiency of UFS testing.
[0031] Additionally, in one embodiment, such as Figure 3As shown, the UFS host controls each thread to execute the corresponding functional modules in parallel according to the received test commands, in order to perform test processing on the corresponding partitions in the UFS storage. This may include, but is not limited to, steps S410, S420, and S430: Step S410: Analyze and process the test command on the UFS host to obtain the command depth; Step S420: Determine the number of tasks managed by each thread based on the command depth and the number of threads; Step S430: Control the corresponding threads to execute the corresponding functional modules in parallel according to the number of tasks, so as to test the corresponding partitions in the UFS storage.
[0032] It should be noted that in the process of controlling various threads to execute corresponding functional modules in parallel based on received test commands via the UFS host to test the corresponding partitions in the UFS storage, the UFS host first analyzes and processes the test commands to obtain the corresponding command depth. Then, based on the command depth and the number of threads, the number of tasks managed by each thread is determined. Finally, based on the number of tasks, the corresponding threads are controlled to execute the corresponding functional modules in parallel to test the corresponding partitions in the UFS storage. This technical solution makes UFS testing more flexible.
[0033] For example, with a command depth of 32 and only 8 threads created, each thread needs to manage 4 tasks; with a command depth of 32 and only 16 threads created, each thread needs to manage 2 tasks; and with a command depth of 32 and 32 threads created, each thread only needs to manage 1 task.
[0034] Additionally, in one embodiment, such as Figure 4 As shown, the threads include task execution threads and task monitoring threads. Based on the number of tasks, the corresponding threads are controlled to execute the corresponding functional modules in parallel to perform test processing on the corresponding partitions in the UFS storage. This may include, but is not limited to, steps S431 and S432: Step S431: Control the corresponding task execution threads to execute the corresponding functional modules in parallel according to the number of tasks, so as to test the corresponding partitions in the UFS storage terminal. Step S432: The task monitoring thread monitors the task execution status of each task execution thread to determine whether the corresponding task execution thread is running normally.
[0035] It should be noted that in the process of controlling the corresponding threads to execute the corresponding functional modules in parallel according to the number of tasks to test the corresponding partitions in the UFS storage, firstly, the corresponding task execution threads are controlled to execute the corresponding functional modules in parallel according to the number of tasks to test the corresponding partitions in the UFS storage; and secondly, a task monitoring thread monitors the task execution status of each task execution thread to determine whether the corresponding task execution thread is running normally. Through the above technical solution, by using task execution threads to execute the assigned tasks and using a task monitoring thread to monitor the task execution status of each task execution thread, the running status of the corresponding task execution threads can be monitored conveniently and quickly, simplifying the UFS testing process.
[0036] It is worth noting that the threads in this embodiment may include task execution threads and task monitoring threads. The task execution thread is mainly used to control the partitions in the UFS storage to perform corresponding test operations; the task monitoring thread is mainly used to monitor the execution status of each task execution thread. For example, a task execution thread is used to send write commands to each partition in the UFS storage, while the task monitoring thread can monitor the effectiveness of the write commands and the consumption during idle time.
[0037] Additionally, in one embodiment, such as Figure 5 As shown, the task monitoring thread monitors the task execution status of each task execution thread to determine whether the corresponding task execution thread is running normally. This may include, but is not limited to, steps S433, S434, and S435: Step S433: The execution time of each task execution thread is monitored and processed through the task monitoring thread; Step S434: If the execution time of the task execution thread exceeds a preset time threshold, the corresponding task execution thread is identified as a command processing exception. Step S435: If the execution time of the task execution thread is less than or equal to a preset time threshold, the corresponding task execution thread is determined to be processing the command normally.
[0038] It should be noted that, in the process of monitoring the execution status of each task execution thread through the task monitoring thread to determine whether the corresponding task execution thread is running normally, the execution time of each task execution thread can be monitored. If the execution time of a task execution thread exceeds a preset time threshold, the corresponding task execution thread can be identified as having a command processing error; if the execution time of a task execution thread is less than or equal to the preset time threshold, the corresponding task execution thread can be identified as having normal command processing. This technical solution makes determining the execution status of task execution threads simpler and more reliable.
[0039] It is worth noting that the preset time threshold for the execution time of a task execution thread can be different; for example, if the task execution thread needs to control the partition of the UFS storage to perform write command test operations, the time threshold for the task execution thread can be 10 seconds; if the task execution thread needs to control the partition of the UFS storage to perform read command test operations, the time threshold for the task execution thread can be 2 seconds.
[0040] Additionally, in one embodiment, such as Figure 6 As shown, the testing process for the corresponding partition in the UFS storage device may include, but is not limited to, step S440: Step S440: Based on the functional type of the functional module, perform test processing on the corresponding partition in the UFS storage terminal.
[0041] It should be noted that during the testing and processing of the corresponding partitions in the UFS storage, you can first determine the function type of the functional module, and then perform the corresponding test operations on the partitions in the UFS storage according to the function type of the functional module.
[0042] Additionally, in one embodiment, such as Figure 7 As shown, depending on the functional type of the functional module, the corresponding partition in the UFS storage terminal is tested and processed, which may include, but is not limited to, steps S441, S442, and S443: Step S441: When the function type of the functional module is to send a write command to the partition, control the corresponding partition in the UFS storage to perform a write command test operation. Step S442: When the function type of the functional module is to send a read command to the partition, control the corresponding partition in the UFS storage to perform a read command test operation. Step S443: When the function type of the functional module is to send an erase command to the partition, control the corresponding partition in the UFS storage to perform an erase command test operation.
[0043] It should be noted that during the testing and processing of the corresponding partitions in the UFS storage based on the function type of the functional module, when the function type of the functional module is to send write commands to the partition, the corresponding partition in the UFS storage can be controlled to perform write command test operations; when the function type of the functional module is to send read commands to the partition, the corresponding partition in the UFS storage can be controlled to perform read command test operations; and when the function type of the functional module is to send erase commands to the partition, the corresponding partition in the UFS storage can be controlled to perform erase command test operations.
[0044] Additionally, in one embodiment, such as Figure 8 As shown, several partitions are created through the UFS storage terminal according to the platform parameters, which may include, but is not limited to, steps S210 and S220: Step S210: Parse and process the platform parameters through the UFS storage terminal to obtain the partition configuration parameters; Step S220: Create several partitions according to the partition configuration parameters.
[0045] It should be noted that in the process of creating several partitions using UFS storage based on platform parameters, the platform parameters are first parsed and processed by the UFS storage to obtain partition configuration parameters. Then, several partitions can be created based on these configuration parameters. This technical solution makes partition creation more reasonable and meets the needs of various platforms.
[0046] It is worth noting that different platforms have different partitions. Therefore, based on the partition configuration parameters obtained from the parsing, the number of partitions specified for the corresponding platform can be created to facilitate subsequent testing operations on each partition.
[0047] Additionally, in one embodiment, such as Figure 9 As shown, the UFS host creates several threads based on the received module function information, which may include, but is not limited to, steps S310 and S320: Step S310: Determine the number of modules based on the received module function information via the UFS host. Step S320: Create a corresponding number of threads based on the number of modules.
[0048] It should be noted that in the process of creating several threads through the UFS host based on the received module function information, the number of modules is first determined by the UFS host based on the received module function information; then, a corresponding number of threads can be created based on the number of modules, and the corresponding functional modules can be assigned to the threads so that each thread processes one functional module, providing a basis for the synchronous processing of commands.
[0049] For example, the UFS host determines the number of modules to be 8 based on the received module function information, and then creates 8 threads. Subsequently, the 8 different functional modules can be assigned to the 8 created threads one by one.
[0050] To more clearly illustrate the UFS testing method of this application embodiment, a specific implementation method is provided below. For example... Figure 10 As shown, n partitions are created based on the passed parameters; then n threads are created based on the module functions, and the module functions are assigned to each thread; then each created thread executes the corresponding module. The figure shows 10 modules as an example, and each module performs different functional operations; and the execution status of all threads is monitored and processed. The UFS test operation will only end when all threads have completed execution.
[0051] Module 1 is used to send write commands to different partitions; Module 2 is used to send read commands to different partitions; Module 3 is used to send erase commands to different partitions; Module 4 is used to send Small Computer System Interface (SCSI) command sets to different modules; Module 5 is used to send query command sets; Module 6 is used to send Task Management (TM) command sets to different modules; Module 7 is used to send read and write commands to the Replay Protected Memory Block (RPMB) module; Module 8 is used to send UFS protocol modifiable field exception value commands to each partition; Module 9 is used to monitor the effectiveness of write, read, and erase commands and power consumption during idle periods; Module 10 is used to receive the command response from each module.
[0052] The number of threads can be combined with different command depths. If there are only eight modules, creating eight threads with a command depth of 8 means each thread manages only one task, and command processing is synchronous (concurrency is asynchronous). If there are only eight threads, a command depth of 32 is needed, allowing each thread to handle four tasks. Similarly, if there are 32 modules, creating 32 threads with a command depth of 32 means each thread manages one task, and command processing is synchronous (concurrency is asynchronous), and so on. For n modules, creating n threads (n cannot exceed 32) is possible. If n is less than 32, the number of tasks each thread handles is allocated based on the actual command depth. For example... Figure 11As shown, module 9 monitors the power consumption of each partition during read, write, erase, and idle periods. The specific number of data points monitored depends on the actual input parameters. If 10,000 data points are monitored, then each partition will have 10,000 data points for monitoring read, write, erase, and idle power consumption. Finally, the 10,000 data points are plotted into a curve to observe whether the read, write, erase, and idle power consumption of each partition is consistent. Then, it is compared with competing products to determine the performance of module 9.
[0053] In some embodiments of the present invention, such as Figure 12 As shown, an embodiment of the present invention also provides an electronic device 700, including: a memory 720, a processor 710, and a computer program stored on the memory 720 and executable on the processor 710. When the processor 710 executes the computer program, it implements the UFS testing method in the above embodiment.
[0054] In some embodiments of the present invention, one embodiment of the present invention also provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor or controller, for example, by a processor in the above-described device embodiments, such that the processor performs the UFS testing method in the above-described embodiments.
[0055] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0056] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of the present invention.
Claims
1. A UFS testing method, characterized in that, Applied to a UFS testing system, the UFS testing system including a UFS host and a UFS storage terminal, the UFS host and the UFS storage terminal being communicatively connected, the method includes: The platform parameters obtained from the analysis are transmitted from the UFS host to the UFS storage. Several partitions are created using the UFS storage terminal based on the platform parameters; The UFS host creates several threads based on the received module function information, and assigns the corresponding function modules to the threads one by one. The UFS host controls each thread to execute the corresponding functional module in parallel according to the received test command, so as to perform test processing on the corresponding partition in the UFS storage.
2. The UFS testing method according to claim 1, characterized in that, The process of controlling each thread to execute the corresponding functional module in parallel according to the received test command on the UFS host to perform test processing on the corresponding partition in the UFS storage includes: The test command is analyzed and processed by the UFS host to obtain the command depth; Based on the command depth and the number of threads, determine the number of tasks managed by each thread; Based on the number of tasks, the corresponding threads are controlled to execute the corresponding functional modules in parallel to perform test processing on the corresponding partitions in the UFS storage terminal.
3. The UFS testing method according to claim 2, characterized in that, The threads include task execution threads and task monitoring threads. The step of controlling the corresponding threads to execute the corresponding functional modules in parallel according to the number of tasks, in order to perform test processing on the corresponding partitions in the UFS storage terminal, includes: Based on the number of tasks, the corresponding task execution threads are controlled to execute the corresponding functional modules in parallel to perform test processing on the corresponding partitions in the UFS storage terminal; The task monitoring thread monitors the task execution status of each task execution thread to determine whether the corresponding task execution thread is running normally.
4. The UFS testing method according to claim 3, characterized in that, The step of monitoring the task execution status of each task execution thread through the task monitoring thread to determine whether the corresponding task execution thread is running normally includes: The execution time of each task execution thread is monitored and processed through the task monitoring thread; If the execution time of the task execution thread exceeds a preset time threshold, the corresponding task execution thread will be identified as a command processing exception. If the execution time of the task execution thread is less than or equal to a preset time threshold, the corresponding task execution thread is determined to be processing the command normally.
5. The UFS testing method according to claim 1, characterized in that, The testing process for the corresponding partition in the UFS storage terminal includes: According to the function type of the functional module, the corresponding partition in the UFS storage terminal is tested and processed.
6. The UFS testing method according to claim 5, characterized in that, The step of testing the corresponding partition in the UFS storage terminal according to the function type of the functional module includes: When the function type of the functional module is to send a write command to the partition, the corresponding partition in the UFS storage terminal is controlled to perform a write command test operation. When the function type of the functional module is to send a read command to the partition, the corresponding partition in the UFS storage terminal is controlled to perform a read command test operation. When the function type of the functional module is to send an erase command to the partition, the corresponding partition in the UFS storage terminal is controlled to perform an erase command test operation.
7. The UFS testing method according to claim 1, characterized in that, The process of creating several partitions through the UFS storage terminal according to the platform parameters includes: The platform parameters are parsed and processed by the UFS storage terminal to obtain the partition configuration parameters; Create several partitions according to the partition configuration parameters.
8. The UFS testing method according to claim 1, characterized in that, The process of creating several threads on the UFS host based on the received module function information includes: The number of modules is determined by the UFS host based on the received module function information; Create a corresponding number of threads based on the number of modules.
9. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements the UFS testing method as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing computer-executable instructions, characterized in that, When the computer-executable instructions are executed by the control processor, they implement the UFS testing method as described in any one of claims 1 to 8.
