summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_debugfs.c
diff options
context:
space:
mode:
authorWilliams, Dan J <dan.j.williams@intel.com>2015-10-12 21:12:57 +0000
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-10-13 10:22:45 +0200
commit115719fceaa733d646e39cdce83cc32ddb891a49 (patch)
treede16a97ec73b5bc060ed6dedb5275bc492c41385 /drivers/gpu/drm/i915/i915_debugfs.c
parentadfb46721e4a4ef373dee8b773b424c40a176fc2 (diff)
downloadblackbird-obmc-linux-115719fceaa733d646e39cdce83cc32ddb891a49.tar.gz
blackbird-obmc-linux-115719fceaa733d646e39cdce83cc32ddb891a49.zip
i915: switch from acpi_os_ioremap to memremap
i915 expects the OpRegion to be cached (i.e. not __iomem), so explicitly map it with memremap rather than the implied cache setting of acpi_os_ioremap(). Cc: Daniel Vetter <daniel.vetter@intel.com> Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: intel-gfx@lists.freedesktop.org Cc: David Airlie <airlied@linux.ie> Cc: dri-devel@lists.freedesktop.org Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 7e65015ecbee..1676388a62df 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -1851,7 +1851,7 @@ static int i915_opregion(struct seq_file *m, void *unused)
goto out;
if (opregion->header) {
- memcpy_fromio(data, opregion->header, OPREGION_SIZE);
+ memcpy(data, opregion->header, OPREGION_SIZE);
seq_write(m, data, OPREGION_SIZE);
}
OpenPOWER on IntegriCloud