Search

CN-121996308-A - Service processing method and related device

CN121996308ACN 121996308 ACN121996308 ACN 121996308ACN-121996308-A

Abstract

The application provides a service processing method and a related device. The service processing method comprises the steps of responding to a starting instruction, starting a first system and a second system, wherein the starting time of the first system is smaller than the starting time of the second system, the first system is used for processing a first service, and if the second system is started, the second system is used for processing the first service and the second service, and the second service is a service beyond the service processed by the first system. The method can rapidly start the system to process part of the service, thereby improving the starting speed, maintaining the continuity of service processing and processing complex service.

Inventors

  • LONG YUANHAI

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260508
Application Date
20241101

Claims (19)

  1. 1. A method for processing a service, comprising: Starting a first system and a second system in response to a starting instruction, wherein the starting time consumption of the first system is less than the starting time consumption of the second system, and the first system is used for processing a first service; And if the second system is started, the second system processes the first service and the second service, wherein the second service is a service beyond the service processed by the first system.
  2. 2. The method of claim 1, wherein the processing of the first and second traffic by the second system if the second system start-up is complete comprises: And if the second system is started, the first system stops processing the first service based on the indication of the second system, and the second system processes the first service and the second service.
  3. 3. The method of claim 2, wherein the first system stopping processing the first traffic based on the indication of the second system comprises: the first system accesses a memory to process the current service in the first service based on the indication of the second system, wherein the memory is used for temporarily storing data corresponding to the first service, and the current service is the service which is not processed by the first system after receiving the indication; and after the current service processing is completed, the first system stops accessing the memory.
  4. 4. A method according to claim 3, wherein the second system processing the first and second traffic comprises: After the first system stops accessing the memory, the second system accesses the memory to process the subsequent service in the first service and the second service, wherein the memory is also used for temporarily storing data corresponding to the second service, and the subsequent service is generated after the current service.
  5. 5. The method according to claim 3 or 4, wherein the memory comprises a virtual memory and a physical memory corresponding to the virtual memory, the correspondence between the virtual memory and the physical memory being stored in a memory page table of a system memory management unit SMMU, the memory page table being used for providing the first system or the second system with direct access to the virtual memory and indirect access to the physical memory.
  6. 6. The method of claim 5, wherein the memory page table comprises: The system comprises a first virtual memory configured by the first system and a corresponding continuous first physical memory, wherein the first virtual memory is used for being directly accessed by the first system, and the first physical memory is used for being indirectly accessed by the first system; and the second virtual memory is configured by the second system and a corresponding second physical memory, wherein the second virtual memory is used for being directly accessed by the second system, and the second physical memory is used for being indirectly accessed by the second system.
  7. 7. The method of any of claims 1-6, wherein the first system is running on a first set of processor cores and the second system is running on a second set of processor cores, the first set of processor cores including one or more first sub-cores and the second set of processor cores including one or more second sub-cores, the first sub-cores having processing capabilities that are less than the processing capabilities of the second sub-cores, the method further comprising: and stopping running the first system on the first processor kernel group and running the second system on the second processor kernel group if the second system is started.
  8. 8. The method of any of claims 1-7, wherein the first system and the second system satisfy at least one of the following conditions: the number of tasks operated by the first system at the same time is smaller than the number of tasks operated by the second system at the same time; the first system is a real-time operating system or a bare system, and the second system is a multi-process operating system supporting virtual memory.
  9. 9. The method according to any one of claims 1-8, wherein the first service is a service of preprocessing a camera-captured image of an intelligent driving vehicle, and the second service is a service of post-processing the camera-captured image.
  10. 10. The method according to any of claims 1-9, wherein the indication is carried in an inter-process communication, IPC, message.
  11. 11. A chip comprising a multi-core processor, the multi-core processor comprising: The system comprises a first processor kernel group, a second processor kernel group and a first processor kernel group, wherein the first processor kernel group comprises one or more first sub-kernels, the one or more first sub-kernels are used for responding to a starting instruction to start a first system, the first system is used for processing first service, and the starting time of the first system is less than the starting time of the second system; And the second processor kernel group is connected with the first processor kernel group and comprises one or more second sub-cores, wherein the one or more second sub-cores are used for responding to the starting instruction to start the second system, and if the starting of the second system is completed, the first service and the second service are processed, and the second service is a service beyond the service processed by the first system.
  12. 12. The chip of claim 11, wherein the chip further comprises: An SMMU, the SMMU being connected to the multicore processor; the SMMU is configured with a memory page table, wherein the memory page table comprises a corresponding relation between a virtual memory and a physical memory, and the memory page table is used for providing the first system or the second system with direct access to the virtual memory and indirect access to the physical memory; and the memory unit is connected with the SMMU and is used for providing the physical memory for the SMMU.
  13. 13. The chip of claim 12, wherein the chip further comprises: The image signal interface is used for receiving images acquired by a camera of the intelligent driving vehicle; The system comprises an image signal input interface, an image signal processor ISP, a multi-core processor and a service management unit, wherein the ISP is connected with the image signal input interface and the SMMU, and is used for receiving the image from the image signal interface, processing the image, writing the processed image into the memory unit, and calling the image in the memory unit by the multi-core processor to realize the first service and the second service.
  14. 14. The chip of claim 13, wherein the first processor core group comprises two of the first sub-cores, the two first sub-cores being connected to each other, wherein: one of the two first subcores is connected with the ISP and used for controlling the ISP to access the virtual memory of the SMMU; The other one of the two first sub-cores is connected to the SMMU and is configured to access a virtual memory of the SMMU to process the first service, or stop accessing the virtual memory of the SMMU to stop processing the first service based on an instruction of the second system.
  15. 15. The chip of any one of claims 11-14, wherein the first sub-core and the second sub-core satisfy at least one of the following conditions: the processing capacity of the first sub-core is smaller than that of the second sub-core; The first sub-core does not contain a memory management unit MMU and the second sub-core contains an MMU.
  16. 16. A service processing apparatus, comprising: A processor; A memory coupled to the processor for storing program instructions that when executed on the processor implement the method of any one of claims 1-10.
  17. 17. A service processing device comprising means for performing the method of any of claims 1-10.
  18. 18. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program or instructions which, when executed by a processor, implement the method according to any of claims 1-10.
  19. 19. A computer program product comprising a computer program or instructions which, when executed by a computer, implement the method of any one of claims 1-10.

Description

Service processing method and related device Technical Field The present application relates to the field of computer technologies, and in particular, to a service processing method and a related device. Background After the operation system of the intelligent driving vehicle is started, the operation system can collect images containing the external environment of the vehicle through a camera on the vehicle, and can realize image display service (used for displaying the external images of the vehicle for a user) by combining the images containing the external environment of the vehicle, and in addition, the operation system can also analyze by combining the images containing the external environment of the vehicle to realize auxiliary driving service such as automatic parking, target detection and the like. In order to support the above-mentioned services or other various complex services, the operating system needs to be initialized during the starting process, for example, needs to initialize hardware resources related to various services and load corresponding drivers, which takes a long time, and cannot process various services before the starting of the operating system is completed. Therefore, since the operating system startup process takes a long time and the service cannot be processed during startup, it takes a long time to wait from triggering the operating system startup to starting to complete processing the service, and the delay of processing the service is high. Disclosure of Invention The application provides a service processing method and a related device, which aim to reduce the delay of processing service and improve the response speed of processing service. The first aspect of the present application provides a service processing method, which may be applied to an intelligent driving vehicle, or a vehicle-mounted computing platform in an intelligent driving vehicle, or other computer devices capable of starting two systems simultaneously and performing service processing. The computer device includes a hardware portion including a processor, a memory, an input-output device, or a storage device, etc., and a software portion including a system, a driver, or a program executing a specific service, etc. When the computer equipment is started, the hardware is loaded and initialized, and the system is started. The system acts as an intermediary between hardware and programs and may be used to implement resource allocation, file management, process management, or device management, with drivers used to enable the operating system to communicate with the hardware. The system may perform specific services such as a data acquisition service, a data analysis service, a data transmission service, or the like through specific programs. In the first aspect of the present application, when the computer device is started, two systems are started to perform service processing. The business processing method executed by the computer equipment comprises the steps of responding to a starting instruction, and starting the first system and the second system. The time consumption of starting the first system is less than that of starting the second system, and the first system is used for processing the first service. And if the second system is started, the second system processes the first service and the second service. Wherein the second service is a service other than the service processed by the first system. The starting instruction is an instruction for starting the computer equipment, and the starting instruction can be sent to the computer equipment by a user. The first system is a system that starts up at a relatively high speed, and the second system is an operating system that starts up at a relatively low speed as compared to the first system. A first system such as real-time operating system (RTOS) time operating system and a second system such as Linux operating system. And after the first system is started, the first service is processed. And the second system processes the first service and the second service after starting. The second service is a service other than various services handled by the first system, and the various services handled by the first system refer to services to be handled, which include the first service, which the first system is actually configured to. The "service" in the "first service" or the "second service" is a general description of operations that a computer needs to perform in order to achieve a specific purpose. For example, the data collection service is a summary of operations performed for collecting specific data and obtaining data from a specific object, and the data analysis service is a summary of operations performed for analyzing a certain attribute of data, such as calculation or judgment, on the data. The processing of the service refers to various logic processing procedures related to the realization of the service by the computer based on