diff options
author | Jani Nikula <jani.nikula@intel.com> | 2023-08-04 11:46:00 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2023-08-10 10:19:32 +0300 |
commit | bf9e1bdaf125f8a18a8878f8f555ab0338da2fd0 (patch) | |
tree | 6e407ea6b792cba0c529a01bd33645836a1b0439 /drivers/gpu/drm/i915/display/intel_display_device.c | |
parent | 1435188307d128671f677eb908e165666dd83652 (diff) | |
download | linux-bf9e1bdaf125f8a18a8878f8f555ab0338da2fd0.tar.xz |
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 <luciano.coelho@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230804084600.1005818-2-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_display_device.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_display_device.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |