OSDN Git Service

drm/i915: Use graphics ver, rel info for media on old platforms
authorRadhakrishna Sripada <radhakrishna.sripada@intel.com>
Tue, 11 Oct 2022 15:38:51 +0000 (08:38 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 18 Oct 2022 00:25:37 +0000 (17:25 -0700)
commit80c1fb2ee7b88e1e03bbbd5b3e19cbae28b95dcf
tree71cce49e70de591d087f89b551cc0bb4803f7bbb
parentef7e222cd68f7b7c654f23fce51e8be888a3d7ee
drm/i915: Use graphics ver, rel info for media on old platforms

Platforms prior to MTL do not have a separate media and graphics version.
On platforms where GMD id is not supported, reuse the graphics ip version,
release info for media.

The rest of the IP graphics, display versions would be copied during driver
creation.

While at it warn if GMD is not used for platforms greater than gen12.

v2:
 - Use simple assignment to copy contents of the structure(JaniN)

Fixes: c2c7075225ef ("drm/i915: Read graphics/media/display arch version from hw")
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@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/20221011153851.3781507-2-radhakrishna.sripada@intel.com
drivers/gpu/drm/i915/intel_device_info.c