SSD link abnormity control method, system and device and storage medium
By monitoring the response status of the SSD link, re-establishing the communication link and optimizing the channel, the problem of unstable signal transmission of SSD in high and low temperature environments was solved, thereby improving the reliability of data transmission and testing efficiency.
Patent Information
- Application Number
- CN202411064466.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-26
AI Technical Summary
In existing technologies, SSD signal transmission is unstable in high and low temperature environments, causing the device to fail to respond in time in the testing system, which affects testing efficiency and yield.
By monitoring SSDs for unresponsiveness within a preset time period, link problems are identified, communication links are re-established, and response checks are performed on each channel. Problematic channels are removed, the SSD link structure is optimized, and data transmission reliability is ensured.
Reduce testing time, improve testing efficiency, ensure timely execution of commands and reliable data transmission, and enhance system operating efficiency and stability.
Smart Images

Figure CN119025352A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of SSD (Solid State Drive) devices, and in particular to an SSD link abnormality control method, system, device and storage medium. Background Art
[0002] With the development of related technical fields, the problems caused by high and low temperature environments on device signal transmission have become particularly prominent. In the prior art, some devices are stored in high and low temperature boxes, and the temperature changes in the high and low temperature boxes may cause unstable signal transmission of the devices, so that the devices cannot respond in time after receiving commands in the test system; once the above problems occur on a certain platform, the entire test process of the high and low temperature box will be blocked, and subsequent tests will be unable to be carried out, which will significantly affect the test efficiency and product yield.
[0003] Therefore, how to provide an SSD link abnormality control method to prevent the device from failing to respond in time after receiving a command in the test system is a problem that needs to be solved urgently. Summary of the invention
[0004] The present application provides an SSD link abnormality control method, system, device and storage medium, which can solve the technical problem in the prior art that the device cannot respond in time after receiving a command in the test system due to the instability of signal transmission.
[0005] In a first aspect, an embodiment of the present application provides a method for controlling an abnormal SSD link, the method comprising:
[0006] When the solid state drive SSD is not detected within a preset time, it is determined that there is a problem with the SSD link, and the SSD is controlled to re-establish the link based on whether the bus number corresponding to the SSD exists;
[0007] Perform response detection on each channel in the SSD link to determine the target channel with problems;
[0008] Removing the target channel from the SSD link to obtain a new SSD link;
[0009] The target device is controlled to perform data transmission based on the new SSD link.
[0010] In combination with the first aspect, in one implementation, controlling the SSD to re-establish a link based on whether the bus number corresponding to the SSD exists includes:
[0011] If the bus number corresponding to the SSD exists, remove the bus number and control the SSD to re-establish the link;
[0012] If the bus number corresponding to the SSD does not exist, the SSD is controlled to re-establish the link.
[0013] In combination with the first aspect, in one implementation, before the step of performing response detection on each channel in the SSD link, the method further includes:
[0014] Determine whether the bus number exists based on the bus information search command;
[0015] If yes, then executing the step of performing response detection on each channel in the SSD link;
[0016] If not, it is determined that there is a problem with the SSD link, and based on the disk identification command, the target channel with the problem is found from the SSD link and the step of removing the target channel from the SSD link is performed.
[0017] In combination with the first aspect, in one implementation, performing response detection on each channel in the SSD link to determine a target channel with a problem includes:
[0018] Determine whether each channel in the SSD link has a response based on the identify disk command;
[0019] If all channels respond, controlling the target device to perform data transmission based on the SSD link;
[0020] If there is at least one channel without response, the channel without response is regarded as the target channel with problem.
[0021] In a second aspect, an embodiment of the present application provides an SSD link abnormality control system, the SSD link abnormality control system comprising:
[0022] A first processing module, which is used to determine that there is a problem with the SSD link when the solid state drive SSD is not detected within a preset time period, and control the SSD to re-establish the link based on whether the bus number corresponding to the SSD exists;
[0023] A second processing module is used to perform response detection on each channel in the SSD link to determine a target channel with a problem;
[0024] A third processing module, configured to remove the target channel from the SSD link to obtain a new SSD link;
[0025] The fourth processing module is used to control the target device to perform data transmission based on the new SSD link.
[0026] In conjunction with the second aspect, in one implementation, the first processing module is specifically configured to:
[0027] If the bus number corresponding to the SSD exists, remove the bus number and control the SSD to re-establish the link;
[0028] If the bus number corresponding to the SSD does not exist, the SSD is controlled to re-establish the link.
[0029] In conjunction with the second aspect, in one implementation, the second processing module is specifically configured to:
[0030] Determine whether the bus number exists based on the bus information search command;
[0031] If yes, then executing the step of performing response detection on each channel in the SSD link;
[0032] If not, it is determined that there is a problem with the SSD link, and based on the disk identification command, the target channel with the problem is found from the SSD link and the step of removing the target channel from the SSD link is performed.
[0033] In conjunction with the second aspect, in one implementation, the second processing module is further configured to:
[0034] Determine whether each channel in the SSD link has a response based on the identify disk command;
[0035] If all channels respond, controlling the target device to perform data transmission based on the SSD link;
[0036] If there is at least one channel without response, the channel without response is regarded as the target channel with problem.
[0037] In a third aspect, an embodiment of the present application provides an SSD link abnormality control device, wherein the SSD link abnormality control device comprises a processor, a memory, and an SSD link abnormality control program stored in the memory and executable by the processor, wherein when the SSD link abnormality control program is executed by the processor, the steps of the SSD link abnormality control method as described in any of the foregoing items are implemented.
[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which an SSD link abnormality control program is stored, wherein when the SSD link abnormality control program is executed by a processor, the steps of the SSD link abnormality control method as described in any of the foregoing items are implemented.
[0039] The beneficial effects brought by the technical solution provided in the embodiments of the present application include:
[0040] If the SSD does not respond within a preset period of time, it is determined that there is a link problem, and the communication link is re-established to restore a stable data flow; each SSD channel is then tested for response, the problematic channel is determined and removed, and the structure of the SSD link is optimized; after removal, a new SSD link is obtained to ensure that the test will not be stuck all the time, reducing the test time and improving the test efficiency; the target device is then controlled to transmit data based on the new SSD link, ensuring the timely execution of commands and the reliability of data transmission, and improving the operating efficiency and stability of the overall system. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is a flow chart of an embodiment of the SSD link abnormality control method of the present application;
[0042] Figure 2 For this application Figure 1 A detailed flow chart of step S10;
[0043] Figure 3 For this application Figure 1 Detailed flow chart of step S20;
[0044] Figure 4 This is a schematic diagram of the architecture of an embodiment of the SSD link abnormality control system of the present application;
[0045] Figure 5 This is a schematic diagram of the hardware structure of the SSD link abnormality control device involved in the embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0047] First, some technical terms in the present application are explained to facilitate those skilled in the art to understand the present application.
[0048] NAND: A non-volatile storage medium, also known as NAND flash memory chip (NAND Flash). SSD: Solid State Drive, a data storage device composed of several NAND Flash arrays.
[0049] AHCI: Advanced Host Controller Interface, a communication protocol.
[0050] NVMe: NVM (Non-Volatile Memory) Express, an SSD interface protocol based on PCIe (PCI Express) data transmission.
[0051] SATA: Serial ATA, an interface standard. The protocol layer uses AHCI for communication and data is transmitted through the SATA bus.
[0052] PCIe: An interface standard that uses NVME for communication on the protocol and data is transmitted through the PCIe main line.
[0053] OS: Operation System, operating system, in the embodiments of the present application, may refer to Linux or Windows operating system.
[0054] DUT: Device Under Test, the device under test, which refers to SSD in the embodiment of the present application.
[0055] Chamber: A high and low temperature chamber that can be controlled by software to change the temperature.
[0056] Lspci: The command is used to display all PCI bus information of the current host and all connected PCI device information.
[0057] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0058] In a first aspect, an embodiment of the present application provides a method for controlling anomalies in an SSD link.
[0059] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of an embodiment of the SSD link abnormality control method of the present application. Figure 1 As shown, the SSD link abnormality control method includes:
[0060] Step S10: When the solid state drive SSD is not detected within a preset time period, it is determined that there is a problem with the SSD link, and the SSD is controlled to re-establish a link based on whether the bus number corresponding to the SSD exists.
[0061] Exemplarily, in the embodiment of the present application, the preset time length can be determined according to actual needs and is not limited here. For example, the preset time length is 2 minutes. Before the step of not detecting the solid state drive SSD within the preset time length, the following steps are also included:
[0062] Step M1: Insert the SSD device into the corresponding fixture of the high and low temperature chamber at room temperature.
[0063] Step M2: Turn on the system and confirm that the system recognizes all SSD devices.
[0064] Step M3: Run the test software to find the SSD device in the software process.
[0065] Step M4: After all SSD devices are found, the high and low temperature ovens begin to change temperature, and after reaching the specified temperature, the test begins.
[0066] Step M5: At the beginning of the test, each channel needs to send the identify standard admin command to find the disk, and start the detection thread at the same time to detect the execution of the admin command. The identify standard command is used to confirm the existence of the SSD device and obtain the basic information of the SSD device for subsequent configuration and communication; the admin command is used to perform device management operations on NVMe.
[0067] Specifically, the BUS number can be regarded as a logical identifier for the internal device management of the system, which is used to determine the location and connection status of the SSD in the system; the system continuously monitors the SSD status within a preset period of time. If the existence or activity of the SSD is not detected during this period (that is, the admin command has not been executed within 2 minutes), the system will determine that there is a problem with the SSD link without an execution result, that is, there is a problem with the SSD link, so that the system can respond and process quickly to avoid the problem that the SSD device is stuck and does not return an execution result when responding to the admin command; once the system determines that there is a problem with the SSD link, it controls the SSD to re-establish the link in different ways by detecting whether the bus number corresponding to the SSD exists. Through timely detection and automated processing, the impact of hardware failures on test efficiency and yield can be minimized, and the system availability and user experience can be improved.
[0068] Step S20: Perform response detection on each channel in the SSD link to determine the target channel with problems.
[0069] Exemplarily, in an embodiment of the present application, the SSD can be connected to the host system through multiple channels (such as PCIe channels or SATA channels), each channel is responsible for transmitting data and control signals, and the normal operation between channels is the key to ensuring the efficient operation of the SSD. The system can detect the channels by sending test commands to each channel (such as admin commands or nvme list commands, where the nvme list command is used to list all connected NVMe devices in the system and display detailed information of each device). Under normal circumstances, each channel will respond quickly to the sent test command. The system can record the response time and response status (such as success, timeout or failure) of each channel as the result of the response detection, and determine the target channel with problems based on the results. Effective channel response detection can help the system optimize the speed and stability of data transmission, ensure that the SSD operates in the best state, thereby improving the overall system performance and user experience.
[0070] Step S30: removing the target channel from the SSD link to obtain a new SSD link.
[0071] Exemplarily, in the embodiment of the present application, removing the problematic target channel represents the removal of a specific transmission path from the overall SSD link. After removing the problematic target channel, the remaining channels will be reorganized into a new SSD link without the problem. It should be noted that the new SSD link can optimize the data transmission path and improve the overall performance and efficiency. By removing the faulty channel, the system can avoid the problem that the device has not responded after receiving a command in the test system, thereby improving the system response speed and stability.
[0072] Step S40: Control the target device to perform data transmission based on the new SSD link.
[0073] Exemplarily, in an embodiment of the present application, the target device is controlled to perform data transmission based on a new SSD link without problems, so as to improve the reliability and manageability of data storage and access while maintaining efficient performance; the new SSD link ensures the continuity and reliability of data transmission, avoids the problems of longer testing time and waste of testing resources due to hardware failure, and improves production capacity and yield.
[0074] This application monitors the SSD and if it does not respond within a preset time, it determines that there is a link problem, and restores a stable data flow by re-establishing the communication link; then, a response detection is performed on each SSD channel to determine the problematic channel and remove it, thereby optimizing the structure of the SSD link; after the removal, a new SSD link is obtained to ensure that the test will not be stuck all the time, thereby reducing the test time and improving the test efficiency; then, the target device is controlled to perform data transmission based on the new SSD link, thereby ensuring the timely execution of commands and the reliability of data transmission, thereby improving the operating efficiency and stability of the overall system.
[0075] Further, in one embodiment, referring to Figure 2 As shown, the controlling the SSD to re-establish a link based on whether the bus number corresponding to the SSD exists includes:
[0076] Step S101: If the bus number corresponding to the SSD exists, remove the bus number and control the SSD to re-establish a link;
[0077] Step S102: If the bus number corresponding to the SSD does not exist, control the SSD to re-establish the link.
[0078] Exemplarily, in an embodiment of the present application, after determining that there is a problem with the SSD link, it is determined whether the bus number corresponding to the SSD exists; if the BUS number corresponding to the SSD exists, the system will perform a removal operation, and power off and on the SSD of the channel, and then control the SSD to re-establish the link. By removing the BUS number of the device that cannot return the execution result and re-establishing the connection, the system can continue to execute the test task and avoid test failure or delay caused by equipment problems; if the BUS number corresponding to the SSD does not exist, the SSD is controlled to re-establish the link. By re-establishing the link, the system can make the failed or unrecognized device become available again, thereby ensuring the stability of the system.
[0079] It should be noted that when the bus number corresponding to the SSD exists and the SSD is controlled to re-establish the link, the following steps are also included:
[0080] Step P1: Use the lspci command to confirm whether the channel BUS number exists.
[0081] Step P2: If the channel BUS number exists, execute the nvme list command; if the nvme list command is executed correctly, then execute the previous admin command until the test is completed; if the nvme list command is not executed correctly, it proves that there is a problem with the link, and the channel needs to be forcibly removed from the system and an error is reported to achieve the purpose of not affecting the test of other channels.
[0082] Step P3: If the channel BUS number does not exist, it proves that there is a problem with the link. The channel needs to be forcibly removed from the system and an error is reported to achieve the purpose of not affecting the test of other channels.
[0083] It can be understood that after determining that there is a problem with the SSD link, it is determined whether the bus number corresponding to the SSD exists; when the bus number corresponding to the SSD does not exist, and the SSD is controlled to re-establish the link, the following steps are also included:
[0084] Step Q1: Use the lspci command to confirm whether the channel BUS number exists.
[0085] Step Q2: If the channel BUS number exists, execute the nvme list command; if the nvme list command is executed correctly, then execute the previous admin command until the test is completed; if the nvme list command is not executed correctly, it proves that there is a problem with the link, and the channel needs to be forcibly removed from the system and an error is reported to achieve the purpose of not affecting the test of other channels.
[0086] Step Q3: If the channel BUS number does not exist, power off the SSD device of the channel and wait for about 10 seconds; power on the SSD device of the channel and wait for about 30 seconds; rescan the BUS number of the SSD device of the channel; confirm whether the channel BUS number exists through the lspci command; if the channel BUS number exists, execute step Q2; if the channel BUS number does not exist, it proves that there is a problem with the link, and the channel needs to be forcibly removed from the system and an error is reported to achieve the purpose of not affecting the test of other channels.
[0087] Furthermore, in one embodiment, before the step of performing response detection on each channel in the SSD link, the method further includes:
[0088] Determine whether the bus number exists based on the bus information search command;
[0089] If yes, then executing the step of performing response detection on each channel in the SSD link;
[0090] If not, it is determined that there is a problem with the SSD link, and based on the disk identification command, the target channel with the problem is found from the SSD link and the step of removing the target channel from the SSD link is performed.
[0091] Exemplarily, in an embodiment of the present application, before performing response detection on each channel in the SSD link, the bus information search (lspci) command can be used to confirm whether the channel BUS number exists; if it exists, a response detection is performed on each channel in the SSD link; if it does not exist, it is determined that there is a problem with the SSD link, and the target channel with the problem is found and eliminated according to the identification disk (nvme list) command to obtain a new SSD link, and then the target device is controlled to perform data transmission based on the new SSD link to ensure the effectiveness of data transmission and system stability.
[0092] It can be understood that the above scheme can be summarized into the following steps:
[0093] Step N1: Use the lspci command to confirm whether the channel BUS number exists. If it exists, execute the nvme list command to check the response of each channel in the SSD link.
[0094] Step N2: If the channel BUS number does not exist, it proves that there is a problem with the link. Use the nvme list command to find the target channel with the problem and remove the target channel and report an error to achieve the purpose of not affecting the test of other channels.
[0095] Further, in one embodiment, referring to Figure 3 As shown, the response detection of each channel in the SSD link to determine the target channel with a problem includes:
[0096] Step S201: determining whether each channel in the SSD link has a response based on the disk identification command;
[0097] Step S202: If all channels have responses, controlling the target device to perform data transmission based on the SSD link;
[0098] Step S203: If there is at least one channel without a response, the channel without a response is used as a target channel with a problem.
[0099] Exemplarily, in an embodiment of the present application, after controlling the SSD to re-establish the link, the system can detect whether all channels in the SSD link are responsive by executing the nvmelist command, thereby ensuring that the system can effectively manage and identify all potential hardware channels and prepare for subsequent data transmission; if all channels are responsive, the system can continue to use these channels for data transmission, ensuring the continuity and normal operating capabilities of the link, thereby ensuring the effective and efficient transmission of data on the SSD link; if at least one channel is found to be unresponsive after the execution of the nvme list command, the system can mark the unresponsive channel as a problematic target channel, remove the target channel from the system and report an error, so as to achieve the purpose of not affecting the testing of other channels.
[0100] In a second aspect, an embodiment of the present application also provides an SSD link abnormality control system.
[0101] In one embodiment, referring to Figure 4 , Figure 4 This is a functional module diagram of an embodiment of the SSD link abnormality control system of the present application. Figure 4 As shown, the SSD link abnormality control system includes:
[0102] A first processing module, which is used to determine that there is a problem with the SSD link when the solid state drive SSD is not detected within a preset time period, and control the SSD to re-establish the link based on whether the bus number corresponding to the SSD exists;
[0103] A second processing module is used to perform response detection on each channel in the SSD link to determine a target channel with a problem;
[0104] A third processing module, configured to remove the target channel from the SSD link to obtain a new SSD link;
[0105] The fourth processing module is used to control the target device to perform data transmission based on the new SSD link.
[0106] Furthermore, in one embodiment, the first processing module is specifically configured to:
[0107] If the bus number corresponding to the SSD exists, remove the bus number and control the SSD to re-establish the link;
[0108] If the bus number corresponding to the SSD does not exist, the SSD is controlled to re-establish the link.
[0109] Furthermore, in one embodiment, the second processing module is specifically configured to:
[0110] Determine whether the bus number exists based on the bus information search command;
[0111] If yes, then executing the step of performing response detection on each channel in the SSD link;
[0112] If not, it is determined that there is a problem with the SSD link, and based on the disk identification command, the target channel with the problem is found from the SSD link and the step of removing the target channel from the SSD link is performed.
[0113] Furthermore, in one embodiment, the second processing module is further configured to:
[0114] Determine whether each channel in the SSD link has a response based on the identify disk command;
[0115] If all channels respond, controlling the target device to perform data transmission based on the SSD link;
[0116] If there is at least one channel without response, the channel without response is regarded as the target channel with problem.
[0117] This application monitors the SSD and if it does not respond within a preset time, it determines that there is a link problem, and restores a stable data flow by re-establishing the communication link; then, a response detection is performed on each SSD channel to determine the problematic channel and remove it, thereby optimizing the structure of the SSD link; after the removal, a new SSD link is obtained to ensure that the test will not be stuck all the time, thereby reducing the test time and improving the test efficiency; then, the target device is controlled to perform data transmission based on the new SSD link, thereby ensuring the timely execution of commands and the reliability of data transmission, thereby improving the operating efficiency and stability of the overall system.
[0118] Among them, the functional implementation of each module in the above-mentioned SSD link abnormality control system corresponds to the steps in the above-mentioned SSD link abnormality control method embodiment, and its functions and implementation processes are no longer repeated here.
[0119] In a third aspect, an embodiment of the present application provides an SSD link abnormality control device, which may be a personal computer (PC), a laptop computer, a server, or other device with data processing functions.
[0120] Reference Figure 5 , Figure 5 Schematic diagram of the hardware structure of the SSD link abnormality control device involved in the embodiment of the present application. In the embodiment of the present application, the SSD link abnormality control device may include a processor, a memory, a communication interface and a communication bus.
[0121] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.
[0122] The communication interface includes input / output (I / O) interface, physical interface and logical interface, etc., which are used to realize the interconnection of devices inside the SSD link abnormality control device, and the interface used to realize the interconnection between the SSD link abnormality control device and other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber optic interface, an ATM interface, etc.; the user device can be a display (Display), a keyboard (Keyboard), etc.
[0123] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0124] The processor may be a general-purpose processor, and the general-purpose processor may call the SSD link abnormality control program stored in the memory and execute the SSD link abnormality control method provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the SSD link abnormality control program is called may refer to the various embodiments of the SSD link abnormality control method of the present application, and will not be repeated here.
[0125] Those skilled in the art will understand that Figure 5 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0126] In a fourth aspect, an embodiment of the present application also provides a readable storage medium.
[0127] The readable storage medium of the present application stores an SSD link abnormality control program, wherein when the SSD link abnormality control program is executed by a processor, the steps of the SSD link abnormality control method as described above are implemented.
[0128] Among them, the method implemented when the SSD link abnormality control program is executed can refer to the various embodiments of the SSD link abnormality control method of the present application, and will not be repeated here.
[0129] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.
[0130] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0131] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0132] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0133] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.
[0135] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for controlling SSD link abnormality, characterized in that: The SSD link abnormality control method comprises: When the solid state drive SSD is not detected within a preset time, it is determined that there is a problem with the SSD link, and the SSD is controlled to re-establish the link based on whether the bus number corresponding to the SSD exists; Perform response detection on each channel in the SSD link to determine the target channel with problems; Removing the target channel from the SSD link to obtain a new SSD link; The target device is controlled to perform data transmission based on the new SSD link.
2. The SSD link abnormality control method according to claim 1, characterized in that: The controlling the SSD to re-establish a link based on whether the bus number corresponding to the SSD exists includes: If the bus number corresponding to the SSD exists, remove the bus number and control the SSD to re-establish the link; If the bus number corresponding to the SSD does not exist, the SSD is controlled to re-establish the link.
3. The SSD link abnormality control method according to claim 2, characterized in that: Before the step of performing response detection on each channel in the SSD link, the method further includes: Determine whether the bus number exists based on the bus information search command; If yes, then executing the step of performing response detection on each channel in the SSD link; If not, it is determined that there is a problem with the SSD link, and based on the disk identification command, the target channel with the problem is found from the SSD link and the step of removing the target channel from the SSD link is performed.
4. The SSD link abnormality control method according to claim 1, characterized in that: The step of performing response detection on each channel in the SSD link to determine a target channel with a problem includes: Determine whether each channel in the SSD link has a response based on the identify disk command; If all channels respond, controlling the target device to perform data transmission based on the SSD link; If there is at least one channel without response, the channel without response is regarded as the target channel with problem.
5. An SSD link abnormality control system, characterized in that: The SSD link abnormality control system includes: A first processing module, which is used to determine that there is a problem with the SSD link when the solid state drive SSD is not detected within a preset time period, and control the SSD to re-establish the link based on whether the bus number corresponding to the SSD exists; A second processing module is used to perform response detection on each channel in the SSD link to determine a target channel with a problem; A third processing module, configured to remove the target channel from the SSD link to obtain a new SSD link; The fourth processing module is used to control the target device to perform data transmission based on the new SSD link.
6. The SSD link abnormality control system according to claim 5, characterized in that: The first processing module is specifically used for: If the bus number corresponding to the SSD exists, remove the bus number and control the SSD to re-establish the link; If the bus number corresponding to the SSD does not exist, the SSD is controlled to re-establish the link.
7. The SSD link abnormality control system according to claim 5, characterized in that: The second processing module is specifically used for: Determine whether the bus number exists based on the bus information search command; If yes, then executing the step of performing response detection on each channel in the SSD link; If not, it is determined that there is a problem with the SSD link, and based on the disk identification command, the target channel with the problem is found from the SSD link and the step of removing the target channel from the SSD link is performed.
8. The SSD link abnormality control system according to claim 5, characterized in that: The second processing module is further specifically used for: Determine whether each channel in the SSD link has a response based on the identify disk command; If all channels respond, controlling the target device to perform data transmission based on the SSD link; If there is at least one channel without response, the channel without response is regarded as the target channel with problem.
9. An SSD link abnormality control device, characterized in that: The SSD link abnormality control device includes a processor, a memory, and an SSD link abnormality control program stored in the memory and executable by the processor, wherein when the SSD link abnormality control program is executed by the processor, the steps of the SSD link abnormality control method as described in any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an SSD link abnormality control program, wherein when the SSD link abnormality control program is executed by a processor, the steps of the SSD link abnormality control method according to any one of claims 1 to 4 are implemented.
