From 538091ce7008b4281d912422d8bb676c541401a4 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 20 Nov 2017 15:58:59 +0000 Subject: tools: Stop opening the driver just to find the debugfs Since the tools want to work without the module loaded, remove the assumption that we want to load the driver to find debugfs. Signed-off-by: Chris Wilson Reviewed-by: Ville Syrjala --- tools/intel_display_poller.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tools/intel_display_poller.c') diff --git a/tools/intel_display_poller.c b/tools/intel_display_poller.c index 828ca52b..a26e2ecf 100644 --- a/tools/intel_display_poller.c +++ b/tools/intel_display_poller.c @@ -965,7 +965,6 @@ int main(int argc, char *argv[]) int pipe = 0, bit = 0, target_scanline = 0, target_fuzz = 1; bool test_pixelcount = false; uint32_t devid; - int drm_fd; uint32_t min[2*128] = {}; uint32_t max[2*128] = {}; uint32_t a, b; @@ -1187,10 +1186,7 @@ int main(int argc, char *argv[]) break; } - /* Just to make sure we open the right debugfs files */ - drm_fd = drm_open_driver_master(DRIVER_INTEL); - - intel_register_access_init(intel_get_pci_device(), 0, drm_fd); + intel_register_access_init(intel_get_pci_device(), 0, -1); printf("%s?\n", test_name(test, pipe, bit, test_pixelcount)); @@ -1267,8 +1263,6 @@ int main(int argc, char *argv[]) intel_register_access_fini(); - close(drm_fd); - if (quit) return 0; -- cgit v1.2.3