Startup management method and device, electronic device and storage medium

By monitoring the running status of multiple hardware domains in a multi-core heterogeneous system and adopting the target startup mode to perform targeted restarts of abnormally running domain systems, the problems of low startup efficiency and waste of resources in the existing technology are solved, and the problem of low startup efficiency and resource waste is solved. Efficient and safe restart of abnormal domain systems in multi-core heterogeneous systems.

CN117931529BActive Publication Date: 2024-08-27SHANGHAI LICHI SEMICON LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410327860.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-21
Publication Date
2024-08-27
Estimated Expiration
2044-03-21

AI Technical Summary

Technical Problem

In multi-system platforms, when existing technology handles a single system exception, it usually requires restarting the entire platform or using virtual machine technology, resulting in low startup efficiency and a large impact on the normal system. There is a lack of targeted and efficient solutions.

Method used

Adopt a startup management method and equipment to monitor the operating status of multiple hardware domains in a multi-core heterogeneous system, and use target startup modes to perform targeted restarts of abnormally running domain systems, including single domain startup mode and global startup mode, determine the startup mode based on the identity information and priority information of the abnormally running domain system, to achieve rapid restart of the abnormal domain system without affecting the normal system.

Benefits of technology

It achieves highly targeted and efficient startup of abnormal domain systems in multi-core heterogeneous systems, avoids resource waste of virtual machine technology, ensures that the use of normal domain systems is not affected, and improves system stability and Security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117931529B
    Figure CN117931529B
Patent Text Reader

Abstract

The present application discloses a startup management method and device, an electronic device and a storage medium, wherein the method comprises: monitoring the operation status of M domain systems; each domain system in the M domain systems comprises each hardware domain in the M hardware domains and an operating system corresponding to each hardware domain; a first operating system in the M operating systems obtains first information, wherein the first information indicates that at least one of the M domain systems is monitored to be in an abnormal operating state; based on reference information of the abnormal operating domain system, the first operating system determines a target startup mode, so that a second operating system in the M operating systems adopts the target startup mode to restart the domain system in an abnormal operating state; the first operating system and the second operating system are different operating systems in the M operating systems. The present application at least provides a technical support for targeted startup and efficient startup.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of startup technology, and in particular to a startup management method and device, an electronic device and a storage medium. Background Art

[0002] In a multi-system platform, each system has specific functions, and the platform has powerful processing capabilities due to the existence of systems with various functions. In the process of using a multi-system platform, it is inevitable that a single system in the platform has an abnormality. In related technologies, when a single system in the platform has an abnormality, the following two methods are used to solve it: 1) restart the entire platform; 2) use virtual machine technology to restart the system with the problem separately.

[0003] In method 1), not only the abnormal system in the platform is restarted, but also the system (normal system) without abnormality in the platform is restarted, which undoubtedly affects the use of normal systems. 2) It is necessary to additionally deploy virtual machine technology in the platform, which consumes additional resources invisibly. In short, the startup of method 1) is not targeted enough, and method 2) is not efficient. For multi-system platforms, an efficient and targeted startup solution is urgently needed. Summary of the invention

[0004] The present application provides a startup management method and device, an electronic device and a computer storage medium to at least solve the above technical problems existing in the prior art.

[0005] According to a first aspect of the present application, a startup management method is provided, the method being applied to a multi-core heterogeneous system, the multi-core heterogeneous system comprising at least two hardware domains; each hardware domain being composed of a plurality of processor cores with different architectures in the multi-core heterogeneous system and hardware resources connected to each processor core, the hardware domains being isolated from each other; M hardware domains in the at least two hardware domains corresponding to M operating systems, M being a positive integer greater than or equal to 2; the method comprising:

[0006] Monitoring the operation status of the M domain systems; wherein each domain system in the M domain systems includes each hardware domain in the M hardware domains and an operating system corresponding to each hardware domain;

[0007] A first operating system among the M operating systems obtains first information, where the first information indicates that at least one of the M domain systems is monitored to be in an abnormal operating state;

[0008] Based on reference information of the abnormally operating domain system, the first operating system determines a target startup mode so that the second operating system among the M operating systems adopts the target startup mode to restart the domain system in an abnormally operating state; wherein the first operating system and the second operating system are different operating systems among the M operating systems.

[0009] In one possible implementation, the target startup mode includes a first startup mode and a second startup mode; and restarting the domain system in an abnormal operating state using the target startup mode includes:

[0010] In response to the target startup mode being the first startup mode, the second operating system restarts the domain system that is in an abnormally normal operating state;

[0011] In response to the target startup mode being the second startup mode, the domain system in an abnormally normal operation state and other domain systems in the M domain systems except the domain system in an abnormally normal operation state are restarted.

[0012] In one possible implementation, the reference information includes identity information of the abnormally normal operating domain system;

[0013] When the identity information of the abnormally normal operating domain system indicates that the abnormally normal operating domain system is other domain systems except the first domain system and the second domain system in the M domain systems, the first operating system determines that the target startup mode is the first startup mode; wherein the first domain system includes the first operating system and a hardware domain corresponding to the first operating system, and the second domain system includes the second operating system and a hardware domain corresponding to the second operating system;

[0014] When the identity information of the abnormally normal operating domain system represents that the abnormally normal operating domain system includes at least one of the first domain system and the second domain system, the first operating system determines that the target startup mode is the second startup mode; wherein the domain system restarted in the first startup mode is different from the domain system restarted in the second startup mode.

[0015] In one possible implementation manner, the number of domain systems in the M domain systems that are in an abnormal operating state is at least two; and each domain system in an abnormal operating state is the other domain system; and the method further includes:

[0016] Priority information of each domain system in an abnormal operating state is obtained, so that the second operating system uses the first startup mode to restart each domain system in an abnormal operating state based on the priority information.

[0017] In one possible implementation, in response to the target startup mode being the first startup mode, the second operating system restarting the domain system in an abnormally normal operating state includes:

[0018] In response to the target startup mode being the first startup mode, the second operating system at least switches the processor core of the abnormal operating domain system and the hardware resources connected to the processor core from a running state to a non-operating state, and from a non-operating state to a running state, and restarts the operating system of the abnormal operating domain system to achieve a restart of the domain system in the abnormal operating state.

[0019] In one possible implementation manner, each domain system in the M domain systems corresponds to a monitor; and the monitoring of the operation status of the M domain systems includes: monitoring each domain system using each monitor.

[0020] According to a second aspect of the present application, a startup management device is provided, the device is located in a multi-core heterogeneous system, the multi-core heterogeneous system includes at least two hardware domains; each hardware domain is composed of a plurality of processor cores with different architectures in the multi-core heterogeneous system and hardware resources connected to each processing core, and the hardware domains are isolated from each other; M hardware domains in the at least two hardware domains correspond to M operating systems, where M is a positive integer greater than or equal to 2; the device includes:

[0021] A monitoring unit, used to monitor the operating status of the M domain systems; wherein each domain system in the M domain systems includes each hardware domain in the M hardware domains and an operating system corresponding to each hardware domain;

[0022] An obtaining unit, configured to obtain first information by using a first operating system among the M operating systems, wherein the first information indicates that at least one of the M domain systems is monitored to be in an abnormal operating state;

[0023] A determination unit is used to determine a target startup mode using the first operating system based on reference information of the abnormally operating domain system, so that a second operating system among M operating systems adopts the target startup mode to restart the domain system in an abnormally operating state; wherein the first operating system and the second operating system are different operating systems among the M operating systems.

[0024] In one possible implementation, the target startup mode includes a first startup mode and a second startup mode; and the device further includes:

[0025] a restart unit, configured to restart the domain system in an abnormally operating state by using the second operating system in response to the target startup mode being the first startup mode;

[0026] In response to the target startup mode being the second startup mode, the domain system in an abnormally normal operation state and other domain systems in the M domain systems except the domain system in an abnormally normal operation state are restarted.

[0027] According to a third aspect of the present application, an electronic device is provided, including:

[0028] at least one processor; and

[0029] a memory communicatively connected to the at least one processor; wherein,

[0030] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present application.

[0031] According to a fourth aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the present application.

[0032] The startup management method and device, electronic device and storage medium of the present application are aimed at the multi-system platform of multi-core heterogeneous chips. In the case of an abnormally running domain system, the target startup mode is used to restart the domain system in an abnormally running state, thereby achieving targeted startup. Compared with method 1) in the related art, it is more targeted. The technical solution of the present application can achieve targeted startup of abnormal domain systems without virtual machine technology. Compared with method 2) in the related art, it does not require the consumption of additional resources and has high startup efficiency.

[0033] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:

[0035] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0036] Figure 1 The schematic diagram of the multi-core heterogeneous system in the embodiment of the present application is shown Figure 1 ;

[0037] Figure 2 The schematic diagram of the multi-core heterogeneous system in the embodiment of the present application is shown Figure 2 ;

[0038] Figure 3 The schematic diagram of the multi-core heterogeneous system in the embodiment of the present application is shown Figure 3 ;

[0039] Figure 4 The schematic diagram of the implementation process of the startup management method in the embodiment of the present application is shown Figure 1 ;

[0040] Figure 5 The schematic diagram of the implementation process of the startup management method in the embodiment of the present application is shown Figure 2 ;

[0041] Figure 6 A schematic diagram of implementing a safe restart solution in an embodiment of the present application is shown;

[0042] Figure 7 A schematic diagram of the composition structure of the startup management device in an embodiment of the present application is shown;

[0043] Figure 8 A schematic diagram of the structure of an electronic device in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0044] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0045] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0046] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0047] In the following description, the terms "first\second" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0049] It should be understood that in the various embodiments of the present application, the size of the serial number of each implementation process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0050] The processing logic of the startup management method in the present application is deployed in a multi-core heterogeneous system. In the embodiment of the present application, the multi-core heterogeneous system is a multi-core heterogeneous chip. A multi-core heterogeneous chip refers to a chip that integrates two or more processor cores in a single chip. For example, a single SOC (system on chip) chip that integrates two or more processor cores. Each processor core in a multi-core heterogeneous chip can be used as an independent processor, and can independently run the instructions that each processor core needs to run to achieve the tasks that each processor core needs to achieve. It can be understood that a multi-core heterogeneous chip is a chip with a multi-core processor. Compared with a single-core processor chip, the independent operation of each core task can speed up the operation speed and improve the multi-task execution capability, thereby bringing the advantage of high performance. And the multi-core processor is set on the same chip, which has the advantage of low cost.

[0051] like Figure 1 As shown, the multi-core heterogeneous chip includes multiple processor cores, and the multiple processor cores include a first processor core, a second processor core...an Lth processor core. L is a positive integer greater than or equal to 2, and is flexibly set according to actual conditions. Among the multiple processor cores, each processor core is equivalent to a computing engine, and its type and / or number may be different. Among them, the types of processor cores include cores with strong computing power and cores with strong real-time performance (fast computing). In actual applications, most of the multiple processor cores are processor cores of different types, and a few cores are processor cores of the same type. Alternatively, the multiple processor cores may be processor cores of different types, and thus the multi-core heterogeneous chip is composed of two or more processor cores with different architectures. The difference in the type and / or number of processor cores can achieve different architectures between processor cores to a certain extent.

[0052] In practical applications, among all processor cores, as long as there are two or more processor cores of different types, such processor cores can be called multi-core heterogeneous, and the chip including these processor cores can be regarded as a multi-core heterogeneous chip.

[0053] For example, since the embedded processor (ARM) has the advantages of low cost and low power consumption, the digital signal processor (DSP) has the advantage of digital dedicated processing, and the field programmable logic array (FPGA) has the advantage of high-speed processing, each type of processor is used as a processor core, and these types of processors are designed on the same SOC chip, a multi-core heterogeneous SOC chip can be obtained.

[0054] like Figure 2 As shown, each processor core and the hardware resources connected to each processor core, such as a clock controller, an interrupt controller, a memory space, etc., constitute each hardware domain. That is, a multi-core heterogeneous chip includes multiple hardware domains. In a multi-core heterogeneous chip, each hardware domain is a collection of a group of hardware resources. Different hardware domains are isolated from each other, and this isolation can be regarded as a physical isolation, such as the hardware design in the same hardware domain is in a similar position of the multi-core heterogeneous chip, and the hardware design in different hardware domains is in different positions of the multi-core heterogeneous chip, so as to achieve isolation in physical position. Of course, the mutual isolation between different hardware domains in the embodiment of the present application may not be physical isolation, but logical isolation. This logical isolation can be reflected in: the hardware resources in the same hardware domain need to use the same communication identifier to access the hardware domain, that is, the hardware resources in the same hardware domain can access each other based on the communication identifier in the hardware domain. Hardware resources in different hardware domains are accessed using different communication identifiers.

[0055] In practical applications, it is preferred that the mutual isolation between different hardware domains is a logical isolation, which can at least save chip space.

[0056] like Figure 3 As shown, in a multi-core heterogeneous chip, an operating system can be configured for each hardware domain. For example, a first operating system is configured for the first hardware domain, a second operating system is configured for the second hardware domain, and so on. The operating systems configured for different hardware domains can be the same system, or different, preferably different systems. For example, the first operating system configured for the first hardware domain is a Linux system, and the second operating system configured for the second hardware domain is an Android system. Among them, since the Linux system has the characteristics of high security and the Android system has the characteristics of lightness, tasks with high security requirements in the multi-core heterogeneous system can be handed over to Linux for execution, and tasks that need to run lightly in the multi-core heterogeneous system can be handed over to the Android system for execution. Therefore, different operating systems on different hardware domains can be used in the multi-core heterogeneous system to achieve efficient execution of each task.

[0057] In a multi-core heterogeneous chip, an operating system may be configured for each hardware domain in most hardware domains according to actual needs, and no operating system may be configured for a small number of hardware domains, depending on specific usage.

[0058] In the embodiment of the present application, there is also a communication demand between hardware domains. When there is a communication demand between different hardware domains, an inter-core communication mechanism can be used to realize the communication between hardware domains. Among them, the inter-core communication mechanism in the multi-core heterogeneous system includes a mailbox mechanism suitable for instruction transmission and a memory sharing mechanism suitable for data sharing. Inter-core communication within a single SOC chip can ensure that data is transmitted within the same chip, ensuring data security and transmission speed.

[0059] Generally, there are differences in hardware resources in different hardware domains, and such differences may be reflected in differences in hardware type, hardware model, hardware quantity, etc. Such differences can, to a certain extent, reflect the heterogeneity of multi-core heterogeneous systems. As can be seen from the previous introduction, the multi-core heterogeneity in this application is a concept at the hardware level and has nothing to do with the software level.

[0060] like Figure 1 As shown, the multi-core heterogeneous chip in the embodiment of the present application also includes various types of control units. Various types of control units include but are not limited to: a power control unit, a non-volatile storage control unit, a volatile storage control unit, etc. Among them, the power control unit is used to control the power supply unit to realize the supply of power to the multi-core heterogeneous chip. The non-volatile storage control unit is used to control the access of at least one processor core in the multi-core heterogeneous chip to the non-volatile storage unit. The volatile storage control unit is used to control the access of at least one processor core in the multi-core heterogeneous chip to the volatile storage unit.

[0061] Among them, the power supply unit, non-volatile storage unit, and volatile storage unit are hardware resources outside the multi-core heterogeneous chip and can be called when the multi-core heterogeneous chip needs them. In addition, the audio output unit (such as a speaker or loudspeaker), audio acquisition unit (such as a microphone), video output unit (such as a display) and other hardware are hardware resources outside the multi-core heterogeneous chip and can also be called when the multi-core heterogeneous chip needs them to achieve normal audio and video output.

[0062] The boot management method of the embodiment of the present application is implemented on a multi-core heterogeneous system. The multi-core heterogeneous system involved in the boot management method of the embodiment of the present application includes M hardware domains, where M is a positive integer greater than or equal to 2. The M hardware domains can be Figure 2 All or part of the L hardware domains shown, preferably all of the hardware domains. Each hardware domain corresponds to an operating system. For example, hardware domain 1 corresponds to a first operating system, hardware domain 2 corresponds to a second operating system, and hardware domain M corresponds to an Mth operating system. Each hardware domain is composed of multiple processor cores with different architectures in a multi-core heterogeneous system and hardware resources connected to each processing core, and each hardware domain is isolated from each other. Figure 3 For more information on the multi-core heterogeneous system shown in Figure 1 and / or Figure 2 The relevant instructions are as follows, and the repeated parts are not repeated.

[0063] In this application, if the hardware domain and the operating system corresponding to the hardware domain are referred to as a (single) domain system, then it can be understood that a multi-core heterogeneous chip includes two or more such domain systems. A multi-core heterogeneous chip including two or more domain systems can be referred to as a multi-system platform. This application is intended to solve the problem of how to achieve targeted and efficient startup of abnormal domain systems in the presence of abnormally running domain systems for multi-core heterogeneous chips including two or more domain systems, so as not to affect the use of normally running domain systems and not to consume additional resources.

[0064] Figure 4 The schematic diagram of the implementation process of the startup management method in the embodiment of the present application is shown Figure 1 .like Figure 4 As shown, the startup management method includes:

[0065] S401: Monitor the operating status of M domain systems; wherein each domain system in the M domain systems includes each hardware domain in the M hardware domains and an operating system corresponding to each hardware domain.

[0066] Taking a multi-core heterogeneous chip including M domain systems as an example, a monitor is set for each domain in the M domain systems, that is, each domain corresponds to a monitor, and each monitor is used to monitor each domain system. In actual applications, the monitor can be a watchdog, or any other software / hardware that can monitor whether the operation status of the domain system is normal or abnormal.

[0067] S402: A first operating system among the M operating systems obtains first information, where the first information indicates that at least one of the M domain systems is monitored to be in an abnormal operating state.

[0068] In the present application, each of the M domain systems includes an operating system and a hardware domain. Each domain system implements its own functions. In the present application, the M domain systems can be divided into several system roles such as management domain system, security domain system and application domain system. Among them, the application domain system is used to implement their own application functions. For example, for a vehicle including multi-core heterogeneous chips, the application domain system can be the central control system and instrument system of the vehicle. The management domain system is used to manage the resources of the application domain system. For example, it manages the startup of the application domain system, the allocation of storage resources shared by the application domain system, etc. The security domain system is a domain system specially set up to realize the safe operation of multi-core heterogeneous chips, which can ensure the operational safety of multi-core heterogeneous chips.

[0069] The first operating system in the present application may be an operating system in a security domain system. In order to ensure better security, during implementation, the security domain system is hard-isolated from other domain systems, and the security domain system has its own set of hardware resources and does not share hardware resources with other domain systems. Using such a security domain system to implement the relevant solutions of the present application can ensure the smooth implementation of the solutions.

[0070] During implementation, the first operating system may obtain the first information in the following manner: each monitor may transmit the monitoring result to the first operating system. Alternatively, the first operating system actively reads the monitoring result of each monitor, analyzes the monitoring result, and determines whether there is a domain system in an abnormal (non-normal) operating state for each domain system. Alternatively, when the monitor detects that a domain system is operating abnormally, the monitoring result of the abnormal operation is transmitted to the first operating system, so that the first operating system is informed that there is a domain system in the M domain systems that is operating abnormally.

[0071] It can be understood that in actual applications, among the M domain systems of a multi-core heterogeneous chip, each domain system corresponds to a monitor. At the same or similar monitoring time, there may be only one monitor that monitors the domain system abnormality, or there may be two or more monitors that monitor the domain system abnormality. In other words, at the same or similar monitoring time, there may be one domain system with an abnormality, or two or more domain systems.

[0072] S403: Based on reference information of the abnormally operating domain system, the first operating system determines a target startup mode so that a second operating system among the M operating systems adopts the target startup mode to restart the domain system in an abnormally operating state; wherein the first operating system and the second operating system are different operating systems among the M operating systems.

[0073] In this application, the multi-core heterogeneous chip includes two startup modes: single-domain startup mode and global startup mode. Among them, the single-domain startup mode refers to the separate startup of the domain system with abnormalities in the multi-core heterogeneous chip. The global startup mode refers to the startup of the entire multi-core heterogeneous chip, that is, the startup of all domain systems.

[0074] The first operating system may receive information from the monitor to obtain reference information, or may obtain reference information by analyzing information from the monitor. In practical applications, the reference information may be the identity information of the abnormally operating domain system, or may be information about the startup mode pre-set for each domain system. In this way, for a domain system in an abnormally operating state, the first operating system can easily know whether the target startup mode for the domain system is a single-domain startup mode or a global-domain startup mode.

[0075] If there are two or more abnormal domain systems at the same or similar monitoring time, the first operating system determines which of the two startup modes the target startup mode of each abnormal domain system is based on the reference information of each abnormal domain system.

[0076] The second operating system in the present application may be an operating system in the management domain system. The first operating system and the second operating system are two operating systems located in different domain systems (the first operating system is located in the security domain system, and the second operating system is located in the management domain system). In the present application, two different domain systems share the two tasks of determining the target startup mode and restarting, which can avoid the problem of heavy load caused by executing these two tasks in the same domain system.

[0077] In S401~S403, for the multi-system platform of multi-core heterogeneous chips, in the case of an abnormally operating domain system, based on the reference information of the abnormally operating domain system, the first operating system determines the target startup mode so that the second operating system uses the target startup mode to restart the domain system in an abnormally operating state. Using the target startup mode to restart the domain system in an abnormally operating state achieves targeted startup, which is more targeted than method 1) in the related art. The technical solution of the present application can achieve targeted startup of abnormal domain systems without the need for virtual machine technology. Compared with method 2) in the related art, it does not require the consumption of additional resources and has high startup efficiency.

[0078] The technical solution of this application is an efficient and targeted startup solution for multi-core heterogeneous chips, a multi-system platform, and provides a new technical support for the startup of multi-system platforms. The solution of restarting the domain system in an abnormal operating state using the target startup mode can solve the anomaly or fault in a timely manner and ensure the security of the domain system.

[0079] In some embodiments, the target startup mode includes a first startup mode and a second startup mode, wherein the first startup mode is a single-domain startup mode and the second startup mode is a global-domain startup mode.

[0080] The scheme of restarting the domain system in an abnormal operating state by adopting the target startup mode includes:

[0081] S501 (Solution 1): In response to the target startup mode being the first startup mode, the second operating system restarts the domain system in an abnormally normal operating state. In this application, when the target startup mode is the single-domain startup mode, the second operating system independently starts the abnormal domain system.

[0082] S502 (Scheme 2): In response to the target startup mode being the second startup mode, restarting the domain system in an abnormally operating state and other domain systems in the M domain systems except the domain system in an abnormally operating state. In the present application, when the target startup mode is the global startup mode, all domain systems are started, that is, the entire multi-core heterogeneous chip is restarted.

[0083] In the multi-core heterogeneous chip multi-system platform, the abnormal domain system can be targeted for single domain startup or all domain startup according to the target startup mode of the domain system in abnormal operation state determined by reference information. This startup solution brings the beneficial effect of strong targeting, avoiding the impact of blindly starting all domains and making it impossible to use the normal domain system normally.

[0084] In some embodiments, the reference information includes the identity information of the abnormally normal operating domain system. When the identity information of the abnormally normal operating domain system represents that the abnormally normal operating domain system is other domain systems in the M domain systems except the first domain system and the second domain system, the first operating system determines that the target startup mode is the first startup mode; wherein the first domain system includes the first operating system and the hardware domain corresponding to the first operating system, and the second domain system includes the second operating system and the hardware domain corresponding to the second operating system. When the identity information of the abnormally normal operating domain system represents that the abnormally normal operating domain system includes at least one of the first domain system and the second domain system, the first operating system determines that the target startup mode is the second startup mode; wherein the domain system restarted in the first startup mode is different from the domain system restarted in the second startup mode.

[0085] Among them, the first domain system is a security domain system, and the second domain system is a management domain system. When the identity information of the abnormally normal operating domain system indicates that the abnormally normal operating domain system is a domain system other than the security domain and the management domain system in the M domain systems, such as an application domain system, the first operating system determines that the target startup mode is a single-domain startup mode, and starts the abnormal application domain system separately. When the identity information of the abnormally normal operating domain system indicates that the abnormally normal operating domain system is a security domain system and / or a management domain system in the M domain systems, the first operating system determines that the target startup mode is a global startup mode, and restarts all domain systems, that is, restarts the multi-core heterogeneous chip. According to the identity information of the abnormally normal operating domain system, a corresponding restart is implemented.

[0086] In short, in this application, if the domain system with an abnormality among the M domain systems is an application domain system, a single domain startup mode is adopted to start the domain system with the abnormality separately, thereby avoiding the problem that the domain system without the abnormality cannot be used normally, and realizing targeted restart.

[0087] If among the M domain systems, the domain system where the abnormality occurs is not the application domain system, but the security domain system and / or the management domain system, considering the security of the multi-core heterogeneous chip, the global startup mode is adopted to start all the M domain systems to restart the entire multi-core heterogeneous chip, thereby ensuring the chip security and the security of the data stored and run in the multi-core heterogeneous chip.

[0088] In actual applications, at the same or similar monitoring time, the number of domain systems in the M domain systems that are in an abnormal operating state may be one. During implementation, the target startup mode for the abnormal domain system may be determined based on the reference information of the abnormal domain system, and the target startup mode may be used to restart the system. At the same or similar monitoring time, the number of domain systems in the M domain systems that are in an abnormal operating state may also be at least two. If at least one of a security domain system and a management domain system exists in two or more abnormal domain systems, the target startup mode determined for the two or more abnormal domain systems is a global startup mode, and the M domain systems are restarted. If there is no security domain system and management domain system in the two or more abnormal domain systems, and each domain system in an abnormal operating state is other domain systems, such as all abnormal domain systems are application domain systems, priority information of each domain system in an abnormal operating state is obtained, so that the second operating system uses the first startup mode to restart each domain system in an abnormal operating state based on the priority information. In layman's terms, the second operating system uses a single-domain startup mode to start the abnormal domain systems separately according to the priority of each abnormal domain system, thereby achieving targeted startup with strong targeting.

[0089] In some embodiments, in response to the target startup mode being the first startup mode, the second operating system restarts the domain system in an abnormally normal operating state, including: in response to the target startup mode being the first startup mode, the second operating system at least switches the processor core of the abnormally normal operating domain system and the hardware resources connected to the processor core from the running state to the non-running state, and from the non-running state to the running state, and restarts the operating system of the abnormally normal operating domain system to realize the restart of the domain system in an abnormally normal operating state. It can be understood that the domain system includes an operating system and a hardware domain. If the operating system is simply regarded as the software part of the domain system and the hardware domain is regarded as the hardware part of the operating system, then the restart of the domain system in this application refers to restarting both the software and hardware in the domain system. This application is based on the domain system as a unit and restarts the domain system as a whole. The restart of the domain system with an abnormality is a restart from both software and hardware aspects, which realizes the comprehensive startup of the abnormal domain system and ensures data security.

[0090] Combine the following Figure 6 The technical solution of this application is described in detail.

[0091] exist Figure 6 In the example, the multi-core heterogeneous chip includes M=5 domain systems, among which the Secure system is used as the management domain system; Safety is used as the security domain system; and the AP 1 system, AP 2 system, and MP system are used as application domains. If the multi-core heterogeneous chip including the above five domain systems is a chip deployed on a vehicle, the AP 1 system can be the central control system of the vehicle, and the AP 2 system can be the instrument system of the vehicle. Compared with AP 1 and AP 2, the MP system is a small system of the vehicle, for example, used to realize the startup effects of the vehicle, such as animation, sound, etc.

[0092] A monitor is set for each of the five domain systems in advance, such as a watchdog. It can be understood that the watchdog can be used to monitor whether the domain system is running normally. It is mainly determined whether the monitored domain system is running normally by whether the value counted by the watchdog is cleared in time. If the monitored domain system is running normally, the processor core of the domain system, such as the central processing unit (CPU), will regularly clear the value calculated by the watchdog. If the watchdog count is full but not cleared in time, it is considered that the operation of the domain system is abnormal. During implementation, the watchdog count is monitored to see whether it is cleared in time, and the monitoring result of whether the domain system is running normally or abnormal can be obtained. When the watchdog count is not cleared in time, an interrupt signal (Wdg) is generated. The interrupt signal Wdg includes parameters such as the identifier of the processor core (core) of the domain system that is running abnormally, the reason for the abnormality (reason), and the startup mode or type (type) of the domain system that is running abnormally. There are three main reasons for the exception. The first is the exception caused by the CPU of the domain system being out of control. The second is the exception caused by the restart of the domain system triggered by the user. The third is the exception caused by the operation problem of the core of the domain system. There are two main startup modes or types. The first is single-domain startup and the second is global startup. The interrupt signal Wdg will be transmitted to the Sem module (middle module) of Safety.

[0093] Safety's operating system OS (first operating system) monitors whether the Sem module receives an interrupt signal. If it monitors that the Sem module receives an interrupt signal, the following processing flow is executed: Safety will save the log of the domain system that is running abnormally to the memory (EMMC, Embedded Multi Media Card) of the multi-core heterogeneous chip, so that the cause of the abnormality can be analyzed later based on the log stored in the EMMC. In actual applications, the identification and / or type of the processor core of the domain system with the abnormality can be used as reference information for the domain system that is not running normally. From the identification of the processor core alone, it can represent the identity information of the domain system with the core in the multi-core heterogeneous chip. If Safety's OS finds that the domain system that is running abnormally is an application domain system through analysis of the core identification, such as an AP 1 system, an AP 2 system, or an MP system, the target startup mode determined for the domain system that is running abnormally is a single domain startup mode. If the Safety OS finds, through analysis of the core identifier, that the domain system that is operating abnormally is a management domain system or a security domain system, if it is a Secure system or a Safety system, then the target startup mode determined for the domain system that is operating abnormally is the global startup mode. Alternatively, the Safety OS reads the type information and uses the startup mode or type indicated by the read type information as the target startup mode determined for the domain system that is operating abnormally. Exemplarily, if the startup type indicated by the read type information is a single-domain startup, then the target startup mode determined for the domain system that is operating abnormally is the single-domain startup mode. If the startup type indicated by the read type information is a global startup, then the target startup mode determined for the domain system that is operating abnormally is the global startup mode.

[0094] Considering the importance of security to multi-core heterogeneous chips, in this application, if the domain system with abnormal operation is Safety or Secure, the whole chip is restarted in full domain startup mode to ensure the security of chip data. If the domain system with abnormal operation is an application domain system, such as AP 1 system, AP 2 system or MP system, the single domain startup mode can be used to restart the abnormal domain system separately, and other domain systems without abnormal operation do not need to be restarted. This allows the fault of the abnormal domain system to be resolved in time, and at the same time, the domain system without abnormal operation can be used normally.

[0095] from Figure 6It can be seen that for domain systems such as MP, AP 1, AP 2, and Secure, the interrupt signals generated are transmitted to the Sem module of Safety, and Safety OS monitors whether the Sem module receives the interrupt signal. For the Safety domain system, an interrupt signal is generated when the count of the watchdog set for the Safety domain system is not cleared in time. SafetyOS monitors the interrupt signal from the watchdog of the Safety system. Safety OS can directly determine that the target startup mode is the global startup mode based on the source of the interrupt signal (from the Safety system).

[0096] In the case where the domain system with abnormal operation is at least one of the MP system, the AP1 system, and the AP 2 system, the target startup mode determined by the Safety OS for the domain system with abnormal operation is the single-domain startup mode. When the target startup mode is the single-domain startup mode, the Safety OS transmits the event that the domain system has an abnormality and the above three parameters as a message (Msg) to the Secure OS (second operating system).

[0097] The second operating system executes the restart process for the abnormal domain system: 1. Stop the normal operation of the CPU of the domain system with abnormal operation, and prohibit it from continuing to access the memory (DDR), EMMC and other external devices shared between the domain systems of the multi-core heterogeneous chip. Among them, DDR and EMMC are resources shared between the domains. 2. Wait for some time to allow the independent intellectual property (IP) module of the domain system with abnormal operation to complete the workflow that it needs to execute. Among them, the IP module is a module that can independently complete a specific function, that is, a module that can complete a specific function without being controlled by the CPU, such as a graphics processing unit (GPU), a direct memory access (DMA) and other modules. 3. Monitor the peripheral status of the domain system with abnormal operation until the peripheral is in a non-working state, and control the peripheral to stop and reset. In a multi-core heterogeneous chip, each domain system has its own set of peripherals, including audio codecs, wireless network modules (Wifi, Wireless Fidelity) and other devices. 4. Read the configuration information required by the domain system that needs to be restarted from the DDR, parse the image information to be loaded, load the image information, and restart the domain system that is running abnormally.

[0098] The 4 points in the above solution can be regarded as further explanations of switching the processor core of the abnormally operating domain system and the hardware resources connected to the processor core from the operating state to the non-operating state, and from the non-operating state to the operating state, and restarting the operating system of the abnormally operating domain system. The abnormal domain system is fully restarted from both the software and hardware aspects, thereby ensuring data security.

[0099] In actual applications, at the same or similar monitoring time, if only one domain system has an abnormality, it can be restarted according to the target startup mode determined by the reference information of the domain system. If two or more domain systems have abnormalities, and each domain system with abnormalities is an application domain system, the target startup mode determined for each domain system is a single domain startup mode. At this time, Secure's OS restarts each abnormal domain system according to the priority of each abnormal domain system. Among them, the priority of each domain system with abnormalities can be determined according to the actual driving status of the vehicle.

[0100] For example, at the same or similar monitoring time, the domain systems with abnormalities are the central control system (AP 1 system) and the instrument system (AP 2 system). If the vehicle is not turned off and is waiting in place, the priority of the central control system is higher than that of the instrument system. The Secure OS can start the central control system separately first, and then start the instrument system separately. If the vehicle is in a driving state, the priority of the instrument system is higher than that of the central control system. The Secure OS can start the instrument system separately first, and then start the central control system separately. In the case of abnormalities in two or more domain systems, targeted startup of each domain system is achieved. Moreover, this startup method will not affect each other, and hard isolation is achieved.

[0101] When the Safety OS determines that the target boot mode for the abnormal domain system is the global boot mode, the multi-core heterogeneous chip is restarted as a whole. Due to space limitations, this solution does not describe this process in detail. The Safety OS caches the logs of the abnormal domain system and determines the target boot mode by the reboot service.

[0102] The technical solution of this application is aimed at a multi-system platform of multi-core heterogeneous chips. When a domain system is not operating normally, the target startup mode is used to restart the domain system in an abnormal operating state, thereby achieving targeted startup. Targeted startup of abnormal domain systems can be achieved without consuming additional resources, and the startup efficiency is high. The solution of restarting domain systems in an abnormal operating state using the target startup mode can solve abnormalities or faults in a timely manner and ensure the security of the domain system. This is also the case. Figure 6 The illustrated scheme can be regarded as a safe restart scheme or safe restart mechanism for a multi-system platform.

[0103] For the multi-core heterogeneous chip, a multi-system platform, if the abnormal domain system is an application domain system, this technical solution can be used to restart a single domain system, avoiding the problem of the entire multi-core heterogeneous chip running slowly for a long time due to a failure in the application domain. Not only can the abnormality or failure of the domain system be resolved in time, but also the safety is guaranteed and it can be put into normal use in time.

[0104] In the multi-core heterogeneous chip multi-system platform, by processing the waiting, disabling, resetting and other operations of IP modules with autonomous capabilities such as GPU in the abnormal domain system, a relatively clean operating environment is provided for the restarted domain system, preventing the IP modules from competing for access to shared resources between domain systems such as DDR and bus during the startup process.

[0105] The technical solution of this application is a new safe restart solution for multi-system platforms. It realizes the safe restart of a single domain system through the refined management of each domain system in the multi-system platform of multi-core heterogeneous chips. In practical applications, it is necessary to monitor each domain system in the chip to identify domain systems that may be abnormal. When an abnormal domain system is identified, the target startup mode is used to safely restart the abnormal domain system. And by clearing the domain system cache, reloading configuration information and other solutions, it is restored to a normal operating state, thereby effectively improving the stability and availability of the entire chip.

[0106] It can be understood that the domain systems in a multi-core heterogeneous chip work in collaboration. The technical solution of the present application is used to ensure the safe restart of a single domain system. The restart of a single domain system will not affect the normal use of other domain systems, thereby ensuring the continuity and stability of the entire chip.

[0107] If an abnormality occurs in the domain system, the performance of the multi-system platform will be reduced. The safe restart solution in this application can effectively solve the problem of performance degradation and can also realize timely repair of faults or abnormalities. It is suitable for platforms with multiple systems and has high universality and practicality. In actual applications, the safe restart process of each domain system can be customized according to the specific needs of the domain system to meet the requirements of different domain systems.

[0108] The present application provides a startup management device, the device is located in a multi-core heterogeneous system, the multi-core heterogeneous system includes at least two hardware domains; each hardware domain is composed of multiple processor cores with different architectures in the multi-core heterogeneous system and hardware resources connected to each processor core, and the hardware domains are isolated from each other; M hardware domains in the at least two hardware domains correspond to M operating systems, and M is a positive integer greater than or equal to 2. Figure 7 As shown, the device includes:

[0109] The monitoring unit 701 is used to monitor the operation status of the M domain systems; wherein each domain system in the M domain systems includes each hardware domain in the M hardware domains and an operating system corresponding to each hardware domain;

[0110] An obtaining unit 702 is configured to obtain first information by using a first operating system among the M operating systems, wherein the first information indicates that at least one of the M domain systems is monitored to be in an abnormal operating state;

[0111] The determination unit 703 is used to determine the target startup mode using the first operating system based on the reference information of the abnormally operating domain system, so that the second operating system among the M operating systems adopts the target startup mode to restart the domain system in an abnormally operating state; wherein the first operating system and the second operating system are different operating systems among the M operating systems.

[0112] In some embodiments, the target startup mode includes a first startup mode and a second startup mode; the device further includes:

[0113] A restart unit is used to restart the domain system in an abnormal operating state using the second operating system in response to the target startup mode being the first startup mode; and to restart the domain system in an abnormal operating state and other domain systems in the M domain systems except the normally operating domain system in response to the target startup mode being the second startup mode.

[0114] In some embodiments, the reference information includes identity information of the abnormally normal operating domain system; the determining unit 703 is used to:

[0115] When the identity information of the abnormally normal operating domain system indicates that the abnormally normal operating domain system is another domain system other than the first domain system and the second domain system in the M domain systems, the target startup mode is determined to be the first startup mode by using the first operating system; wherein the first domain system includes the first operating system and a hardware domain corresponding to the first operating system, and the second domain system includes the second operating system and a hardware domain corresponding to the second operating system;

[0116] When the identity information of the abnormally normal operating domain system represents that the abnormally normal operating domain system includes at least one of the first domain system and the second domain system, the first operating system is used to determine that the target startup mode is the second startup mode; wherein the domain system restarted in the first startup mode is different from the domain system restarted in the second startup mode.

[0117] In some embodiments, the number of domain systems in the M domain systems that are in an abnormal operating state is at least two; and each domain system in an abnormal operating state is the other domain system.

[0118] The determining unit 703 is used to obtain priority information of each domain system in an abnormal operating state, so that the second operating system uses the first startup mode to restart each domain system in an abnormal operating state based on the priority information.

[0119] In some embodiments, the restarting unit is used to:

[0120] In response to the target startup mode being the first startup mode, the second operating system is used to switch at least the processor core of the abnormal operating domain system and the hardware resources connected to the processor core from a running state to a non-operating state, and from a non-operating state to a running state, and the operating system of the abnormal operating domain system is restarted to achieve a restart of the abnormal operating domain system.

[0121] In some embodiments, each domain system in the M domain systems corresponds to a monitor; the monitoring unit 701 is used to monitor each domain system using each monitor.

[0122] It should be noted that the startup management device of the embodiment of the present application solves the problem based on a principle similar to that of the aforementioned startup management method. Therefore, the implementation process and implementation principle of the startup management device can refer to the description of the implementation process and implementation principle of the aforementioned method, and the repeated parts will not be repeated.

[0123] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0124] The electronic device includes at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the startup management method described in the present application. The computer instructions are used to enable the computer to execute the startup management method described in the present application.

[0125] Figure 8A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0126] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 to a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0127] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0128] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the boot management method. For example, in some embodiments, the boot management method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the boot management method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the boot management method in any other appropriate manner (e.g., by means of firmware).

[0129] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0130] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0131] In the context of the present application, 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 device, 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.

[0132] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0133] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by 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), and the Internet.

[0134] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0135] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A startup management method, characterized in that: The method is applied to a multi-core heterogeneous system, wherein the multi-core heterogeneous system includes at least two hardware domains; each hardware domain is composed of a plurality of processor cores with different architectures in the multi-core heterogeneous system and hardware resources connected to each processor core, and the hardware domains are isolated from each other; The M hardware domains of the at least two hardware domains correspond to M operating systems, where M is a positive integer greater than or equal to 2; the method comprises: Monitoring the operation status of the M domain systems; wherein each domain system in the M domain systems includes each hardware domain in the M hardware domains and an operating system corresponding to each hardware domain; A first operating system among the M operating systems obtains first information, where the first information indicates that at least one of the M domain systems is monitored to be in an abnormal operating state; Based on the reference information of the abnormally operating domain system, the first operating system determines a target startup mode so that a second operating system among the M operating systems adopts the target startup mode to restart the domain system in an abnormally operating state; wherein the first operating system is an operating system in a security domain system among the M domain systems, and the second operating system is an operating system in a management domain system among the M domain systems; Wherein, in the case where the reference information includes the identity information of the abnormally normal operating domain system, When the identity information of the abnormally operating domain system indicates that the abnormally operating domain system is other domain systems except the first domain system and the second domain system among the M domain systems, the first operating system determines that the target startup mode is the first startup mode; in response to the target startup mode being the first startup mode, the second operating system restarts the domain system in an abnormally operating state; When the identity information of the abnormally normal operating domain system indicates that the abnormally normal operating domain system includes at least one of a first domain system and a second domain system, the first operating system determines that the target startup mode is the second startup mode; in response to the target startup mode being the second startup mode, the domain system in the abnormally normal operating state and other domain systems in the M domain systems except the abnormally normal operating domain system are restarted; wherein the first domain system includes a first operating system and a hardware domain corresponding to the first operating system, and the second domain system includes a second operating system and a hardware domain corresponding to the second operating system; the method further includes: In the case where the number of the M domain systems in an abnormal operating state is at least two, and each domain system in an abnormal operating state is a domain system other than the first domain system and the second domain system, Priority information of each domain system in an abnormal operating state is obtained, so that the second operating system uses the first startup mode to restart each domain system in an abnormal operating state based on the priority information; wherein the priority information of each domain system is determined according to the actual driving state of the vehicle.

2. The method according to claim 1, characterized in that The method further comprises: In response to the target startup mode being the first startup mode, the second operating system at least switches the processor core of the abnormal operating domain system and the hardware resources connected to the processor core from a running state to a non-operating state, and from a non-operating state to a running state, and restarts the operating system of the abnormal operating domain system to achieve a restart of the domain system in the abnormal operating state.

3. The method according to claim 1, characterized in that Each domain system in the M domain systems corresponds to a monitor; The monitoring of the operating status of the M domain systems includes: Each monitor is used to monitor the system in each domain.

4. A startup management device, characterized in that: The device is located in a multi-core heterogeneous system, and the multi-core heterogeneous system includes at least two hardware domains; each hardware domain is composed of a plurality of processor cores with different architectures in the multi-core heterogeneous system and hardware resources connected to each processor core, and the hardware domains are isolated from each other; The M hardware domains of the at least two hardware domains correspond to M operating systems, where M is a positive integer greater than or equal to 2; the device comprises: A monitoring unit, used to monitor the operating status of the M domain systems; wherein each domain system in the M domain systems includes each hardware domain in the M hardware domains and an operating system corresponding to each hardware domain; An obtaining unit, configured to obtain first information by using a first operating system among the M operating systems, wherein the first information indicates that at least one of the M domain systems is monitored to be in an abnormal operating state; a determining unit, configured to determine a target startup mode using the first operating system based on reference information of the abnormally operating domain system, so that a second operating system among the M operating systems adopts the target startup mode to restart the domain system in an abnormally operating state; wherein the first operating system is an operating system in a security domain system among the M domain systems, and the second operating system is an operating system in a management domain system among the M domain systems; Wherein, in the case where the reference information includes identity information of the abnormally normal operating domain system, the determining unit is used to: When the identity information of the abnormally normal operating domain system indicates that the abnormally normal operating domain system is another domain system among the M domain systems except the first domain system and the second domain system, using the first operating system to determine that the target startup mode is the first startup mode; When the identity information of the abnormally normal operating domain system indicates that the abnormally normal operating domain system includes at least one of a first domain system and a second domain system, the target startup mode is determined to be the second startup mode using the first operating system; wherein the first domain system includes a first operating system and a hardware domain corresponding to the first operating system, and the second domain system includes a second operating system and a hardware domain corresponding to the second operating system; The device further includes a restart unit, configured to, in response to the target startup mode being the first startup mode, restart the domain system in an abnormally operating state using the second operating system; in response to the target startup mode being the second startup mode, restart the domain system in an abnormally operating state and other domain systems in the M domain systems except the domain system in the abnormally operating state using the second operating system; The determination unit is further used to obtain priority information of each domain system in an abnormal operating state when the number of domain systems in the M domain systems that are in an abnormal operating state is at least two and each domain system in an abnormal operating state is a domain system other than the first domain system and the second domain system, so that the second operating system uses the first startup mode to restart each domain system in an abnormal operating state based on the priority information; wherein the priority information of each domain system is determined according to the actual driving state of the vehicle.

5. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 3.

6. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-3.

Citation Information

Patent Citations

  • Vehicle-mounted system data storage system and method based on multi-core heterogeneous SoC

    CN115587071A

  • Starting method and device, equipment and storage medium

    CN116610370A

  • Real-time multi-task processing method, chip system and equipment based on multi-core heterogeneity

    CN117075983A

  • Monitoring reset method and system of multi-core heterogeneous system, chip and electronic equipment

    CN117130832A

  • Multi-operating system diagnosis method, device and system based on multi-core heterogeneous SOC

    CN117632570A