Bus anomaly detection and processing method, device, system, equipment and medium
By introducing an abnormal detection mechanism in the bus communication of the computer system, detecting response signals and handling abnormalities, the problem of errors in functional components calculations in bus communication is solved, and the reliability and stability of the system are improved.
Patent Information
- Application Number
- CN202310524160.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-10
- Publication Date
- 2024-11-12
AI Technical Summary
In computer systems, the system may be unreliable due to various reasons for the calculation of functional components and cannot be discovered and processed in time due to unreliable reasons.
Provide a bus abnormality detection method and device, by entering the detection state on the interface connected to the bus, detecting abnormalities of the response signal, and recording information and sending an interrupt signal when an abnormality is detected, preventing the interrupt signal from being issued, ensuring that the system is in an error Not continuing to run under the circumstances.
It realizes timely detection and handling of bus exceptions, avoids calculation errors, improves the reliability and stability of the system, and ensures the accuracy of read and write operations.
Smart Images

Figure CN118939484A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to a bus anomaly detection method and device, a data processing device, a bus anomaly processing method and device, a processing system, an electronic device, and a storage medium. Background Art
[0002] The bus is a public communication trunk for transmitting information between various functional components of a computer. Various functional components transmit data through the bus. For example, the data processing component can send a read request to the storage component through the bus according to the data processing task, and the storage component responds to the read request and feeds back the read result to the data processing component through the bus. After the data processing component performs the data processing task based on the read data and stores the processing result in the storage component, it can send an interrupt signal to the superior component to notify the superior component that the current data processing task is completed. Summary of the invention
[0003] When various functional components access and communicate through the bus, access anomalies may occur due to various reasons, resulting in calculation errors of the functional components and failure to discover and process them in time. In response to the above problems, at least one embodiment of the present disclosure provides a bus anomaly detection method and device, a data processing device, a bus anomaly processing method and device, an electronic device and a storage medium, which can promptly discover and process abnormal response signals, avoid or reduce calculation errors of functional components, and avoid continuing to run downward when an error has occurred, thereby improving reliability.
[0004] At least one embodiment of the present disclosure provides a bus anomaly detection method, comprising: at an interface for accessing a bus, in response to at least one access initiating device sending an access request to at least one access receiving device, entering a detection state, so that in the detection state, response information fed back by the at least one access receiving device for each access request is detected for anomalies, and the at least one access initiating device is prevented from issuing an interrupt signal for the task corresponding to the access request; in response to anomalies in response information corresponding to at least one access request issued by the at least one access initiating device, terminating the detection state, recording bus anomaly information based on the response information with the anomaly, and issuing an interrupt signal for the response information with the anomaly; if the response information corresponding to each access request issued by the at least one access initiating device is received and there is no anomaly, terminating the detection state to stop blocking the interrupt signal issued by the access initiating device.
[0005] At least one embodiment of the present disclosure also provides a bus anomaly detection device, including a detection unit, a first processing unit, and a second processing unit. The detection unit is configured to enter a detection state at an interface for accessing a bus in response to at least one access initiating device sending an access request to at least one access receiving device, so that in the detection state, anomaly detection is performed on response information fed back by the at least one access receiving device for each access request, and the at least one access initiating device is prevented from issuing an interrupt signal for the task corresponding to the access request; the first processing unit is configured to end the detection state in response to anomaly in response to at least one access request issued by the at least one access initiating device, record bus anomaly information based on the response information with the anomaly, and issue an interrupt signal for the response information with the anomaly; the second processing unit is configured to end the detection state if all response information corresponding to each access request issued by the at least one access initiating device is received and there is no anomaly, so as to stop blocking the interrupt signal issued by the access initiating device.
[0006] At least one embodiment of the present disclosure further provides a data processing device, comprising at least one data processing unit and the bus anomaly detection device described in any embodiment of the present disclosure, wherein the at least one data processing unit is configured to send an access request to at least one storage device based on a received task.
[0007] At least one embodiment of the present disclosure also provides a bus exception handling method, comprising: in response to receiving an interrupt signal sent by the data processing device described in any embodiment of the present disclosure, determining whether there is bus exception information recorded for the data processing device; if there is bus exception information recorded for the data processing device, resetting the data processing device.
[0008] At least one embodiment of the present disclosure further provides a bus exception processing device, comprising an interrupt response unit and a reset unit, wherein the interrupt response unit is configured to respond to an interrupt signal sent by the data processing device described in any embodiment of the present disclosure, and determine whether there is bus exception information recorded for the data processing device; the reset unit is configured to reset the data processing device if there is bus exception information recorded for the data processing device.
[0009] At least one embodiment of the present disclosure further provides an electronic device, comprising: the bus exception processing device described in any embodiment of the present disclosure; and the data processing device described in any embodiment of the present disclosure.
[0010] At least one embodiment of the present disclosure further provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one computer program module; wherein the at least one computer program module is configured to be executed by the processor, for implementing the bus anomaly detection method described in any embodiment of the present disclosure, or for implementing the bus anomaly handling method described in any embodiment of the present disclosure.
[0011] At least one embodiment of the present disclosure further provides a storage medium storing non-temporary computer-readable instructions, which, when executed by a computer, implement the bus exception detection method described in any embodiment of the present disclosure, or implement the bus exception handling method described in any embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same reference numerals represent the same elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0013] Figure 1 A schematic diagram of an electronic device;
[0014] Figure 2 A flowchart of a bus anomaly detection method provided in some embodiments of the present disclosure;
[0015] Figure 3 A schematic diagram of an electronic device provided for some embodiments of the present disclosure;
[0016] Figure 4 A schematic diagram of a state change provided for some embodiments of the present disclosure;
[0017] Figure 5 A schematic diagram of another electronic device provided for some embodiments of the present disclosure;
[0018] Figure 6 A schematic block diagram of a bus anomaly detection device provided in some embodiments of the present disclosure;
[0019] Figure 7 A schematic diagram of a data storage device and a verification unit provided in some embodiments of the present disclosure;
[0020] Figure 8 A flowchart of a bus exception processing method provided in some embodiments of the present disclosure;
[0021] Fig. 9 A schematic block diagram of a bus exception processing device provided in some embodiments of the present disclosure;
[0022] Fig.10A schematic block diagram of a processing system provided for some embodiments of the present disclosure;
[0023] Fig.11 A schematic block diagram of an electronic device provided for some embodiments of the present disclosure;
[0024] Fig.12 A schematic block diagram of another electronic device provided for some embodiments of the present disclosure; and
[0025] Fig.13 A schematic diagram of a storage medium provided for some embodiments of the present disclosure. DETAILED DESCRIPTION
[0026] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0027] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0028] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0029] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0030] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more". "Plurality" should be understood as two or more.
[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0032] Figure 1 A schematic diagram of an electronic device.
[0033] like Figure 1 As shown, taking the hardware accelerator 120 as an example, the hardware accelerator 120 may include multiple acceleration units 121. For example, the neural network accelerator may include CDMA WT (Convolution Core Weight DMA), CDMA DAT (Convolution Core Data DMA), SDP (Single Data Point Processor), PDP (Planar Data Processor), CDP (Cross-channel Data Processor) and BDMA (bridge DMA) acceleration units, wherein DMA (Direct Memory Access) is a direct memory access device.
[0034] For example, the processor 130 can use software to configure the registers of the hardware accelerator 120, for example, unloading tasks (such as computing tasks) to the registers of the hardware accelerator 120 through the bus 110. The processor 130 can be, for example, a device such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), etc. Each acceleration unit 121 in the hardware accelerator 120 obtains corresponding data from the memory 140 through the bus 110 according to the configuration of the software. The memory 140 can be, for example, a DRAM (Dynamic Random Access Memory) or an SLC (System Level Cache). After each acceleration unit 121 obtains data from the memory 140, it can calculate the obtained data and then write the calculation results back to the memory 140 through the bus 110. After each acceleration unit 121 completes the assigned computing task, it can pull up the interrupt signal to use the interrupt signal to notify the processor 130 that the accelerated calculation is completed and the next step of calculation can be performed. For example, in some embodiments, each acceleration unit 121 in the hardware accelerator 120 may also communicate with other devices or components other than the processor and the memory through the bus 110 .
[0035] For example, in the above process, each acceleration unit 121 in the hardware accelerator 120 can be connected to the bus 110 through the data interface 122, and then exchange data with devices such as the memory 140 through the bus 110. The data interface 122 can be, for example, an ACE-Lite (lightweight ACE) bus interface, where ACE is AXI Coherency Extensions (AXI consistency extension) and AXI is an advanced eXtensible interface (Advanced eXtensible Interface). When the acceleration units 121 in the hardware accelerator 120 are running, various abnormal situations may occur. For example, when communicating with external devices such as the memory 140 through the bus 110, abnormalities may occur due to various reasons, causing the hardware accelerator to calculate errors or hang, and cannot be discovered and processed in time.
[0036] At least one embodiment of the present disclosure provides a bus anomaly detection method and device, a data processing device, a bus anomaly processing method and device, an electronic device and a storage medium. After detecting that an access request has been issued, the detection state is entered to start detecting the returned response signal. If an abnormality is detected, it is recorded and an interrupt signal is issued. The abnormal response signal can be discovered in time and the processor and other devices are notified to handle the abnormality, thereby avoiding or reducing the calculation error or hang of the access initiating device. Moreover, in the detection state, each access initiating device can be prevented from issuing an interrupt signal. After confirming that all response signals have been returned and the detection has passed, the interrupt signal issued by each access initiating device is released. It can ensure that the reading operation and writing operation of each access initiating device are correct before notifying the processor and other devices that the current task processing is completed, and then execute the next step of calculation, avoiding continuing to run downward when an error has occurred, and improving reliability.
[0037] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
[0038] At least one embodiment of the present disclosure provides a bus anomaly detection method, comprising: at an interface for accessing a bus, in response to at least one access initiating device sending an access request to at least one access receiving device, entering a detection state, so that in the detection state, response information fed back by at least one access receiving device for each access request is detected for anomalies, and at least one access initiating device is prevented from issuing an interrupt signal for the task corresponding to the access request; in response to anomalies in response information corresponding to at least one access request issued by at least one access initiating device, terminating the detection state, recording bus anomaly information based on the response information with the anomaly, and issuing an interrupt signal for the response information with the anomaly; if the response information corresponding to each access request issued by at least one access initiating device is received and there is no anomaly, terminating the detection state to stop blocking the interrupt signal issued by the access initiating device.
[0039] Figure 2 A flowchart of a bus anomaly detection method provided by some embodiments of the present disclosure. Figure 2 As shown, in at least one embodiment, the method includes the following operations.
[0040] Step S210: At the interface for accessing the bus, in response to at least one access initiating device sending an access request to at least one access receiving device, a detection state is entered, so that in the detection state, an abnormality detection is performed on the response information fed back by the at least one access receiving device for each access request, and the at least one access initiating device is prevented from issuing an interrupt signal for the task corresponding to the access request.
[0041] Step S220: in response to the existence of an abnormality in the response information corresponding to at least one access request issued by the at least one access initiating device, end the detection state, record bus abnormality information based on the abnormal response information, and issue an interrupt signal for the abnormal response information.
[0042] Step S230: If the response information corresponding to each access request sent by the at least one access initiating device is received and there is no abnormality, the detection state is ended to stop blocking the interrupt signal sent by the access initiating device.
[0043] Figure 3 A schematic diagram of an electronic device provided for some embodiments of the present disclosure.
[0044] like Figure 3 As shown, a bus anomaly detection device 323 may be provided at the interface 322 of the hardware accelerator 320 for accessing the bus, and the bus anomaly detection method of at least one embodiment of the present disclosure may be executed by the bus anomaly detection device 323 .
[0045] For example, in step S210, the at least one access initiating device may include at least one acceleration unit of a hardware accelerator. The hardware accelerator may include, for example, a neural network accelerator. The access receiving device may include a memory, and the memory may include, for example, a dynamic random access memory or a system-level cache, etc. However, the present disclosure is not limited to this, and the bus anomaly detection method of the embodiment of the present disclosure may also be used in scenarios where other devices and components (such as processors, controllers, etc.) initiate access requests to the outside. In the following embodiments of the present disclosure, the access initiating device is an acceleration unit of a hardware accelerator and the access receiving device is a memory as an example for explanation.
[0046] For example, the processor 330 may send a computing task to the hardware accelerator 320 through the bus 310, and each acceleration unit 321 of the hardware accelerator 320 may send a read request to the memory 340 through the bus 310 according to the computing task. In response to the read request, the memory 340 reads the computing data required for the computing task according to the destination address of the read request, and feeds back the computing data to the acceleration unit 321 through the bus 310. After the acceleration unit 321 completes the accelerated computing based on the computing data, it may send a write request to the memory 340 through the bus 310, and the write request includes the computing result data that needs to be written to the memory 340. In response to the write request, the memory 340 writes the computing result data at the destination address of the write request, and feeds back the result of the write operation to the acceleration unit 321 through the bus 310. After receiving the result of the write operation, the acceleration unit 321 may send an interrupt signal to the processor 330 to notify the processor 330 that the current computing task is completed and the next computing task can be executed.
[0047] For example, the bus may include a first channel for transmitting a write request, a second channel for transmitting write data, a third channel for transmitting response information corresponding to the write request, a fourth channel for transmitting a read request, and a fifth channel for transmitting response information corresponding to the read request. In some of the following embodiments, the response information corresponding to the write request is also referred to as the response information of the write request, and the response information corresponding to the read request is also referred to as the response information of the read request.
[0048] For example, Figure 3As shown, the bus may include 5 channels: AW channel, W channel, B channel, AR channel, and R channel. The AW / W / B channel is used for write operation, and the AW channel is used to send write request information, which can be used as the first channel mentioned above. The W channel is used to send data to be written out, which can be used as the second channel mentioned above. The B channel is used to transmit the response information returned by the access receiving device after processing the write request (i.e., the response information of the write request), which can be used as the third channel mentioned above. The response information of the write request can include a write response status signal (bresp), which is used to indicate whether the access receiving device has correctly processed the write request. The AR channel and the R channel are used for read operation, and the AR channel is used to transmit the read request, which can be used as the fourth channel mentioned above. The R channel is used to transmit the response information returned by the access receiving device after processing the read request (i.e., the response information of the read request), and the response information of the read request includes the read data (rdata), error information (rpoison), and the read response status signal (rresp). The R channel can be used as the fifth channel mentioned above.
[0049] For example, the access request sent by the at least one access initiating device to the at least one access receiving device in step S210 may include a read request and / or a write request. The response information fed back by the at least one access receiving device in step S210 for each access request may include response information for the read request and / or response information for the write request.
[0050] For example, the bus anomaly detection device 323 may monitor each access request issued by the acceleration unit 321 to a device such as the memory 340 , and may receive response information corresponding to each access request.
[0051] For example, in the idle state, in response to at least one access initiating device sending an access request to at least one access receiving device, the detection state is entered. For example, the bus abnormality detection device 323 can have multiple working states, including an idle state, a detection state, and an abnormal state. In the idle state, the bus abnormality detection device 323 detects that the acceleration unit 321 sends out at least one access request and can enter the detection state. In the detection state, the bus abnormality detection device 323 can wait for the response information corresponding to each access request sent by the acceleration unit 321, and perform abnormality detection on the response information after receiving each response information. For example, in the detection state, the bus abnormality detection device 323 can wait for the signals returned by the third channel and the fifth channel, and perform abnormality detection on the signals of the third channel and the fifth channel.
[0052] Figure 4 A schematic diagram of state changes provided for some embodiments of the present disclosure.
[0053] like Figure 4As shown, the bus anomaly detection device 323 can monitor the read / write channel. In the idle state, when an access request is detected, it enters the detection state. The detection state may include multiple sub-states (CHECK1~CHECKn, n is a positive integer). When the first access request is detected, the CHECK1 sub-state is entered, and each time a new access request is received, it switches to the next sub-state. For example, when the second access request is detected, it switches from the CHECK1 sub-state to the CHECK2 sub-state, and when the third access request is detected, it switches from the CHECK2 sub-state to the CHECK3 sub-state. The nth sub-state indicates that n access requests have been detected to be issued, and also indicates that there are currently n response information that needs to be received and detected. During the monitoring of the access request, the bus anomaly detection device 323 also receives the response information sent back by the bus, and detects each response information received. Whenever a response signal passes the detection (i.e., there is no abnormality), it switches back to the next sub-state. For example, if a response signal is received in the CHECKn sub-state and the response signal passes the detection, it switches from the CHECKn sub-state back to the CHECK(n-1) sub-state. If a response signal is received in the CHECK(n-1) sub-state and the response signal passes the detection, it switches from the CHECK(n-1) sub-state back to the CHECK(n-2) sub-state.
[0054] For example, in step S220, if the response information corresponding to the at least one access request sent by the at least one access initiating device is abnormal, the detection state is terminated and switched to the abnormal state. Figure 4 As shown, if the bus abnormality detection device 323 receives a response signal in the CHECK (n-2) state and detects an abnormality from the response signal, it switches to the abnormal state. In the abnormal state, an interrupt signal is sent to the processor 330 for the response information with the abnormality.
[0055] For example, in step S230, if the response information corresponding to each access request sent by the at least one access initiating device is received and there is no abnormality, the detection state is terminated and the idle state is restored. Figure 4 As shown, if the response signals corresponding to each access request issued are detected and passed, the bus abnormality detection device 323 can switch from the CHECKn state to the CHECK1 state in sequence and switch from the CHECK1 state to the idle state. Therefore, the idle state is a state when the response information corresponding to the access request issued by the at least one access initiating device is received and detected to be normal and no new access request is issued.
[0056] For example, after the detection state is restored to the idle state, in the idle state, when a new access request is detected again, the bus anomaly detection method of the embodiment of the present disclosure can be executed again.
[0057] For example, anomalies in the response information corresponding to an access request may include: anomalies triggered in the response signal due to an access address of the access request not meeting requirements; and / or anomalies triggered in the response signal due to errors in data read out by at least one access receiving device in response to a read request.
[0058] For example, the B channel and the R channel respectively contain a write response status signal (bresp) and a read response status signal (rresp). When these two signals show SLVERR (slave error) or DECERR (decoding error), it indicates that an error exception has occurred in the response signal. This exception occurs when the access address of the access request does not meet the requirements, for example, the access address is illegal.
[0059] For example, the R channel may include error information (rpoison). When the signal of the error information is at an abnormal level (e.g., a high level), it indicates that an error has occurred in a number of (e.g., 8) bits of data corresponding to the error information. When the access receiving device (e.g., a memory) finds that the read data is erroneous, the signal of the error information will jump to an abnormal level to indicate that the read data is erroneous.
[0060] For example, in an abnormal state, the bus abnormality detection device 323 can also record bus abnormality information. For example, an abnormal memory can be set for each access initiating device. When abnormal response information is detected, the access initiating device corresponding to the abnormal response information can be first determined as the target access initiating device, and then the abnormal parameters are written to the abnormal memory corresponding to the target access initiating device to indicate that the response information corresponding to the access request issued by the target access initiating device is abnormal.
[0061] For example, different identifications (IDs) may be set for different acceleration units in the hardware accelerator, and a memory (such as a register) may be provided for recording exceptions corresponding to each acceleration unit, and the exception memory may be located in the hardware accelerator or outside the hardware accelerator. When the bus exception detection device 323 detects that a certain response information is abnormal, the corresponding acceleration unit may be located according to the acceleration unit identification in the response information, and the exception parameters may be written into the exception memory corresponding to the acceleration unit, such as setting the bit used to characterize the exception in the exception memory to 1, so as to locate the acceleration unit with the exception, and facilitate subsequent processing.
[0062] For example, a memory (for example, a register) for recording anomalies may be provided for the hardware accelerator, and the memory may be located in the hardware accelerator or outside the hardware accelerator. When the bus anomaly detection device 323 detects that a certain response information received by the hardware accelerator is abnormal, an abnormality parameter may be written into the abnormality memory corresponding to the hardware accelerator, for example, the bit representing the abnormality is set to 1, and the memory may be queried to determine whether the hardware accelerator is abnormal.
[0063] For example, the bus abnormality detection device 323 can not only detect whether each response information received from the bus has an abnormality, but also reflect whether a response information has not been returned for a long time. For example, if the bus abnormality detection device 323 remains in the detection state for a long time (i.e., it has not changed to the idle state or abnormal state for a long time), it means that the response information corresponding to the access request has not been returned for a long time.
[0064] For example, in other embodiments, if the bus abnormality detection device 323 detects that it is in the detection state for a long time (predetermined time), it can also record this situation as an abnormal situation, or send an interrupt signal to the processor.
[0065] For example, in the detection state, the bus anomaly detection device 323 can prevent each acceleration unit from sending an interrupt signal to the processor 330 for the task corresponding to the access request. After the response signals corresponding to all the access requests that have been sent are returned and passed the detection, the bus anomaly detection device 323 can release the blocking of the interrupt signals sent by each acceleration unit.
[0066] For example, in an abnormal state, the bus abnormality detection device 323 may send an interrupt signal to the processor to notify the processor to process the abnormal situation occurring in the hardware accelerator.
[0067] Figure 5 A schematic diagram of another electronic device provided for some embodiments of the present disclosure.
[0068] like Figure 5 As shown, the bus anomaly detection device 323 can be provided with two or more interfaces 322, each interface 322 can include a bus anomaly detection device 323, the data length of a single access request processed by different interfaces can be different, and each acceleration unit 321 can send the access request to the corresponding interface 322 according to the data length of the access request. The bus anomaly detection device 323 can also include a collection unit 324, which can collect the status of the bus anomaly detection device 323 in each interface and initiate an interrupt to the processor in an abnormal state.
[0069] According to at least one embodiment of the present disclosure, after monitoring that an access request has been issued, a detection state is entered to start detecting the returned response signal. If an abnormality is detected, it is recorded and an interrupt signal is issued. The abnormal response signal can be discovered in time and the processor and other devices are notified to handle the abnormality, thereby avoiding or reducing calculation errors or hangs of the access initiating device.
[0070] According to at least one embodiment of the present disclosure, in the detection state, each access initiating device can be prevented from sending an interrupt signal. After confirming that all response signals are returned and the detection is passed, the blocking of the interrupt signal sent by each access initiating device is released. This ensures that the reading and writing operations of each access initiating device are correct, and then notifies the processor and other devices that the current task processing is completed, and then executes the next step of calculation, avoiding continuing to run downward when an error has occurred, thereby improving reliability.
[0071] According to at least one embodiment of the present disclosure, by setting the detection status, it is possible to reflect an abnormal situation in which a response signal does not return for a long time.
[0072] According to at least one embodiment of the present disclosure, the access initiating device may be a hardware accelerator, which can implement abnormality detection of a response signal received by the hardware accelerator.
[0073] According to at least one embodiment of the present disclosure, by recording abnormal parameters in an abnormal memory corresponding to a target access initiating device according to an abnormal response signal, the access initiating device having the abnormality can be located to facilitate subsequent processing.
[0074] According to at least one embodiment of the present disclosure, by detecting the signals transmitted by the two third channels and the fifth channel, abnormal signals can be detected accurately and quickly.
[0075] It should be noted that in the embodiments of the present disclosure, the execution order of the various steps of the bus anomaly detection method is not limited. Although the execution process of each step is described in a specific order above, this does not constitute a limitation on the embodiments of the present disclosure. The various steps in the bus anomaly detection method can be executed serially or in parallel, which can be determined according to actual needs. The bus anomaly detection method can also include more or fewer steps.
[0076] At least one embodiment of the present disclosure further provides a bus anomaly detection device. Figure 6 A schematic block diagram of a bus anomaly detection device provided in some embodiments of the present disclosure. Figure 6 As shown, the bus abnormality detection device 400 includes a detection unit 410 , a first processing unit 420 and a second processing unit 430 .
[0077] The detection unit 410 is configured to enter a detection state in response to at least one access initiating device sending an access request to at least one access receiving device at an interface for accessing the bus, so as to perform abnormal detection on the response information fed back by at least one access receiving device for each access request in the detection state, and prevent at least one access initiating device from sending an interrupt signal for the task corresponding to the access request. For example, the detection unit 410 may perform the following steps: Figure 2 Step S210 of the bus abnormality detection method shown.
[0078] The first processing unit 420 is configured to terminate the detection state in response to the presence of an abnormality in the response information corresponding to at least one access request issued by at least one access initiating device, record bus abnormality information based on the abnormal response information, and issue an interrupt signal for the abnormal response information. For example, the first processing unit 420 may execute the following steps: Figure 2 Step S220 of the bus abnormality detection method shown.
[0079] The second processing unit 430 is configured to terminate the detection state if the response information corresponding to each access request issued by at least one access initiating device is received and there is no abnormality, so as to stop blocking the interrupt signal issued by the access initiating device. For example, the second processing unit 430 may execute the following steps: Figure 2 Step S230 of the bus abnormality detection method shown.
[0080] For example, the detection unit 410, the first processing unit 420, and the second processing unit 430 may be hardware, software, firmware, or any feasible combination thereof. For example, the detection unit 410, the first processing unit 420, and the second processing unit 430 may be a dedicated or general circuit, chip, or device, or may be a combination of a processor and a memory. The embodiments of the present disclosure do not limit the specific implementation form of the detection unit 410, the first processing unit 420, and the second processing unit 430.
[0081] It should be noted that in the embodiment of the present disclosure, the various units of the bus anomaly detection device 400 correspond to the various steps of the aforementioned bus anomaly detection method. For the specific functions of the bus anomaly detection device 400, reference can be made to the relevant description of the bus anomaly detection method above, which will not be repeated here. Figure 6 The components and structures of the bus abnormality detection device 400 shown are merely exemplary and non-limiting. The bus abnormality detection device 400 may further include other components and structures as required.
[0082] At least one embodiment of the present disclosure further provides a data processing device, which includes at least one data processing unit and a bus anomaly detection device, and the at least one data processing unit is configured to send an access request to at least one storage device based on a received task.
[0083] For example, the data processing apparatus may include a hardware accelerator, and the data processing unit may include an acceleration unit.
[0084] For example, regarding the data processing device, you can refer to the relevant description about the hardware accelerator 320 in any of the above embodiments. Regarding the bus abnormality detection device, you can refer to the relevant description about the bus abnormality detection device 323 in any of the above embodiments. Regarding the data processing unit, you can refer to the relevant description about the access initiating device and the acceleration unit 321 in any of the above embodiments. No further details will be given here.
[0085] For example, the data processing device may further include a data storage device and a verification unit, wherein the data storage device is configured to store calculation data of at least one data processing unit, and the verification unit is configured to verify and correct data output by the data storage device.
[0086] Figure 7 A schematic diagram of a data storage device and a verification unit provided for some embodiments of the present disclosure.
[0087] like Figure 7 As shown, the data memory may be a convolution buffer (CBUF) 510, which may be used to cache convolution data (e.g., feature maps) and weights, etc., and may reduce excessive reading of frequently used data from external memory. The convolution buffer may be located at the second level of the convolution core (Convolution Core), and the convolution buffer may be implemented as a static random access memory (SRAM), such as a 512KB SRAM organized into 16 banks (storage arrays), each bank being 32KB, and the convolution buffer may have 2 input ports and three output ports.
[0088] For example, at least one embodiment of the present disclosure adds an ECC (Error Correcting Code) protection function to the convolution buffer 510. An ECC check code is generated at the input port of the convolution buffer 510 through a generation module 520 (e.g., ECC GEN), and the generated check code is stored in the convolution buffer 510 together with the data. Figure 7The WMB in represents the weight mask bit (Weight Mask Bit). ECC check is performed at the output port of the convolution buffer 510 through the check unit 530 (ECC CHECK). ECC check can detect single-bit errors (CE ERROR, Correctable ERROR) and correct them, and can also detect multi-bit errors (UC ERROR, Uncorrectable ERROR). For UC ERROR, its address in the convolution buffer 510 can be recorded and an interrupt can be sent to the processor. For CE ERROR, the bit that generates the error can be corrected. By performing ECC detection and correction on the convolution buffer 510, the protection of the data in the convolution buffer 510 can be achieved, data errors can be reduced or avoided, and then calculation errors caused by data errors can be avoided, thereby improving reliability.
[0089] At least one embodiment of the present disclosure also provides a bus exception processing method. Figure 8 The following is a flow chart of a bus exception handling method provided in some embodiments of the present disclosure. Figure 8 As shown, in at least one embodiment, the method includes the following operations.
[0090] Step S610: In response to receiving an interrupt signal sent by a data processing device, determining whether there is bus abnormality information recorded for the data processing device.
[0091] Step S620: If there is bus abnormality information recorded for the data processing device, the data processing device is reset.
[0092] For example, the bus exception handling method can be composed of Figure 3 and Figure 5 The processor 330 shown executes, and the data processing device is, for example, Figure 3 and Figure 5 The hardware accelerator 320 shown. When the hardware accelerator detects that the response signal is abnormal, it sends an interrupt signal to the processor 330. After receiving the interrupt signal, the processor 330 can first check whether the abnormal parameter is recorded in the abnormal memory corresponding to the hardware accelerator 320. If so, it means that the hardware accelerator 320 is abnormal, and the hardware accelerator 320 can be reset. The processor 330 can also check the abnormal memory corresponding to each acceleration unit to determine which acceleration unit has an abnormality.
[0093] According to at least one embodiment of the present disclosure, after receiving an interrupt signal sent by a data processing device, it is checked whether the data processing device has an abnormality, and a reset process is performed when an abnormality occurs. The abnormality of the data processing device can be processed in time, thereby avoiding or reducing calculation errors or hangs of the data processing device and ensuring the correctness of subsequent calculations.
[0094] For example, resetting the data processing device may include: waiting for the data processing unit of the data processing device to complete the current task, and then resetting the data processing device; after the reset process, reloading the task corresponding to the abnormal response signal to the data processing device.
[0095] For example, if an error is detected in the response signal corresponding to the first acceleration unit, the hardware accelerator 320 can be reset after waiting for other acceleration units to complete the processing of the currently ongoing task. For example, the reset signal of the hardware accelerator can be pulled high, maintained for a period of time, and then released. After the reset, the abnormal task can be reloaded into the register of the hardware accelerator 320 so that the first acceleration unit can reprocess the task. Since the error in the response signal may be caused by reasons such as the wrong address configured by the software, or by an error caused by occasional failure of the system, performing a reset operation and re-executing the task can solve the problem.
[0096] For example, the bus abnormality processing method may further include: in response to not receiving an interrupt signal sent by the data processing device within a predetermined time period, checking whether the current state of the bus abnormality detection device of the data processing device is a detection state; if the current state of the bus abnormality detection device of the data processing device is a detection state, resetting the processing system where the data processing device is located. The predetermined time period can be set as needed, and the embodiments of the present disclosure are not limited thereto.
[0097] For example, if the processor 330 does not receive an interrupt signal from the hardware accelerator 320 for a long time, it can check whether the hardware accelerator 320 is in a detection state. If so, it means that the hardware accelerator 320 has not returned a response signal for a long time. In this case, the processor 330 can also reset the entire processing system where the hardware accelerator 320 is located to resolve the abnormal situation.
[0098] For example, if it is detected that the response signal corresponding to the first acceleration unit has not been returned for a long time, it is possible to wait for other acceleration units to complete the processing of the currently ongoing tasks, and then reset the entire processing system where the hardware accelerator 320 is located. The entire processing system where the hardware accelerator 320 is located may include hardware accelerators, buses, processors, memories, and other devices. After the reset, the task corresponding to the abnormal response signal can be reloaded to the hardware accelerator 320.
[0099] It should be noted that in the embodiments of the present disclosure, the execution order of the various steps of the bus exception handling method is not limited. Although the execution process of each step is described in a specific order above, this does not constitute a limitation on the embodiments of the present disclosure. The various steps in the bus exception handling method can be executed serially or in parallel, which can be determined according to actual needs. The bus exception detection method can also include more or fewer steps.
[0100] At least one embodiment of the present disclosure further provides a bus exception processing device. Fig. 9 A schematic block diagram of a bus exception processing device provided in some embodiments of the present disclosure. Fig. 9 As shown, the bus exception processing device 700 may include an interrupt response unit 710 and a reset unit 720 .
[0101] The interrupt response unit 710 is configured to determine whether there is bus abnormality information recorded for the data processing device in response to receiving an interrupt signal sent by the data processing device according to any embodiment of the present disclosure. For example, the interrupt response unit 710 may perform the following steps: Figure 8 The bus exception handling method shown is step S610.
[0102] The reset unit 720 is configured to reset the data processing device if there is bus abnormality information recorded for the data processing device. For example, the reset unit 720 may perform the following steps: Figure 8 Step S620 of the bus exception handling method shown.
[0103] For example, the interrupt response unit 710 and the reset unit 720 can be hardware, software, firmware, and any feasible combination thereof. For example, the interrupt response unit 710 and the reset unit 720 can be a dedicated or general circuit, chip, or device, or can be a combination of a processor and a memory. Regarding the specific implementation form of the interrupt response unit 710 and the reset unit 720, the embodiments of the present disclosure do not limit this.
[0104] It should be noted that in the embodiment of the present disclosure, each unit of the bus exception handling device 700 corresponds to each step of the aforementioned bus exception handling method. For the specific functions of the bus exception handling device 700, reference can be made to the relevant description of the bus exception handling method above, which will not be repeated here. Fig. 9 The components and structures of the bus exception processing device 700 shown are merely exemplary and non-limiting. The bus exception processing device 700 may further include other components and structures as required.
[0105] At least one embodiment of the present disclosure further provides a processing system. Fig.10A schematic block diagram of a processing system provided in some embodiments of the present disclosure. Fig.10 As shown, the electronic device 800 may include a bus exception processing device 810 , a data processing device 820 and a bus 830 .
[0106] For example, the processing system may be a system on chip (SoC), or may be an electronic device such as a computer or a server.
[0107] For example, the bus abnormality processing device 810 may refer to the bus abnormality processing device provided in any of the above embodiments, for example, it may be Figure 3 and Figure 5 The data processing device 820 may refer to the data processing device provided in any of the above embodiments, for example, Figure 3 and Figure 5 A hardware accelerator 320 is shown.
[0108] At least one embodiment of the present disclosure further provides an electronic device, Fig.11 A schematic block diagram of an electronic device provided in some embodiments of the present disclosure. Fig.11 As shown, the electronic device 900 includes a processor 910 and a memory 920. The memory 920 is used to store non-transitory computer-readable instructions (e.g., one or more computer program modules). The processor 910 is used to run non-transitory computer-readable instructions, and when the non-transitory computer-readable instructions are run by the processor 910, one or more steps in the bus anomaly detection method and / or bus anomaly processing method described above can be executed. The memory 920 and the processor 910 can be interconnected through a bus system and / or other forms of connection mechanisms (not shown).
[0109] For example, the processor 910 may be a central processing unit (CPU), a digital signal processor (DSP), or other forms of processing units with data processing capabilities and / or program execution capabilities, such as a field programmable gate array (FPGA), etc.; for example, the central processing unit (CPU) may be an X86 or ARM architecture, etc. The processor 910 may be a general-purpose processor or a dedicated processor, and may control other components in the electronic device 900 to perform desired functions.
[0110] For example, the memory 920 may include any combination of one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, erasable programmable read-only memory (EPROM), portable compact disk read-only memory (CD-ROM), USB memory, flash memory, etc. At least one computer program module may be stored on the computer-readable storage medium, and the processor 910 may run at least one computer program module to implement various functions of the electronic device 900. Various applications and various data, as well as various data used and / or generated by the application, etc. may also be stored in the computer-readable storage medium.
[0111] It should be noted that, in the embodiments of the present disclosure, the specific functions and technical effects of the electronic device 900 can refer to the above description of the bus anomaly detection method and / or bus anomaly processing method, which will not be repeated here.
[0112] Fig.12 This is a schematic block diagram of another electronic device provided in some embodiments of the present disclosure. The electronic device 1000 is suitable for implementing the bus anomaly detection method and / or bus anomaly processing method provided in the embodiments of the present disclosure. The electronic device 1000 may be a user terminal, etc. It should be noted that: Fig.12 The electronic device 1000 shown is merely an example and does not impose any limitation on the functions and scope of use of the embodiments of the present disclosure.
[0113] like Fig.12 As shown, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 1010, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1020 or a program loaded from a storage device 1080 to a random access memory (RAM) 1030. In the RAM 1030, various programs and data required for the operation of the electronic device 1000 are also stored. The processing device 1010, the ROM 1020, and the RAM 1030 are connected to each other via a bus 1040. An input / output (I / O) interface 1050 is also connected to the bus 1040.
[0114] Typically, the following devices may be connected to the I / O interface 1050: an input device 1060 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1070 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1080 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1090. The communication device 1090 may allow the electronic device 1000 to communicate with other electronic devices wirelessly or by wire to exchange data. Although Fig.12 The electronic device 1000 is shown to have various devices, but it should be understood that it is not required to implement or possess all the devices shown, and the electronic device 1000 may alternatively implement or possess more or fewer devices.
[0115] For example, according to an embodiment of the present disclosure, a bus anomaly detection method and / or a bus anomaly handling method may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, the computer program including a program code for executing the above-mentioned bus anomaly detection method and / or bus anomaly handling method. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device 1090, or installed from a storage device 1080, or installed from a ROM 1020. When the computer program is executed by the processing device 1010, the functions defined in the bus anomaly detection method and / or bus anomaly handling method provided in an embodiment of the present disclosure may be executed.
[0116] At least one embodiment of the present disclosure further provides a storage medium for storing non-transitory computer-readable instructions. When the non-transitory computer-readable instructions are executed by a computer, the bus exception detection method and / or bus exception processing method described in any embodiment of the present disclosure can be implemented.
[0117] Fig.13 A schematic diagram of a storage medium provided in some embodiments of the present disclosure. Fig.13 As shown, the storage medium 1100 is used to store non-transitory computer-readable instructions 1110. For example, when the non-transitory computer-readable instructions 1110 are executed by a computer, one or more steps in the bus abnormality detection method and / or bus abnormality processing method described above may be executed.
[0118] For example, the storage medium 1100 may be applied to the electronic device 900. Fig.11 The memory 920 in the electronic device 900 is shown. For example, the description of the storage medium 1100 can refer to Fig.11 The corresponding description of the memory 920 in the electronic device 900 is shown and will not be repeated here.
[0119] It should be noted that the storage medium (computer-readable medium) disclosed above may be a computer-readable signal medium or a non-transitory computer-readable storage medium or any combination of the above two. Non-transitory computer-readable storage media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of non-transitory computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a non-transitory computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than a non-transitory computer readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0120] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as Hyper Text Transfer Protocol (HTTP), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0121] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0122] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains at least two Internet Protocol addresses; sends a node evaluation request including the at least two Internet Protocol addresses to a node evaluation device, wherein the node evaluation device selects an Internet Protocol address from the at least two Internet Protocol addresses and returns it; receives the Internet Protocol address returned by the node evaluation device; wherein the obtained Internet Protocol address indicates an edge node in a content distribution network.
[0123] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: receives a node evaluation request including at least two Internet Protocol addresses; selects an Internet Protocol address from the at least two Internet Protocol addresses; and returns the selected Internet Protocol address; wherein the received Internet Protocol address indicates an edge node in a content distribution network.
[0124] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, such as a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0125] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains at least one executable instruction for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0126] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0127] The functions described above herein may be performed at least in part by at least one hardware logic component. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), etc.
[0128] In the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0129] The above description is only a partial embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
[0130] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0131] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A bus anomaly detection method, comprising: In an interface for accessing a bus, in response to at least one access initiating device sending an access request to at least one access receiving device, entering a detection state, so that in the detection state, abnormality detection is performed on response information fed back by the at least one access receiving device for each access request, and the at least one access initiating device is prevented from issuing an interrupt signal for the task corresponding to the access request; In response to the presence of an abnormality in the response information corresponding to at least one of the access requests issued by the at least one access initiating device, the detection state is terminated, bus abnormality information is recorded based on the abnormal response information, and an interrupt signal is issued for the abnormal response information; If the response information corresponding to each access request sent by the at least one access initiating device is received and there is no abnormality, the detection state is ended to stop blocking the interrupt signal sent by the access initiating device.
2. The method according to claim 1, wherein: The at least one access initiating device comprises at least one acceleration unit of a hardware accelerator.
3. The method according to claim 1, wherein: The bus comprises: a first channel for transmitting a write request, a second channel for transmitting data to be written, a third channel for transmitting response information corresponding to the write request, a fourth channel for transmitting a read request and a fifth channel for transmitting response information corresponding to the read request; Performing abnormality detection on response information fed back by the at least one access receiving device in response to each access request includes: performing abnormality detection on signals of the third channel and the fifth channel.
4. The method according to claim 3, wherein: The response information corresponding to the access request contains anomalies, including: an exception triggered in the response signal because the access address of the access request does not meet the requirements; and / or An exception is triggered in the response signal due to an error in data read by the at least one access receiving device in response to the read request.
5. The method according to claim 1, wherein: Each of the access initiating devices corresponds to an abnormal storage; Record bus exception information based on the response information of the exception, including: Determine the access initiating device corresponding to the abnormal response information as the target access initiating device; An abnormal parameter is written into the abnormal memory corresponding to the target access initiating device to indicate that an abnormality occurs in the response information corresponding to the access request issued by the target access initiating device.
6. The method according to any one of claims 1 to 5, wherein: In response to at least one access initiating device sending an access request to at least one access receiving device, entering a detection state includes: in an idle state, in response to at least one access initiating device sending an access request to at least one access receiving device, entering a detection state; If the response information corresponding to each of the access requests issued by the at least one access initiating device is received and there is no abnormality, then the detection state is ended, including: if the response information corresponding to each of the access requests issued by the at least one access initiating device is received and there is no abnormality, then the detection state is ended and restored to the idle state.
7. A bus anomaly detection device, comprising: a detection unit configured to enter a detection state at an interface for accessing a bus in response to at least one access initiating device sending an access request to at least one access receiving device, so as to perform abnormality detection on response information fed back by the at least one access receiving device for each access request in the detection state, and prevent the at least one access initiating device from issuing an interrupt signal for the task corresponding to the access request; a first processing unit configured to, in response to the presence of an abnormality in response information corresponding to at least one of the access requests issued by the at least one access initiating device, end the detection state, record bus abnormality information based on the abnormal response information, and issue an interrupt signal for the abnormal response information; The second processing unit is configured to end the detection state to stop blocking the interrupt signal sent by the access initiating device if the response information corresponding to each access request sent by the at least one access initiating device is received and there is no abnormality.
8. A data processing device, comprising: at least one data processing unit configured to send an access request to at least one storage device based on the received task; The bus anomaly detection device according to claim 7.
9. The device according to claim 8, wherein: The data processing device includes a hardware accelerator, and the data processing unit includes an acceleration unit.
10. The apparatus according to claim 9, further comprising: a data storage device configured to store calculation data of at least one of the data processing units; The verification unit is configured to verify and correct the data output by the data storage.
11. A bus exception processing method, comprising: In response to receiving an interrupt signal sent by a data processing device according to any one of claims 8 to 10, determining whether there is bus abnormality information recorded for the data processing device; If there is bus abnormality information recorded for the data processing device, the data processing device is reset.
12. The method according to claim 11, further comprising: In response to not receiving an interrupt signal sent by the data processing device within a predetermined time period, checking whether a current state of a bus abnormality detection device of the data processing device is a detection state; If the current state of the bus abnormality detection device of the data processing device is the detection state, a reset process is performed on the processing system where the data processing device is located.
13. The method according to claim 11, performing a reset process on the data processing device, comprising: After the data processing unit of the data processing device completes the current task, the data processing device is reset; After the reset process, the task corresponding to the abnormal response signal is reloaded to the data processing device.
14. A bus exception processing device, comprising: an interrupt response unit, configured to determine whether there is bus abnormality information recorded for the data processing device in response to receiving an interrupt signal sent by the data processing device according to any one of claims 8 to 10; The reset unit is configured to reset the data processing device if there is bus abnormality information recorded for the data processing device.
15. A processing system comprising: bus; The bus exception processing device according to claim 14; as well as A data processing device according to any one of claims 8 to 10.
16. An electronic device, comprising: processor; A memory storing at least one computer program module; The at least one computer program module is configured to be executed by the processor to implement the bus anomaly detection method according to any one of claims 1 to 6, or to implement the bus anomaly handling method according to any one of claims 11 to 13.
17. A computer-readable storage medium storing non-transitory computer-readable instructions, which, when executed by a computer, implement the bus anomaly detection method according to any one of claims 1 to 6, or implement the bus anomaly processing method according to any one of claims 11 to 13.
Citation Information
Patent Citations
Hardware reset control method and apparatus
CN101311910A
A service board card abnormity recovery method and system
CN109918230A
Exception handling method and device, hardware protection equipment and storage medium
CN110716818A
Flash memory controller, data processing system with flash memory controller and method of operating a flash memory controller
US20170004063A1
Cited By
Bus access permission allocation method and device, equipment, medium and product
CN121349938A
Bus access right allocation method, apparatus, device, medium, and product
CN121349938B
Bus anomaly detecting methods, processing methods, apparatuses, system, device, and medium
EP4462258A1
