[igt-dev] [PATCH i-g-t 5/5] intel_gpu_top: Default GPU list to PCI mode

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Mon Nov 16 18:40:50 UTC 2020


On Mon, Nov 16, 2020 at 05:26:53PM +0000, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> It is more obvious for the user to only shows filters for DRM master
> nodes since those are the ones that intel_gpu_top monitors.
> 
> v2:
>  * Filter prefix needs to be sys: when listing PCI devices.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> ---
>  tools/intel_gpu_top.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
> index 07f88d555dc8..37b2141e784d 100644
> --- a/tools/intel_gpu_top.c
> +++ b/tools/intel_gpu_top.c
> @@ -1388,7 +1388,8 @@ int main(int argc, char **argv)
>  
>  	if (list_device) {
>  		struct igt_devices_print_format fmt = {
> -			.type = IGT_PRINT_USER
> +			.type = IGT_PRINT_USER,
> +			.option = IGT_PRINT_PCI,
>  		};
>  
>  		igt_devices_print(&fmt);
> -- 
> 2.25.1
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev

Looks ok.

Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

--
Zbigniew


More information about the igt-dev mailing list