summaryrefslogtreecommitdiff
path: root/tests/i915/i915_pciid.c
AgeCommit message (Collapse)Author
2021-06-07lib/i915: Split 'gen' into graphics version and display versionMatt Roper
Going forward, platforms may have separate architecture versions for graphics and display and should no longer utilize a single 'gen' version. While doing this, let's change the versions to raw version values rather than BIT(v) as we were doing in the past. It looks like some of the existing uses of devinfo->gen were already misinterpreting this field and failing to pass the value through ffs(), so this change may also fix some bugs. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
2020-05-19i915/i915_pciid: Check for info->gen == 0Chris Wilson
An unknown pci-id should return a valid intel_device_info pointer, just with generic information. Check for the generic device info as well, and report that as an unknown PCI-ID. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
2020-05-19i915: Add test to assert that the PCI-ID is knownChris Wilson
We do want to ensure that the igt identification table is kept up to date, and so would like to be warned if being run on an unknown chipset. Instead of refusing to run any test, have a specific test for the unknown chipset. Suggested-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>