intel: fix topology query
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 2 Oct 2019 14:13:06 +0000 (17:13 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 2 Oct 2019 22:25:44 +0000 (22:25 +0000)
commit1c6fdbc83cf1094c735b964902da421978005cb3
treec3daba05ebde54067f092818e2f438b19cbecc7b
parentfaf98be290a9b6fa4d6a11f279f12c11e867c5c7
intel: fix topology query

i915 will report ENODEV on generations prior to Haswell because there
is no point in reporting values on those. This is prior any fusing
could happen on parts with identical PCI ids.

This query call was previously only triggered on generations that
support performance queries, which happens to match generation for
which i915 reports topology, but the commit pointed below started
using it on all generations.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/1860
Cc: <mesa-stable@lists.freedesktop.org>
Fixes: 96e1c945f2 ("i965: Move device info initialization to common code")
Reviewed-by: Mark Janes <mark.a.janes@intel.com>
src/intel/dev/gen_device_info.c