[Intel-gfx] [PATCH v2] igt/gem_workarounds: Test all types of workarounds
Chris Wilson
chris at chris-wilson.co.uk
Wed Oct 11 18:19:49 UTC 2017
Quoting Oscar Mateo (2017-10-11 19:15:40)
> @@ -241,39 +350,34 @@ igt_main
> }, *m;
>
> igt_fixture {
> + struct pci_device *pci_dev;
> FILE *file;
> - char *line = NULL;
> - size_t line_size;
> - int i, fd;
> + int fd;
>
> device = drm_open_driver(DRIVER_INTEL);
> igt_require_gem(device);
>
> gen = intel_gen(intel_get_drm_devid(device));
>
> + pci_dev = intel_get_pci_device();
> + igt_require(pci_dev);
> +
> + intel_register_access_init(pci_dev, 0, device);
intel_register_access_init() takes i915-user-forcewake. Can we limit the
register access to just the mmio tests?
-Chris
More information about the Intel-gfx
mailing list