[PATCH i-g-t v4] tools/mk_detect_intel_gpu: add a tool to detect Intel GPUs from their PCI IDs
Jani Nikula
jani.nikula at intel.com
Thu May 23 07:30:37 UTC 2024
On Wed, 22 May 2024, Kamil Konieczny <kamil.konieczny at linux.intel.com> wrote:
> Looks like a good idea but this is also dependancy, btw
[snip]
> But this one is creating one more dependancy, one should have
> modules compiled in current running kernel.
Reading the comments about dependencies, I think this needs a different
perspective.
What is the target audience of the tool? What are they expected to have
around? What is the easiest for them to install?
lspci and modinfo are trivial to install, and most people have them
installed already. modinfo does not require the modules to be probed,
you can also point it at the .ko under /usr/lib/modules. For a user,
this gives information about the modules they actually have on their
system, which may be different from kernel or igt sources.
OTOH most people won't have kernel or igt sources available. (Let alone
specific versions of the source, which match the expectations of the
patch at hand.) Indeed, you can install igt via the distro package
manager, with no need to check out the sources.
BR,
Jani.
--
Jani Nikula, Intel
More information about the igt-dev
mailing list