drm/i915/tgl: Fix REVID macros for TGL to fetch correct stepping
authorAditya Swarup <aditya.swarup@intel.com>
Thu, 3 Dec 2020 07:23:58 +0000 (23:23 -0800)
committerJani Nikula <jani.nikula@intel.com>
Fri, 18 Dec 2020 10:30:10 +0000 (12:30 +0200)
commit046f70d31ddb2069941aec54966fec5b7fbc7b7b
treefff19dd99052823b2b336d7593efa311b04a2423
parent0e53656ad8abc99e0a80c3de611e593ebbf55829
drm/i915/tgl: Fix REVID macros for TGL to fetch correct stepping

Fix TGL REVID macros to fetch correct display/gt stepping based
on SOC rev id from INTEL_REVID() macro. Previously, we were just
returning the first element of the revid array instead of using
the correct index based on SOC rev id.

Fixes: c33298cb34f5 ("drm/i915/tgl: Fix stepping WA matching")
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Aditya Swarup <aditya.swarup@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201203072359.156682-1-aditya.swarup@intel.com
(cherry picked from commit 83dbd74f8243f020d1ad8a3a3b3cd0795067920e)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_drv.h