Re: [PATCH v4 06/11] pmdomain: amlogic: meson-ee-pwrc: power up memories for boot-enabled domains

From: linux-kernel-dev

Date: Thu Nov 26 2026 - 10:45:13 EST


On 11/26/26 13:04, Ulf Hansson wrote:
> On Mon, Nov 23, 2026 at 8:38 PM Ronald Claveau via B4 Relay
> <devnull+linux-kernel-dev.aliel.fr@xxxxxxxxxx> wrote:
>>
>> From: Ronald Claveau <linux-kernel-dev@xxxxxxxx>
>>
>> When a power domain is found already powered on at probe time (typically
>> the VPU domain left enabled by the bootloader), the driver registers the
>> genpd in the ON state with GENPD_FLAG_ALWAYS_ON and never calls
>> meson_ee_pwrc_on(). As a result, the memory power-down bits of the domain
>> are not touched.
>>
>> pwrc_ee_is_powered_off() only checks the top-level sleep bit, so a
>> bootloader that enabled the VPU without waking every memory block
>> leaves those memories powered down, and nothing in the genpd framework
>> will wake them since pm_runtime_resume_and_get() is a no-op for an
>> always-on domain.
>>
>> This is a preparatory change: a following patch drops the explicit
>> HHI_MEM_PD_REG0 write from the meson_dw_hdmi driver, which relies on the
>> power domain to power the HDMITX memory.
>
> A question, is the target to drop the GENPD_FLAG_ALWAYS_ON bit for
> these PM domains, once the consumer drivers have received proper
> support for runtime PM?
>

Indeed, that would be the natural follow-up to me.

> In any case, this looks good to me! Do you want me to apply this via
> my pmdomain tree?
>

Yes please, that is fine to me.

> Kind regards
> Uffe
>


--
Best regards,
Ronald