From b6ba988cc22ccb02cf174b520d3d8d7bd4158d76 Mon Sep 17 00:00:00 2001 From: Ayaz A Siddiqui Date: Tue, 2 Jun 2020 14:13:30 +0300 Subject: tools/intel_gpu_top: Add support of discrete GPU and card selection In intel_gpu_top device path was hard coded for integrated GPU. With this patch we: * use igt_device_scan library for device scanning, * make discrete GPU the default one, * provided options for card selection. v2: * explicitly set ret to EXIT_SUCCESS after all the other uses * fix use after free of opt_device (Tvrtko) * use EXIT_FAILURE instead of "1" (Tvrtko) Cc: Tvrtko Ursulin Signed-off-by: Ayaz A Siddiqui Signed-off-by: Arkadiusz Hiler Reviewed-by: Tvrtko Ursulin --- man/intel_gpu_top.rst | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'man') diff --git a/man/intel_gpu_top.rst b/man/intel_gpu_top.rst index d487baca..5552e969 100644 --- a/man/intel_gpu_top.rst +++ b/man/intel_gpu_top.rst @@ -7,9 +7,9 @@ Display a top-like summary of Intel GPU usage --------------------------------------------- .. include:: defs.rst :Author: IGT Developers -:Date: 2019-02-08 +:Date: 2020-03-18 :Version: |PACKAGE_STRING| -:Copyright: 2009,2011,2012,2016,2018,2019 Intel Corporation +:Copyright: 2009,2011,2012,2016,2018,2019,2020 Intel Corporation :Manual section: |MANUAL_SECTION| :Manual group: |MANUAL_GROUP| @@ -43,6 +43,31 @@ OPTIONS -s Refresh period in milliseconds. +-L + List available GPUs on the platform. +-d + Select a specific GPU using supported filter. + + +DEVICE SELECTION +================ + +User can select specific GPU for performance monitoring on platform where multiple GPUs are available. +A GPU can be selected by sysfs path, drm node or using various PCI sub filters. + +Filter types: :: + + --- + filter syntax + --- + sys sys:/sys/devices/pci0000:00/0000:00:02.0 + find device by its sysfs path + + drm drm:/dev/dri/* path + find drm device by /dev/dri/* node + + pci pci:[vendor=%04x/name][,device=%04x][,card=%d] + vendor is hex number or vendor name LIMITATIONS =========== -- cgit v1.2.3