mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Brajesh Gupta <Brajesh.Gupta@imgtec.com>
To: Matt Coster <Matt.Coster@imgtec.com>
Cc: "tzimmermann@suse.de" <tzimmermann@suse.de>,
	"simona@ffwll.ch" <simona@ffwll.ch>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"airlied@gmail.com" <airlied@gmail.com>,
	Frank Binns <Frank.Binns@imgtec.com>,
	Alessio Belle <Alessio.Belle@imgtec.com>,
	"maarten.lankhorst@linux.intel.com"
	<maarten.lankhorst@linux.intel.com>,
	Alexandru Dadu <Alexandru.Dadu@imgtec.com>,
	"mripard@kernel.org" <mripard@kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] drm/imagination: Improve firmware power off for layout_mars config
Date: Fri, 13 Mar 2026 06:37:19 +0000	[thread overview]
Message-ID: <bcac70b2b6e7f2ba605c97da3432b4ed47517331.camel@imgtec.com> (raw)
In-Reply-To: <e652db4b-1e6d-4bf2-8b26-24e3e642c200@imgtec.com>

On Wed, 2026-03-11 at 11:37 +0000, Matt Coster wrote:
> Hi Brajesh,
> 
> Just a couple minor comments but this otherwise looks good to me.
> 
> On 05/03/2026 11:06, Brajesh Gupta wrote:
> > In layout_mars HW config, Firmware MCU moved from SideKick to new Mars
> > domain so Firmware takes care of powering down Sidekick/Jones and SLC.
> 
> I don't know which is correct, but I know we should probably be
> consistent with the capitlisation of SideKick/Sidekick.

Updated to Sidekick.

> >         /* Unset MTS DM association with threads. */
> >         pvr_cr_write32(pvr_dev, ROGUE_CR_MTS_INTCTX_THREAD0_DM_ASSOC,
> > @@ -229,6 +241,7 @@ pvr_fw_stop(struct pvr_device *pvr_dev)
> >         pvr_cr_write32(pvr_dev, ROGUE_CR_MTS_BGCTX_THREAD0_DM_ASSOC,
> >                        ROGUE_CR_MTS_BGCTX_THREAD0_DM_ASSOC_MASKFULL &
> >                        ROGUE_CR_MTS_BGCTX_THREAD0_DM_ASSOC_DM_ASSOC_CLRMSK);
> > +
> 
> I think this might be a remnant from the second patch, can you drop it?

Will be dropped.

> >                  * 0x0).
> >                  */
> > -               if (reg_value)
> > -                       skip_garten_idle = true;
> > -       }
> > +               if (!reg_value) {
> > +                       err = pvr_cr_poll_reg32(pvr_dev, ROGUE_CR_SIDEKICK_IDLE,
> > +                                               ROGUE_CR_SIDEKICK_IDLE_GARTEN_EN,
> > +                                               ROGUE_CR_SIDEKICK_IDLE_GARTEN_EN,
> > +                                               POLL_TIMEOUT_USEC);
> > +                       if (err)
> > +                               return err;
> 
> This duplicates the polling of CR_SIDEKICK_IDLE. Can you move it down
> outside this laddered if/elseif block, and make it conditional on a new
> variable poll_sidekick_idle_at_end or similar?
> 

Will update as per suggestion.

--
Brajesh Gupta
E: brajesh.gupta@imgtec.com 

  reply	other threads:[~2026-03-13  6:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-05 11:06 [PATCH 0/2] drm/imagination: Improve power off sequence Brajesh Gupta
2026-03-05 11:06 ` [PATCH 1/2] drm/imagination: Improve firmware power off for layout_mars config Brajesh Gupta
2026-03-11 11:37   ` Matt Coster
2026-03-13  6:37     ` Brajesh Gupta [this message]
2026-03-05 11:06 ` [PATCH 2/2] drm/imagination: Skip 2nd thread DM association for non META Firmware Brajesh Gupta
2026-03-11 11:41   ` Matt Coster
2026-03-13  6:27     ` Brajesh Gupta

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=bcac70b2b6e7f2ba605c97da3432b4ed47517331.camel@imgtec.com \
    --to=brajesh.gupta@imgtec.com \
    --cc=Alessio.Belle@imgtec.com \
    --cc=Alexandru.Dadu@imgtec.com \
    --cc=Frank.Binns@imgtec.com \
    --cc=Matt.Coster@imgtec.com \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=simona@ffwll.ch \
    --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

all inboxes | Powered by JetHome®