[PATCH] drm/ttm: use phys_addr_t for ttm_bus_placement

Thomas Hellstrom thellstrom at vmware.com
Fri Apr 1 16:42:13 UTC 2016


Acked-by: Thomas Hellstrom <thellstrom at vmware.com>

On 04/01/2016 06:31 PM, Julian Margetson wrote:
> On 4/1/2016 11:02 AM, Alex Deucher wrote:
>> 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;
> Tested and working .
> Tested-by: Julian Margetson <runaway at candw.ms>
>
> Regards
> Julian
>
>



More information about the dri-devel mailing list