]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/i915: Make the report about a bogus stolen reserved area an error
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 2 Nov 2017 15:17:36 +0000 (17:17 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 15 Nov 2017 16:48:57 +0000 (18:48 +0200)
Now that we should be properly filtering out the cases when the stolen
reserved area is disabled, let's convert the debug message about a
misplaced reserved area into an error.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171102151737.23336-2-ville.syrjala@linux.intel.com
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
drivers/gpu/drm/i915/i915_gem_stolen.c

index 44a5dbc8c23b11ca7350ee4565c3e868d406d634..4f9377b5f4aeda50a87bd136f10ee38fa6fed96e 100644 (file)
@@ -503,9 +503,9 @@ int i915_gem_init_stolen(struct drm_i915_private *dev_priv)
        if (reserved_base < dev_priv->mm.stolen_base ||
            reserved_base + reserved_size > stolen_top) {
                dma_addr_t reserved_top = reserved_base + reserved_size;
-               DRM_DEBUG_KMS("Stolen reserved area [%pad - %pad] outside stolen memory [%pad - %pad]\n",
-                             &reserved_base, &reserved_top,
-                             &dev_priv->mm.stolen_base, &stolen_top);
+               DRM_ERROR("Stolen reserved area [%pad - %pad] outside stolen memory [%pad - %pad]\n",
+                         &reserved_base, &reserved_top,
+                         &dev_priv->mm.stolen_base, &stolen_top);
                return 0;
        }