Regarding GPU driver in Linux kernel -
i've found i915_drm drm driver intel gpus. far know, gpu drivers not open public.
my question is: i915 typically called "gpu driver" intel gpu? if not (i suspect not), tell me relationship between drm driver , gpu driver?
the drm driver arbitrates access gpu, while actual gpu driver prepares command stream. former relevant security , needs performed in kernel, while latter highly complex , better implemented user process.
the kernel driver sets address ranges, both cpu->gpu accesses (bar mappings), , gpu->memory accesses (dma regions).
this ensures gpu can access dedicated dma memory, in order stop gpu programs reading out sensitive data passwords, and, depending on capabilities of gpu dma engine, can set multiple contexts further limiting gpu dma buffers submitted along program.
the full gpu driver uses functionality request device context , dma memory mappings, compiles programs such shaders or opencl kernels, , submits them via low-level drivers.
Comments
Post a Comment