1*4882a593Smuzhiyuncomment "sunxi-mali-mainline-driver needs a Linux kernel to be built" 2*4882a593Smuzhiyun depends on BR2_PACKAGE_SUNXI_MALI_MAINLINE 3*4882a593Smuzhiyun depends on !BR2_LINUX_KERNEL 4*4882a593Smuzhiyun 5*4882a593Smuzhiyunconfig BR2_PACKAGE_SUNXI_MALI_MAINLINE_DRIVER 6*4882a593Smuzhiyun bool "sunxi-mali-mainline-driver" 7*4882a593Smuzhiyun default y 8*4882a593Smuzhiyun depends on BR2_PACKAGE_SUNXI_MALI_MAINLINE # runtime 9*4882a593Smuzhiyun depends on BR2_LINUX_KERNEL 10*4882a593Smuzhiyun select BR2_LINUX_NEEDS_MODULES # not using kernel-module infra 11*4882a593Smuzhiyun help 12*4882a593Smuzhiyun This package builds and installs the Linux kernel driver for 13*4882a593Smuzhiyun the Mali GPU on Allwinner platforms, compatible with recent 14*4882a593Smuzhiyun Linux kernels (>= 4.4). Note that it should be installed 15*4882a593Smuzhiyun together with the corresponding userspace OpenGL libraries, 16*4882a593Smuzhiyun which are provided as binaries only at: 17*4882a593Smuzhiyun https://github.com/bootlin/mali-blobs 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun sunxi-mali-mainline-driver requires a Linux kernel >= 4.4 20*4882a593Smuzhiyun with the following options enabled: 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun - CONFIG_CMA 23*4882a593Smuzhiyun - CONFIG_DMA_CMA 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun starting from Linux Kernel >= 4.20 following options must be 26*4882a593Smuzhiyun enabled: 27*4882a593Smuzhiyun - CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun The following kernel command line options must be passed: 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun - drm_kms_helper.drm_leak_fbdev_smem = 1 32*4882a593Smuzhiyun since drm_kms_helper.drm_leak_fbdev_smem is set to 0 by 33*4882a593Smuzhiyun default 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun - drm_kms_helper.drm_fbdev_overalloc >= 200 36*4882a593Smuzhiyun since the driver requires at least double buffering and 37*4882a593Smuzhiyun fails to work with the default value(100). 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun https://github.com/mripard/sunxi-mali/blob/master/README.md 40