Skip to content

intel/dev: Add INTEL_FORCE_PROBE env-var and initial LNL devinfo guarded by FORCE_PROBE

Jordan Justen requested to merge jljusten/mesa:intel-force-probe into main

This series adds the ability to include Intel PCI IDs which require an env-var to enable.

To make it obvious in "iris_pci_ids.h", a new parameter is added to the CHIPSET macro. For example:

CHIPSET(0x1234, foo, "FOO", "Intel(R) Graphics", FORCE_PROBE)

Then support for an env-var named "INTEL_FORCE_PROBE" is added. (Documented in docs/envvars.rst.) The format of this variable is similar to the kernel command line params i915.force_probe and xe.force_probe.

In the example above, we will normally exit with an error if Iris or Anvil attempts to start with a PCI ID of 0x1234. But, this could now be overridden by setting:

INTEL_FORCE_PROBE=1234

Warning and/or error messages are printed as appropriate.

Finally, we add an initial LNL devinfo and PCI ID. Since both upstream Mesa and the kernel drivers are not yet functional with LNL, it has FORCE_PROBE set.

Merge request reports