File U_intel_gpu_top-Use-drm_open_driver-don-t-need-drm-mas.patch of Package intel-gpu-tools.8668

From eeff6a1d9c4e2c195b30ad95ee36a58ef6ca3387 Mon Sep 17 00:00:00 2001
From: Petri Latvala <petri.latvala@intel.com>
Date: Mon, 7 Aug 2017 15:23:29 +0300
Subject: [PATCH] intel_gpu_top: Use drm_open_driver, don't need drm master

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
---
 tools/intel_gpu_top.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
index 78488764..3fe77f70 100644
--- a/tools/intel_gpu_top.c
+++ b/tools/intel_gpu_top.c
@@ -513,7 +513,7 @@ int main(int argc, char **argv)
 	}
 
 	/* Just to make sure we open the right debugfs files */
-	drm_fd = drm_open_driver_master(DRIVER_INTEL);
+	drm_fd = drm_open_driver(DRIVER_INTEL);
 
 	/* Grab access to the registers */
 	intel_register_access_init(pci_dev, 0, drm_fd);
-- 
2.16.4