diff options
author | Ayaz A Siddiqui <ayaz.siddiqui@intel.com> | 2020-06-02 14:13:30 +0300 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-06-08 10:34:12 +0300 |
commit | b6ba988cc22ccb02cf174b520d3d8d7bd4158d76 (patch) | |
tree | 81648bcf116f4f8ccf5af60f1fcc00ce32b9b8cd /man | |
parent | ef908f4abea03c5440d88e1961e75ce07fa4e9bf (diff) |
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 <tvrtko.ursulin@linux.intel.com>
Signed-off-by: Ayaz A Siddiqui <ayaz.siddiqui@intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'man')
-rw-r--r-- | man/intel_gpu_top.rst | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/man/intel_gpu_top.rst b/man/intel_gpu_top.rst index d487baca0..5552e9699 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 <igt-dev@lists.freedesktop.org> -: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 <ms> 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 =========== |