Skip to content

Commit

Permalink
drm/ttm: fix, avoid iomapping system memory
Browse files Browse the repository at this point in the history
If the memory is not iomem we should not try to
ioremap it. Should fix :

https://bugs.freedesktop.org/show_bug.cgi?id=27822

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Tested-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Jerome Glisse authored and Dave Airlie committed May 6, 2010
1 parent a1e9ada commit 9e51159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/ttm/ttm_bo_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ int ttm_mem_reg_ioremap(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem,

*virtual = NULL;
ret = ttm_mem_io_reserve(bdev, mem);
if (ret)
if (ret || !mem->bus.is_iomem)
return ret;

if (mem->bus.addr) {
Expand Down

0 comments on commit 9e51159

Please sign in to comment.