Information processing device and information processing program
By dynamically switching log information output to a log management memory and storing critical logs in non-volatile memory during abnormalities, the device addresses data interference and memory wear issues, ensuring reliable log acquisition and extended lifespan.
Patent Information
- Application Number
- JP2023023265
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2024-08-29
AI Technical Summary
Existing information processing devices face challenges in reliably acquiring log information from sub-processors without causing data interference on inter-processor communication lines and preventing premature wear of non-volatile memory due to excessive data storage.
The solution involves switching the output destination of log information from sub-processors to a log management memory under predetermined conditions, such as transitioning to a sleep state or firmware updates, and storing critical log information in non-volatile memory when abnormalities occur, thereby reducing data flow on inter-processor communication lines and maintaining memory lifespan.
This approach effectively suppresses data flow on inter-processor communication lines, ensures reliable log information acquisition during sub-processor abnormalities, and prevents premature memory wear, allowing for comprehensive log management even after resets.
Smart Images

Figure 2024117265000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device and an information processing program. [Background technology]
[0002] 2. Description of the Related Art In information processing devices, log information indicating the operating status of devices such as processors is acquired.
[0003] For example, Patent Document 1 discloses an image forming apparatus having a main CPU and a sub-CPU, in which, when a log acquisition mode is selected by a user, the sub-CPU acquires log information of the main CPU instead of the main CPU. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2012-006389 A Summary of the Invention [Problem to be solved by the invention]
[0005] There is an information processing device including a processor and one or more sub-processors. In such an information processing device, not only log information showing the operating status of the processor but also log information showing the operating status of the sub-processors may be acquired. Here, the log information of the sub-processor that is particularly desired to be acquired is log information when an abnormality occurs in the operation of the sub-processor.
[0006] It is conceivable to store the log information for the sub-processor in a volatile memory communicatively connected to the sub-processor, but doing so may cause a problem that if an abnormality occurs in the operation of the sub-processor and the sub-processor and the volatile memory are reset, the log information will be erased. It is also conceivable to prepare a non-volatile memory communicatively connected to the sub-processor and store the log information for the sub-processor in the non-volatile memory, but since non-volatile memory has a lifespan (lifespan in terms of the number of writes), if log information is always stored in the non-volatile memory, it may become difficult to guarantee the product lifespan of the non-volatile memory (and thus the sub-processor).
[0007] It is also possible to provide a separate log management memory and store the log information of the sub-processor in the log management memory. In this way, even if a malfunction occurs in the operation of the sub-processor, the log information of the sub-processor at the time of the malfunction can be retained even if the sub-processor (and the volatile memory connected to it) is reset, as long as the log management memory is not reset.
[0008] Although the sub-processor is connected to the processor by an inter-processor communication line in order to communicate with the processor, there are circumstances in which not many communication lines (signal lines) can be drawn from the sub-processor due to restrictions such as the number of pins and circuit size of the sub-processor. Therefore, there are cases where the log information of the sub-processor must be stored in the log management memory from the sub-processor via the inter-processor communication line. In this case, if the log information of the sub-processor is always stored in the log management memory via the inter-processor communication line, the amount of data flowing through the inter-processor communication line will increase, and there is a risk that communication between the processor and the sub-processor that is actually necessary will be hindered.
[0009] The object of the present invention is to reliably obtain log information of a sub-processor when an abnormality occurs in the operation of the sub-processor, while reducing the amount of data flowing through the inter-processor communication line connecting the processor and the sub-processor and preventing the product life of the sub-processor from being shortened. [Means for solving the problem]
[0010] The invention of claim 1 is an information processing device comprising a processor, a sub-processor communicatively connected to the processor via an inter-processor communication line, a sub-memory communicatively connected to the sub-processor, and a log management memory communicatively connected to the processor and the sub-processor via the inter-processor communication line, wherein when operation of the sub-processor satisfies certain conditions that are likely to cause abnormalities in the operation of the sub-processor, the output destination of log information indicating the operating status of the sub-processor output from the sub-processor is switched from the sub-memory to the log management memory. The invention of claim 2 is the information processing device described in claim 1, characterized in that the specified condition is at least one of when the sub-processor starts to transition to a sleep state, when the sub-processor starts to return from a sleep state, when the sub-processor starts a firmware update process, or when the sub-processor is subjected to a load greater than a specified load. The invention according to claim 3 is the information processing device according to claim 1, characterized in that the sub-processor stores the log information in the log management memory without passing through the processor. The invention of claim 4 is the information processing device described in claim 1, characterized in that a plurality of combinations of the sub-processor and the sub-memory are provided, the log information of the sub-processor that satisfies the specified condition is output to the log management memory, and the log information of the sub-processor whose operating state does not satisfy the specified condition is output to the sub-memory connected to it. The invention of claim 5 is the information processing device described in claim 1, characterized in that a plurality of combinations of the sub-processors and the sub-memories are provided, and when an abnormality occurs in the operation of a first sub-processor among the plurality of sub-processors, the processor stores in non-volatile memory the log information about the second sub-processor stored in the sub-memory connected to a second sub-processor among the plurality of sub-processors that is different from the first sub-processor. The invention of claim 6 is the information processing device described in claim 1, further comprising an abnormality detection unit that detects an abnormality in the operation of the processor, and when an abnormality occurs in the operation of the processor, the abnormality detection unit stores the log information about the sub-processor stored in the sub-memory connected to the sub-processor in a non-volatile memory. The invention according to claim 7 is the information processing device according to claim 1, characterized in that the processor reads the log information from the log management memory and stores it in a non-volatile memory. The invention of claim 8 is an information processing program provided in a computer having a processor, a sub-processor communicatively connected to the processor via an inter-processor communication line, a sub-memory communicatively connected to the sub-processor, and a log management memory communicatively connected to the processor and the sub-processor via the inter-processor communication line, the information processing program switching the output destination of log information indicating the operating status of the sub-processor output from the sub-processor from the sub-memory to the log management memory when the operation of the sub-processor satisfies a predetermined condition that is likely to cause an abnormality in the operation of the sub-processor. Effect of the Invention
[0011] According to the invention of claim 1, 2, or 8, it is possible to reliably obtain log information of the sub-processor when an abnormality occurs in the operation of the sub-processor, while suppressing the amount of data flowing through the inter-processor communication line connecting the processor and the sub-processor and suppressing a decrease in the product life of the sub-processor. According to the invention as defined in claim 3 or 6, even if an abnormality occurs in the operation of the processor, the log information can be stored in the log management memory. According to the invention as set forth in claim 4, the output destination of the log information can be switched for each sub-processor. According to the invention as set forth in claim 5, when an abnormality occurs in the operation of the first sub-processor, the log information of the second sub-processor can be reliably acquired. According to the invention as set forth in claim 6, when an abnormality occurs in the operation of the processor, log information of the sub-processor can be reliably acquired. According to the invention as defined in claim 7, the log information can be retained even after the log management memory is reset. [Brief description of the drawings]
[0012] [Figure 1] 1 is a schematic diagram illustrating a configuration of an information processing device according to an embodiment of the present invention. [Diagram 2] 4 is a first flowchart showing a flow of processing in the information processing device according to the present embodiment. [Diagram 3] 10 is a second flowchart showing the flow of processing in the information processing device according to the present embodiment. [Figure 4] 11 is a third flowchart showing the flow of processing in the information processing device according to the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] 1 is a schematic diagram of the configuration of an information processing device 10 according to this embodiment. In this embodiment, the information processing device 10 is, for example, an image processing device such as a multifunction peripheral, but the information processing device 10 may be any device as long as it can perform the functions described below.
[0014] The processor 12 refers to a processor in a broad sense and is composed of a general-purpose processor (for example, a CPU (Central Processing Unit)), etc. The processor 12 may not be composed of a single processing device, but may be composed of multiple processing devices that are located at physically separate locations and work together.
[0015] In this embodiment, the processor 12 is provided in a main chipset MC. Note that a chipset refers to one or more integrated circuits for implementing a certain function.
[0016] The processor 12 cooperates with the sub-processor 14 described below to execute processes for implementing various functions of the information processing device 10. For example, in this embodiment, since the information processing device 10 is an image processing device, the processor 12 cooperates with the sub-processor 14 to execute various processes such as printing, scanning, copying, and fax transmission.
[0017] Furthermore, the processor 12 can output log information indicating the operating status of the processor 12 to a log management memory 26, which will be described later. As a result, the log information of the processor 12 is stored in the log management memory 26.
[0018] As described later in detail, the processor 12 periodically transmits an initialization signal to the abnormality detection processor 30 described later as long as the processor 12 itself is operating normally. Alternatively, when the processor 12 detects that an abnormality has occurred in the operation of the sub-processor 14, the processor 12 transmits an abnormality signal indicating that an abnormality has occurred in the operation of the sub-processor 14 to the abnormality detection processor 30. The processor 12 periodically transmits operation confirmation information to the sub-processor 14 for monitoring whether or not an abnormality has occurred in the operation of the sub-processor 14. When the sub-processor 14 receives the operation confirmation information, the processor 12 transmits a response corresponding to the information to the processor 12. If there is a response from the sub-processor 14, the processor 12 determines that no abnormality has occurred in the operation of the sub-processor 14, and if there is no response from the sub-processor 14 within a predetermined time after transmitting the operation confirmation information, the processor 12 can detect that an abnormality has occurred in the operation of the sub-processor 14.
[0019] Like the processor 12, the sub-processor 14 also refers to a processor in a broad sense and is composed of a general-purpose processor (such as a CPU). The sub-processor 14 may also be composed of multiple processing devices in cooperation with each other, not just one processing device. The sub-processor 14 may have a smaller processing capacity than the processor 12.
[0020] The sub-processor 14 is communicatively connected to an internal RAM (Random Access Memory) 18 as a sub-memory, and an internal ROM (Read Only Memory) 20. The internal RAM 18 is a volatile memory in which stored information is erased when the power supply is cut off, and the internal ROM 20 is a non-volatile memory in which stored information is not erased even when the power supply is cut off.
[0021] In this embodiment, the sub-processor 14, the internal RAM 18, and the internal ROM 20 are provided in a sub-chipset SC, which is a chipset different from the main chipset MC.
[0022] The main chipset MC and the sub-chipset SC (specifically, the processor 12 and the sub-processor 14) are communicatively connected to each other via an inter-processor communication line 16. As a result, the sub-processor 14 cooperates with the processor 12 (by communicating with the processor 12) to execute processes for realizing various functions of the information processing device 10.
[0023] In this embodiment, a plurality of sub-chipsets SC (i.e., a combination of the sub-processor 14, the internal RAM 18, and the internal ROM 20) are provided. As described above, the sub-processor 14 executes processes for implementing various functions of the information processing device 10 in cooperation with the processor 12, and the sub-chipsets SC are provided according to each function of the information processing device 10.
[0024] For example, the sub-chipsets SC provided in the information processing device 10 include a sub-chipset SC for IIT that performs a scan function or a copy function by controlling an IIT (Image Input Terminal) such as a scanner device that performs an image acquisition process, and a sub-chipset SC for IOT that performs a print function or a copy function by controlling an IOT (Image Output Terminal) such as a printer device that performs an image formation process. Of course, the sub-chipsets SC are not limited to these, and include, for example, a sub-chipset SC that controls a FAX transmission process, a sub-chipset SC that controls a user interface, or a sub-chipset SC that controls automatic recovery from a sleep state based on a person approaching the information processing device 10. The sleep state of the information processing device 10 is a state in which most of the functions of the information processing device 10 are stopped to save power.
[0025] In the multiple sub-chipsets SC, depending on the operation of the information processing device 10 (which function the information processing device 10 performs), the sub-chipsets SC may be divided into those that operate and those that do not operate. For example, in the above example, when the information processing device 10 performs a scan process, the sub-chipset SC for IIT operates, but the sub-chipset SC for IOT does not need to operate. In this case, if both sub-chipsets SC are in a sleep state, the sub-chipset SC for IIT needs to return from the sleep state, but the sub-chipset SC for IOT does not need to return from the sleep state. The sleep state of the sub-chipset SC is a state in which most of the functions of the sub-chipset SC are stopped for power saving. On the other hand, when the information processing device 10 performs a print process, the sub-chipset SC for IOT operates, but the sub-chipset SC for IIT does not need to operate. In this case, if both sub-chipsets SC are in a sleep state, the sub-chipset SC for IOT needs to return from the sleep state, but the sub-chipset SC for IIT does not need to return from the sleep state. Furthermore, when the information processing device 10 performs a copy process, both the sub-chipset SC for IIT and the sub-chipset SC for IOT need to operate. In this case, if both the sub-chipsets SC are in a sleep state, both the sub-chipset SC for IIT and the sub-chipset SC for IOT need to return from the sleep state.
[0026] The sub-processor 14 outputs log information indicating the operating status of the sub-processor 14 to the internal RAM 18 in the sub-chipset SC. This causes the log information of the sub-processor 14 to be stored in the internal RAM 18. The sub-processor 14 can also output log information to a log management memory 26, which will be described later. This causes the log information of the sub-processor 14 to be stored in the log management memory 26. Furthermore, the sub-processor 14 can store (copy or move) the log information stored in the internal RAM 18 in an internal ROM 20 in the sub-chipset SC. The process of switching the output destination of the log information of the sub-processor 14 will be described later in detail.
[0027] The information processing device 10 may have one sub-chipset SC (that is, one sub-processor 14).
[0028] The memory 22 includes a hard disk drive (HDD), a solid state drive (SSD), an embedded multi media card (eMMC), a read only memory (ROM), or the like. The memory 22 is a non-volatile memory. An information processing program for operating each unit of the information processing device 10 is stored in the memory 22. The information processing program can also be stored in a computer-readable non-transitory storage medium such as a universal serial bus (USB) memory or a CD-ROM. The processor 12 or the sub-processor 14 can read and execute the information processing program from such a storage medium.
[0029] The log management processor 24 is configured with a general-purpose processor (for example, a CPU, etc.) The log management processor 24 performs processing related to acquisition and management of the log information of the processor 12 and the log information of the sub-processor 14.
[0030] The log management memory 26 is a volatile memory that stores log information indicating the operating status of the processor 12 and log information indicating the operating status of the sub-processor 14. In this embodiment, the log management memory 26 is a volatile memory. The log management memory 26 is connected to the log management processor 24 so as to be able to communicate with each other.
[0031] In this embodiment, the log management processor 24 and the log management memory 26 are provided in a log management chipset LC, which is a chipset different from the main chipset MC and the sub-chipset SC.
[0032] The main chipset MC and the log management chipset LC (specifically, the processor 12, the log management processor 24, and the log management memory 26) are connected to each other so as to be able to communicate with each other.
[0033] The sub-chipset SC and the log management chipset LC (specifically, the sub-processor 14, the log management processor 24, and the log management memory 26) are also communicatively connected to each other via the inter-processor communication line 16. Specifically, as shown in Fig. 1, a branch line 28 branched from the inter-processor communication line 16 is connected to the log management chipset LC. That is, the sub-chipset SC and the log management chipset LC are connected via the inter-processor communication line 16 and the branch line 28.
[0034] From the viewpoint of miniaturization and cost reduction of the sub-chipset SC, it is preferable that the sub-processor 14 is a device with as few terminals as possible. In that case, it is not possible to draw out a large number of signal lines from the sub-processor 14. Therefore, in the information processing device 10, a dedicated signal line for connecting the sub-chipset SC and the log management chipset LC is not provided, and the sub-chipset SC and the log management chipset LC are connected via the inter-processor communication line 16 as described above.
[0035] The anomaly detection processor 30, which serves as an anomaly detection unit, detects that an anomaly has occurred in the operation of the processor 12. The anomaly detection processor 30 also detects that an anomaly has occurred in the operation of the sub-processor 14 by receiving an anomaly signal indicating that an anomaly has occurred in the operation of the sub-processor 14 from the processor 12. In this embodiment, the anomaly detection processor 30 is provided in a programmable logic device PD, such as an ASIC (Application Specific Integrated Circuit) or a CPLD (Complex Programmable Logic Device).
[0036] The main chipset MC and the programmable logic device PD (specifically, the processor 12 and the anomaly detection processor 30) are connected to each other so that they can communicate with each other. The log management chipset LC and the programmable logic device PD (specifically, the log management processor 24, the log management memory 26, and the anomaly detection processor 30) are also connected to each other so that they can communicate with each other.
[0037] In this embodiment, the anomaly detection processor 30 detects an abnormality in the operation of the processor 12 by a watchdog timer. Specifically, the programmable logic device PD has a counter (not shown), and the anomaly detection processor 30 gradually decreases the counter value (counter value) from a predetermined value. Then, when the counter value reaches 0, the anomaly detection processor 30 determines that an abnormality has occurred in the operation of the processor 12. The timeout period until the counter value reaches 0 from the predetermined value may be appropriately set (for example, several tens of milliseconds) by an administrator of the information processing device 10, etc.
[0038] As long as the processor 12 is operating normally, it transmits an initialization signal to the anomaly detection processor 30 within each timeout period before the counter value of the programmable logic device PD becomes 0. The initialization signal is a signal for resetting the counter value of the programmable logic device PD (returning it to a predetermined value in this example). When an abnormality occurs in the operation of the processor 12 and the processor 12 is unable to transmit the initialization signal, the counter value of the programmable logic device PD becomes 0, and the anomaly detection processor 30 determines that an abnormality has occurred in the operation of the processor 12.
[0039] In the above example, the count of the programmable logic device PD is a down counter whose counter value gradually decreases, but it may be an up counter whose counter value gradually increases. In this case, the anomaly detection processor 30 determines that an anomaly has occurred in the operation of the processor 12 when the counter value reaches a predetermined value, and resets the counter value to 0 in response to an initialization signal from the processor 12.
[0040] Furthermore, the method by which the anomaly detection processor 30 detects that an anomaly has occurred in the operation of the processor 12 is not limited to the above method.
[0041] The outline of the configuration of the information processing device 10 according to this embodiment has been described above. Hereinafter, the details of the process of switching the output destination of the log information of the sub-processor 14 will be described.
[0042] The output destination of the log information of the sub-processor 14 is switched between the internal RAM 18 and the log management memory 26 depending on whether the state of the sub-processor 14 is a state that is likely to cause an abnormality in the operation of the sub-processor 14. Specifically, if the operation of the sub-processor 14 does not satisfy a predetermined condition that is likely to cause an abnormality in the operation of the sub-processor 14, the sub-processor 14 outputs the log information to the internal RAM 18. On the other hand, if the operation of the sub-processor 14 satisfies the predetermined condition, the sub-processor 14 outputs the log information to the log management memory 26.
[0043] Here, the above-mentioned predetermined conditions include a case where the sub-processor 14 starts to transition to a sleep state or a case where the sub-processor 14 starts to return from a sleep state. This is based on the fact that in the past, when the sub-processor 14 transitions to a sleep state or returns from a sleep state, an abnormality often occurs in the operation of the sub-processor 14.
[0044] The above-mentioned predetermined conditions also include a case where the sub-processor 14 starts a firmware update process. This is also based on the fact that, in the past, when the sub-processor 14 performs a firmware update process, an abnormality often occurs in the operation of the sub-processor 14.
[0045] The above-mentioned predetermined condition also includes a case where the sub-processor 14 is loaded with a load equal to or greater than a predetermined load. Here, the case where the sub-processor 14 is loaded with a load equal to or greater than a predetermined load includes, for example, a case where the CPU usage rate of the sub-processor 14 is equal to or greater than a predetermined usage rate. Alternatively, the sub-processor 14 may be deemed to be loaded with a load equal to or greater than a predetermined load depending on the content of the processing performed by the sub-processor 14. For example, when the sub-processor 14 performs a print processing (in cooperation with the processor 12), the sub-processor 14 may be deemed to be loaded with a load equal to or greater than a predetermined load depending on the content of the print settings. For example, when the print settings are set to high quality (high dpi) and use of spot colors, the sub-processor 14 is deemed to be loaded with a load equal to or greater than a predetermined load.
[0046] Furthermore, when a load equal to or greater than a predetermined load is applied to the sub-processor 14, the sub-processor 14 may operate. In this case, as long as the sub-processor 14 is operating, its log information is output to the log management memory 26, and when the sub-processor 14 is not operating, its log information is output to the internal RAM 18.
[0047] This is useful when the information processing device 10 has a plurality of sub-processors 14 (sub-chipsets SC). As described above, consider the case where the information processing device 10 has a sub-chipset SC for IIT and a sub-chipset SC for IOT. As described above, for example, when the information processing device 10 performs a scan process, the sub-chipset SC for IIT operates, but the sub-chipset SC for IOT does not operate (for example, maintains a sleep state). In this case, the sub-processor 14 included in the sub-chipset SC for IIT satisfies a predetermined condition, and the output destination of the log information of the sub-processor 14 is the log management memory 26. On the other hand, the sub-processor 14 included in the sub-chipset SC for IOT does not satisfy the predetermined condition, and the output destination of the log information of the sub-processor 14 is the internal RAM 18 of the sub-chipset SC for IOT.
[0048] The above-mentioned predetermined conditions are stored in the memory 22. Based on log information output from each device of the same or similar model as the information processing device 10, it is possible to obtain what operation of the sub-processor 14 caused an abnormality in the operation of the sub-processor 14. By analyzing the accumulated log information, the administrator of the information processing device 10 or the like may discover new operating conditions of the sub-processor 14 that are likely to cause an abnormality in the operation of the sub-processor 14. In that case, the administrator of the information processing device 10 or the like can add the predetermined conditions stored in the memory 22 by updating the firmware of the information processing device 10 or the like.
[0049] In this embodiment, whether or not the operation of the sub-processor 14 satisfies a predetermined condition is determined by the processor 12. The processor 12 can acquire the operation of the sub-processor 14 by receiving, from the sub-processor 14, information indicating the type of processing performed in the information processing device 10, the operation mode of the information processing device 10, or the operation status of the sub-processor 14.
[0050] When the output destination of the log information of the sub-processor 14 is the internal RAM 18, if the processor 12 determines that the operation of the sub-processor 14 satisfies a predetermined condition, the processor 12 transmits a first log output destination switching instruction to the sub-processor 14 to switch the output destination of the log information from the internal RAM 18 to the log management memory 26. The sub-processor 14 that has received the first log output destination switching instruction switches the output destination of the log information from the internal RAM 18 to the log management memory 26. In addition, when the output destination of the log information of the sub-processor 14 is the log management memory 26, if the processor 12 determines that the operation of the sub-processor 14 no longer satisfies a predetermined condition, the processor 12 transmits a second log output destination switching instruction to the sub-processor 14 to switch the output destination of the log information from the log management memory 26 to the internal RAM 18. The sub-processor 14 that has received the second log output destination switching instruction switches the output destination of the log information from the log management memory 26 to the internal RAM 18.
[0051] The sub-processor 14 itself may determine whether the operation of the sub-processor 14 satisfies a predetermined condition. In this case, the output destination of the log information is switched without the need to transmit and receive the above-mentioned first or second log output destination switching instruction between the processor 12 and the sub-processor 14.
[0052] According to this embodiment, when an abnormality is likely to occur in the operation of the sub-processor 14, the log information of the sub-processor 14 is output to a log management memory 26 that is external to the sub-chipset SC. As a result, even if an abnormality occurs in the operation of the sub-processor 14 and the sub-chipset SC is reset, the log information at the time when the abnormality occurred in the operation of the sub-processor 14 can be left in the log management memory 26. Furthermore, in this embodiment, the log information of the sub-processor 14 is not constantly stored in the internal ROM 20, so the number of times that data is written to the internal ROM 20 does not increase, and shortening of the product life of the sub-chipset SC is suppressed.
[0053] Furthermore, in this embodiment, the log information of the sub-processor 14 is not always output to the log management memory 26. Rather, the log information of the sub-processor 14 is output to the log management memory 26 only when the operation of the sub-processor 14 satisfies a predetermined condition. As a result, when the operation of the sub-processor 14 does not satisfy a predetermined condition, the log information of the sub-processor 14 does not flow through the inter-processor communication line 16, so that the amount of data flowing through the inter-processor communication line 16 can be reduced.
[0054] Furthermore, in this embodiment, when the operation of the sub-processor 14 satisfies a predetermined condition, the log information of both the processor 12 and the sub-processor 14 is output to the log management memory 26. This has the effect of enabling unified management of the log information of the processor 12 and the sub-processor 14 when the operation of the sub-processor 14 satisfies a predetermined condition.
[0055] As described above, in this embodiment, the sub-processor 14 and the log management memory 26 are connected by the inter-processor communication line 16 that connects the processor 12 and the sub-processor 14, and the branch line 28 that branches off from the inter-processor communication line 16. Therefore, in this embodiment, the sub-processor 14 outputs log information to the log management memory 26 without passing through the processor 12. This allows the sub-processor 14 to store the log information in the log management memory 26 even if an abnormality occurs in the operation of the processor 12, for example.
[0056] Consider a case where the information processing device 10 has a plurality of sub-chipsets SC (that is, a plurality of sub-processors 14), and a malfunction (eg, hang-up) occurs in the operation of a first sub-processor, which is one of the plurality of sub-processors 14.
[0057] It is conceivable that the output destination of the log information of the first sub-processor is the log management memory 26 until immediately before an abnormality occurs in the operation of the first sub-processor. In this case, the log information when an abnormality occurs in the operation of the first sub-processor is stored in the log management memory 26. Since the log information when an abnormality occurs in the operation of the first sub-processor is useful information for subsequent analysis, it is desirable to retain the log information.
[0058] Here, since the storage capacity of the log management memory 26 is limited, if the log information of the processor 12 and the log information of the sub-processors other than the first sub-processor are stored (overwritten) in the log management memory 26 after an abnormality occurs in the operation of the first sub-processor, the essential log information of the first sub-processor when the abnormality occurs in the operation of the first sub-processor may be erased from the log management memory 26. Therefore, when an abnormality occurs in the operation of any of the multiple sub-processors (the first sub-processor in this example), the processor 12 stops writing of log information to the log management memory 26. Specifically, the processor 12 transmits a log information acquisition stop instruction to the log management processor 24, and the log management processor 24 stops writing of log information to the log management memory 26 in response to the acquisition stop instruction.
[0059] It is also desirable to keep log information of a second sub-processor, which is different from the first sub-processor among the multiple sub-processors 14, when an abnormality occurs in the operation of the first sub-processor. This is because the first sub-processor and the second sub-processor (and the processor 12) may cooperate to execute a process (e.g., a copy process), and in such a case, it may be necessary to analyze what operations of the first sub-processor and the second sub-processor caused an abnormality in the operation of the first sub-processor. In this case, there is no problem if the output destination of the log information of the second sub-processor is the log management memory 26, but if the output destination of the log information of the second sub-processor is the internal RAM 18, if the sub-chipset SC including the second sub-processor is reset after an abnormality occurs in the operation of the first sub-processor, the log information of the second sub-processor when the abnormality occurs in the operation of the first sub-processor will be lost.
[0060] Therefore, when an abnormality occurs in the operation of the first sub-processor, the processor 12 may store the log information about the second sub-processor stored in the internal RAM 18 connected to the second sub-processor in the internal ROM 20 connected to the second sub-processor. In this embodiment, the log management processor 24, which has received an instruction to stop acquiring log information from the processor 12, transmits a log information transfer instruction to the second sub-processor, thereby transferring the log information of the second sub-processor from the internal RAM 18 to the internal ROM 20. Note that the processor 12 may directly transmit the log information transfer instruction to the second sub-processor.
[0061] If the log information of the second sub-processor is transferred to the internal ROM 20, even if the sub-chipset SC including the second sub-processor is reset after an abnormality occurs in the operation of the first sub-processor, the log information of the second sub-processor can be left in the internal ROM 20. In this embodiment, the log information of the second sub-processor is transferred to the internal ROM 20 connected to the second sub-processor, but the log information of the second sub-processor may be transferred to other non-volatile memory. It is also possible to transfer the log information of the second sub-processor to the log management memory 26, but in this embodiment, when an abnormality occurs in the operation of the first sub-processor, writing of log information to the log management memory 26 is stopped, so the log information of the second sub-processor is transferred to the internal ROM 20.
[0062] Next, consider the case where an abnormality (for example, a hang-up) occurs in the operation of the processor 12. As described above, the occurrence of an abnormality in the operation of the processor 12 is detected by the abnormality detection processor 30.
[0063] Since the output destination of the log information of the processor 12 is the log management memory 26, when an abnormality occurs in the operation of the processor 12, the log information is stored in the log management memory 26. Since the log information when an abnormality occurs in the operation of the processor 12 is useful information for subsequent analysis, it is desirable to keep the log information.
[0064] Here too, in order to prevent the log information of the sub-processor 14 after an abnormality occurs in the operation of the processor 12 from being stored (overwritten) in the log management memory 26 and the essential log information of the processor 12 when an abnormality occurs in the operation of the processor 12 from being erased, it is desired to stop writing of log information to the log management memory 26. However, in this case, since an abnormality occurs in the operation of the processor 12, the processor 12 cannot stop writing of log information to the log management memory 26. Therefore, in this case, the abnormality detection processor 30 stops writing of log information to the log management memory 26 instead of the processor 12. Specifically, the abnormality detection processor 30 transmits a log information acquisition stop instruction to the log management processor 24 instead of the processor 12, and the log management processor 24 stops writing of log information to the log management memory 26 in response to the acquisition stop instruction.
[0065] It is also desirable to keep the log information of the sub-processor 14 when an abnormality occurs in the operation of the processor 12. This is because there are cases where it is desired to analyze what operations of the processor 12 and the sub-processor 14 caused the abnormality in the operation of the processor 12. In this case, there is no problem if the output destination of the log information of the sub-processor 14 is the log management memory 26, but if the output destination of the log information of the sub-processor 14 is the internal RAM 18, the log information of the sub-processor 14 when the abnormality occurred in the operation of the processor 12 will be lost if the sub-chipset SC is reset after the abnormality occurs in the operation of the processor 12.
[0066] Therefore, when an abnormality occurs in the operation of the processor 12, the abnormality detection processor 30 may store the log information about the sub-processor 14 stored in the internal RAM 18 connected to the sub-processor 14 in the internal ROM 20 connected to the sub-processor 14. In this embodiment, the log management processor 24, which has received an instruction to stop acquiring log information from the abnormality detection processor 30, transmits a log information transfer instruction to the second sub-processor, thereby transferring the log information of the second sub-processor from the internal RAM 18 to the internal ROM 20. Note that in this case as well, the abnormality detection processor 30 may directly transmit the log information transfer instruction to the second sub-processor.
[0067] If the log information of the sub-processor 14 is transferred to the internal ROM 20, it is possible to leave the log information of the sub-processor 14 in the internal ROM 20 even if the sub-chipset SC is reset after an abnormality occurs in the operation of the processor 12. Note that, in this case as well, the log information of the sub-processor 14 may be transferred to another non-volatile memory. It is also possible to transfer the log information of the sub-processor 14 to the log management memory 26, but in this embodiment, when an abnormality occurs in the operation of the processor 12, writing of log information to the log management memory 26 is stopped, so the log information of the sub-processor 14 is transferred to the internal ROM 20.
[0068] When an abnormality occurs in the operation of the processor 12 or the sub-processor 14, the abnormality detection processor 30 performs reset control to reset at least the device in which the abnormality occurs. For example, the abnormality detection processor 30 controls a power control unit (not shown) that controls the supply of power to each device of the information processing device 10 to temporarily cut off the supply of power to the device to be reset and then to turn on the power to the device again, thereby resetting the device.
[0069] Here, the anomaly detection processor 30 does not subject the log management memory 26 to reset control. The anomaly detection processor 30 may exclude the log management chipset LC from the reset control. This makes it possible to prevent the log information stored in the log management memory 26 from being erased by the reset control. It is expected that the reset control will restart the processor 12 or sub-processor 14 in which an abnormality has occurred, and resume normal operation.
[0070] The processor 12, which has been restarted after the reset control, reads out the log information of the processor 12 and the sub-processor 14 from the log management memory 26, and stores it in the memory 22, which is a non-volatile memory. Alternatively, the processor 12 may transmit the log information of the processor 12 and the sub-processor 14 read out from the log management memory 26 to an external device (e.g., a server) outside the information processing device 10, and store it in the non-volatile memory of the external device. If no abnormality occurs in the operation of the processor 12, the processor 12 may read out the log information of the processor 12 and the sub-processor 14 from the log management memory 26 before the reset control by the abnormality detection processor 30.
[0071] The flow of processing by the information processing device 10 will be described below with reference to the flowcharts shown in FIGS.
[0072] Fig. 2 is a flowchart showing the flow of a process for changing the output destination of log information of the sub-processor 14. At the start of the flowchart shown in Fig. 2, the output destination of the log information of the sub-processor 14 is set to the internal RAM 18 in the sub-chipset SC.
[0073] In step S10, the processor 12 determines whether or not the operation of the sub-processor 14 satisfies a predetermined condition. For example, when the sub-processor 14 transitions to a sleep state, the processor 12 determines that the operation of the sub-processor 14 satisfies the predetermined condition. If it is determined that the operation of the sub-processor 14 satisfies the predetermined condition, the process proceeds to step S12.
[0074] In step S12, the processor 12 transmits a first log output destination switching instruction to the sub-processor 14 to switch the output destination of the log information from the internal RAM 18 to the log management memory 26.
[0075] In step S14, the sub-processor 14 receives the first log output destination switching instruction and switches the output destination of the log information from the internal RAM 18 to the log management memory 26. Thereafter, the log information of the sub-processor 14 is stored in the log management memory 26.
[0076] In step S16, the processor 12 determines whether the operation of the sub-processor 14 no longer satisfies a predetermined condition. For example, when the process of returning the sub-processor 14 from a sleep state is completed, the processor 12 determines that the operation of the sub-processor 14 no longer satisfies a predetermined condition. If it is determined that the operation of the sub-processor 14 no longer satisfies the predetermined condition, the process proceeds to step S16.
[0077] In step S18, the processor 12 transmits a second log output destination switching instruction to the sub-processor 14 to switch the output destination of the log information from the log management memory 26 to the internal RAM 18.
[0078] In step S20, the sub-processor 14 receives the second log output destination switching instruction and switches the output destination of the log information from the log management memory 26 to the internal RAM 18. Thereafter, the log information of the sub-processor 14 is stored in the internal RAM 18.
[0079] 3 is a flowchart showing a process flow when an abnormality occurs in the operation of the first sub-processor 14 (a first sub-processor and a second sub-processor) in the information processing device 10. At the start of the flowchart shown in FIG. 3, the output destination of the log information of the second sub-processor is set to the internal RAM 18 of the sub-chipset SC including the second sub-processor.
[0080] In step S30, an abnormality occurs in the operation of the first sub-processor.
[0081] In step S32, the processor 12 determines whether or not an abnormality has occurred in the operation of each sub-processor 14. For example, the processor 12 transmits operation confirmation information to each sub-processor 14, and if there is no response from the sub-processor 14 within a predetermined time after transmitting the operation confirmation information, it determines that an abnormality has occurred in the operation of that sub-processor 14. Here, the processor 12 determines that an abnormality has occurred in the operation of the first sub-processor, and therefore proceeds to step S34.
[0082] In step S34, the processor 12 transmits a log information acquisition stop instruction to the log management processor 24 to stop writing of log information to the log management memory 26. The log management processor 24, having received the log information acquisition stop instruction, stops writing of log information to the log management memory 26.
[0083] In step S36, the log management processor 24 transmits a log information transfer instruction to the second sub-processor for transferring the log information of the second sub-processor from the internal RAM 18 to the internal ROM 20.
[0084] In step S38, the second sub-processor having received the log information transfer instruction stores the log information stored in the internal RAM 18 in the sub-chip set SC in the internal ROM 20 in the sub-chip set SC.
[0085] In step S40, the processor 12 transmits an abnormality signal indicating that an abnormality has occurred in the sub-processor 14 to the abnormality detection processor 30. Upon receiving the abnormality signal, the abnormality detection processor 30 resets the main chipset MC, the sub-chipset SC including the first sub-processor, and the sub-chipset SC including the second sub-processor.
[0086] 4 is a flowchart showing a process flow when an abnormality occurs in the operation of the processor 12. At the start of the flowchart shown in FIG.
[0087] In step S50, an abnormality occurs in the operation of the processor 12.
[0088] In step S52, the anomaly detection processor 30 determines whether or not an anomaly has occurred in the operation of the processor 12. For example, the anomaly detection processor 30 determines that an anomaly has occurred in the operation of the processor 12 when the counter value of the watchdog timer reaches 0 without receiving an initialization signal from the processor 12. Here, the anomaly detection processor 30 determines that an anomaly has occurred in the operation of the processor 12, and therefore proceeds to step S54.
[0089] In step S54, the abnormality detection processor 30 transmits a log information acquisition stop instruction to the log management processor 24 to stop writing of log information to the log management memory 26. The log management processor 24 that has received the log information acquisition stop instruction stops writing of log information to the log management memory 26.
[0090] In step S56, the log management processor 24 transmits a log information transfer instruction to the second sub-processor for transferring the log information of the second sub-processor from the internal RAM 18 to the internal ROM 20.
[0091] In step S58, the second sub-processor having received the log information transfer instruction stores the log information stored in the internal RAM 18 in the sub-chipset SC in the internal ROM 20 in the sub-chipset SC.
[0092] In step S40, the abnormality detection processor 30 resets the main chipset MC and the sub-chipset SC.
[0093] Although the embodiment of the present invention has been described above, the present invention is not limited to the above embodiment, and various modifications are possible without departing from the spirit of the present invention.
[0094] (Additional Note) (((1))) A processor; a sub-processor communicatively connected to said processor by an inter-processor communication line; A sub-memory communicatively connected to the sub-processor; a log management memory communicatively connected to the processor and the sub-processor via the inter-processor communication line; Equipped with when an operation of the sub-processor satisfies a predetermined condition that is likely to cause an abnormality in the operation of the sub-processor, an output destination of log information indicating an operation status of the sub-processor output from the sub-processor is switched from the sub-memory to the log management memory; 23. An information processing apparatus comprising: (((2))) The predetermined condition is at least one of the following: when the sub-processor starts to transition to a sleep state; when the sub-processor starts to return from a sleep state; when the sub-processor starts a firmware update process; or when a load equal to or greater than a predetermined load is applied to the sub-processor. 4. The information processing device according to claim 1, (((3))) The sub-processor stores the log information in the log management memory without going through the processor. 4. The information processing device according to claim 1, (((4))) A plurality of combinations of the sub-processor and the sub-memory are provided, the log information of the sub-processor that satisfies the predetermined condition is output to the log management memory; the log information of the sub-processor whose operating state does not satisfy the predetermined condition is output to the sub-memory connected to the sub-processor; 4. The information processing device according to claim 1, (((5))) A plurality of combinations of the sub-processor and the sub-memory are provided, when an abnormality occurs in the operation of a first sub-processor among the plurality of sub-processors, the processor stores in a non-volatile memory the log information about the second sub-processor, which is stored in the sub-memory connected to a second sub-processor different from the first sub-processor among the plurality of sub-processors; 4. The information processing device according to claim 1, (((6))) an abnormality detection unit that detects an abnormality occurring in the operation of the processor; Further equipped with when an abnormality occurs in the operation of the processor, the abnormality detection unit stores the log information about the sub-processor, which is stored in the sub-memory connected to the sub-processor, in a non-volatile memory. 4. The information processing device according to claim 1, (((7))) The processor reads the log information from the log management memory and stores the log information in a non-volatile memory. 4. The information processing device according to claim 1, (((8))) A processor; a sub-processor communicatively connected to said processor by an inter-processor communication line; A sub-memory communicatively connected to the sub-processor; a log management memory communicatively connected to the processor and the sub-processor via the inter-processor communication line; A computer comprising: when an operation of the sub-processor satisfies a predetermined condition that is likely to cause an abnormality in the operation of the sub-processor, an output destination of log information that is output from the sub-processor and indicates an operating status of the sub-processor is switched from the sub-memory to the log management memory; 2. An information processing program comprising:
[0095] According to the invention relating to (((1))), (((2))), or (((8))), it is possible to reliably obtain log information of the sub-processor when an abnormality occurs in the operation of the sub-processor, while suppressing the amount of data flowing through the inter-processor communication line connecting the processor and the sub-processor and while suppressing a decrease in the product life of the sub-processor. According to the invention relating to (((3))) or (((6))), even if an abnormality occurs in the operation of the processor, the log information can be stored in the log management memory. According to the invention related to (((4))), the output destination of log information can be switched for each sub-processor. According to the invention pertaining to (((5))), when an abnormality occurs in the operation of the first sub-processor, log information of the second sub-processor can be reliably acquired. According to the invention pertaining to ((6)) above, when an abnormality occurs in the operation of a processor, log information of the sub-processor can be reliably acquired. According to the invention related to ((7)) above, the log information can be retained even after the log management memory is reset. [Explanation of symbols]
[0096] 10 information processing device, 12 processor, 14 sub-processor, 16 inter-processor communication line, 18 internal RAM, 20 internal ROM, 22 memory, 24 log management processor, 26 log management memory, 28 branch line, 30 anomaly detection processor, MC main chipset, SC sub-chipset, LC log management chipset, PD programmable logic device.
Claims
1. A processor; a sub-processor communicatively connected to said processor by an inter-processor communication line; A sub-memory communicatively connected to the sub-processor; a log management memory communicatively connected to the processor and the sub-processor via the inter-processor communication line; Equipped with when an operation of the sub-processor satisfies a predetermined condition that is likely to cause an abnormality in the operation of the sub-processor, an output destination of log information outputted from the sub-processor and indicating an operating status of the sub-processor is switched from the sub-memory to the log management memory; 23. An information processing apparatus comprising:
2. The predetermined condition is at least one of the following: when the sub-processor starts to transition to a sleep state; when the sub-processor starts to return from a sleep state; when the sub-processor starts a firmware update process; or when a load equal to or greater than a predetermined load is applied to the sub-processor.
2. The information processing apparatus according to claim 1,
3. The sub-processor stores the log information in the log management memory without going through the processor.
2. The information processing apparatus according to claim 1,
4. A plurality of combinations of the sub-processor and the sub-memory are provided, the log information of the sub-processor that satisfies the predetermined condition is output to the log management memory; the log information of the sub-processor whose operating state does not satisfy the predetermined condition is output to the sub-memory connected to the sub-processor; 2. The information processing apparatus according to claim 1,
5. A plurality of combinations of the sub-processor and the sub-memory are provided, when an abnormality occurs in the operation of a first sub-processor among the plurality of sub-processors, the processor stores in a non-volatile memory the log information about the second sub-processor, which is stored in the sub-memory connected to a second sub-processor among the plurality of sub-processors and is different from the first sub-processor; 2. The information processing apparatus according to claim 1,
6. an abnormality detection unit that detects an abnormality occurring in the operation of the processor; Further equipped with the abnormality detection unit, when an abnormality occurs in the operation of the processor, stores the log information about the sub-processor, which is stored in the sub-memory connected to the sub-processor, in a non-volatile memory; 2. The information processing apparatus according to claim 1,
7. The processor reads the log information from the log management memory and stores the log information in a non-volatile memory.
2. The information processing apparatus according to claim 1,
8. A processor; a sub-processor communicatively connected to said processor by an inter-processor communication line; A sub-memory communicatively connected to the sub-processor; a log management memory communicatively connected to the processor and the sub-processor via the inter-processor communication line; A computer comprising: when an operation of the sub-processor satisfies a predetermined condition that is likely to cause an abnormality in the operation of the sub-processor, an output destination of log information that is output from the sub-processor and indicates an operating status of the sub-processor is switched from the sub-memory to the log management memory; 2. An information processing program comprising:
Citation Information
Patent Citations
Debugger for test program in multi-cpu
JP1997244919A
Information processing unit, log storage control program, and log storage control method
JP2012247937A
Image formation device
JP2019155686A
Image forming apparatus, and writing control method
JP2012006389A
Cited By
Information processing device and control method for the information processing device
JP2026184665A
Information processing device and control method for the information processing device
JP2026185913A
Information processing device and control method for the information processing device
JP7897382B1
