drm/i915: Expect child dev size of 22 bytes for VBT < 106
authorVille Syrjälä <[email protected]>
Mon, 14 Dec 2015 16:23:47 +0000 (18:23 +0200)
committerVille Syrjälä <[email protected]>
Tue, 12 Jan 2016 14:12:44 +0000 (16:12 +0200)
My 830 has VBT version 105 with child device size of 22 bytes.
Let's assume that's correct and adjust our expectations.

Signed-off-by: Ville Syrjälä <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Acked-by: Jani Nikula <[email protected]>
drivers/gpu/drm/i915/intel_bios.c

index 1de16f21121aaacdabf64b3fd64a2750716baf64..12e2f8b8bf9c9b69928700398eb2485cd429f4a4 100644 (file)
@@ -1157,7 +1157,9 @@ parse_device_mapping(struct drm_i915_private *dev_priv,
                DRM_DEBUG_KMS("No general definition block is found, no devices defined.\n");
                return;
        }
-       if (bdb->version < 109) {
+       if (bdb->version < 106) {
+               expected_size = 22;
+       } else if (bdb->version < 109) {
                expected_size = 27;
        } else if (bdb->version < 195) {
                BUILD_BUG_ON(sizeof(struct old_child_dev_config) != 33);