Commit df51e7aa authored by Chris Wilson's avatar Chris Wilson

agp/intel: Promote warning about failure to setup flush to error.

Make sure we always detect when we fail to correctly allocate the Isoch
Flush Page and print an error to warn the user about the likely memory
corruption that will result in invalid rendering or worse.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org
parent 9f82d238
...@@ -1068,11 +1068,11 @@ static void intel_i9xx_setup_flush(void) ...@@ -1068,11 +1068,11 @@ static void intel_i9xx_setup_flush(void)
intel_i915_setup_chipset_flush(); intel_i915_setup_chipset_flush();
} }
if (intel_private.ifp_resource.start) { if (intel_private.ifp_resource.start)
intel_private.i9xx_flush_page = ioremap_nocache(intel_private.ifp_resource.start, PAGE_SIZE); intel_private.i9xx_flush_page = ioremap_nocache(intel_private.ifp_resource.start, PAGE_SIZE);
if (!intel_private.i9xx_flush_page) if (!intel_private.i9xx_flush_page)
dev_info(&intel_private.pcidev->dev, "can't ioremap flush page - no chipset flushing"); dev_err(&intel_private.pcidev->dev,
} "can't ioremap flush page - no chipset flushing\n");
} }
static int intel_i9xx_configure(void) static int intel_i9xx_configure(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment