Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
From: Rain Yang <jiyu.yang@oss.nxp.com>
To: Marek Vasut <marek.vasut@mailbox.org>, boris.brezillon@collabora.com
Cc: airlied@gmail.com, boris.brezillon@collabora.com,
	conor+dt@kernel.org, devicetree@vger.kernel.org,
	dri-devel@lists.freedesktop.org, festevam@gmail.com,
	imx@lists.linux.dev, kernel@pengutronix.de, krzk+dt@kernel.org,
	linux-arm-kernel@lists.infradead.org, liviu.dudau@arm.com,
	maarten.lankhorst@linux.intel.com, mripard@kernel.org,
	p.zabel@pengutronix.de, peng.fan@nxp.com, robh@kernel.org,
	s.hauer@pengutronix.de, shawnguo@kernel.org, simona@ffwll.ch,
	sre@kernel.org, steven.price@arm.com, tzimmermann@suse.de
Subject: Re: [PATCH v2 4/9] drm/panthor: Implement optional reset
Date: Tue, 16 Sep 2025 18:06:37 +0800	[thread overview]
Message-ID: <aMk1CISrn2_p0qzJ@oss.nxp.com> (raw)
In-Reply-To: <4147d10f-fb54-4f1b-ac1b-58cf657a3aeb@mailbox.org>

On Thu, Sep 04, 2025 at 05:29:11PM +0200, Marek Vasut wrote:
>On 9/4/25 5:20 PM, Boris Brezillon wrote:
>> On Thu, 4 Sep 2025 16:54:38 +0200
>> Marek Vasut <marek.vasut@mailbox.org> wrote:
>> 
>> > On 9/4/25 4:04 PM, Boris Brezillon wrote:
>> > 
>> > Hello Boris,
>> > 
>> > > > > > I suspect the extra soft reset I did before "un-halted" the GPU and
>> > > > > > allowed it to proceed.
>> > > > > 
>> > > > > Hm, not quite. I mean, you still need to explicitly boot the MCU after
>> > > > > a reset, which is what the write to MCU_CONTROL [1] does. What the
>> > > > > soft-reset does though, is reset all GPU blocks, including the MCU.
>> > > > > This means the MCU starts from a fresh state when you reach [1].
>> > > > 
>> > > > I have a feeling the write to MCU_CONTROL does nothing in my case.
>> > > 
>> > > I believe it does, otherwise you wouldn't be able to kick the MCU
>> > > and get things working until the first runtime suspend happens. I gut
>> > > feeling is that there's something fishy in the FW or SoC integration
>> > > that causes the FW HALT request to put the MCU/GPU in a bad state
>> > > preventing further MCU_CONTROL(AUTO_START) from functioning correctly
>> > > after that point.
>> > 
>> > I wonder who at NXP could chime in ... Peng, do you know ?
>> > 
>> > > > Is there some way to probe the MCU state before/after setting GLB_HALT,
>> > > > and also before/after the MCU_CONTROL write, using
>> > > > gpu_read()/gpu_write() register operations, to find out what is going on
>> > > > with the MCU at each point ?
>> > > 
>> > > Yes, there's an MCU_STATUS register [1].
>> > Is that the only register I can use , or is there something more
>> > detailed ? This register only returns values 0..3 which is not very
>> > informative.
>> 
>> Not that I'm aware.
>
>Hmmmmm ... is there any way we can progress with the MX95 upstreaming with
>full reset , as a hardware implementation workaround in the driver, or some
>such ?

Hi Boris,

you're right.
*0x4d810008=1, this register is a write-once register, so it was moved into SM
since imx 6.12.3 release, and latest 6.6.52 release. some document work is still
needed in the future.

Hi Marek,
thanks for your effort to make the i.MX95 GPU upstreamed.
I created one PR to support i.MX95 GPU expcept the multi power domain[1],
but it seemed to be placed in the wrong location. No one responded to it,
so I closed it.

for the suspend/resume issue, the panthor driver works well with 6.12.34 
patched with pm_domains operation like you did.
run vkmark->suspend 10min in the 4th console->wakeup in the 4th console.

can you show me your SM version when uboot start,
and the G310 firmware version which can be found by search git_sha string.

[1] https://gitlab.freedesktop.org/panfrost/linux/-/merge_requests/13

  reply	other threads:[~2025-09-16 10:06 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-21 20:05 [PATCH v2 0/9] arm64: dts: imx95: Add support for Mali G310 GPU Marek Vasut
2025-03-21 20:05 ` [PATCH v2 1/9] dt-bindings: reset: imx95-gpu-blk-ctrl: Document Freescale i.MX95 GPU reset Marek Vasut
2025-03-21 21:40   ` Rob Herring (Arm)
2025-03-21 20:05 ` [PATCH v2 2/9] reset: simple: Add support for " Marek Vasut
2025-03-21 20:05 ` [PATCH v2 3/9] dt-bindings: gpu: mali-valhall-csf: Document optional reset Marek Vasut
2025-04-03 12:53   ` Liviu Dudau
2025-03-21 20:05 ` [PATCH v2 4/9] drm/panthor: Implement " Marek Vasut
2025-03-24  8:43   ` Boris Brezillon
2025-03-24 19:05     ` Marek Vasut
2025-03-25 14:12       ` Philipp Zabel
2025-03-25 14:27         ` Marek Vasut
2025-03-25 15:00           ` Philipp Zabel
2025-03-24 23:37     ` Marek Vasut
2025-03-25  7:43       ` Boris Brezillon
2025-03-25 13:50         ` Marek Vasut
2025-03-25 14:35           ` Boris Brezillon
2025-03-25 14:37             ` Marek Vasut
2025-03-25 14:52               ` Boris Brezillon
2025-09-03 21:44                 ` Marek Vasut
2025-09-04  6:22                   ` Boris Brezillon
2025-09-04  6:36                     ` Alexander Stein
2025-09-04 13:52                       ` Marek Vasut
2025-09-04 14:39                         ` Alexander Stein
2025-09-04 14:46                           ` Marek Vasut
2025-09-04 13:49                     ` Marek Vasut
2025-09-04 14:04                       ` Boris Brezillon
2025-09-04 14:54                         ` Marek Vasut
2025-09-04 15:20                           ` Boris Brezillon
2025-09-04 15:29                             ` Marek Vasut
2025-09-16 10:06                               ` Rain Yang [this message]
2025-09-16 17:34                                 ` Marek Vasut
2025-09-17  1:49                                   ` Rain Yang
2025-09-17  2:17                                     ` Marek Vasut
2025-09-17 14:18                                       ` Rain Yang
2025-09-25 20:41                                         ` Marek Vasut
2025-09-26  9:18                                           ` Rain Yang
2025-09-26 13:32                                             ` Marek Vasut
2025-09-28  8:24                                               ` Rain Yang
2025-09-28 16:56                                                 ` Marek Vasut
2025-03-21 20:05 ` [PATCH v2 5/9] drm/panthor: Implement support for multiple power domains Marek Vasut
2025-03-26 15:07   ` Steven Price
2025-03-21 20:05 ` [PATCH v2 6/9] drm/panthor: Reset GPU after L2 cache power off Marek Vasut
2025-03-21 20:05 ` [PATCH v2 7/9] dt-bindings: gpu: mali-valhall-csf: Document i.MX95 support Marek Vasut
2025-03-24 16:31   ` Rob Herring (Arm)
2025-03-21 20:05 ` [PATCH v2 8/9] drm/panthor: Add " Marek Vasut
2025-03-21 20:05 ` [PATCH v2 9/9] arm64: dts: imx95: Describe Mali G310 GPU Marek Vasut
2025-03-24  7:02   ` Alexander Stein
2025-03-24 23:35     ` Marek Vasut
2025-03-25  7:00       ` Alexander Stein
2025-09-04  9:54     ` Peng Fan
2025-09-04 13:22       ` Marek Vasut
2025-09-09  0:52         ` Peng Fan

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=aMk1CISrn2_p0qzJ@oss.nxp.com \
    --to=jiyu.yang@oss.nxp.com \
    --cc=airlied@gmail.com \
    --cc=boris.brezillon@collabora.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=festevam@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=liviu.dudau@arm.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=marek.vasut@mailbox.org \
    --cc=mripard@kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=peng.fan@nxp.com \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=sre@kernel.org \
    --cc=steven.price@arm.com \
    --cc=tzimmermann@suse.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox