diff --git a/src/panfrost/perf/pan_perf.c b/src/panfrost/perf/pan_perf.c index d64c27ca4b9..8f703fee70a 100644 --- a/src/panfrost/perf/pan_perf.c +++ b/src/panfrost/perf/pan_perf.c @@ -72,6 +72,13 @@ panfrost_lookup_counters(const char *name) void panfrost_perf_init(struct panfrost_perf *perf, int fd) { + ASSERTED drmVersionPtr version = drmGetVersion(fd); + + /* We only support panfrost at the moment. */ + assert(version && !strcmp(version->name, "panfrost")); + + drmFreeVersion(version); + perf->dev = pan_kmod_dev_create(fd, 0, NULL); assert(perf->dev);