Data processing method and device after link exception, equipment and storage medium
Patent Information
- Application Number
- CN202211710245.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2042-12-29
AI Technical Summary
[0003]有鉴于此,本发明的目的是提供了一种链路异常后的数据处理方法、装置、计算机设备及计算机可读存储介质,用于解决当前链路异常的情况下系统访问通路出现挂死的问题
[0041]本发明实施例提供的链路异常后的数据处理方法、装置、计算机设备及计算机可读存储介质,若所述链路的链路状态处于异常情况,则通过所述响应模块响应源模块发送的访问请求,以生成第一命令;通过所述路由模块解析所述第一命令中的所述链路状态;若所述链路的链路状态处于异常情况,则将所述第一命令进行改写,以生成第二命令;及通过所述回收站模块响应所述第二命令,以得到响应数据,并将所述响应数据返回至所述源模块;本实施例通过设置回收站模块在链路异常时及时响应源模块的命令,以及响应模块、路由模块和回收站模块的数据传输,能够有效解决系统级芯片在数据传输过程中链路发生异常后(例如链路断开)整个系统的数据通路发生挂死的情况,不需要重启系统芯片,不影响其他设备工作的前提下,也可在链路异常时,响应源模块的访问请求,有效形成了链路异常的数据通路保护机制,保证了数据处理效率和系统的稳定。
Smart Images

Figure CN116455809B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of network communication technology, and in particular to a data processing method, apparatus, computer device, and computer-readable storage medium after a link anomaly. Background Technology
[0002] Existing SoC chips often include various devices. Some of these devices transmit data via links trained on them. If a link failure occurs during transmission, it can cause the entire system access path to become blocked. Access requests already received by some devices may not be able to respond promptly due to the link failure. Ultimately, recovery may be achieved by restarting the system based on link failure detection and recovery mechanisms, but this restart process will disrupt the operation of other devices. Therefore, the situation where the system access path becomes blocked due to a link failure cannot be effectively resolved. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide a data processing method, apparatus, computer device and computer-readable storage medium after a link failure, for solving the problem of system access path being stuck in the event of a current link failure.
[0004] One aspect of this invention provides a data processing method after a link failure, applied to a system-on-a-chip (SoC), the SoC including a response module, a routing module, and a recycle bin module; the data processing method includes:
[0005] Obtain the link status;
[0006] If the link status is abnormal, the response module generates a first command based on the access request sent by the source module and sends the first command to the source module. The first command includes the link status and pre-configured data corresponding to the link status, which instructs the source module to send subsequent access requests to the routing module when the link status is abnormal.
[0007] The routing module receives a new access request sent by the source module based on the first command. The new access request includes the link status, the pre-configured data, and the access request data.
[0008] If the link status is abnormal, the first command new access request is rewritten to generate a second command, and the second command is sent to the recycle bin module. The second command includes the link status, data obtained by transforming the pre-configured data based on pre-configured command rewriting rules, and the request data of the access request; and
[0009] The recycling module responds to the second command to obtain response data and then returns the response data to the source module.
[0010] Optionally, the system-on-a-chip includes multiple destination modules with link layer data transmission capabilities;
[0011] The step of obtaining the link status of the link further includes:
[0012] The destination module obtains the link status in real time by receiving the access request sent by the source module. The link status includes whether the link status is normal or abnormal.
[0013] Optionally, each of the target modules is pre-configured with the response module;
[0014] The step of generating a first command based on the access request sent by the source module through the response module and sending the first command to the source module further includes:
[0015] The response module in the destination module obtains the pre-configured response timing corresponding to the communication protocol between the source module and the destination module based on the link status.
[0016] Based on the link status, determine the pre-configured target abnormal state and the corresponding pre-configured target data; and
[0017] Based on the target abnormal state and pre-configured target data, the access request is responded to according to the pre-configured response timing corresponding to the source module to generate the first command and send the first command to the source module.
[0018] Optionally, the method further includes:
[0019] If the link status of the link is abnormal, and the same destination module receives multiple access requests from multiple source modules within a preset time period, then the same destination module will respond to each of the multiple access requests to obtain a first command corresponding to each of the multiple access requests, and return each of the multiple access requests to its corresponding source module; and
[0020] The routing module receives new access requests generated and sent by multiple source modules based on corresponding first commands, caches the multiple new access requests, and processes the multiple new access requests in the order they are received.
[0021] Optionally, the step of rewriting the new access request to generate a second command when the link state of the link is abnormal further includes:
[0022] If the link status of the link is abnormal, the new access request is parsed to determine the target communication protocol between the destination module that sent the first command and the source module that accessed the destination module;
[0023] Based on the target communication protocol, a pre-configured command rewriting rule corresponding to the target communication protocol is determined from multiple pre-configured command rewriting rules; and
[0024] The new access request is rewritten based on the pre-configured command rewriting rules corresponding to the target communication protocol to generate the second command.
[0025] Optionally, the method further includes: pre-configuring a response module in each destination module, wherein the pre-configuration of the response module includes:
[0026] The response timing corresponding to the communication protocol between the source module and the destination module is pre-configured according to user needs in the event of an abnormal link status; and
[0027] Based on each abnormal situation of the link status, configure the abnormal status corresponding to each abnormal situation of the link status and the pre-configured data corresponding to each abnormal status.
[0028] Optionally, sending the second command to the recycle bin module further includes:
[0029] If the link status of the link is abnormal, the recycle bin module and the corresponding sending path are determined based on the corresponding routing rules, and the second command is sent to the recycle bin module according to the sending path.
[0030] Another aspect of this invention provides a data processing device after a link failure, applied to a system-on-a-chip (SoC), the SoC including a response module, a routing module, and a recycle bin module; the device includes:
[0031] The acquisition module is used to acquire the link status of the link;
[0032] An abnormal response module is used to generate a first command based on the access request sent by the source module if the link status of the link is abnormal, and send the first command to the source module. The first command includes the link status and pre-configured data corresponding to the link status, which is used to instruct the source module to send subsequent access requests to the routing module when the link status is abnormal.
[0033] The receiving module is configured to receive a new access request sent by the source module based on the first command through the routing module. The new access request includes the link status, the pre-configured data, and the request data of the access request.
[0034] The rewriting module is used to rewrite the new access request when the link status is abnormal, to generate a second command, and send the second command to the recycle bin module. The second command includes the link status, data obtained by transforming the pre-configured data based on pre-configured command rewriting rules, and the request data of the access request; and
[0035] The recycle bin module response module is used to respond to the second command through the recycle bin module to obtain response data and return the response data to the source module.
[0036] Another aspect of the present invention provides a computer device, the computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the data processing method after the link failure as described above.
[0037] Another aspect of this invention provides a system-on-a-chip, comprising: a plurality of destination modules, a routing module, and a recycle bin module, each having a link-layer data transmission function, wherein the destination modules are used to receive and respond to access requests sent by source modules;
[0038] The destination module is pre-configured with a response module. The response module is used to: respond to the access request sent by the source module when the link status of the link is abnormal, generate a first command, and send the first command to the source module. The first command includes the link status and pre-configured data corresponding to the link status, which is used to instruct the source module to send subsequent access requests to the routing module when the link status is abnormal.
[0039] The routing module is used to: rewrite the new access request to generate a second command when the link status of the link is abnormal, and send the second command to the recycle bin module. The second command includes the link status, data obtained by converting the pre-configured data based on the pre-configured command rewriting rules, and the request data of the access request.
[0040] The recycle bin module is used to: receive and respond to the second command sent by the routing module to obtain response data, and return the response data to the source module.
[0041] The data processing method, apparatus, computer device, and computer-readable storage medium provided in this embodiment of the invention address link anomaly. If the link status is abnormal, the response module responds to the access request sent by the source module to generate a first command; the routing module parses the link status in the first command; if the link status is abnormal, the first command is rewritten to generate a second command; and the recycle bin module responds to the second command to obtain response data, which is then returned to the source module. This embodiment, by setting the recycle bin module to promptly respond to the source module's command during link anomalies, and by managing the data transmission between the response module, routing module, and recycle bin module, effectively solves the problem of the entire system's data path becoming stuck after a link anomaly (e.g., link disconnection) occurs during data transmission in a system-on-a-chip (SoC). It does not require restarting the SoC and does not affect the operation of other devices. Furthermore, it can respond to the source module's access request during link anomalies, effectively forming a data path protection mechanism for link anomalies, ensuring data processing efficiency and system stability.
[0042] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments, but this is not intended to limit the present invention. Attached Figure Description
[0043] Figure 1 This illustration shows an example flowchart of the data processing method for link failures according to the present invention.
[0044] Figure 2 This diagram schematically illustrates the connection structure of the response module in the data processing method following a link anomaly according to the present invention.
[0045] Figure 3 This schematically illustrates the connection structure of the reasoning module in the data processing method after a link failure according to the present invention;
[0046] Figure 4 A block diagram of a data processing apparatus after a link failure according to Embodiment 2 of the present invention is shown schematically;
[0047] Figure 5 The illustration shows a schematic diagram of the hardware structure of a computer device suitable for implementing a data processing method after a link failure, according to Embodiment 4 of the present invention. Detailed Implementation
[0048] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without inventive effort are within the scope of protection of this invention.
[0049] It should be noted that the descriptions involving "first," "second," etc., in the embodiments of the present invention are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.
[0050] In the description of this invention, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are performed, but are only used to facilitate the description of this invention and to distinguish each step, and therefore should not be construed as a limitation of this invention.
[0051] Example 1
[0052] Please see Figure 1 This document illustrates a flowchart of the data processing method following a link failure according to an embodiment of the present invention. It is understood that the flowchart in this embodiment is not intended to limit the order of execution steps. The data processing method following a link failure is applied to a system-on-a-chip (SoC). The SoC includes a response module, a routing module, and a recycle bin module. The following description uses the SoC as the execution entity as an example:
[0053] like Figure 1 As shown, the data processing method after a link anomaly may include steps S100 to S108, wherein:
[0054] Step S100: Obtain the link status of the link.
[0055] The link status includes a normal link status or an abnormal link status. The abnormal link status includes, but is not limited to, an abnormal link status such as a disconnected link status or an abnormal link status such as a data transmission error.
[0056] In an exemplary embodiment, the system-on-a-chip (SoC) includes multiple destination modules with link-layer data transmission capabilities. The destination modules receive and respond to access requests initiated by source modules through these link-layer data transmission capabilities. Step S100, which involves obtaining the link status of the link, further includes: the destination module receiving the access request from the source module obtaining the link status in real time. The link status includes whether the link is in a normal state or an abnormal state. In this embodiment, the SoC includes multiple functional modules and multiple destination modules. During data interaction, not every destination module is simultaneously transmitting data. Therefore, only the destination module receiving the access request needs to monitor and obtain the link status in real time. This not only reduces resource consumption but also allows for a corresponding response to the access request based on the real-time monitored link status. This effectively ensures that even when the SoC link malfunctions, the system data and control paths will not become stuck, and guarantees effective data transmission and interaction.
[0057] Step S102: If the link status of the link is in an abnormal state, the response module generates a first command based on the access request sent by the source module and sends the first command to the source module. The first command includes the link status and pre-configured data corresponding to the link status, which is used to instruct the source module to send subsequent access requests to the routing module when the link status is in an abnormal state.
[0058] To ensure that data transmission will not be interrupted even if a link failure occurs during data transmission, in an exemplary embodiment, the method further includes: pre-configuring a response module in each destination module. The pre-configuration of the response module includes: pre-configuring, according to user requirements, the response timing corresponding to the communication protocol between the source and destination modules when the link status is abnormal; and pre-configuring, according to each abnormal link status, an abnormal state corresponding to each abnormal link status and pre-configured data corresponding to each abnormal state. Combined with... Figure 2In this embodiment, a response module is configured in each destination module. Each response module includes a configuration module and a timing control module. The configuration module is used to set pre-configured codes or pre-configured specific characters to represent the abnormal conditions corresponding to different link states, based on the different abnormal conditions of the link state. The configuration module is also used to configure pre-configured data corresponding to each abnormal state according to the system-on-a-chip environment, for example, setting certain specific signal values according to the system environment. During application, when the link state is in an abnormal state, the access request sent by the source module is remapped according to the determined abnormal state and the corresponding pre-configured data. A communication protocol for data interaction is pre-configured between each destination module and the corresponding source module. The timing control module is used in each destination module to configure the response timing corresponding to the access from the source module when the link state is in an abnormal state, based on user needs and the corresponding communication protocol, such as the read / write response timing of AXI. During application, when the link state is in an abnormal state, the access request sent by the source module is responded to according to the response timing determined by the communication protocol.
[0059] In an exemplary embodiment, each destination module is pre-configured with the response module. Step S102, which generates a first command based on the access request sent by the source module and sends the first command to the source module, may further include: obtaining a pre-configured response timing sequence corresponding to the communication protocol between the source module and the destination module based on the link status using the response module in the destination module; determining a pre-configured target abnormal state and corresponding pre-configured target data based on the link status; and responding to the access request according to the pre-configured response timing sequence corresponding to the source module based on the target abnormal state and the pre-configured target data, thereby generating the first command and sending the first command to the source module. In this embodiment, when the link is in an abnormal state, the timely response from the pre-configured response module in the destination module effectively avoids a deadlock in the internal transmission network (i.e., the data path). In other embodiments, if the link status is normal, the sending and receiving modules in the destination module process the access request sent by the source module according to the normal response timing sequence and return the corresponding response data to the source module.
[0060] Step S104: The routing module receives a new access request sent by the source module based on the first command. The new access request includes the link status, the pre-configured data, and the access request data.
[0061] Step S106: In the case that the link status is abnormal, the new access request is rewritten to generate a second command, and the second command is sent to the recycle bin module. The second command includes the link status, data obtained by converting the pre-configured data based on the pre-configured command rewriting rules, and the request data of the access request.
[0062] In an exemplary embodiment, step S106, which involves rewriting the new access request to generate a second command when the link state is abnormal, can also be achieved through the following operations: parsing the new access request when the link state is abnormal, determining the target communication protocol between the destination module sending the first command and the source module accessing the destination module; determining a pre-configured command rewriting rule corresponding to the target communication protocol from a plurality of pre-configured command rewriting rules based on the target communication protocol; and rewriting the new access request based on the pre-configured command rewriting rule corresponding to the target communication protocol to generate the second command. Combined with... Figure 3 In this embodiment, the routing module is used for state resolution, command caching, command rewriting, and command sending. The routing module receives new access requests from the source module, parses the request, and if it finds that the current link state is abnormal, it rewrites the new access request according to the command rewriting rules determined by the communication protocol, such as address mapping rewriting rules, and generates a second command. Even if the current link state is abnormal, the access request is still processed according to the set command rewriting rules to prevent the system's data path from becoming blocked.
[0063] In an exemplary embodiment, the method further includes: when the link status of the link is abnormal, if the same destination module receives multiple access requests sent by multiple source modules within a preset time period, the same destination module responds to the multiple access requests respectively to obtain a first command corresponding to each of the multiple access requests, and returns the multiple access requests to their respective source modules; and the routing module receives new access requests generated and sent by the multiple source modules based on the corresponding first commands, caches the multiple new access requests, and processes the multiple new access requests sequentially according to the order in which they are received. In this embodiment, when the routing module receives new access requests generated by multiple source modules responding to multiple first commands sent by the same destination module within a short time period or a preset time period, and the requests received by the routing module in chronological order are still being processed before the subsequent requests are processed, the multiple new access requests are cached in an orderly manner to facilitate orderly processing later, effectively improving data processing efficiency and system stability.
[0064] In an exemplary embodiment, sending the second command to the recycle bin module further includes: when the link status is abnormal, determining the recycle bin module and the corresponding sending path based on the corresponding routing rules, and sending the second command to the recycle bin module according to the sending path. In this embodiment, there can be multiple sending paths. Based on the system-on-a-chip's environment, resources, load, and other conditions, the corresponding routing rules and sending paths can be flexibly configured in advance by software, facilitating data transmission during the application process.
[0065] Step S108: The recycling module responds to the second command to obtain response data, and then returns the response data to the source module.
[0066] In this embodiment, a recycle bin module is set up so that even if the link is in an abnormal situation, the recycle bin module can respond to the access request of the source module in a timely manner and indicate to the source module that the current link is in an abnormal situation through the returned response data.
[0067] This embodiment has at least the following beneficial effects: By setting the recycle bin module to respond promptly to the commands of the source module when the link is abnormal, as well as the data transmission of the response module, routing module and recycle bin module, it can effectively solve the problem of the entire system's data path being stuck when the link of the system-on-a-chip fails during data transmission (e.g., the link is disconnected). Without restarting the system chip and without affecting the operation of other devices, it can also respond to the access requests of the source module when the link is abnormal, effectively forming a data path protection mechanism for link abnormalities, ensuring data processing efficiency and system stability.
[0068] Example 2
[0069] Please continue reading. Figure 4 This diagram schematically illustrates a block diagram of the data processing apparatus after a link failure according to the present invention. In this embodiment, the data processing apparatus after a link failure may include or be divided into one or more program modules. One or more program modules are stored in a storage medium and executed by one or more processors to complete the present invention and implement the aforementioned data processing method after a link failure. The program module referred to in this embodiment of the present invention refers to a series of computer program instruction segments capable of performing a specific function, which is more suitable than the program itself for describing the execution process of the data processing apparatus after a link failure in the storage medium. The following description will specifically introduce the functions of each program module in this embodiment. This data processing apparatus after a link failure is applied to a system-on-a-chip (SoC), which includes a response module, a routing module, and a recycle bin module.
[0070] like Figure 4As shown, the data processing device after the link fails may include an acquisition module 400, an exception response module 402, a receiving module 404, a rewriting module 406, and a recycle bin module response module 408, wherein:
[0071] The acquisition module 400 is used to acquire the link status of the link;
[0072] An anomaly response module 402 is used to generate a first command based on the access request sent by the source module if the link status of the link is in an abnormal situation, and send the first command to the source module. The first command includes the link status and pre-configured data corresponding to the link status, which is used to instruct the source module to send subsequent access requests to the routing module when the link status is in an abnormal situation.
[0073] The receiving module 404 is configured to receive a new access request sent by the source module based on the first command through the routing module, wherein the new access request includes the link status, the pre-configured data, and the access request data;
[0074] The rewriting module 406 is configured to rewrite the new access request to generate a second command when the link status is abnormal, and send the second command to the recycle bin module. The second command includes the link status, data obtained by transforming the pre-configured data based on pre-configured command rewriting rules, and the request data of the access request.
[0075] The recycle bin module response module 408 is used to respond to the second command through the recycle bin module to obtain response data and return the response data to the source module.
[0076] Example 3
[0077] In this embodiment, a system-on-a-chip (SoC) is provided for executing the data processing method following a link anomaly as described in the above embodiment. The SoC includes: multiple destination modules, routing modules, and recycle bin modules equipped with link-layer data transmission capabilities. The destination modules are used to receive and respond to access requests sent by the source modules.
[0078] The destination module is pre-configured with a response module, which is used to: respond to the access request sent by the source module when the link status is abnormal, and generate a first command.
[0079] The first command is sent to the source module, and the first command includes the link status and pre-configured data corresponding to the link status for instructing the source module to send subsequent access requests to the routing module when the link status is abnormal.
[0080] The routing module is used to: rewrite the new access request to generate a second command when the link status of the link is abnormal, and send the second command to the recycle bin module. The second command includes the link status, data obtained by converting the pre-configured data based on the pre-configured command rewriting rules, and the request data of the access request.
[0081] The recycle bin module is used to: receive and respond to the second command sent by the routing module to obtain response data, and return the response data to the source module.
[0082] Example 4
[0083] See Figure 5 This is a schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing a data processing method after a link failure, according to Embodiment 4 of the present invention. In this embodiment, the computer device 10000 is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions. The computer device 10000 can be a smartphone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server, or cabinet server (including independent servers or server clusters composed of multiple servers), gateway, etc. Figure 5 As shown, the computer device 10000 includes, but is not limited to, a memory 10010, a processor 10020, and a network interface 10030 that can be interconnected via a system bus. Wherein:
[0084] In this embodiment, the memory 10010 includes at least one type of computer-readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10010 may be an internal storage unit of the computer device 10000, such as the hard disk or memory of the computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the computer device 10000. Of course, the memory 10010 may also include both the internal storage unit and the external storage device of the computer device 10000. In this embodiment, the memory 10010 is typically used to store the operating system and various application software installed on the computer device 10000, such as the program code of the data processing device after a link failure in the above embodiment. Furthermore, the memory 10010 can also be used to temporarily store various types of data that have been output or will be output.
[0085] In some embodiments, processor 10020 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. This processor 10020 is typically used to control the overall operation of computer device 10000, such as performing control and processing related to data interaction or communication with computer device 10000. In this embodiment, processor 10020 is used to run program code stored in memory 10010 or process data, for example, to run a data processing device after a link failure, to implement the data processing method after a link failure described in the above embodiments.
[0086] The network interface 10030 may include a wireless network interface or a wired network interface. This network interface 10030 is typically used to establish communication connections between the computer device 10000 and other electronic devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal via a network, establishing a data transmission channel and communication connection between the computer device 10000 and the external terminal. The network may be an intranet, the Internet, GSM, WCDMA, 4G, 5G, Bluetooth, Wi-Fi, or other wireless or wired networks.
[0087] It should be pointed out that, Figure 5 Only a computer device 10000 with components 10010-10030 is shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0088] In this embodiment, the data processing device after the link failure stored in the memory 10010 can be further divided into one or more program modules. The one or more program modules are stored in the memory 10010 and executed by one or more processors (processor 10020 in this embodiment) to complete the present invention.
[0089] For example, Figure 4 The diagram shows a program module schematic of the data processing device after a link failure, according to Embodiment 2. In this embodiment, the data processing device after a link failure can be divided into an acquisition module 400, an exception response module 402, a receiving module 404, a rewriting module 406, and a recycle bin module.
[0090] Response module 408. The program module referred to in this invention is a series of computer program instruction segments capable of performing a specific function, which is more suitable than a program for describing the data processing device after the link anomaly.
[0091] The execution process in computer device 10000 is described below. The specific functions of program modules 400-408 have been described in detail in Embodiment 2, and will not be repeated here.
[0092] Example 5
[0093] This embodiment also provides a computer-readable storage medium storing a computer program thereon, which, when executed by at least one processor, implements the steps of the data processing method after a link failure in this embodiment.
[0094] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, server, app store, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as the hard disk or memory of the computer device. In other embodiments,
[0095] Computer-readable storage media can also be external storage devices of a computer device, such as plug-in hard drives, smart media cards (SMCs), and secure data storage devices.
[0096] Secure Digital (SD) cards, flash cards, etc. Of course, computer-readable storage media can also include both internal storage units and external storage devices of a computer device. In this embodiment, the computer-readable storage medium is typically used to store operations installed on the computer device.
[0097] The system and various application software, such as the program code of the stuttering detection method in the embodiment. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or will be output.
[0098] Obviously, those skilled in the art should understand that the modules or steps of the above-described embodiments of the present invention can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computing device-executable programs.
[0099] The sequence code is implemented so that it can be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described can be performed in a different order than that shown here, or it can be...
[0100] These can be implemented by fabricating them into individual integrated circuit modules, or by fabricating multiple modules or steps into a single integrated circuit module. Thus, the embodiments of the present invention are not limited to any particular hardware and software combination.
[0101] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0102] The above are merely preferred embodiments of the present invention and are not intended to limit the scope of the patent. Any infringement arising from them is prohibited.
[0103] Equivalent structural or procedural transformations made based on the description and drawings of this invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of this invention.
Claims
1. A data processing method after a link failure, characterized in that, Applied to a system-on-a-chip (SoC), the SoC includes a response module, a routing module, a recycle bin module, and a destination module; the data processing method includes: Obtain the link status; If the link status is abnormal, the response module generates a first command based on the access request sent by the source module and sends the first command to the source module. The first command includes the link status and pre-configured data corresponding to the link status, which is used to instruct the source module to send a new access request to the routing module when the link status is abnormal. The routing module receives a new access request sent by the source module based on the first command. The new access request includes the link status, the pre-configured data, and the access request data. If the link status is abnormal, the new access request is rewritten to generate a second command, and the second command is sent to the recycle bin module. The second command includes the link status, data obtained by transforming the pre-configured data based on pre-configured command rewriting rules, and the request data of the access request; and The recycling module responds to the second command to obtain response data and then returns the response data to the source module. Each of the target modules is pre-configured with the response module; The step of generating a first command based on the access request sent by the source module through the response module and sending the first command to the source module further includes: The response module in the destination module obtains the pre-configured response timing corresponding to the communication protocol between the source module and the destination module based on the link status. Based on the link status, determine the pre-configured target abnormal state and the corresponding pre-configured target data; and Based on the target abnormal state and pre-configured target data, the access request is responded to according to the pre-configured response timing corresponding to the source module to generate the first command and send the first command to the source module; The method of rewriting the new access request to generate a second command when the link status of the link is abnormal also includes: If the link status of the link is abnormal, the new access request is parsed to determine the target communication protocol between the destination module that sent the first command and the source module that accessed the destination module; Based on the target communication protocol, a pre-configured command rewriting rule corresponding to the target communication protocol is determined from multiple pre-configured command rewriting rules; and The new access request is rewritten based on the pre-configured command rewriting rules corresponding to the target communication protocol to generate the second command.
2. The data processing method after a link anomaly according to claim 1, characterized in that, The system-on-a-chip includes multiple destination modules with link-layer data transmission capabilities; The step of obtaining the link status of the link further includes: The destination module obtains the link status in real time by receiving the access request sent by the source module. The link status includes whether the link status is normal or abnormal.
3. The data processing method after a link anomaly according to any one of claims 1 to 2, characterized in that, The method further includes: If the link status of the link is abnormal, and the same destination module receives multiple access requests from multiple source modules within a preset time period, then the same destination module will respond to each of the multiple access requests to obtain a first command corresponding to each of the multiple access requests, and return each of the multiple access requests to its corresponding source module; and The routing module receives new access requests generated and sent by multiple source modules based on corresponding first commands, caches the multiple new access requests, and processes the multiple new access requests in the order they are received.
4. The data processing method after a link anomaly according to claim 1, characterized in that, The method further includes: pre-configuring a response module in each destination module, wherein the pre-configuration of the response module includes: The response timing corresponding to the communication protocol between the source module and the destination module is pre-configured according to user needs in the event of an abnormal link status; and Based on each abnormal situation of the link status, configure the abnormal status corresponding to each abnormal situation of the link status and the pre-configured data corresponding to each abnormal status.
5. The data processing method after a link anomaly according to claim 1, characterized in that, Sending the second command to the recycle bin module further includes: If the link status of the link is abnormal, the recycle bin module and the corresponding sending path are determined based on the corresponding routing rules, and the second command is sent to the recycle bin module according to the sending path.
6. A data processing device after a link failure, characterized in that, Applied to a system-on-a-chip (SoC), the SoC includes a response module, a routing module, a recycle bin module, and a destination module; the device includes: The acquisition module is used to acquire the link status of the link; An abnormal response module is used to generate a first command based on the access request sent by the source module if the link status of the link is abnormal, and send the first command to the source module. The first command includes the link status and pre-configured data corresponding to the link status, which is used to instruct the source module to send a new access request to the routing module when the link status is abnormal. The receiving module is configured to receive a new access request sent by the source module based on the first command through the routing module. The new access request includes the link status, the pre-configured data, and the access request data. The rewriting module is used to rewrite the new access request when the link status is abnormal, to generate a second command, and send the second command to the recycle bin module. The second command includes the link status, data obtained by transforming the pre-configured data based on pre-configured command rewriting rules, and the request data of the access request; and The recycle bin module response module is used to respond to the second command through the recycle bin module to obtain response data and return the response data to the source module; Each of the target modules is pre-configured with the response module; The step of generating a first command based on the access request sent by the source module through the response module and sending the first command to the source module further includes: The response module in the destination module obtains the pre-configured response timing corresponding to the communication protocol between the source module and the destination module based on the link status. Based on the link status, determine the pre-configured target abnormal state and the corresponding pre-configured target data; and Based on the target abnormal state and pre-configured target data, the access request is responded to according to the pre-configured response timing corresponding to the source module to generate the first command and send the first command to the source module; The method of rewriting the new access request to generate a second command when the link status of the link is abnormal also includes: If the link status of the link is abnormal, the new access request is parsed to determine the target communication protocol between the destination module that sent the first command and the source module that accessed the destination module; Based on the target communication protocol, a pre-configured command rewriting rule corresponding to the target communication protocol is determined from multiple pre-configured command rewriting rules; and The new access request is rewritten based on the pre-configured command rewriting rules corresponding to the target communication protocol to generate the second command.
7. A computer device, the computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the data processing method after a link failure as described in any one of claims 1 to 5.
8. A system-on-a-chip, characterized in that, include: Multiple destination modules, routing modules, and recycle bin modules equipped with link layer data transmission capabilities, wherein the destination modules are used to receive and respond to access requests sent by the source modules; The destination module is pre-configured with a response module. The response module is used to: respond to the access request sent by the source module when the link status of the link is abnormal, generate a first command, and send the first command to the source module. The first command includes the link status and pre-configured data corresponding to the link status for instructing the source module to send a new access request to the routing module when the link status is abnormal. The routing module is used to: rewrite the new access request to generate a second command when the link status of the link is abnormal, and send the second command to the recycle bin module. The second command includes the link status, data obtained by converting the pre-configured data based on the pre-configured command rewriting rules, and the request data of the access request. The recycle bin module is used to: receive and respond to the second command sent by the routing module to obtain response data, and return the response data to the source module; Each of the target modules is pre-configured with the response module; The system further includes generating a first command based on the access request sent by the source module through the response module, and sending the first command to the source module. The response module in the destination module obtains the pre-configured response timing corresponding to the communication protocol between the source module and the destination module based on the link status; Based on the link status, determine the pre-configured target abnormal state and the corresponding pre-configured target data; and Based on the target abnormal state and pre-configured target data, the access request is responded to according to the pre-configured response timing corresponding to the source module to generate the first command and send the first command to the source module; The method of rewriting the new access request to generate a second command when the link status of the link is abnormal also includes: If the link status of the link is abnormal, the new access request is parsed to determine the target communication protocol between the destination module that sent the first command and the source module that accessed the destination module; Based on the target communication protocol, a pre-configured command rewriting rule corresponding to the target communication protocol is determined from multiple pre-configured command rewriting rules; and The new access request is rewritten based on the pre-configured command rewriting rules corresponding to the target communication protocol to generate the second command.
Citation Information
Patent Citations
Exception handling method and system, off-chip logic device and chip
CN101853192A
Network-on-chip layout optimization method and device
CN105450481A