4 ms·
For the simplest case, where you have contiguous memory for your framebuffer storage and no MMIO, try the CMA helpers: https://github.com/torvalds/linux/blob/ma
by Jasper_ 6y ago
For the simplest case, where you have contiguous memory for your framebuffer storage and no MMIO, try the CMA helpers: https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/drm_gem_cma_helper.c https://github.com/torvalds/linux/blob/master/drivers/gpu/dr...
I wrote a basic device driver for a platform I worked on. It's since been upstreamed and gotten more eyeballs, but it's still relatively simple. https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/meson/meson_drv.c https://github.com/torvalds/linux/blob/master/drivers/gpu/dr...