drm/i915: Emit telltales for extra levels of debug upon initialisation
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Oct 2016 13:27:07 +0000 (14:27 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Oct 2016 07:41:41 +0000 (08:41 +0100)
After printing our welcome message to the user, also include
supplementary details on what debugging is enabled (useful for us to
sanity check what extra safeguards are on for any random kernel).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20161014132707.29039-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com
drivers/gpu/drm/i915/i915_drv.c

index 1fddc2ccada290c791033d4ff3315e519863a02d..912d5348e3e76ae55aab66dfe7eaca90237ff02f 100644 (file)
@@ -1232,6 +1232,10 @@ int i915_driver_load(struct pci_dev *pdev, const struct pci_device_id *ent)
        DRM_INFO("Initialized %s %d.%d.%d %s for %s on minor %d\n",
                 driver.name, driver.major, driver.minor, driver.patchlevel,
                 driver.date, pci_name(pdev), dev_priv->drm.primary->index);
+       if (IS_ENABLED(CONFIG_DRM_I915_DEBUG))
+               DRM_INFO("DRM_I915_DEBUG enabled\n");
+       if (IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM))
+               DRM_INFO("DRM_I915_DEBUG_GEM enabled\n");
 
        intel_runtime_pm_put(dev_priv);