From: Jani Nikula Date: Fri, 4 Aug 2023 08:46:00 +0000 (+0300) Subject: drm/i915: debug log when GMD ID indicates there's no display X-Git-Tag: v6.6-rc1~1^2~13^2~4 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=bf9e1bdaf125f8a18a8878f8f555ab0338da2fd0;p=linux-2.6-block.git 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 Signed-off-by: Jani Nikula Link: https://patchwork.freedesktop.org/patch/msgid/20230804084600.1005818-2-jani.nikula@intel.com --- diff --git a/drivers/gpu/drm/i915/display/intel_display_device.c b/drivers/gpu/drm/i915/display/intel_display_device.c index 1ca67b77e6ba..c39f8a15d8aa 100644 --- a/drivers/gpu/drm/i915/display/intel_display_device.c +++ b/drivers/gpu/drm/i915/display/intel_display_device.c @@ -831,9 +831,10 @@ probe_gmdid_display(struct drm_i915_private *i915, u16 *ver, u16 *rel, u16 *step val = ioread32(addr); pci_iounmap(pdev, addr); - if (val == 0) - /* Platform doesn't have display */ + if (val == 0) { + drm_dbg_kms(&i915->drm, "Device doesn't have display\n"); return &no_display; + } *ver = REG_FIELD_GET(GMD_ID_ARCH_MASK, val); *rel = REG_FIELD_GET(GMD_ID_RELEASE_MASK, val);