I'm opening this MR as a RFC in order to improve the kernel IOCTL as requested on the DRI Devel mailing list.