From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: "Pandiyan, Dhinakaran" <dhinakaran.pandiyan@intel.com>
Cc: "intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"bberg@redhat.com" <bberg@redhat.com>
Subject: Re: [PATCH] drm/i915: Handle changing enable_psr parameter at runtime better
Date: Thu, 8 Mar 2018 11:08:58 -0800 [thread overview]
Message-ID: <20180308190858.GC2578@intel.com> (raw)
In-Reply-To: <1520533855.4958.18.camel@dk-H97M-D3H>
On Thu, Mar 08, 2018 at 10:07:05AM -0800, Pandiyan, Dhinakaran wrote:
>
>
>
> On Thu, 2018-03-08 at 18:52 +0100, Maarten Lankhorst wrote:
> > Op 08-03-18 om 18:43 schreef Pandiyan, Dhinakaran:
> > >
> > >
> > > On Thu, 2018-03-08 at 08:07 +0100, Maarten Lankhorst wrote:
> > >> Op 07-03-18 om 23:22 schreef Pandiyan, Dhinakaran:
> > >>> On Wed, 2018-03-07 at 17:39 +0100, Maarten Lankhorst wrote:
> > >>>> Similar to enable_fbc, enable_psr was ignored at runtime if it was
> > >>>> changed. The easiest fix is to pretend enable_psr is ignored at
> > >>>> configure time, and never activate it for !enable_psr, so both cases
> > >>>> are handled without modesets.
> > >>> What about cases where psr_flush() is not called and consequently the
> > >>> module parameter is not checked? With HW tracking, PSR is
> > >>> enabled/disabled during modeset and the hardware is expected to exit and
> > >>> activate PSR without driver intervention.
> > >> It looks like intel_frontbuffer_flush always calls intel_psr_flush,
> > >> so we at least get a PSR toggle after every atomic commit?
> > > I have a patch to remove flush() from legacy_cursor_update(). We end up
> > > with an inconsistent behavior when that patch gets merged,
> > > cursor moves -> trigger psr exit but don't read module parameter
> > > commits -> trigger psr exit but read module parameter
> > Legacy cursor updates are special, I don't mind them not changing PSR.
> > > Eventually, when we get to removing flush() from commits, then this
> > > patch won't really be useful. And tests disabling/enabling PSR at
> > > runtime will probably fail.
> > Could we transition to debugfs for changing it at runtime?
>
> That does sound like a better idea.
+1
>
> >
> > ~Maarten
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2018-03-08 19:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-07 16:39 [PATCH] drm/i915: Handle changing enable_psr parameter at runtime better Maarten Lankhorst
2018-03-07 16:59 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-03-07 19:02 ` ✓ Fi.CI.IGT: " Patchwork
2018-03-07 22:22 ` [PATCH] " Pandiyan, Dhinakaran
2018-03-08 7:07 ` Maarten Lankhorst
2018-03-08 17:43 ` Pandiyan, Dhinakaran
2018-03-08 17:52 ` Maarten Lankhorst
2018-03-08 18:07 ` Pandiyan, Dhinakaran
2018-03-08 19:08 ` Rodrigo Vivi [this message]
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=20180308190858.GC2578@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=bberg@redhat.com \
--cc=dhinakaran.pandiyan@intel.com \
--cc=intel-gfx@lists.freedesktop.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox