Commit 9e51159c authored by Jerome Glisse's avatar Jerome Glisse Committed by Dave Airlie

drm/ttm: fix, avoid iomapping system memory

If the memory is not iomem we should not try to
ioremap it. Should fix :

https://bugs.freedesktop.org/show_bug.cgi?id=27822Signed-off-by: default avatarJerome Glisse <jglisse@redhat.com>
Tested-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent a1e9ada3
...@@ -113,7 +113,7 @@ int ttm_mem_reg_ioremap(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem, ...@@ -113,7 +113,7 @@ int ttm_mem_reg_ioremap(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem,
*virtual = NULL; *virtual = NULL;
ret = ttm_mem_io_reserve(bdev, mem); ret = ttm_mem_io_reserve(bdev, mem);
if (ret) if (ret || !mem->bus.is_iomem)
return ret; return ret;
if (mem->bus.addr) { if (mem->bus.addr) {
......
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