I'm facing ugly problems with my Odroid XU4 and panfrost drivers. Even the driver is loading and detecting my T620 GPU, when I'm trying to use Mesa 20.2.6 or 20.3.2 is still detecting only the software rendering. I've tried to add T620 as supported GPU in Mesa gallium/drivers/panfrost/pan_screen.c but I'm getting a kernel driver crash and the Odroid is getting stuck.
Now I'm trying to port the OpenSource Mali Midgard driver from the official ARM site and I've success to add/change the code for different Kernel versions up to 5.10 and also keeping the compilation for older kernels.
Now there are few small steps to complete the port, but I've notice that starting with Kernel 5.6 function
Code: Select all
void *dma_buf_kmap(struct dma_buf *dmabuf, unsigned long page_num)
The problem is that I can't find any documentation who to replace this function. Another idea was to try to replicate the code inside the Mali driver, but I wish to use a clear code and use Linux Kernel function instead rebuilding the removed functions.
I want to upload my patched driver on my github after I'm fixing these portability issues: https://github.com/EasyNetDev/mali-midgard