[PATCH] drm/ttm: use phys_addr_t for ttm_bus_placement

Christian König deathsimple at vodafone.de
Fri Apr 1 17:55:50 UTC 2016


Am 01.04.2016 um 17:02 schrieb Alex Deucher:
> 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>

Reviewed-by: Christian König <christian.koenig 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;



More information about the dri-devel mailing list