summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher2016-04-01 16:12:49 +0200
committerAlex Deucher2016-04-04 23:00:01 +0200
commit749b48faaf64d1081d7216068ff3da92c230bad0 (patch)
tree8960af2eef35fd434e004f753a5c8586bc35b61f
parentdrm/radeon: Only call drm_vblank_on/off between drm_vblank_init/cleanup (diff)
downloadkernel-qcow2-linux-749b48faaf64d1081d7216068ff3da92c230bad0.tar.gz
kernel-qcow2-linux-749b48faaf64d1081d7216068ff3da92c230bad0.tar.xz
kernel-qcow2-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>
-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;