[PATCH] drm/ast: Fix start address computation

Jocelyn Falempe jfalempe at redhat.com
Thu Feb 9 09:11:17 UTC 2023


On 07/02/2023 12:36, Jocelyn Falempe wrote:
> On 07/02/2023 12:17, Thomas Zimmermann wrote:
>> Hi
>>
> 
> I was wondering if this start address is not an offset in the GPU 
> memory, and in this case the primary plane offset should always be 0 ?

I think it's the case, so I will send a v2 shortly.

> 
> Best regards,
> 
>>
>> Best regards
>> Thomas
>>
>> [1] 
>> https://elixir.bootlin.com/linux/v6.2-rc7/source/drivers/gpu/drm/ast/ast_mm.c#L96
>>
>>>       unsigned long cursor_size = roundup(AST_HWC_SIZE + 
>>> AST_HWC_SIGNATURE_SIZE, PAGE_SIZE);
>>>       unsigned long size = ast->vram_fb_available - cursor_size;
>>>       int ret;
>>
> 



More information about the dri-devel mailing list