Re: [PATCH] arm64: dts: qcom: sdm845-db845c: Mark cont splash memory region as reserved

From: Konrad Dybcio
Date: Thu Feb 09 2023 - 07:33:30 EST




On 9.02.2023 13:22, Bryan O'Donoghue wrote:
> On 09/02/2023 12:11, Bryan O'Donoghue wrote:
>>> If the bootloader splash is enabled then this memory is used until the
>>> DPU driver instructs MDP5 pipes to suck data from a newly assigned address,
>>> so there's a short window where it is.
>>
>> It seems a shame to reserve 30 something megabytes of memory for continuous splash unless we are actually using it is my point.
>>
>> If I'm running headless its just wasted memory.
>
> Couldn't we
>
> 1. Find reserved continuous splash memory
> 2. Fee it in the MDP when we make the transition
>
> It must be possible
I suppose we could mark it as shared-dma-pool, pass it to
MDSS, reserve it from there (by occupying the whole thing)
and either use it or free it before jumping to the newly
allocated region.

The MDSS driver can already accept it through memory-region = <>
IIRC, but *nobody* uses that, so I'm not sure it even still works..

Konrad
>
> ---
> bod