drm/i915: add new helpers for accessing stepping info
authorJani Nikula <jani.nikula@intel.com>
Fri, 26 Mar 2021 13:21:33 +0000 (15:21 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 29 Mar 2021 11:56:04 +0000 (14:56 +0300)
commit439c8dccb6a7f74bf6b3721fa509ab202c66f899
treeed1bf05649461c11f7404ef046422952c94a78ca
parent7eb186bbe9f30e17cfdadf18ed012aefcbb70d6e
drm/i915: add new helpers for accessing stepping info

Add new runtime info field for stepping. Add new helpers for accessing
them. As we'll be switching platforms over to the new scheme
incrementally, check for non-initialized steppings.

In case a platform does not have separate display and gt steppings, it's
okay to use a common shorthand. However, in this case the display
stepping must not be initialized, and gt stepping is the single point of
truth.

v3: Remove IS_STEP() (José)

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/bb4275733fa390ea3dbf6f62794d55b616665230.1616764798.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_device_info.h
drivers/gpu/drm/i915/intel_step.h