drm/i915: switch TGL and ADL to the new stepping scheme
authorJani Nikula <jani.nikula@intel.com>
Fri, 26 Mar 2021 13:21:35 +0000 (15:21 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 29 Mar 2021 11:56:13 +0000 (14:56 +0300)
commit34b7e27b88e546174638d6ec919d378012f731f2
treeee1733a14701bc23854b2bf21c3e75c53ff3833e
parentef47b7ab1faa6d32af351690e0bf664f6c6721b8
drm/i915: switch TGL and ADL to the new stepping scheme

This changes the way revids not present in the array are handled:

- For gaps in the array, the next present revid is used.

- For revids beyond the array, the new STEP_FUTURE is used instead of
  the last revid in the array.

In both cases, we'll get debug logging of what's going on.

v2: Rename stepping->step

Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/756fe3d75b1e91ef812fc1fd3f70337e9c571d91.1616764798.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_step.c
drivers/gpu/drm/i915/intel_step.h