From: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
To: Linus Walleij <linusw@kernel.org>
Cc: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>,
Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
Daniel Scally <dan.scally@ideasonboard.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Magnus Damm <magnus.damm@gmail.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH RFC v5 7/7] media: mali-c55: Sequence resets explicitly
Date: Thu, 5 Nov 2026 11:10:33 +0100 [thread overview]
Message-ID: <auxUgg0PP9xXqA68@zed> (raw)
In-Reply-To: <CAD++jLn_3X65zu8q-DfWbn4xjyPrSfp5BVH4SO96XCxmegcvXg@mail.gmail.com>
Hi Linus
On Thu, Nov 05, 2026 at 09:58:09AM +0100, Linus Walleij wrote:
> Hi Prabhakar,
>
> thanks a lot for your help!
>
> On Tue, Nov 3, 2026 at 2:47 PM Lad, Prabhakar
> <prabhakar.csengg@gmail.com> wrote:
>
> > I tested on the RZ/V2H EVK with the clocks and DT left untouched,
> > changing only the reset order.
> >
> > The hang comes from the reset assert order in __mali_c55_power_off().
> > Asserting vresetn (the ISP core reset per the RZ/V2H manual) before
> > hresetn/aresetn wedges the ISP. The next power-on then stalls on its
> > first register access. The deassert order doesn't matter.
>
> OK I will drop the clock patch and keep this one.
>
> > Asserting h->a->v (deasserting v->a->h) passes repeated runtime-PM
> > cycles and also works with the IVC enabled. So 7/7 gives the right
> > reset sequence, 6/7 isn't needed for this, and the existing DT mapping
> > (0xd3 = vresetn = ISP core reset) is correct.
>
> So this is a Tested-by for this patch?
>
> > A smaller alternative keeps the bulk API and only reorders the names:
>
> I guess that works, but I'm not sure the reset bulk API in the
> kernel guarantees any order, so we better keep this patch as-is if
I was under the same impression as I have memories of quite some
conversations around this and I recall a workqueue was used to
schedule bulk reset operations.
Now that I re-looked at the implementation of
reset_control_bulk_deassert() and its history I don't see any trace of
it and the documentation says
* Deassert the reset lines for all provided reset controls, in reverse order.
Was I hallucinating when I first suggested no ordering was guaranteed ?
> it works so we explicitly show users that this is critical.
>
> Yours,
> Linus Walleij
next prev parent reply other threads:[~2026-11-05 10:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 16:11 [PATCH v5 0/7] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Linus Walleij
2026-10-27 16:11 ` [PATCH v5 1/7] dt-bindings: media: renesas,r9a09g057-ivc: Describe additional interrupts Linus Walleij
2026-10-27 16:11 ` [PATCH v5 2/7] dt-bindings: media: arm,mali-c55: Describe DMA line-tick interrupts Linus Walleij
2026-10-27 16:11 ` [PATCH v5 3/7] dt-bindings: media: arm,mali-c55: Add power domain Linus Walleij
2026-10-27 16:11 ` [PATCH v5 4/7] arm64: dts: renesas: r9a09g057: Add IVC and ISP nodes Linus Walleij
2026-10-27 16:11 ` [PATCH v5 5/7] arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Add ISP and IVC nodes Linus Walleij
2026-10-27 16:11 ` [PATCH RFC v5 6/7] media: mali-c55: Sequence clocks explicitly Linus Walleij
2026-11-03 13:21 ` Lad, Prabhakar
2026-10-27 16:11 ` [PATCH RFC v5 7/7] media: mali-c55: Sequence resets explicitly Linus Walleij
2026-11-03 13:46 ` Lad, Prabhakar
2026-11-05 8:58 ` Linus Walleij
2026-11-05 10:10 ` Jacopo Mondi [this message]
2026-11-05 13:52 ` Linus Walleij
2026-11-04 13:28 ` [PATCH v5 0/7] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Barnabás Pőcze
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=auxUgg0PP9xXqA68@zed \
--to=jacopo.mondi@ideasonboard.com \
--cc=conor+dt@kernel.org \
--cc=dan.scally@ideasonboard.com \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=krzk+dt@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mchehab@kernel.org \
--cc=prabhakar.csengg@gmail.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.