The MALI & UMP device drivers reside in driver/gpu directory:
Mali driver: gpu/mali/mali/linux/mali_kernel_linux.c.
It is a platform device, the driver name is "mali-utgard". (ls /sys/bus/platform/drivers),
the device name is "mali-utgard.0" (ls /sys/bus/platform/devices)
UMP driver: gpu/mali/ump/linux/ump_kernel_linux.c
It is a char device, the driver name is "ump", (ls sys/module/ump)
the device name is "ump", (ls /sys/devices/virtual)
Them mali $ UMP drivers both can be configured to allocate memory from
A. Dedicated memory
or
B. Share the Kernel memory
Below are related items in config, SparkPos project.
CONFIG_MALI_GPU=y //The Mali GPU is enabled.The mali driver does not reference this value at all.
CONFIG_MALI400=y &nb

Mali GPU和UMP设备驱动位于driver/gpu目录下。Mali是平台设备,UMP是字符设备。两者都能配置从专用内存或共享内核内存中分配内存。配置选项如CONFIG_MALI_MEMORY_SIZE和CONFIG_UMP_MEMORY_SIZE分别设置了Mali和UMP的内存大小。日志显示UMP使用了64MB内核内存,并预留了27MB的专用内存。
最低0.47元/天 解锁文章
3100

被折叠的 条评论
为什么被折叠?



