[Intel-gfx] [PATCH 03/12] drm/i915/bios: limit default outputs by platform on missing VBT
Jani Nikula
jani.nikula at intel.com
Wed Feb 17 17:03:33 UTC 2021
Pre-DDI and non-CHV aren't using the information created here anyway, so
don't bother setting the defaults for them. This should be a
non-functional change, but is separated here to catch any regressions in
a single commit.
Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
drivers/gpu/drm/i915/display/intel_bios.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b/drivers/gpu/drm/i915/display/intel_bios.c
index a8712fe8bf3e..e9cb15aa2f5a 100644
--- a/drivers/gpu/drm/i915/display/intel_bios.c
+++ b/drivers/gpu/drm/i915/display/intel_bios.c
@@ -2058,6 +2058,9 @@ init_vbt_missing_defaults(struct drm_i915_private *i915)
{
enum port port;
+ if (!HAS_DDI(i915) && !IS_CHERRYVIEW(i915))
+ return;
+
for_each_port(port) {
struct ddi_vbt_port_info *info =
&i915->vbt.ddi_port_info[port];
--
2.20.1
More information about the Intel-gfx
mailing list