Worked on x86_64 however. This is the precise setups: https://github.com/cirosantilli/linux-kernel-module-cheat/tree/a64b276e9c02719a3e620c75aaa1ec490b240851#drm I have copoied modeset.c in that repo in tree: https://github.com/cirosantilli/linux-kernel-module-cheat/blob/16de55dd2f89ae44c1ee0fee1c39d23ee2b36b13/kernel_module/user/libdrm_modeset.c at revision: fad7c3203b14e67053e0fc41d8490138b8ff47dd kmscube however worked fine for both x86_64 and aarch64, so maybe it is a bug here?