Method and device for monitoring cross-border of CMA memory of in-vehicle infotainment system and storage medium

A vehicle system and memory technology, applied in the computer field, can solve problems such as system restart, memory leakage, and inability to know the memory usage of CMA, so as to improve system performance and prevent serious impacts.

Pending Publication Date: 2022-08-02
DONGFENG MOTOR GRP
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The GPU, camera, hardware video decoder, encoder and other devices in the car all need a large continuous memory buffer when they are in use. CMA technology is used to allocate continuous memory space for data transmission, and the data is moved during DMA transmission. To DMA memory, many DMA controllers cannot return and occupy memory
Because it is impossible to know the occupation of CMA memory, it is impossible to effectively compare whether there is a memory out of bounds
In this process, problems such as memory leaks and memory out-of-bounds are prone to occur.
If the memory exceeds the bounds, it will easily lead to data loss, causing the entire system to malfunction, such as the camera displaying a blurry screen, and may even cause the system to restart, seriously affecting the normal operation of the system
[0003] When a memory problem occurs in the system, the phenomenon is often uncertain, and the conditions and time of occurrence are also uncertain, so it is difficult to locate where the memory problem occurs
Existing code detection tools can only detect some obvious memory leaks and memory out-of-bounds problems. For complex functional codes, traditional code detection tools cannot effectively check

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for monitoring cross-border of CMA memory of in-vehicle infotainment system and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] see figure 1 , a method for monitoring the out-of-bounds CMA memory of a vehicle-machine system, comprising the following steps:

[0037] (1) After the system is powered on, the CAMERA module, DISPLAY module, video encoding module and / or video decoding module, etc. start to initialize and apply for CMA memory;

[0038] (2) When applying for CMA memory, apply for more 4K memory before and after the applied memory area, and write a preset data into the memory area to record which controller applied for the memory area; the preset data The protocol is defined in advance, and each data represents the memory applied by different controllers; in addition, the start address and end address of the multi-application 4K memory are recorded, and this data is also used to determine which controller the extra 4K memory belongs to.

[0039] (3) Start a thread to monitor whether the extra 4K memory before and after has been rewritten.

[0040] (4) If the 4K memory before and after i...

Embodiment 2

[0042] A device for monitoring the out-of-bounds CMA memory of a vehicle-machine system, comprising:

[0043] The memory application module is used to apply for the large CMA memory of each controller after the CAMERA module, DISPLAY module, video encoding module and / or video decoding module start initialization; and apply for 4K memory before and after the applied memory area;

[0044] The recording module is used to write a preset data in the multi-application memory area. The preset data should have a protocol defined first, and each data represents the memory applied by different controllers; record the memory area by which Controller application; record the start address and end address of the multi-application memory;

[0045] The monitoring module is used to start a thread to monitor whether the memory that has been applied for before and after has been rewritten;

[0046] The processor is used for the monitoring module to determine which controller's memory area is wh...

Embodiment 3

[0048] A storage medium storing an executable program, when the executable program is executed by a processor, implements the method for monitoring the CMA memory out-of-bounds of the vehicle-machine system in Embodiment 1.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for monitoring boundary crossing of a CMA (Common Multiple Access) memory of a vehicle-mounted infotainment system, which comprises the following steps: 1) after the system is powered on, a module begins to initialize and applies for the CMA memory; (2) when the CMA memory is applied, more memories are applied before and after the applied memory area; 3) writing a preset datum in the memory area with multiple applications, and recording which controller applies for the memory area; 4) starting one thread to monitor whether the memory of multiple applications before and after is rewritten or not; and 5) if the memory of the previous and later applications is rewritten, judging the memory area of the controller, notifying the corresponding controller to perform reset operation, and repairing the memory cross-border problem. The invention further discloses a device for monitoring the CMA memory cross-border of the vehicle-mounted infotainment system. According to the method, the CMA memory border crossing condition of the vehicle-mounted infotainment system can be monitored in time so as to be repaired in time, and the system stability is improved.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a method, a device and a storage medium for monitoring the CMA memory out-of-bounds of a vehicle-machine system. Background technique [0002] The car system generally adopts Linux or Android system, and most of the various controllers in the system involve the application, use and release of memory. The existing car-machine system generally integrates functions such as reversing image and screen projection. The corresponding peripheral module camera, display screen, video encoding and decoding module, GPU, etc. need to apply for CMA memory during power-on initialization, which is used for video data storage. transmission, processing, etc. GPUs, cameras, hardware video decoders, encoders and other equipment in the car require large continuous memory buffers when in use. CMA technology is used to allocate continuous memory space for data transmission, and data is mo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50G06F11/07G06F13/28
CPCG06F9/5016G06F9/5027G06F11/0793G06F13/28
Inventor 吴宛平刘浩杜祥潇
Owner DONGFENG MOTOR GRP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products