projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4573744
)
drm/radeon: AGP memory is only I/O if the aperture can be mapped by the CPU.
author
Michel Dänzer
<daenzer@vmware.com>
Wed, 19 May 2010 10:46:22 +0000
(12:46 +0200)
committer
Dave Airlie
<airlied@redhat.com>
Fri, 21 May 2010 05:06:45 +0000
(15:06 +1000)
Fixes AGP initialization failure with Apple UniNorth bridges due to trying to
ioremap() normal RAM.
Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_ttm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_ttm.c
b/drivers/gpu/drm/radeon/radeon_ttm.c
index 3aa3a65800abd1354aefafcd9e40287de651cc84..e9918d88f5b049675cfebe754d15ef83338bb91d 100644
(file)
--- a/
drivers/gpu/drm/radeon/radeon_ttm.c
+++ b/
drivers/gpu/drm/radeon/radeon_ttm.c
@@
-451,7
+451,7
@@
static int radeon_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_mem_
/* RADEON_IS_AGP is set only if AGP is active */
mem->bus.offset = mem->mm_node->start << PAGE_SHIFT;
mem->bus.base = rdev->mc.agp_base;
- mem->bus.is_iomem =
tru
e;
+ mem->bus.is_iomem =
!rdev->ddev->agp->cant_use_apertur
e;
}
#endif
break;