Closed Terminus-IMRC closed 4 years ago
These commits add the functionality of accessing V3D registers via /dev/mem. The register definitions are derived from https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/gpu/drm/v3d/v3d_regs.h but not all.
This enables the use of performance counters, though which source represents what metric is not known except for cycle count (32), which counts up every cycle. An example program that measures the QPU frequency is also added by using the counter.
Thanks!
These commits add the functionality of accessing V3D registers via /dev/mem. The register definitions are derived from https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/gpu/drm/v3d/v3d_regs.h but not all.
This enables the use of performance counters, though which source represents what metric is not known except for cycle count (32), which counts up every cycle. An example program that measures the QPU frequency is also added by using the counter.