Skip to content

Commit bf9e1bd

Browse files
committed
drm/i915: debug log when GMD ID indicates there's no display
Debug log similar to the device id based identification of no display. Reviewed-by: Luca Coelho <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 1435188 commit bf9e1bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/gpu/drm/i915/display/intel_display_device.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,9 +831,10 @@ probe_gmdid_display(struct drm_i915_private *i915, u16 *ver, u16 *rel, u16 *step
831831
val = ioread32(addr);
832832
pci_iounmap(pdev, addr);
833833

834-
if (val == 0)
835-
/* Platform doesn't have display */
834+
if (val == 0) {
835+
drm_dbg_kms(&i915->drm, "Device doesn't have display\n");
836836
return &no_display;
837+
}
837838

838839
*ver = REG_FIELD_GET(GMD_ID_ARCH_MASK, val);
839840
*rel = REG_FIELD_GET(GMD_ID_RELEASE_MASK, val);

0 commit comments

Comments
 (0)