summaryrefslogtreecommitdiffstats
path: root/include/drm/ttm
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-04-01 16:12:49 +0200
committerAlex Deucher <alexander.deucher@amd.com>2016-04-04 23:00:01 +0200
commit749b48faaf64d1081d7216068ff3da92c230bad0 (patch)
tree8960af2eef35fd434e004f753a5c8586bc35b61f /include/drm/ttm
parentdrm/radeon: Only call drm_vblank_on/off between drm_vblank_init/cleanup (diff)
downloadlinux-749b48faaf64d1081d7216068ff3da92c230bad0.tar.xz
linux-749b48faaf64d1081d7216068ff3da92c230bad0.zip
drm/ttm: use phys_addr_t for ttm_bus_placement
Fixes ttm on platforms like PPC460 where the CPU is in 32-bit mode, but the physical addresses are >32 bits. Extracted from a patch by Hans Verkuil. Tested-by: Julian Margetson <runaway@candw.ms> Acked-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Christian König <christian.koenig@amd.com> Cc: Thomas Hellstrom <thellstrom@vmware.com> Cc: Julian Margetson <runaway@candw.ms> Cc: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/drm/ttm')
-rw-r--r--include/drm/ttm/ttm_bo_api.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h
index afae2316bd43..055a08ddac02 100644
--- a/include/drm/ttm/ttm_bo_api.h
+++ b/include/drm/ttm/ttm_bo_api.h
@@ -92,7 +92,7 @@ struct ttm_placement {
*/
struct ttm_bus_placement {
void *addr;
- unsigned long base;
+ phys_addr_t base;
unsigned long size;
unsigned long offset;
bool is_iomem;