diff mbox

[i-g-t] intel_gpu_top: Use drm_open_driver, don't need drm master

Message ID 1502108609-17955-1-git-send-email-petri.latvala@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Petri Latvala Aug. 7, 2017, 12:23 p.m. UTC
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
---
 tools/intel_gpu_top.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Arkadiusz Hiler Aug. 8, 2017, 9:55 a.m. UTC | #1
On Mon, Aug 07, 2017 at 03:23:29PM +0300, Petri Latvala wrote:
> Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Petri Latvala Aug. 8, 2017, 10:08 a.m. UTC | #2
On 08/08/2017 12:55 PM, Arkadiusz Hiler wrote:
> On Mon, Aug 07, 2017 at 03:23:29PM +0300, Petri Latvala wrote:
>> Signed-off-by: Petri Latvala <petri.latvala@intel.com>
> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
>

Thanks, pushed.
diff mbox

Patch

diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
index 7848876..3fe77f7 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);