]> git.itanic.dy.fi Git - linux-stable/commit
drm/i915: Parse and set stepping for platforms with GMD
authorJosé Roberto de Souza <jose.souza@intel.com>
Fri, 16 Sep 2022 01:46:47 +0000 (18:46 -0700)
committerRadhakrishna Sripada <radhakrishna.sripada@intel.com>
Sat, 24 Sep 2022 00:37:23 +0000 (17:37 -0700)
commit944ca7d8b12f9ed4abaa4e63223b62bd9b653b5c
tree634d389ba2679146a1e6016fb976c14247d7aced
parentc2c7075225ef7366a1ccc1cf4b7205c391ec7c9b
drm/i915: Parse and set stepping for platforms with GMD

Expand the current stepping convention to accommodate the GMD
stepping info. Typically GMD step maps to letter stepping
by "A + step %4" and number to "A + step /4" i.e, GMD step
0 maps to STEP_A0, 1 to _A1, 2 to _A2, 3 to _A3, 4 to STEP_B0...

Future platforms might break this formulae and may require a table
mapping to decode GMD step compatible with the convention.

v2:
 - Pass the updated ip version structure
v3:
 - Skip using GMD to step table(MattR)

Cc: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220916014648.1310346-3-radhakrishna.sripada@intel.com
drivers/gpu/drm/i915/intel_step.c
drivers/gpu/drm/i915/intel_step.h