[PATCH] drm/ttm: use phys_addr_t for ttm_bus_placement

Alex Deucher alexdeucher at gmail.com
Fri Apr 1 15:02:00 UTC 2016


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.

Cc: Thomas Hellstrom <thellstrom at vmware.com>
Cc: Julian Margetson <runaway at candw.ms>
Cc: Hans Verkuil <hans.verkuil at cisco.com>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 include/drm/ttm/ttm_bo_api.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h
index afae231..055a08d 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;
-- 
2.5.5



More information about the dri-devel mailing list