[PATCH i-g-t v2] tools/intel_reg: Add --pci-slot option

Krzysztof Karas krzysztof.karas at intel.com
Fri Feb 21 08:49:15 UTC 2025


Hi Kamil,

> Add device selection by PCI slot with new option
> 
> --pci-slot <domain>:<bus>:<device>[.<func>]
> 
> Examples:
> 
> intel_reg dump --pci-slot 0000:01:00.0
> intel_reg dump --pci-slot=0:8c:0
> intel_reg --pci-slot 0:8c:0 read 0x138108
> 
> This should help in multi-GPU scenario when someone uses two or
> more discrete GPUs. Also while at this update copyright years.
> 
> v1: address review comments from Jani (Kamil)
> v2: address review - added =BDF in help (Adam)
>   removed refactored code, add helper info when option is not
>   used, renamed function checking PCI card and improved
>   printed info (Krzysztof)
>   remove --help from commands arrary as unrelated change (Kamil)
> 

Reviewed-by: Krzysztof Karas <krzysztof.karas at intel.com>

Best Regards,
Krzysztof


More information about the igt-dev mailing list