Bug#911211: Increase default CMA size for armhf kernels
Control: clone -1 -2 Control: reassign -1 src:linux Control: reassign -2 xserver-xorg-video-fbdev Control: retitle -2 xserver-xorg-video-fbdev: No clear error message for init failure On Wed, 2018-10-17 at 06:27 +, Priit Laes wrote: > Package: linux-image-armmp-lpae > Version: 4.18+98~bpo9+1 > > Debian Stretch > > Currently, the default CMA size for armhf kernels is set to 16M. > CMA allocator is used by display engine for storing framebuffer data. > > At least on sunxi platform (specifically OLinuxino-Lime2-eMMC device) > it causes issues with larger displays (namely 1920x1080), because Xorg > fails to start with following cryptic message: [...] The need for CMA is highly dependent on the hardware and applications used. So I don't think we can set a default which will please everyone. You can always override the built-in default size using the cma parameter on the kernel command line. That said, it seems reasonable to raise the default - when it is larger than needed, the pages not allocated to the drivers that need it can still be allocated to user processes, just not for other in-kernel purposes. Ben. -- Ben Hutchings Man invented language to satisfy his deep need to complain. - Lily Tomlin signature.asc Description: This is a digitally signed message part
Processed: Re: Bug#911211: Increase default CMA size for armhf kernels
Processing control commands: > clone -1 -2 Bug #911211 [linux-image-armmp-lpae] Increase default CMA size for armhf kernels Bug 911211 cloned as bug 911229 > reassign -1 src:linux Bug #911211 [linux-image-armmp-lpae] Increase default CMA size for armhf kernels Bug reassigned from package 'linux-image-armmp-lpae' to 'src:linux'. No longer marked as found in versions linux-latest/98~bpo9+1. Ignoring request to alter fixed versions of bug #911211 to the same values previously set > reassign -2 xserver-xorg-video-fbdev Bug #911229 [linux-image-armmp-lpae] Increase default CMA size for armhf kernels Bug reassigned from package 'linux-image-armmp-lpae' to 'xserver-xorg-video-fbdev'. No longer marked as found in versions linux-latest/98~bpo9+1. Ignoring request to alter fixed versions of bug #911229 to the same values previously set > retitle -2 xserver-xorg-video-fbdev: No clear error message for init failure Bug #911229 [xserver-xorg-video-fbdev] Increase default CMA size for armhf kernels Changed Bug title to 'xserver-xorg-video-fbdev: No clear error message for init failure' from 'Increase default CMA size for armhf kernels'. -- 911211: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911211 911229: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911229 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#911211: Increase default CMA size for armhf kernels
Package: linux-image-armmp-lpae Version: 4.18+98~bpo9+1 Debian Stretch Currently, the default CMA size for armhf kernels is set to 16M. CMA allocator is used by display engine for storing framebuffer data. At least on sunxi platform (specifically OLinuxino-Lime2-eMMC device) it causes issues with larger displays (namely 1920x1080), because Xorg fails to start with following cryptic message: [snip] [ 855.117] (II) UnloadModule: "fbdev" [ 855.117] (II) Unloading fbdev [ 855.117] (II) UnloadSubModule: "fbdevhw" [ 855.117] (II) Unloading fbdevhw [ 855.118] (==) Depth 24 pixmap format is 32 bpp [ 855.118] (EE) Fatal server error: [ 855.118] (EE) AddScreen/ScreenInit failed for driver 0 [ 855.118] (EE) [ 855.119] (EE) [/snip] Increasing CMA size to 24MB (it seems that it can be increased only by 8MB steps) would be fine, because CMA memory utilization with 1920x1080 display is following: $ cat /proc/meminfo |grep Cma CmaTotal: 24576 kB CmaFree:7932 kB