From: Daniel Vetter <daniel@ffwll.ch>
To: "Salonie, Namrta" <namrta.salonie@intel.com>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915: Enabling RC6 immediately during init/resume
Date: Wed, 2 Sep 2015 10:30:47 +0200 [thread overview]
Message-ID: <20150902083047.GE1367@phenom.ffwll.local> (raw)
In-Reply-To: <55E43CBC.5060103@intel.com>
On Mon, Aug 31, 2015 at 05:08:36PM +0530, Salonie, Namrta wrote:
> Hi Chris, Daniel.
>
> Thanks for your inputs.
> I agree that we need to amend the patch. Will do following changes.
> 1. RPM ref count is not needed with immediate enabling of RC6, I will remove
> that.
> 2. I will extend this to other GEN as well.
>
> This was one of the set of optimization we implemented for BYT Android. All
> of these
> gave improvement of ~5mW for 30minutes for Active Idle WLAN KPI. And about
> ~5mW for other airplane, wifi, radio suspend scenarios.
>
> The other optimizations included :-
> 1. Reduction of autosuspend delay to 500ms from 10ms (On BYT, display D3
I guess you meant 10 s runtime pm autosuspend default?
> should happen in suspend as Punit initiates S0iX flow only considering
> Display D3). Because of this reduction Display D3 will happen immediately:
> This can be controlled by user mode in android. However shall we bring this
> value for Linux as well?
I have a patch for that (including enabling runtime pm by default), but
it's blocked because atm runtime pm is broken in upstream.
> 2. Deferring RC6 disabling from early_resume callback to resume callback to
> reduce the delay for which the wells had to stay ON – We verified the HDMI
> case and it worked without issues.
I think the big trouble there is that right now we don't handle power well
references correctly in the suspend/resume code at all - we just
force-enable them all. Definitely something we want to fix, but will be a
lot of work to make sure it works everywhere. I'd like to see an overall
approach to this though since I fear if we just move around individual
rpm references (like rc6 or specific power wells) the end-result will be a
really complicated and fragile design. Suspend/resume is already one of
the most fragile parts of the driver as-is.
> 3. During resume, perform modeset based on the DPMS state, so that Display
> remains Off for the intermediate wake ups where no DPMS ON/OFF happens.
That /should/ be how it's supposed to work. I.e. for dpms off, we should
not try to enable things again. Might have been broken, but with latest
atomic it really should work correctly.
> Also, can we port the optimizations 2 & 3 to the upstream kernel?
Sure, sounds like some good. Usual caveat applies though since upstream
needs to work everywhere, so probably some more work is needed to make
sure the patches don't break anything.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-09-02 8:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-21 20:49 [PATCH] drm/i915: Enabling RC6 immediately during init/resume Namrta Salonie
2015-08-21 12:41 ` Chris Wilson
2015-08-25 14:32 ` Daniel Vetter
2015-08-31 11:38 ` Salonie, Namrta
2015-09-02 8:30 ` Daniel Vetter [this message]
2015-12-02 5:45 ` Namrta Salonie
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=20150902083047.GE1367@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=namrta.salonie@intel.com \
/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