drm/i915/opregion: debug log about invalid ACPI OpRegion VBT
authorJani Nikula <jani.nikula@intel.com>
Wed, 29 Mar 2017 10:32:57 +0000 (13:32 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 30 Mar 2017 06:12:36 +0000 (09:12 +0300)
Leave more breadcrumbs for debuggers.

Reviewed-by: Bob Paauwe <bob.j.paauwe@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1490783578-6065-3-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_opregion.c

index 2b64cb6691eba37a9ec970bc734968d571f2e4d8..d44465190dc185fa8978a3988437ae1f3c08430a 100644 (file)
@@ -989,6 +989,8 @@ int intel_opregion_setup(struct drm_i915_private *dev_priv)
                        opregion->vbt = vbt;
                        opregion->vbt_size = vbt_size;
                        goto out;
+               } else {
+                       DRM_DEBUG_KMS("Invalid VBT in ACPI OpRegion (RVDA)\n");
                }
        }
 
@@ -1007,6 +1009,8 @@ int intel_opregion_setup(struct drm_i915_private *dev_priv)
                DRM_DEBUG_KMS("Found valid VBT in ACPI OpRegion (Mailbox #4)\n");
                opregion->vbt = vbt;
                opregion->vbt_size = vbt_size;
+       } else {
+               DRM_DEBUG_KMS("Invalid VBT in ACPI OpRegion (Mailbox #4)\n");
        }
 
 out: