Arm Community
Arm Community
  • Site
  • User
  • Site
  • Search
  • User
Arm Community blogs
Arm Community blogs
Mobile, Graphics, and Gaming blog Unofficial patches for Mali Midgard GPU r17p0 kernel drivers on 4.12.0-rcX kernels
  • Blogs
  • Mentions
  • Sub-Groups
  • Tags
  • Jump...
  • Cancel
More blogs in Arm Community blogs
  • AI blog

  • Announcements

  • Architectures and Processors blog

  • Automotive blog

  • Embedded and Microcontrollers blog

  • Internet of Things (IoT) blog

  • Laptops and Desktops blog

  • Mobile, Graphics, and Gaming blog

  • Operating Systems blog

  • Servers and Cloud Computing blog

  • SoC Design and Simulation blog

  • Tools, Software and IDEs blog

Tags
  • Mali Kernel Device Drivers for GPU
  • Kernel Developers
  • Mali
  • Linux UMP User Space Driver
  • Linux
Actions
  • RSS
  • More
  • Cancel
Related blog posts
Related forum threads

Unofficial patches for Mali Midgard GPU r17p0 kernel drivers on 4.12.0-rcX kernels

Myy
Myy
May 17, 2017
1 minute read time.

Greetings,

The new kernel 4.12 series has started and for all the ealier adopters who want to use these kernels with Mali Midgard GPU support, here are the patches needed to compile such kernels with the Mali Midgard r17p0 drivers, after copying the driver package content in the kernel base directory :

  • https://github.com/Miouyouyou/MyyQi/blob/master/patches/Mali/r17p0-01rel0/0001-Midgard-daptation-to-Linux-4.10.0-rcX-signatures.patch
  • https://github.com/Miouyouyou/MyyQi/blob/master/patches/Mali/r17p0-01rel0/0002-UMP-Adapt-get_user_pages-calls.patch
  • https://github.com/Miouyouyou/MyyQi/blob/master/patches/Mali/r17p0-01rel0/0003-Renamed-Kernel-DMA-Fence-structures-and-functions.patch
  • https://github.com/Miouyouyou/MyyQi/blob/master/patches/Mali/r17p0-01rel0/0004-Few-modifications-after-v4.11-headers-and-signatures.patch
  • https://github.com/Miouyouyou/MyyQi/blob/master/patches/Mali/r17p0-01rel0/0005-Using-the-new-header-on-4.12-kernels-for-copy_-_user.patch

These patches are due to the following mainline kernel changes :

  • generic ...copy_..._user primitives
    Introduced in Linux : 4.12
  • mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmf
    Introduced in Linux : 4.11
  • sched/headers: Move task->mm handling methods to <linux/sched/mm.h>
    Introduced in Linux : 4.11
  • sched/headers: Move task-stack related APIs from <linux/sched.h> to <linux/sched/task_stack.h>
    Introduced in Linux : 4.11
  • dma-buf: Rename struct fence to dma_fence
    Introduced in Linux : 4.9
  • mm: add locked parameter to get_user_pages_remote()
    Introduced in Linux : 4.10
  • ktime: Get rid of the union
    Introduced in Linux : 4.10
  • mm: use vmf->address instead of of vmf->virtual_address
    Introduced in Linux : 4.10
  • mm, dax, gpu: convert vm_insert_mixed to pfn_t
    Introduced in Linux : 4.5

The patches required to enable the compilation of Mali Midgard GPU drivers and UMP drivers, after copying the drivers package TX011-SW-99002-r17p0-01rel0/driver/product/kernel/ content in your linux kernel base directory, are available here .

  • https://github.com/Miouyouyou/MyyQi/blob/master/patches/kernel/v4.12/0003-Post-Mali-Kernel-device-drivers-modifications.patch
  • https://github.com/Miouyouyou/MyyQi/blob/master/patches/kernel/v4.12/0004-Post-Mali-UMP-integration.patch

A full kernel download, patch and compilation procedure for MiQi RK3288 ARMv7 boards is available here : https://github.com/Miouyouyou/MyyQi .
The procedure includes the download of the Linux 4.12-rc1 kernel and the Mali r17p0-00rel0 kernel drivers.

Anonymous
Mobile, Graphics, and Gaming blog
  • Unlock the power of SVE and SME with SIMD Loops

    Vidya Praveen
    Vidya Praveen
    SIMD Loops is an open-source project designed to help developers learn SVE and SME through hands-on experimentation. It offers a clear, practical pathway to mastering Arm’s most advanced SIMD technologies…
    • September 19, 2025
  • What is Arm Performance Studio?

    Jai Schrem
    Jai Schrem
    Arm Performance Studio gives developers free tools to analyze performance, debug graphics, and optimize apps on Arm platforms.
    • August 27, 2025
  • How Neural Super Sampling works: Architecture, training, and inference

    Liam O'Neil
    Liam O'Neil
    A deep dive into a practical, ML-powered approach to temporal super sampling.
    • August 12, 2025