diff options
Diffstat (limited to 'benchmarks')
| -rw-r--r-- | benchmarks/gem_latency.c | 3 | ||||
| -rw-r--r-- | benchmarks/gem_wsim.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/benchmarks/gem_latency.c b/benchmarks/gem_latency.c index c3fc4bf0..0fc4b05e 100644 --- a/benchmarks/gem_latency.c +++ b/benchmarks/gem_latency.c @@ -55,6 +55,7 @@ static int done; static int fd; static volatile uint32_t *timestamp_reg; +static struct intel_mmio_data mmio_data; #define REG(x) (volatile uint32_t *)((volatile char *)igt_global_mmio + x) #define REG_OFFSET(x) ((volatile char *)(x) - (volatile char *)igt_global_mmio) @@ -456,7 +457,7 @@ static int run(int seconds, if (gen < 6) return IGT_EXIT_SKIP; /* Needs BCS timestamp */ - intel_register_access_init(intel_get_pci_device(), false, fd); + intel_register_access_init(&mmio_data, intel_get_pci_device(), false, fd); if (gen == 6) timestamp_reg = REG(RCS_TIMESTAMP); diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c index b8e22b3f..87f873b0 100644 --- a/benchmarks/gem_wsim.c +++ b/benchmarks/gem_wsim.c @@ -238,6 +238,7 @@ struct workload } busy_balancer; }; +struct intel_mmio_data mmio_data; static const unsigned int nop_calibration_us = 1000; static unsigned long nop_calibration; @@ -3071,7 +3072,7 @@ static void init_clocks(void) uint32_t rcs_start, rcs_end; double overhead, t; - intel_register_access_init(intel_get_pci_device(), false, fd); + intel_register_access_init(&mmio_data, intel_get_pci_device(), false, fd); if (verbose <= 1) return; |
