Starting method, processor architecture, computer equipment and storage medium

By providing a processor architecture in the SoC, using the application processor to control memory and functional module reset, and loading startup data, the smooth startup of the input and output processor is solved, and the input and output processor startup problem in the SoC is ensured, ensuring the safety of the system and power consumption management.

CN119065724APending Publication Date: 2024-12-03PHYTIUM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411074339.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

There is no startup method for input and output processors integrated in SoCs in the prior art, making it difficult to achieve smooth startup.

Method used

Provides a processor architecture, including an application processor and an input and output processor, which controls the reset and release of internal memory and functional modules through the application processor, and stores the startup data to the internal memory. The processor core loads the startup data to complete the input and output processing. start of the device.

Benefits of technology

The smooth start of the input and output processor integrated into the processor architecture provides a foundation for controlling the peripheral controller through the input and output processor, meets the actual application needs, and ensures the security of the preset system firmware and the overall system function. Reduced consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065724A_ABST
    Figure CN119065724A_ABST
Patent Text Reader

Abstract

The invention provides a starting method, a processor architecture, computer equipment and a storage medium, and is applied to the technical field of computers, the method is applied to the processor architecture, and the processor architecture comprises an application processor and an input and output processor. The input / output processor comprises at least one special processor core, an internal memory and functional modules, the processor architecture executes a starting process in response to a starting instruction initiated by a user, and the application processor controls the internal memory and the functional modules to reset and release in the starting process. And then the application processor stores starting data related to the starting process and the input / output processor into an internal memory, and controls the processor core to reset and release, and the processor core loads the starting data to finish starting. Through the method, smooth starting of the input / output processor integrated in the processor architecture can be realized; a basis is provided for controlling each peripheral controller through the input and output processor, and the actual application requirements are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In existing applications, the System on Chip (SoC) communicates with external devices and controls the operation of external devices, where the external devices include serial port devices, audio devices, storage devices, etc. In order to control external devices, the SoC integrates an application processor and a peripheral controller corresponding to each external device. The application processor communicates with each peripheral controller and controls the corresponding external device by accessing the peripheral controller.

[0003] The inventors have discovered that an input / output processor (IOP) can be integrated into a SOC to implement external device management through the IOP. However, there is no startup method for the IOP integrated into the SoC in the prior art. Therefore, how to smoothly start the IOP integrated into the SoC has become one of the technical problems that need to be solved urgently by those skilled in the art. Summary of the invention

[0004] In view of this, the present application is committed to providing a startup method, processor architecture, computer device and storage medium, which can realize the smooth startup of the input and output processor in the SoC and meet the actual application needs.

[0005] In a first aspect, the present application provides a startup method, which is applied to a processor architecture, wherein the processor architecture includes an application processor and an input-output processor, wherein the input-output processor includes at least one dedicated processor core, an internal memory, and at least one functional module for implementing a preset function, wherein the method includes:

[0006] In response to a startup instruction initiated by a user, the processor architecture executes a startup process, and during the startup process, the internal memory and each of the functional modules are controlled by the application processor to reset and release;

[0007] The application processor stores the startup process and the startup data related to the input and output processor in the internal memory, and controls the reset release of the processor core;

[0008] The startup data is loaded by the processor core to complete the startup of the input and output processor.

[0009] Based on the above content, the startup method provided by the present application is applied to a processor architecture, which includes an application processor and an input-output processor, the input-output processor includes at least one dedicated processor core, an internal memory and at least one functional module for implementing preset functions. In response to a startup instruction initiated by a user, the processor architecture executes a startup process. During the startup process, the application processor controls the internal memory and each functional module to reset and release, and then the application processor stores the startup data related to the startup process and the input-output processor to the internal memory, and controls the processor core to reset and release, the processor core loads the startup data, and completes the startup of the input-output processor. Through this method, the smooth startup of the input-output processor integrated in the processor architecture can be achieved, which provides a basis for controlling each peripheral controller through the input-output processor and meets actual application needs.

[0010] In a possible implementation, the startup data includes preset system firmware;

[0011] Storing the startup process and the startup data related to the input and output processor into the internal memory through the application processor, including:

[0012] In the BL1 stage of the boot process, the preset system firmware in the first off-chip memory outside the input / output processor is acquired by the application processor, and the preset system firmware is stored in the internal memory.

[0013] In the boot method provided in the present application, the preset system firmware is stored in a first off-chip memory outside the input / output processor before the input / output processor is started. After entering the BL1 stage of the boot process, the preset system firmware is obtained from the first off-chip memory and stored in the internal memory of the input / output processor. That is, when the input / output processor is not started, the preset system firmware is stored separately and has no association with the input / output processor. The preset system firmware is stored in the internal memory only during the boot process of the input / output processor. This arrangement can ensure the storage security of the preset system firmware. At the same time, since the internal memory does not need to store the preset system firmware for a long time, it also helps to reduce the overall power consumption of the input / output processor and the processor architecture.

[0014] In a possible implementation manner, the startup method provided in the first aspect of the present application further includes:

[0015] The application processor is prohibited from accessing the preset system firmware through the processor core.

[0016] In the present application, the processor core prohibits the application processor from accessing the preset system firmware, which can ensure that after the processor core loads the preset system firmware and completes the startup of the input and output processor, the application processor cannot access the preset system firmware in any form, preventing the preset system firmware from being modified, thereby ensuring the security and reliability of the input and output processor operation.

[0017] In a possible implementation manner, the first instruction of the preset system firmware is an instruction for prohibiting the application processor from accessing the preset system firmware.

[0018] In the present application, the instruction for prohibiting the application processor from accessing the preset system firmware is used as the first instruction of the preset system firmware, so that the processor core can prohibit the application processor from accessing the preset system firmware when the preset system firmware is loaded for the first time, thereby preventing the application processor from modifying the preset system firmware while the processor core is loading the preset system firmware, thereby fully ensuring the security of the preset system firmware.

[0019] In a possible implementation manner, the startup method provided in the first aspect of the present application further includes:

[0020] In response to the sleep instruction, the processor core stores the target task information of the task currently running by the input / output processor in a second off-chip memory arranged outside the input / output processor.

[0021] In the present application, a method for controlling an input-output processor to enter a sleep mode is provided. In response to a sleep instruction, the processor architecture stores the target task information of the task currently running in the input-output processor in a second off-chip memory. This arrangement can ensure that the task information of the task currently running in the input-output processor will not be lost, thereby ensuring data security.

[0022] In a possible implementation manner, the startup method provided in the first aspect of the present application further includes:

[0023] In response to a wake-up instruction initiated by a user, the processor architecture executes a wake-up process. In the BL1 stage of the wake-up process, the preset system firmware of the input / output processor and the target task information are stored in the internal memory through the application processor.

[0024] In the present application, a method for waking up an input-output processor from a sleep mode is provided. Since all data in the internal memory of the input-output processor will be cleared after entering the sleep mode, the wake-up process first needs to store all the preset system firmware and the target task information before the input-output processor enters the sleep mode into the internal memory to ensure that the processor core can obtain all the required data during the input-output processor wake-up process, thereby completing the input-output processor wake-up.

[0025] In a possible implementation manner, the startup method provided in the first aspect of the present application further includes:

[0026] The preset system firmware is loaded through the processor core and the currently running task is restored according to the target task information after the input and output processor is awakened.

[0027] In this application, the processor core loads the preset system firmware to complete the input and output processor wake-up, ensuring that the basic functions of the input and output processor are normal after wake-up, and further restores the currently running task according to the target task information, ensuring that the task running before hibernation can be executed normally after wake-up, thereby ensuring the continuity and reliability of the task execution process.

[0028] In a second aspect, the present application provides a processor architecture, including: an application processor and an input / output processor, wherein:

[0029] The input-output processor includes at least one dedicated processor core, an internal memory and at least one functional module for implementing a preset function;

[0030] The application processor executes the steps executed by the application processor in the startup method as described in any one of the first aspects of the present application;

[0031] The processor core is used to execute the steps performed by the processor core of the input and output processor in the startup method as described in any one of the first aspects of the present application.

[0032] In a third aspect, the present application provides a computer device comprising the processor architecture as described in the second aspect of the present application.

[0033] In a fourth aspect, the present application provides a computer-readable storage medium, comprising: a computer program stored therein, wherein the computer program, when executed, implements the startup method as described in any one of the first aspects of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 It is a structural block diagram of a processor architecture provided by an embodiment of the present invention.

[0036] Figure 2 It is a flow chart of a startup method provided by an embodiment of the present invention.

[0037] Figure 3 It is a flow chart of another startup method provided by an embodiment of the present invention.

[0038] Figure 4 This is a flowchart of another startup method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 ordinary technicians in this field without creative work are within the scope of protection of this application.

[0040] As mentioned above, in existing applications, SoC communicates with external devices and controls the operation of external devices, where the external devices include serial port devices, audio devices, storage devices, etc. In order to control external devices, the SoC integrates an application processor (AP) and a peripheral controller corresponding to each external device. The application processor communicates with each peripheral controller and controls the corresponding external device by accessing the peripheral controller.

[0041] The inventors have found that the application processor controls external devices by accessing the peripheral controller, which will occupy a large amount of application processor resources. In particular, in scenarios where frequent information interaction with external devices is required, the application processor needs to provide a large amount of software and hardware resources to complete this task. The input / output processor (IOP) can be used for external device management. Therefore, the input / output processor can be integrated into the SoC and the external devices can be managed by the input / output processor. However, there is no startup method for the input / output processor integrated in the SoC in the prior art. Therefore, how to achieve the smooth startup of the input / output processor integrated in the SoC has become one of the technical problems that technical personnel in this field need to solve urgently.

[0042] To solve the above technical problems, the present application provides a startup method, which is applied to a processor architecture, wherein the processor architecture includes an application processor and an input-output processor, wherein the input-output processor includes a dedicated processor core, an internal memory, and a functional module. During the startup process, the application processor controls the internal memory and each functional module to reset and release, and then the application processor stores the startup data related to the startup process and the input-output processor to the internal memory, and controls the processor core to reset and release, and the processor core loads the startup data to complete the startup of the input-output processor, thereby achieving the smooth startup of the input-output processor integrated in the processor architecture, providing a basis for controlling each peripheral controller through the input-output processor, and meeting actual application needs.

[0043] Based on the above, see Figure 1 As shown, the processor architecture provided by the present application includes: an input-output processor 10, an application processor 20, a first off-chip memory 30, a second off-chip memory 40, a system control processor (System Control Processor, SCP) 50, a first interconnection network 60 and at least one peripheral controller 70 ( Figure 1 ), wherein the input and output processor 10, the application processor 20,

[0044] The first off-chip memory 30 , the second off-chip memory 40 and the system control processor 50 are mounted on the first interconnection network 60 , respectively.

[0045] The first interconnection network 60, as a data transmission path, is mainly used to implement data interaction between the input and output processor 10, the application processor 20, the first off-chip memory 30, the second off-chip memory 40 and the system control processor 50. As for the specific implementation of the first interconnection network 60, reference may be made to the relevant technology, and this application does not make any specific limitation thereto.

[0046] The main function of the system control processor 50 is to control the reset of each component in the processor architecture, especially after the processor architecture is powered on, it first controls the reset of the application processor 20. At the same time, as the processor with the highest authority in the processor architecture, the system control processor 50 is also responsible for managing the configuration of the entire processor architecture.

[0047] The second off-chip memory 40 and the first off-chip memory 30 have the same function, which is mainly used to store data. The difference is that the data stored in the two are different in different scenarios. In addition, due to the different stored data, there will be certain differences in the specific selection of the first off-chip memory 30 and the second off-chip memory 40. This part will be expanded in the subsequent content combined with the specific application scenario, and will not be described in detail here.

[0048] The application processor 20 is the core processor in the processor architecture, which is usually used to carry the operating system and application programs, execute most of the tasks of the application layer, and perform necessary information interaction with the user. In the prior art related to this application, the application processor 20 is also used to control external devices. In the processor architecture provided by this application, due to the addition of the input-output processor 10, the application processor 20 adds some functions related to the input-output processor startup process. This part of the content is also detailed in the subsequent content.

[0049] The input / output processor 10 is integrated into the processor architecture, and is mainly used to share the pressure of the application processor 20, and as an intermediate medium for data exchange between the application processor 20 and the peripheral controller 70, so that the application processor 20 can access each peripheral controller 70 through the input / output processor 10, thereby realizing the external devices ( Figure 1 (not shown) control.

[0050] Combination Figure 1 As shown, the input-output processor 10 includes at least one dedicated processor core 110 ( Figure 1 ), an internal memory 120 and at least one functional module for implementing a preset function, Figure 1 In the example shown, the functional modules include a watchdog 130, a timer 140, a register array 150, a second interconnection network 160, and a trusted zone controller (TZC) 170. Of course, the input / output processor 10 may also include other functional modules, which are not listed here one by one. As long as they do not exceed the core idea of ​​the present application, they also fall within the scope of protection of the present application.

[0051] The processor core 110 , the internal memory 120 , the watchdog 130 , the timer 140 , the register array 150 and the trusted domain controller 170 are respectively mounted on the second interconnection network 160 . Furthermore, the peripheral controller 70 is also connected to the second interconnection network 160 .

[0052] The processor core 110 is the core component of the input and output processor 10. Figure 1As shown, the processor core 110 is communicatively connected with the peripheral controller 70 via the second interconnection network 160, and the processor core 110 can directly access the peripheral controller 70. Furthermore, the processor core 110 can also perform data interaction with the application processor 20 based on the inter-core channel composed of the internal memory 120 and the register array 150. Based on this, the processor core 110 can realize data interaction between the application processor 20 and the peripheral controller 70, so that the application processor 20 can access the peripheral controller 70 through the input and output processor 10, and then control the corresponding external device.

[0053] As mentioned above, one of the functions of the internal memory 120 is to form an inter-core channel with the register array 150 to store the interaction data between the application processor 20 and the processor core 110. Another function of the internal register 120 is to store the preset system firmware of the input / output processor 10 during the startup of the input / output processor 10. This function will be specifically expanded in subsequent embodiments and will not be described in detail here.

[0054] The watchdog 130 is mainly used to reset the processor core 110 when the input / output processor 10 times out abnormally.

[0055] The timer 140 is mainly used as a system counter of the input / output processor 10 .

[0056] The register array 150 is one of the key components of the input / output processor 10, and is composed of a plurality of registers corresponding to different functions, such as a register for triggering an interrupt signal, a register for recording the data read / write status, a register for recording the number of data written, a register for recording the number of data read, a register for configuring the aforementioned inter-core channel capacity, and a register for recording the number of inter-core channels, etc. Of course, registers corresponding to other functions can also be set based on actual application requirements, which are not listed one by one here.

[0057] Further, as described above, the register array 160 can cooperate with the internal memory 120 to construct an inter-core channel for realizing data interaction between the application processor 20 and the processor core 110. In a possible implementation, the inter-core channel includes a storage space of a preset capacity in the internal memory 120 and two registers of the register array 160, one of which is used for the application processor 20 to trigger an interrupt, and the other register is used for the processor core 110 to trigger an interrupt.

[0058] The function of the second interconnection network 160 is similar to that of the first interconnection network 60, and is also used as a data interaction path to realize data interaction between any two or more functional modules mounted on the second interconnection network 160. For example, data sent from the application processor 20 to the processor core 110 is sent to the inter-core channel, the core instructions of the processor core 110 are transmitted to the internal memory 120, and the instructions issued by the processor core 110 are transmitted to the watchdog 130, the timer 140 and the peripheral controller 70, etc.

[0059] The main function of the trusted domain controller 170 is to determine whether to prohibit the application processor 20 from accessing the preset system firmware stored in the internal register 120, and to filter the requests issued by the application processor 20 according to the security attributes of the peripheral controller after the processor core 110 is started. Only secure requests can access the inter-core channel corresponding to the secure external controller, and non-secure requests to access the inter-core channel corresponding to the secure external controller will be filtered. Among them, the specific implementation of whether the trusted domain controller 170 prohibits the application processor 20 from accessing the preset system firmware stored in the internal register 120 will be expanded in the subsequent content and will not be described in detail here.

[0060] It should be noted that in Figure 1 In the illustrated embodiment, the peripheral controller 70 is disposed outside the input / output processor 10. The input / output processor 10 is mainly used as an intermediate medium for realizing data interaction between the application processor 20 and the peripheral controller 70. The specific external device control is still realized by the peripheral controller 70. The function of the input / output processor 10 is more specific and the overall architecture is simple. In another optional implementation, the peripheral controller 70 can also be integrated into the input / output processor 10, so that the input / output processor 10 integrates the aforementioned intermediate medium and the function of controlling the external device. Further, it is also helpful to realize the unified design and layout of the peripheral controller 70 and the input / output processor 10. The iterative upgrade of the peripheral controller is invisible to the user. The manufacturer does not need to provide any information of the peripheral controller to the user, which is helpful for the complete privatization of the peripheral controller. At the same time, it ensures that the application processor 20 cannot directly access the peripheral controller 70, thereby improving security.

[0061] Based on the above processor architecture, this application provides a startup method, see Figure 2 As shown, the startup method provided by the present application includes the following steps.

[0062] S100. In response to a startup instruction initiated by a user, the processor architecture executes a startup process. During the startup process, the internal memory and each functional module are reset and released by controlling the application processor.

[0063] In the actual application of the processor architecture, its startup process is controlled by the user, that is, when the user needs to start the processor architecture, he sends a startup instruction to the processor architecture. The startup instruction can be implemented in many ways, for example, it can be a power-on signal, or it can be a signal triggered by other software, which will not be listed here one by one. This application does not limit the specific form and issuance method of the startup instruction.

[0064] In response to the startup instruction initiated by the user, the processor architecture starts to execute the startup process. In one possible implementation, after the system to which the processor architecture belongs is powered on, the system control processor is first reset and released because it has the highest authority and is responsible for managing the configuration of the entire processor architecture. After the system control processor is reset and released, it will further control the reset and release of the application processor. Specifically, the system control processor sends a request to write the reset register of the main core (i.e., the application processor), writes the value of the main core reset register from 0 to 1, releases the reset signal of the application processor, and the application processor starts running after exiting the reset state. The system control processor will also control the reset of external devices, and in application scenarios where it is necessary to distinguish the security attributes of external devices, the system control processor will also configure the security attributes of each external device, that is, mark the external device as a secure device or a non-secure device. At this point, the main task of the system control processor in the startup process has been completed, and the subsequent startup process will be mainly completed by the application processor and the input and output processor in cooperation.

[0065] As mentioned above, after power-on reset, the system control processor has controlled the application processor to reset and start. Based on this, the application processor first controls the reset and release of other modules in the input and output processor except the processor core, that is, controls the internal memory and various functional modules to reset and release before the processor core.

[0066] In a possible implementation, the register array includes a main reset register for triggering the reset and release of each functional module, and an independent reset register corresponding to each functional module and used to trigger the reset and release of the functional module. Based on this, when controlling the reset and release of the internal memory and each functional module, firstly, data representing the permission for the reset of each functional module is written to the main reset register, and then data representing the reset of the target functional module is written to the target independent reset register, wherein the target functional module is any module among the functional modules, and accordingly, the target independent reset register is the independent reset register corresponding to the target functional module.

[0067] For example, the application processor sends a request to write the master reset register, and writes the value of the master reset register from 0 to 1. Then, the application processor sends a request to write the independent reset register corresponding to the internal memory, and writes the value of the independent reset register from 0 to 1, so that the internal memory completes the reset release. After that, the application processor can write the independent reset registers corresponding to other functional modules in turn to complete the reset release of other functional modules. This will not be repeated here, and the details can be referred to the above content.

[0068] S110 , storing the startup data related to the startup process and the input / output processor into the internal memory through the application processor, and controlling the processor core to reset and release.

[0069] During the startup process of the input-output processor, the startup data related to the input-output processor mainly refers to the preset system firmware. It can be understood that the preset system firmware is the most basic firmware program required for the input-output processor to realize its preset functions, including but limited to the input-output processor system firmware and firmware programs required for other core functions. In actual applications, the preset system firmware may vary due to the different specific functions and implementation methods of the input-output processor. This application does not limit the specific composition of the preset system firmware, which shall be based on the requirements for the startup of the input-output processor.

[0070] After the modules other than the processor core in the control input and output processor complete reset release, the application processor will store the preset system firmware into the internal memory so that the processor core can be started smoothly.

[0071] In a possible implementation, before the input / output processor is started, the preset system firmware is stored in the first off-chip memory, and the security attribute of the first off-chip memory is secure. In practical applications, it is difficult to be accessed by non-secure requests. At the same time, the system to which the processor architecture belongs will also set other measures to ensure data security, thereby ensuring the security of the preset system firmware to the greatest extent. As an optional implementation, the first off-chip memory includes a non-volatile memory.

[0072] Furthermore, in the BL1 stage of the boot process, the application processor obtains the preset system firmware stored in the first off-chip memory, and stores the preset system firmware in the internal memory. Specifically, the application processor sends a read request to the first off-chip memory indicating the need to read the preset system firmware, and obtains the preset system firmware from the first off-chip memory. As mentioned above, the internal memory is mainly used to implement two functions, one is to cooperate with the register array to build an inter-core channel to store the interaction data between the application processor and the processor core, and the other is to store the startup data related to the input and output processor startup process. Based on this, the application processor needs to store the preset system firmware in the storage space in the internal memory for storing startup data.

[0073] Based on the above content, it can be seen that the storage space of the internal memory needs to be divided into at least two parts in actual applications, among which the storage space used to realize data interaction between the application processor and the processor core needs to be further divided. Based on this, as an optional implementation method, the application processor can also configure the internal memory before storing the preset system firmware in the internal memory, divide the internal memory into the above two major parts, and further configure the storage space used to cooperate with the register array to build an inter-core channel to store the interaction data between the application processor and the processor core as a shared storage space corresponding to the peripheral controller one by one. The shared storage space is combined with the registers in the register array to obtain the aforementioned inter-core channel.

[0074] After storing the preset system firmware in the internal memory, the application processor further controls the reset release of the processor core. In an optional implementation, the application processor sends a request to write the processor core independent reset register, writes the value of the processor core independent reset register from 0 to 1, and releases the processor core reset. In another possible implementation, the watchdog and timer need to be reset at the same time as the processor core. After completing the processor core reset, the application processor may further send a request to write the watchdog independent reset register, write the value of the watchdog independent reset register from 0 to 1, and release the watchdog reset; correspondingly, the application processor sends a request to write the timer independent reset register, writes the value of the timer independent reset register from 0 to 1, and releases the timer reset.

[0075] S120 , loading the startup data through the processor core to complete the startup of the input and output processor.

[0076] After the above steps, the processor core is reset, and the preset system firmware required for the input and output processor to run has been stored in the internal memory. Based on this, the processor core can load the startup data, that is, the preset system firmware, through the second Internet network to complete the startup of the input and output processor.

[0077] In an optional implementation, after the startup is completed, the processor core will also send a notification message indicating the startup is completed to the application processor. After receiving the notification message, the application processor continues to perform other preset operations in the startup process of the processor architecture, for example, through the external interface ( Figure 1 The input / output processor (not shown in the figure, usually a serial interface) outputs relevant information representing the startup status (such as initializing a serial port request). In practical applications, the startup process of the input / output processor can be analyzed or monitored based on the relevant information.

[0078] In summary, the startup method provided by the present application is applied to a processor architecture, which includes an application processor and an input-output processor, the input-output processor includes at least one dedicated processor core, an internal memory and at least one functional module for implementing a preset function. In response to a startup instruction initiated by a user, the processor architecture executes a startup process. During the startup process, the application processor controls the internal memory and each functional module to reset and release, and then the application processor stores the startup data related to the startup process and the input-output processor to the internal memory, and controls the processor core to reset and release, the processor core loads the startup data, and completes the startup of the input-output processor. This method can be used to achieve a smooth startup of the input-output processor integrated in the processor architecture, provide a basis for controlling each peripheral controller through the input-output processor, and meet actual application needs.

[0079] Further, the present application also provides another startup method, see Figure 3 As shown, in Figure 2 Based on the illustrated embodiment, the startup method provided in this embodiment further includes the following steps.

[0080] S130 . Forbid the application processor from accessing the preset system firmware through the processor core.

[0081] In this application, the input-output processor is a processor that manages external devices in the processor architecture and has higher permissions. Its operation security is of vital importance. Preventing the preset system firmware from being easily accessed is one of the key measures to ensure the safety of the input-output processor operation.

[0082] Based on the above content, on the basis of the previous embodiment, in the startup method provided by this embodiment, the processor architecture will also prohibit the application processor from accessing the preset system firmware through the processor core, thereby preventing the application layer software from directly reading or modifying the preset system firmware, thereby ensuring the security of the preset system firmware.

[0083] In an optional implementation, a special register is configured, for example, defined as a memory access disable register, and the processor core sends a request to write the memory access disable register to write the value of the register from 0 to 1, and the register is reset to 0 only when the input and output processor is reset as a whole (which can be determined by the value of the aforementioned master reset register). In other cases, it is prohibited to write from 1 to 0, thereby effectively preventing malicious tampering.

[0084] Based on the above settings, the trusted domain controller determines whether to allow the application processor to access the storage space storing the preset system firmware in the internal memory according to the value of the memory access prohibition register. Specifically, if the value of the memory access prohibition register is 1, the trusted domain controller prohibits access to the preset system firmware, thereby preventing the application processor from reading or rewriting the preset system firmware program in any form. On the contrary, if the value of the memory access prohibition register is 0, the trusted domain controller will not prohibit the above access operation.

[0085] It should be noted that even if the value of the memory access prohibition register is 1, the storage space in the internal register used to build the inter-core channel is still allowed to be accessed. The trusted domain controller filters the application processor's access request to the internal memory based on the correspondence between the peripheral controller and the internal memory storage space (i.e., the storage space included in the aforementioned inter-core channel). Specifically, if the application processor accesses a certain peripheral controller, if the peripheral controller is configured with corresponding storage space in the internal memory, and the application processor has access rights, the trusted domain controller will send the access request, otherwise the access request will be filtered and will not be sent, and the trusted domain controller will feedback information indicating that the access request is invalid.

[0086] It is understandable that after the input and output processor is reset as a whole, the above process needs to be repeated. At this time, the memory access prohibition register is reset to the initial value 0, and the trusted domain controller module no longer protects the preset system firmware.

[0087] In a possible implementation, the first instruction of the preset system firmware is an instruction for prohibiting the application processor from accessing the preset system firmware. For example, the instruction may be an instruction for writing a memory access prohibition register. This setting ensures that the value of the register is written from 0 to 1 immediately after the processor core is reset, thereby preventing the application processor from modifying the preset system firmware while the processor core is loading the preset system firmware, thereby fully ensuring the security of the preset system firmware.

[0088] To summarize, based on the foregoing embodiments, the startup method provided in this embodiment, in which the processor core prohibits the application processor from accessing the preset system firmware, can ensure that after the processor core loads the preset system firmware to complete the startup of the input and output processor, the application processor cannot access the preset system firmware in any form, thereby preventing the preset system firmware from being modified, thereby ensuring the security and reliability of the operation of the input and output processor.

[0089] It should be noted that the execution process of the above S130 is also completed in the BL1 stage of the startup process, and the preset system firmware runs in the internal memory in the subsequent BL2-BL33 stages and any period when the processor architecture is in operation.

[0090] In the actual application of the processor architecture, in order to reduce the overall operating power consumption, it is sometimes necessary to control the processor architecture to enter the sleep mode and wake up the processor architecture when needed. Based on this, the input and output processor integrated in the processor architecture also involves the sleep and wake-up process. Based on this, the present application provides a startup method for waking up the input and output processor. Figure 4 As shown, the startup method provided in this embodiment may include the following steps.

[0091] S200 , in response to a sleep instruction, storing target task information of a task currently being run by the input / output processor in a second off-chip memory disposed outside the input / output processor via the processor core.

[0092] When the processor architecture needs to enter sleep mode, the user sends a sleep command to the processor architecture. In actual applications, the specific implementation and triggering methods of the sleep command can be achieved by referring to related technologies, and this application does not make specific limitations.

[0093] The processor architecture responds to the sleep instruction and stores the target task information of the currently running task of the input-output processor in a second off-chip memory outside the input-output processor through the processor core, wherein the target task information of the currently running task mainly refers to the task information required to restore the currently running task. As for the specific content of the target task information, it will vary depending on the running task and needs to be determined in combination with the actual running task. This application does not limit the specific content of the target task information. In an optional implementation, the second off-chip memory can be a volatile memory, such as the memory of the system to which the processor architecture belongs.

[0094] It should be noted that after the input / output processor enters the sleep mode, the preset system firmware stored in the internal memory will be cleared. Therefore, when the input / output processor is awakened again, the preset system firmware needs to be loaded again.

[0095] S210, in response to a wake-up instruction initiated by the user, the processor architecture executes a wake-up process. In the BL1 stage of the wake-up process, the preset system firmware of the input and output processor and the target task information are stored in the internal memory through the application processor.

[0096] For processor architectures that have entered sleep mode, users can wake up the processor architecture through a preset wake-up instruction. The processor architecture responds to the wake-up instruction initiated by the user and executes the wake-up process. The wake-up process is similar to the aforementioned startup process. In the BL1 stage, the application processor stores the preset system firmware and target task information of the input and output processor in the internal memory.

[0097] As mentioned above, the preset system firmware is stored in the first off-chip memory for a long time. During the startup process in the wake-up scenario, the application processor also needs to obtain the preset system firmware from the first off-chip memory and store the preset system firmware in the internal memory of the input and output processor. For details of this process, please refer to Figure 2 The relevant contents of the illustrated embodiment will not be repeated here.

[0098] Different from the startup process in the power-on scenario described above, during the startup process in the wake-up scenario, the application processor also needs to obtain the target task information stored in the second off-chip memory and store the target task information in the internal memory. Figure 1 In the processor architecture shown, the application processor accesses the second off-chip memory through the first interconnection network, reads the target task information stored therein, and then writes the target task information into the internal memory in the input-output processor through the first interconnection network, the trusted domain controller and the second interconnection network.

[0099] S220 , loading the preset system firmware through the processor core and restoring the current running task according to the target task information after the input and output processor wakes up.

[0100] The processor core first accesses the internal memory, obtains and records the preset system firmware, and completes the startup process of the input and output processor. For the detailed execution process of this process, please refer to the above Figure 2 The relevant contents of the illustrated embodiment will not be repeated here.

[0101] After the input and output processor wakes up, the processor core further resumes the current running task being executed before hibernation according to the target task information. As for the process of the processor core resuming task execution based on the existing task information, it can be implemented with reference to related technologies, and this application does not limit this.

[0102] To summarize, the startup method provided in this embodiment can realize the startup process in the scenario where the input-output processor is woken up after hibernation. The wake-up process first needs to store the preset system firmware and the target task information before the input-output processor enters the hibernation mode into the internal memory to ensure that the processor core can obtain all required data during the input-output processor wake-up process. After loading the preset system firmware to complete the input-output processor wake-up, the currently running task is further restored according to the target task information to ensure that the task running before hibernation can be executed normally after waking up, thereby ensuring the continuity and reliability of the task execution process.

[0103] Furthermore, the present application also provides a computer device, comprising a processor architecture as provided in the aforementioned embodiments of the present application.

[0104] In some embodiments, this embodiment further provides a computer-readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash disk, an SD (Secure Digital Memory Card) card, an MMC (Multimedia Card) card, etc., in which one or more instructions for implementing the above steps are stored, and when the one or more instructions are executed by one or more processors, the processors execute the startup method described above. For the relevant specific implementation, please refer to the above description, which will not be repeated here.

[0105] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the startup method according to various embodiments of the present application described in the above content of this specification.

[0106] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0107] Those skilled in the art will appreciate that the contents disclosed in this disclosure may be subject to various modifications and improvements. For example, the various devices or components described above may be implemented by hardware, or by software, firmware, or a combination of some or all of the three.

[0108] In addition, although the present disclosure makes various references to certain units in the system according to embodiments of the present disclosure, any number of different units can be used and run on the client and / or server. The units are only illustrative, and different aspects of the system and method can use different units.

[0109] Flowcharts are used in this disclosure to illustrate the steps of the method according to the embodiments of the present disclosure. It should be understood that the preceding or following steps are not necessarily performed precisely in order. On the contrary, various steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes.

[0110] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, etc. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits. Accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of a software functional module. The present disclosure is not limited to any particular form of combination of hardware and software.

[0111] Unless otherwise defined, all terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present disclosure belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and should not be interpreted in an idealized or highly formal sense, unless explicitly defined as such herein.

[0112] The above is an explanation of the present disclosure and should not be considered as a limitation thereof. Although several exemplary embodiments of the present disclosure are described, it will be readily understood by those skilled in the art that many modifications may be made to the exemplary embodiments without departing from the novel teachings and advantages of the present disclosure. Therefore, all such modifications are intended to be included within the scope of the present disclosure as defined in the claims. It should be understood that the above is an explanation of the present disclosure and should not be considered to be limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present disclosure is defined by the claims and their equivalents.

Claims

1. A startup method, characterized in that: Applied to a processor architecture, the processor architecture includes an application processor and an input-output processor, the input-output processor includes at least one dedicated processor core, an internal memory, and at least one functional module for implementing a preset function, the method includes: In response to a startup instruction initiated by a user, the processor architecture executes a startup process, and during the startup process, the internal memory and each of the functional modules are controlled by the application processor to reset and release; The application processor stores the startup process and the startup data related to the input and output processor in the internal memory, and controls the reset release of the processor core; The startup data is loaded by the processor core to complete the startup of the input and output processor.

2. The method according to claim 1, characterized in that The startup data includes preset system firmware; Storing the startup process and the startup data related to the input and output processor into the internal memory through the application processor, including: In the BL1 stage of the boot process, the preset system firmware in the first off-chip memory outside the input / output processor is acquired by the application processor, and the preset system firmware is stored in the internal memory.

3. The method according to claim 2, characterized in that The method further comprises: The application processor is prohibited from accessing the preset system firmware through the processor core.

4. The method according to claim 3, characterized in that The first instruction of the preset system firmware is an instruction for prohibiting the application processor from accessing the preset system firmware.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to the sleep instruction, the processor core stores the target task information of the task currently running by the input / output processor in a second off-chip memory arranged outside the input / output processor.

6. The method according to claim 5, characterized in that The method further comprises: In response to a wake-up instruction initiated by a user, the processor architecture executes a wake-up process. In the BL1 stage of the wake-up process, the preset system firmware of the input / output processor and the target task information are stored in the internal memory through the application processor.

7. The method according to claim 6, characterized in that The method further comprises: The preset system firmware is loaded through the processor core and the currently running task is restored according to the target task information after the input and output processor is awakened.

8. A processor architecture, characterized in that: include: Application processor and input-output processor, where The input-output processor includes at least one dedicated processor core, an internal memory and at least one functional module for implementing a preset function; The application processor executes the steps executed by the application processor in the startup method according to any one of claims 1 to 7; The processor core is used to execute the steps executed by the processor core of the input and output processor in the startup method according to any one of claims 1 to 7.

9. A computer device, characterized in that: Comprising the processor architecture of claim 8.

10. A computer-readable storage medium, characterized in that: include: A computer program is stored, and when the computer program is executed, the startup method according to any one of claims 1 to 7 is implemented.