Equipment repairing method and device, computer equipment, storage medium and program product
By executing multiple sub-repair tasks in parallel, the problem of PCIe device repair efficiency in traditional device repair methods is solved, and efficient device repair is achieved in the case of multi-level cascade connection.
Patent Information
- Application Number
- CN202411296447.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-27
AI Technical Summary
Traditional device repair methods have problems with low repair efficiency on PCIe devices, especially in the case of multi-level cascade connections, which leads to a long time in the repair of the device.
By assigning corresponding repair tasks to the target port device in the port device system, and performing multiple sub-repair tasks in parallel according to the connection relationship between the target port device and the endpoint device and the connection relationship with other port devices, multiple sub-repair tasks are executed in parallel. Repair tasks to improve repair efficiency. The specific steps include determining different types of downlink ports, assigning corresponding sub-repair tasks, and performing sub-repair tasks in parallel, including removing and accessing endpoint devices, and initializing processing port devices.
It realizes efficient device repair on PCIe devices, shortens repair time and improves repair efficiency. Especially when there are many cascading connected ports, repair efficiency is significantly improved.
Smart Images

Figure CN119201788A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a device repair method, apparatus, computer equipment, storage medium and program product. Background Art
[0002] With the continuous development of computer technology, PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) devices have emerged. PCIe devices can be connected to multiple endpoint devices. If a large number of endpoint devices need to be connected to a PCIe device, the PCIe device needs to be cascaded in multiple levels. At this time, if a port on a PCIe device or a link corresponding to the PCIe device fails, the PCIe device needs to be repaired.
[0003] However, traditional equipment repair methods have the problem of low repair efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a device repair method, apparatus, computer equipment, storage medium and program product that can improve repair efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a device repair method, comprising:
[0006] Assigning a corresponding repair task to a target port device in a port device system; the port device system includes a plurality of cascaded port devices and endpoint devices connected to each of the port devices; the repair task includes a plurality of sub-repair tasks;
[0007] The plurality of sub-repair tasks are executed according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices, so as to repair the port device system.
[0008] In the above-mentioned device repair method, when there are multiple cascade-connected port devices and multiple endpoint devices in the port device system, the embodiment of the present application can repair the port device system by executing multiple sub-repair tasks corresponding to the target port device in parallel, thereby ensuring that multiple sub-repair tasks corresponding to the same port device can be executed simultaneously, thereby improving the efficiency of device repair.
[0009] In one embodiment, executing the plurality of repair sub-tasks according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices, includes:
[0010] Determine a first downstream port and a second downstream port in the target port device according to a connection relationship between the target port device and an endpoint device, and a connection relationship between the target port device and other port devices; the first downstream port is a port connected to a next port device, and the second downstream port is a port connected to an endpoint device;
[0011] Allocating a corresponding first sub-repair task to the first downstream port, and allocating a corresponding second sub-repair task to the second downstream port;
[0012] Execute the first sub-repair task and the second sub-repair task.
[0013] In this embodiment, different types of downstream ports can be accurately determined based on the connection relationship between the target port device and the endpoint device, as well as the connection relationship between the target port device and other port devices. Therefore, corresponding sub-repair tasks can be respectively assigned to different types of downstream ports, and the first sub-repair task and the second sub-repair task can be executed in parallel, which can ensure that multiple sub-repair tasks corresponding to the same port device can be executed simultaneously, and the efficiency of device repair can be improved.
[0014] In one embodiment, performing the first sub-repair task includes:
[0015] The next port device is used as a new target port device, and the step of allocating a corresponding repair task to the target port device in the port device system is returned to be executed.
[0016] In this embodiment, the next port device can be used as a new target port device, and the step of assigning a corresponding repair task to the target port device in the port device system can be returned to execute. Corresponding sub-repair tasks can be assigned to all downstream ports in the port device system, and sub-repair tasks of all downstream ports in the same port device can be executed in parallel, thereby improving the efficiency of equipment repair.
[0017] In one embodiment, performing the second repair sub-task includes:
[0018] removing an endpoint device connected to the second downstream port;
[0019] Initializing the upstream port, the first downstream port, and the second downstream port of the target port device;
[0020] Access an endpoint device connected to the second downstream port.
[0021] In this embodiment, the endpoint device connected to the second downstream port can be removed in parallel, and then the upstream port, the first downstream port and the second downstream port of the target port device after the removal operation are initialized in parallel. After that, the endpoint device connected to the second downstream port is connected to the PCI device tree in parallel. In this way, the repair process can be executed in parallel, thereby improving the efficiency of device repair.
[0022] In one embodiment, the initializing the upstream port, the first downstream port, and the second downstream port of the target port device includes:
[0023] Resetting the target port device;
[0024] The values of the upstream port, the first downstream port, and the second downstream port in the register are updated to initialize the upstream port, the first downstream port, and the second downstream port.
[0025] In this embodiment, after the target port device is reset, the upstream port, the first downstream port and the second downstream port can be initialized by backfilling the values of the key registers stored in advance to the corresponding upstream port, the first downstream port and the second downstream port in parallel. In this way, the resource attributes of the configuration items can be correctly configured to ensure that each port of the target port device can be correctly identified, and there is no need to remove and connect the ports of the target port device from the initial PCI device tree, which can further improve the efficiency of device repair.
[0026] In one embodiment, determining the first downstream port and the second downstream port in the target port device according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices, includes:
[0027] According to the connection relationship between the target port device and other port devices connected in cascade, a downlink port of the target port device connected to a next port device is used as the first downlink port;
[0028] According to the connection relationship between the target port device and the endpoint device, a downlink port of the target port device connected to the endpoint device is used as the second downlink port.
[0029] In this embodiment, according to the connection relationship between the target port device and other port devices connected in cascade, the downlink port of the target port device connected to the next port device can be accurately taken as the first downlink port; and according to the connection relationship between the target port device and the endpoint device, the downlink port of the target port device connected to the endpoint device can be accurately taken as the second downlink port. In this way, the first downlink port and the second downlink port can be accurately determined.
[0030] In a second aspect, the present application also provides an equipment repair device, comprising:
[0031] An allocation module, used for allocating corresponding repair tasks to target port devices in a port device system; the port device system comprises a plurality of cascaded port devices and endpoint devices connected to each of the port devices; the repair task comprises a plurality of sub-repair tasks;
[0032] The repair module is used to execute the multiple repair sub-tasks according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices, so as to repair the port device system.
[0033] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method in any one of the embodiments of the first aspect are implemented.
[0034] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method in any one of the embodiments of the first aspect are implemented.
[0035] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method in any one of the embodiments of the first aspect are implemented.
[0036] The above-mentioned device repair method, apparatus, computer equipment, storage medium and program product assign corresponding repair tasks to the target port device in the port device system; the port device system includes multiple cascade-connected port devices and endpoint devices connected to each port device; the repair task includes multiple sub-repair tasks; according to the connection relationship between the target port device and the endpoint device, as well as the connection relationship with other port devices, multiple sub-repair tasks are executed to repair the port device system. In the case where there are multiple cascade-connected port devices and multiple endpoint devices in the port device system, the embodiment of the present application can repair the port device system by executing multiple sub-repair tasks corresponding to the target port device in parallel, which can ensure that multiple sub-repair tasks corresponding to the same port device can be executed simultaneously, and the efficiency of device repair can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 An application environment diagram of a device repair method in an embodiment;
[0039] Figure 2 A schematic diagram of a process flow of a device repair method in one embodiment;
[0040] Figure 3 A schematic diagram of a flowchart of the execution steps of a sub-repair task in an embodiment;
[0041] Figure 4 A schematic diagram of a flow chart of execution steps of the second sub-repair task in one embodiment;
[0042] Figure 5 A schematic diagram of a flow chart of a device repair method in another embodiment;
[0043] Figure 6 An exemplary diagram of a port device system in one embodiment;
[0044] Figure 7 In one embodiment Figure 6 A flowchart of the corresponding equipment repair method;
[0045] Figure 8 A schematic diagram of the relationship between various repair subtasks in an embodiment;
[0046] Fig. 91 is a structural block diagram of a device repair apparatus in one embodiment. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0049] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0050] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0051] With the continuous development of computer technology, PCIe (peripheral component interconnect express, a high-speed serial computer expansion bus standard) devices have emerged. PCIe devices (i.e. PCIe switches, which are used to provide expansion or aggregation capabilities and allow more devices to be connected to a PCIe port) are point-to-point connections. Multiple endpoint devices (EP, Endpoint) can be connected to PCIe devices, and endpoint devices are used to implement specific business functions. If a large number of endpoint devices need to be connected to a PCIe device, the PCIe device needs to be cascaded in multiple levels to access more PCIe devices. At this time, if a port on a PCIe device or a link corresponding to the PCIe device fails, the PCIe device needs to be repaired.
[0052] Among them, the process of device repair includes the process of removing the endpoint device connected to the PCIe device and the port on the PCIe device, and the process of accessing the endpoint device connected to the PCIe device and the port on the PCIe device. In the traditional technology, the removal process starts from the specified PCIe device, traverses the lowest PCIe device in depth-first order, and traces back one by one until all endpoint devices and ports are removed serially in a bottom-to-top order. In the traditional technology, the access process is to enumerate the first device from the specified bus in a depth-first manner, and enumerate from the device in sequence, so as to serially access all endpoint devices and ports to the PCIe device in a top-to-bottom order to build a complete PCI device topology tree. Therefore, the traditional technology uses a single task serial execution method to perform the removal and access process. When multiple PCIe switches are cascaded and there are many cascaded EPs, the process of device repair takes a long time. In addition, the ports on the PCIe switch do not carry services, so the removal and access operations of the ports on the PCIe device in the traditional technology are not necessary, and the time consumption of the device repair process is increased. In summary, the traditional device repair method has the problem of low repair efficiency. After introducing the background technology of the device repair method provided by the embodiment of the present application, the implementation environment involved in the device repair method provided by the embodiment of the present application will be briefly described below.
[0053] The device repair method provided in the embodiment of the present application can be applied to Figure 1In the computer device shown. The computer device can be a terminal or a server, and the computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a device repair method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0054] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific terminal may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0055] In one embodiment, Figure 2 As shown, a device repair method is provided, which is applied to Figure 1 The computer device in the example is used to illustrate, including the following steps:
[0056] S201, assigning a corresponding repair task to a target port device in a port device system; the port device system includes a plurality of cascaded port devices and endpoint devices connected to each port device; the repair task includes a plurality of sub-repair tasks.
[0057] Among them, the port device system may include multiple cascade-connected port devices (i.e., PCIe switches) and multiple endpoint devices EP connected to each port device, each port device includes an upstream port UP (Upstream port, a port connected to an upstream device in a PCIe switch) and multiple downstream ports DP (Downstream port, a port connected to a downstream device in a PCIe switch), optionally, the downstream port DP may be connected one-to-one with the endpoint device EP, or the downstream port DP may also be connected to the upstream port UP in the next port device in the port device system. The multiple cascade-connected port devices include a target port device, which refers to the port device that is closest to the CPU (Central Processing Unit). Generally, the target port device is a port device directly connected to the CPU. The repair task includes multiple sub-repair tasks.
[0058] In the embodiment of the present application, the computer device can determine the port device whose uplink port UP is directly connected to the RP (Root port, the root port directly connected from the CPU) from the multiple port devices in the port device system, and determine the port device as the target port device. Thus, the computer device can assign the corresponding repair subtask to the RP corresponding to the target port device, wherein the repair subtask corresponding to the RP is the main task, which is responsible for the management and control of the overall repair process.
[0059] S202, executing a plurality of sub-repair tasks according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices, so as to repair the port device system.
[0060] In the embodiment of the present application, the computer device can determine the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and the other port devices, according to whether the target port device is connected to the endpoint device or to other port devices. Thus, the computer device can assign corresponding repair subtasks to each downstream port DP in the target port device according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices, so that the sub-repair tasks corresponding to each downstream port DP can be executed in parallel to repair the port device system. Optionally, the computer device can assign different sub-repair tasks to each downstream port DP in the target port device, so as to execute multiple different sub-repair tasks in parallel; or, the computer device can also assign different sub-repair tasks to different types of downstream ports DP in the target port device, so as to execute multiple sub-repair tasks in parallel. Among them, different types of downstream ports DP may include but are not limited to downstream ports DP connected to the endpoint device EP, or downstream ports DP connected to other port devices, etc. Of course, the embodiment of the present application does not limit the specific implementation method of assigning sub-repair tasks.
[0061] In the above-mentioned device repair method, a corresponding repair task is assigned to a target port device in a port device system; the port device system includes a plurality of cascade-connected port devices and endpoint devices connected to each port device; the repair task includes a plurality of sub-repair tasks; and according to the connection relationship between the target port device and the endpoint device, and the connection relationship with other port devices, a plurality of sub-repair tasks are executed to repair the port device system. In the case where there are a plurality of cascade-connected port devices and a plurality of endpoint devices in the port device system, the embodiment of the present application can repair the port device system by executing a plurality of sub-repair tasks corresponding to the target port device in parallel, which can ensure that a plurality of sub-repair tasks corresponding to the same port device can be executed simultaneously, and the efficiency of device repair can be improved.
[0062] In one embodiment, a method for executing multiple sub-repair tasks in parallel is provided, namely, "executing multiple sub-repair tasks according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices" in the above S202. Figure 3 As shown, including:
[0063] S301, determining a first downstream port and a second downstream port in a target port device according to a connection relationship between the target port device and an endpoint device, and a connection relationship between the target port device and other port devices; the first downstream port is a port connected to a next port device, and the second downstream port is a port connected to an endpoint device.
[0064] In the embodiment of the present application, the computer device can determine whether the downlink port DP in the target port device is connected to other port devices in the port device system according to the connection relationship between the target port device and other port devices, and determine the first downlink port according to the downlink port in the target port device connected to the next port device in the port device system. Also, the computer device can determine whether the downlink port DP in the target port device is connected to the endpoint device according to the connection relationship between the target port device and the endpoint device, and determine the second downlink port according to the downlink port in the target port device connected to the endpoint device. The first downlink port is a port connected to the next port device, the second downlink port is a port connected to the endpoint device, and the first downlink port and the second downlink port are different types of downlink ports.
[0065] S302: Allocate a corresponding first sub-repair task to the first downlink port, and allocate a corresponding second sub-repair task to the second downlink port.
[0066] In the embodiment of the present application, the computer device can pre-set sub-repair tasks corresponding to different types of downstream ports, wherein the sub-repair tasks corresponding to different types of downstream ports are different, and the sub-repair tasks include a first sub-repair task and a second sub-repair task. Thus, the first sub-repair task corresponding to the first downstream port can be assigned to the first downstream port, and the second sub-repair task corresponding to the second downstream port can be assigned to the second downstream port.
[0067] S303, executing the first sub-repair task and the second sub-repair task.
[0068] In the embodiment of the present application, the computer device can execute the first sub-repair task corresponding to the first downstream port and the second sub-repair task corresponding to the second downstream port in parallel. Optionally, the computer device can synchronously execute the first sub-repair task and the second sub-repair task at a fixed time; or, the computer device can also synchronously execute the first sub-repair task and the second sub-repair task in real time. Of course, the embodiment of the present application does not limit the specific implementation method for executing the first sub-repair task and the second sub-repair task in parallel.
[0069] In this embodiment, different types of downstream ports can be accurately determined based on the connection relationship between the target port device and the endpoint device, as well as the connection relationship between the target port device and other port devices. Therefore, corresponding sub-repair tasks can be respectively assigned to different types of downstream ports, and the first sub-repair task and the second sub-repair task can be executed in parallel, which can ensure that multiple sub-repair tasks corresponding to the same port device can be executed simultaneously, and the efficiency of device repair can be improved.
[0070] In one embodiment, a method for implementing the first sub-repair task is provided, that is, implementing the first sub-repair task includes:
[0071] The next port device is used as a new target port device, and the step of allocating a corresponding repair task to the target port device in the port device system is returned to be executed.
[0072] In an embodiment of the present application, after the computer device assigns the first sub-repair task corresponding to the first downstream port to the first downstream port, it can use the next port device connected to the first downstream port as the new target port device, and return to execute the step of assigning the corresponding repair task to the target port device in the port device system. That is, it can be understood that multiple new sub-repair tasks can be configured for the new target port device, and the new first downstream port and the new second downstream port in the new target port device can be determined according to the connection relationship between the new target port device and the endpoint device, and the connection relationship with other port devices. Thus, from the multiple new sub-repair tasks, the corresponding new first sub-repair task can be assigned to the new first downstream port, and the corresponding new second sub-repair task can be assigned to the new second downstream port. After that, the new first sub-repair task and the new second sub-repair task are executed in parallel until all downstream ports in the port device system are assigned corresponding sub-repair tasks, and the sub-repair tasks of all downstream ports are executed in parallel.
[0073] In this embodiment, the next port device can be used as a new target port device, and the step of assigning a corresponding repair task to the target port device in the port device system can be returned to execute. Corresponding sub-repair tasks can be assigned to all downstream ports in the port device system, and sub-repair tasks of all downstream ports in the same port device can be executed in parallel, thereby improving the efficiency of equipment repair.
[0074] In one embodiment, a method for performing the second sub-repair task is provided, that is, performing the second sub-repair task, such as Figure 4 As shown, including:
[0075] S401: Remove an endpoint device connected to the second downstream port.
[0076] In the embodiment of the present application, the computer device can call the Linux kernel interface to remove the endpoint device connected to the second downstream port, so as to remove the endpoint device EP from the initial PCI device tree, and trigger the service driver corresponding to the endpoint device EP to execute the remove function, and delete the software resources. In addition, the computer device can also set a completion mark after the removal is completed. In this way, after all the endpoint devices connected to the second downstream ports are removed, the PCI device tree only includes a plurality of cascaded port devices and the upstream port UP and downstream port DP of each port device. Among them, the initial PCI device tree includes a plurality of cascaded port devices, the upstream port UP and downstream port DP of each port device, and the endpoint device EP connected to each port device, that is, the embodiment of the present application only needs to remove the endpoint device EP in the initial PCI device tree, without removing the upstream port UP and downstream port DP of each port device, which can improve the efficiency of the removal process; and after removing the endpoint device, each port device is still retained on the initial PCI device tree, which can retain the topological structure of the initial PCI device tree foundation, and lay the foundation for the parallel access of the next endpoint device.
[0077] S402: Initialize the upstream port, the first downstream port, and the second downstream port of the target port device.
[0078] In the embodiment of the present application, optionally, the computer device can set preset default values for the registers in the upstream port, the first downstream port, and the second downstream port of the target port device to implement initialization processing of the upstream port, the first downstream port, and the second downstream port of the target port device; or, the computer device can initialize the upstream port, the first downstream port, and the second downstream port of the target port device by backfilling the register value. Of course, the embodiment of the present application does not limit the specific implementation method of the initialization processing.
[0079] S403: Access an endpoint device connected to the second downstream port.
[0080] In an embodiment of the present application, after all port devices are initialized, the computer device can determine the second downstream port that is not connected to the opposite device, and call the Linux kernel interface to enumerate the target port device and the following port devices, so as to access or mount the endpoint device connected to the second downstream port to the PCI device tree, thereby rebuilding the PCI device tree, and triggering the probe function registered by each endpoint device driver to perform device detection and enable business functions. In addition, the computer device can also set a completion mark after the access is completed. After all endpoint devices have completed the access process, the computer device can traverse the PCIe switch to enable, and configure various properties to complete the entire repair process. Among them, the embodiment of the present application only needs to access the endpoint device EP, without accessing the upstream port UP and downstream port DP of each port device, which can improve the efficiency of the access process.
[0081] In this embodiment, the endpoint device connected to the second downstream port can be removed in parallel, and then the upstream port, the first downstream port and the second downstream port of the target port device after the removal operation are initialized in parallel. After that, the endpoint device connected to the second downstream port is connected to the PCI device tree in parallel. In this way, the repair process can be executed in parallel, thereby improving the efficiency of device repair.
[0082] In one embodiment, an implementation of the initialization process is provided, that is, the “initialization process is performed on the upstream port, the first downstream port, and the second downstream port of the target port device” in the above S402, including:
[0083] Reset the target port device.
[0084] The values of the upstream port, the first downstream port and the second downstream port in the register are updated to initialize the upstream port, the first downstream port and the second downstream port.
[0085] In the embodiment of the present application, after all the endpoint devices connected to the second downstream ports are removed, the computer device can store the values of the first 64 bytes of registers in the configuration space of the upstream port, the first downstream port, and the second downstream port of the target port device. After that, the target port device can be reset and un-reset, and after the link is established, the values of the key registers stored in advance are backfilled to the corresponding upstream port, the first downstream port, and the second downstream port in parallel. In this way, the values of the upstream port, the first downstream port, and the second downstream port in the registers can be updated in parallel to initialize the upstream port, the first downstream port, and the second downstream port.
[0086] In this embodiment, after the target port device is reset, the upstream port, the first downstream port and the second downstream port can be initialized by backfilling the values of the key registers stored in advance to the corresponding upstream port, the first downstream port and the second downstream port in parallel. In this way, the resource attributes of the configuration items can be correctly configured to ensure that each port of the target port device can be correctly identified, and there is no need to remove and connect the ports of the target port device from the initial PCI device tree, which can further improve the efficiency of device repair.
[0087] In one embodiment, a method for determining the first downstream port and the second downstream port is provided, that is, the step of “determining the first downstream port and the second downstream port in the target port device according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices” in the above S301 includes:
[0088] According to the connection relationship between the target port device and other port devices connected in cascade, a downlink port of the target port device connected to the next port device is used as the first downlink port.
[0089] According to the connection relationship between the target port device and the endpoint device, a downlink port of the target port device connected to the endpoint device is used as the second downlink port.
[0090] In the embodiment of the present application, the computer device can determine whether the downlink port DP in the target port device is connected to other port devices in the port device system according to the connection relationship between the target port device and other port devices. If the downlink port DP in the target port device is connected to other port devices in the port device system, the port device connected to the downlink port DP in the target port device can be determined as the next port device, and the downlink port in the target port device connected to the next port device can be determined as the first downlink port. Also, the computer device can determine whether the downlink port DP in the target port device is connected to the endpoint device according to the connection relationship between the target port device and the endpoint device. If the downlink port DP in the target port device is connected to the endpoint device, the downlink port in the target port device connected to the endpoint device can be determined as the second downlink port.
[0091] In this embodiment, according to the connection relationship between the target port device and other port devices connected in cascade, the downlink port of the target port device connected to the next port device can be accurately taken as the first downlink port; and according to the connection relationship between the target port device and the endpoint device, the downlink port of the target port device connected to the endpoint device can be accurately taken as the second downlink port. In this way, the first downlink port and the second downlink port can be accurately determined.
[0092] Based on all the above embodiments, the present application also provides a complete device repair method, such as Figure 5 As shown, the method includes:
[0093] S21, assigning a corresponding repair task to a target port device in a port device system; the port device system includes a plurality of cascaded port devices and endpoint devices connected to each port device; the repair task includes a plurality of sub-repair tasks;
[0094] S22, according to the connection relationship between the target port device and other port devices connected in cascade, taking the downlink port of the target port device connected to the next port device as the first downlink port; the first downlink port is the port connected to the next port device;
[0095] S23, according to the connection relationship between the target port device and the endpoint device, taking the downlink port of the target port device connected to the endpoint device as the second downlink port; the second downlink port is the port connected to the endpoint device;
[0096] S24, assigning a corresponding first sub-repair task to the first downlink port, and assigning a corresponding second sub-repair task to the second downlink port;
[0097] S25, taking the next port device as a new target port device, and returning to execute the step of allocating a corresponding repair task to the target port device in the port device system;
[0098] S26, removing the endpoint device connected to the second downstream port;
[0099] S27, after all the endpoint devices connected to the second downstream ports are removed, resetting the target port device;
[0100] S28, updating the values of the upstream port, the first downstream port, and the second downstream port in the register to initialize the upstream port, the first downstream port, and the second downstream port;
[0101] S29, accessing the endpoint device connected to the second downstream port.
[0102] For example, Figure 6 As shown, Figure 61 is an example diagram of a port device system in an embodiment. The port device system may include two cascade-connected port devices SW0 and SW1, and the port device SW0 includes UP0, DP1, DP2, and DP3, and the port device SW1 includes UP1, DP4, DP5, and DP6. UP0 is connected to RP in the CPU, DP1 in the port device SW0 is connected to UP1 in the port device SW1, DP2 is connected to EP1, DP3 is connected to EP2, DP4 is connected to EP3, DP5 is connected to EP4, and DP6 is connected to EP5.
[0103] For example, Figure 7 As shown, Figure 7 In one embodiment Figure 6 The corresponding device repair method flowchart is shown in FIG. Among them, the repair subtask includes a removal subtask and an access subtask. Figure 6 and Figure 7 As shown, the computer device can assign a repair subtask task1 to the RP corresponding to SW0, and S501, traverse each downstream port DP of SW0, assign a removal subtask task2 to DP1, assign a removal subtask task3 to DP2, and assign a removal subtask task4 to DP3. S502, detect whether the opposite device of each downstream port DP in SW0 is a port device, S503, if the opposite device of the downstream port DP is an EP, such as DP2 and DP3, then EP1 corresponding to DP2 and EP2 corresponding to DP3 can be removed; S504, if the opposite device of the downstream port DP is the port device SW1 of the next cascade, then SW1 can be determined as the new SW0, and return to execute S501, that is, traverse each downstream port DP of SW1, assign removal subtask task5 to DP4, assign removal subtask task6 to DP5, and assign removal subtask task7 to DP6. Thus, when it is detected that the opposite device of each downstream port DP in SW1 is an EP, EP3 corresponding to DP4, EP4 corresponding to DP5, and EP5 corresponding to DP6 can be removed. Among them, if Figure 8 As shown, Figure 8 This is a schematic diagram of the relationship between the repair subtasks in an embodiment, task1 is the parent task of task2, task3, and task4, task2 is the parent task of task5, task6, and task7. It should be noted that the repair subtasks corresponding to the same port device are executed in parallel. For example, task2, task3, and task4 can be executed in parallel, and task5, task6, and task7 can be executed in parallel. Only after task5, task6, and task7 are all completed, can it be confirmed that task2, the parent task of task5, task6, and task7, is completed.
[0104] After all removal subtasks are executed, S505, the computer device can reset each port device and update the values of the upstream port, the first downstream port and the second downstream port in the register to initialize the upstream port, the first downstream port and the second downstream port. After the initialization process is completed, S506, the computer device can traverse each downstream port DP of SW0, assign access subtask task2 to DP1, assign access subtask task3 to DP2, and assign access subtask task4 to DP3. S507, detect whether the opposite end of each downstream port DP in SW0 is connected to a port device, S508, if there is no device at the opposite end of the downstream port DP, such as DP2 and DP3, then EP1 corresponding to DP2 and EP2 corresponding to DP3 can be reset, and EP1 corresponding to DP2 and EP2 corresponding to DP3 can be enumerated, and EP1 and EP2 can be mounted on the PCI device tree respectively; S509, if the opposite end of the opposite device of the downstream port DP is connected to the port device SW1 of the next cascade, then SW1 can be determined as the new SW0, and return to execute S506, that is, traverse each downstream port DP of SW1, assign access subtask task5 to DP4, assign access subtask task6 to DP5, and assign access subtask task7 to DP6, so that, when it is detected that there is no device at the opposite end of each downstream port DP in SW1, EP3 corresponding to DP4, EP4 corresponding to DP5, and EP5 corresponding to DP6 can be accessed until all access subtasks are executed.
[0105] In the above device repair method, a corresponding repair task is assigned to the target port device in the port device system; the port device system includes multiple cascaded port devices and endpoint devices connected to each port device; the repair task includes multiple sub-repair tasks; according to the connection relationship between the target port device and the endpoint device, and the connection relationship with other port devices, multiple sub-repair tasks are executed to repair the port device system. In the case where there are multiple cascaded port devices and multiple endpoint devices in the port device system, the embodiment of the present application can repair the port device system by executing multiple sub-repair tasks corresponding to the target port device in parallel, which can ensure that multiple sub-repair tasks corresponding to the same port device can be executed at the same time, and the efficiency of device repair can be improved. For example, assuming that there are N EP devices to be repaired, and the time for each EP device to remove and connect to the driver processing is M, then the total repair time of serial processing in the related art is N * M * 2; after adopting the embodiment of the present application, N devices are processed in parallel, and the total repair time is M * 2, so compared with the related art, the repair efficiency in the present application is improved by N times, and the more cascaded port devices, the more obvious the repair efficiency is.
[0106] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0107] Based on the same inventive concept, the embodiment of the present application also provides a device repair apparatus for implementing the device repair method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more device repair apparatus embodiments provided below can refer to the limitations on the device repair method above, and will not be repeated here.
[0108] In an exemplary embodiment, Fig. 9 As shown, a device repairing device is provided, comprising: an allocating module 31 and a repairing module 32, wherein:
[0109] The allocation module 31 is used to allocate corresponding repair tasks to target port devices in the port device system; the port device system includes a plurality of cascaded port devices and endpoint devices connected to each port device; the repair task includes a plurality of sub-repair tasks.
[0110] The repair module 32 is used to perform a plurality of repair sub-tasks according to the connection relationship between the target port device and the endpoint device, and the connection relationship with other port devices, so as to repair the port device system.
[0111] In one embodiment, the repair module 32 includes:
[0112] A determination unit, configured to determine a first downstream port and a second downstream port in the target port device according to a connection relationship between the target port device and the endpoint device, and a connection relationship with other port devices; the first downstream port is a port connected to a next port device, and the second downstream port is a port connected to an endpoint device;
[0113] an allocating unit, configured to allocate a corresponding first sub-repair task to the first downstream port, and allocate a corresponding second sub-repair task to the second downstream port;
[0114] An execution unit is used to execute the first sub-repair task and the second sub-repair task.
[0115] In one embodiment, the execution unit includes:
[0116] The execution subunit is used to take the next port device as a new target port device and return to execute the step of allocating a corresponding repair task to the target port device in the port device system.
[0117] In one embodiment, the execution unit includes:
[0118] A removal subunit, used to remove an endpoint device connected to the second downstream port;
[0119] An initialization processing subunit, used for performing initialization processing on an upstream port, a first downstream port, and a second downstream port of a target port device;
[0120] The access subunit is used to access the endpoint device connected to the second downstream port.
[0121] In one embodiment, the initialization processing subunit is specifically used to:
[0122] Reset the target port device;
[0123] The values of the upstream port, the first downstream port and the second downstream port in the register are updated to initialize the upstream port, the first downstream port and the second downstream port.
[0124] In one embodiment, the determining unit includes:
[0125] A first downstream port determination subunit is used to determine, according to the connection relationship between the target port device and other port devices connected in cascade, a downstream port of the target port device connected to the next port device as the first downstream port;
[0126] The second downstream port determination subunit is used to use the downstream port of the target port device connected to the endpoint device as the second downstream port according to the connection relationship between the target port device and the endpoint device.
[0127] Each module in the above-mentioned equipment repair device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0128] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 1As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a device repair method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0129] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0130] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0131] Assigning a corresponding repair task to a target port device in a port device system; the port device system includes a plurality of cascaded port devices and endpoint devices connected to each port device; the repair task includes a plurality of sub-repair tasks;
[0132] According to the connection relationship between the target port device and the endpoint device, and the connection relationship with other port devices, multiple sub-repair tasks are executed to repair the port device system.
[0133] In one embodiment, according to the connection relationship between the target port device and the endpoint device, and the connection relationship with other port devices, multiple sub-repair tasks are performed, and the processor further implements the following steps when executing the computer program:
[0134] Determine the first downstream port and the second downstream port in the target port device according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices; the first downstream port is a port connected to the next port device, and the second downstream port is a port connected to the endpoint device;
[0135] Allocating a corresponding first sub-repair task to the first downstream port, and allocating a corresponding second sub-repair task to the second downstream port;
[0136] Perform the first sub-repair task and the second sub-repair task.
[0137] In one embodiment, when performing the first repair sub-task, the processor further implements the following steps when executing the computer program:
[0138] The next port device is used as a new target port device, and the step of allocating a corresponding repair task to the target port device in the port device system is returned to be executed.
[0139] In one embodiment, when performing the second repair sub-task, the processor further implements the following steps when executing the computer program:
[0140] Remove the endpoint device connected to the second downstream port;
[0141] Initialize the upstream port, the first downstream port, and the second downstream port of the target port device;
[0142] Connect the endpoint device connected to the second downstream port.
[0143] In one embodiment, the upstream port, the first downstream port, and the second downstream port of the target port device are initialized, and the processor further implements the following steps when executing the computer program:
[0144] Reset the target port device;
[0145] The values of the upstream port, the first downstream port and the second downstream port in the register are updated to initialize the upstream port, the first downstream port and the second downstream port.
[0146] In one embodiment, according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices, the first downstream port and the second downstream port in the target port device are determined, and when the processor executes the computer program, the following steps are further implemented:
[0147] According to the connection relationship between the target port device and other port devices connected in cascade, a downlink port of the target port device connected to the next port device is used as the first downlink port;
[0148] According to the connection relationship between the target port device and the endpoint device, a downlink port of the target port device connected to the endpoint device is used as the second downlink port.
[0149] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0150] Assigning a corresponding repair task to a target port device in a port device system; the port device system includes a plurality of cascaded port devices and endpoint devices connected to each port device; the repair task includes a plurality of sub-repair tasks;
[0151] According to the connection relationship between the target port device and the endpoint device, and the connection relationship with other port devices, multiple sub-repair tasks are executed to repair the port device system.
[0152] In one embodiment, according to the connection relationship between the target port device and the endpoint device, and the connection relationship with other port devices, multiple sub-repair tasks are performed, and when the computer program is executed by the processor, the following steps are also implemented:
[0153] Determine the first downstream port and the second downstream port in the target port device according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices; the first downstream port is a port connected to the next port device, and the second downstream port is a port connected to the endpoint device;
[0154] Allocating a corresponding first sub-repair task to the first downstream port, and allocating a corresponding second sub-repair task to the second downstream port;
[0155] Perform the first sub-repair task and the second sub-repair task.
[0156] In one embodiment, when performing the first repair sub-task, the computer program further implements the following steps when executed by the processor:
[0157] The next port device is used as a new target port device, and the step of allocating a corresponding repair task to the target port device in the port device system is returned to be executed.
[0158] In one embodiment, when performing the second repair sub-task, the computer program further implements the following steps when executed by the processor:
[0159] Remove the endpoint device connected to the second downstream port;
[0160] Initialize the upstream port, the first downstream port, and the second downstream port of the target port device;
[0161] Connect the endpoint device connected to the second downstream port.
[0162] In one embodiment, the upstream port, the first downstream port, and the second downstream port of the target port device are initialized, and when the computer program is executed by the processor, the following steps are also implemented:
[0163] Reset the target port device;
[0164] The values of the upstream port, the first downstream port and the second downstream port in the register are updated to initialize the upstream port, the first downstream port and the second downstream port.
[0165] In one embodiment, according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices, the first downstream port and the second downstream port in the target port device are determined, and when the computer program is executed by the processor, the following steps are also implemented:
[0166] According to the connection relationship between the target port device and other port devices connected in cascade, a downlink port of the target port device connected to the next port device is used as the first downlink port;
[0167] According to the connection relationship between the target port device and the endpoint device, a downlink port of the target port device connected to the endpoint device is used as the second downlink port.
[0168] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0169] Assigning a corresponding repair task to a target port device in a port device system; the port device system includes a plurality of cascaded port devices and endpoint devices connected to each port device; the repair task includes a plurality of sub-repair tasks;
[0170] According to the connection relationship between the target port device and the endpoint device, and the connection relationship with other port devices, multiple sub-repair tasks are executed to repair the port device system.
[0171] In one embodiment, according to the connection relationship between the target port device and the endpoint device, and the connection relationship with other port devices, multiple sub-repair tasks are performed, and when the computer program is executed by the processor, the following steps are also implemented:
[0172] Determine the first downstream port and the second downstream port in the target port device according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices; the first downstream port is a port connected to the next port device, and the second downstream port is a port connected to the endpoint device;
[0173] Allocating a corresponding first sub-repair task to the first downstream port, and allocating a corresponding second sub-repair task to the second downstream port;
[0174] Perform the first sub-repair task and the second sub-repair task.
[0175] In one embodiment, when performing the first repair sub-task, the computer program further implements the following steps when executed by the processor:
[0176] The next port device is used as a new target port device, and the step of allocating a corresponding repair task to the target port device in the port device system is returned to be executed.
[0177] In one embodiment, when performing the second repair sub-task, the computer program further implements the following steps when executed by the processor:
[0178] Remove the endpoint device connected to the second downstream port;
[0179] Initialize the upstream port, the first downstream port, and the second downstream port of the target port device;
[0180] Connect the endpoint device connected to the second downstream port.
[0181] In one embodiment, the upstream port, the first downstream port, and the second downstream port of the target port device are initialized, and when the computer program is executed by the processor, the following steps are also implemented:
[0182] Reset the target port device;
[0183] The values of the upstream port, the first downstream port and the second downstream port in the register are updated to initialize the upstream port, the first downstream port and the second downstream port.
[0184] In one embodiment, according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices, the first downstream port and the second downstream port in the target port device are determined, and when the computer program is executed by the processor, the following steps are also implemented:
[0185] According to the connection relationship between the target port device and other port devices connected in cascade, a downlink port of the target port device connected to the next port device is used as the first downlink port;
[0186] According to the connection relationship between the target port device and the endpoint device, a downlink port of the target port device connected to the endpoint device is used as the second downlink port.
[0187] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0188] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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 application.
[0189] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A device repair method, characterized in that: The method comprises: Assigning a corresponding repair task to a target port device in a port device system; the port device system includes a plurality of cascaded port devices and endpoint devices connected to each of the port devices; the repair task includes a plurality of sub-repair tasks; The plurality of sub-repair tasks are executed according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices, so as to repair the port device system.
2. The method according to claim 1, characterized in that: The performing of the plurality of sub-repair tasks according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices, comprises: Determine a first downstream port and a second downstream port in the target port device according to a connection relationship between the target port device and an endpoint device, and a connection relationship between the target port device and other port devices; the first downstream port is a port connected to a next port device, and the second downstream port is a port connected to an endpoint device; Allocating a corresponding first sub-repair task to the first downstream port, and allocating a corresponding second sub-repair task to the second downstream port; Execute the first sub-repair task and the second sub-repair task.
3. The method according to claim 2, characterized in that The performing of the first sub-repair task comprises: The next port device is used as a new target port device, and the step of allocating a corresponding repair task to the target port device in the port device system is returned to be executed.
4. The method according to claim 2, characterized in that: The performing of the second repair sub-task comprises: removing an endpoint device connected to the second downstream port; Initializing the upstream port, the first downstream port, and the second downstream port of the target port device; Access an endpoint device connected to the second downstream port.
5. The method according to claim 4, characterized in that The initializing process of the upstream port, the first downstream port and the second downstream port of the target port device includes: Resetting the target port device; The values of the upstream port, the first downstream port, and the second downstream port in the register are updated to initialize the upstream port, the first downstream port, and the second downstream port.
6. The method according to claim 2, characterized in that The step of determining the first downstream port and the second downstream port in the target port device according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices, comprises: According to the connection relationship between the target port device and other port devices connected in cascade, a downlink port of the target port device connected to a next port device is used as the first downlink port; According to the connection relationship between the target port device and the endpoint device, a downlink port of the target port device connected to the endpoint device is used as the second downlink port.
7. An equipment repair device, characterized in that: The device comprises: An allocation module, used for allocating corresponding repair tasks to target port devices in a port device system; the port device system comprises a plurality of cascaded port devices and endpoint devices connected to each of the port devices; the repair task comprises a plurality of sub-repair tasks; The repair module is used to execute the multiple repair sub-tasks according to the connection relationship between the target port device and the endpoint device, and the connection relationship between the target port device and other port devices, so as to repair the port device system.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Systems and methods for automatic maintenance and repair of entites in data model
CN101430703A
Device capable of conducting business hardware acceleration and method thereof
CN102769574A
Data recovery method of layered structure and node device for realizing data recovery method
CN102916837A
Electronic device configured to reset storage device and method of operating the same
CN107871524A
Link fault repairing method and system and related components
CN113868000A