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 <[email protected]>
Acked-by: Thomas Hellstrom <[email protected]>
Reviewed-by: Christian König <[email protected]>
Cc: Thomas Hellstrom <[email protected]>
Cc: Julian Margetson <[email protected]>
Cc: Hans Verkuil <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
This commit is contained in:
Alex Deucher 2016-04-01 10:12:49 -04:00
commit 749b48faaf

View file

@ -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;