From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Cc: Takashi Iwai <tiwai@suse.de>, intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v2] drm/i915: Limit audio CDCLK>=2*BCLK constraint back to GLK only
Date: Thu, 12 Mar 2020 19:50:40 +0200 [thread overview]
Message-ID: <20200312175040.GJ13686@intel.com> (raw)
In-Reply-To: <alpine.DEB.2.21.2003121833570.2957@eliteleevi.tm.intel.com>
On Thu, Mar 12, 2020 at 07:27:58PM +0200, Kai Vehmanen wrote:
> Hey,
>
> On Tue, 10 Mar 2020, Ville Syrjälä wrote:
>
> > On Tue, Mar 10, 2020 at 07:18:58PM +0200, Kai Vehmanen wrote:
> >> On Tue, 10 Mar 2020, Ville Syrjälä wrote:
> >>> audio at init time. And we could maybe try to remove the modeset from the
> >>> put_power() so that at least if you get a blink it's just the one. I did
> >>
> >> Hmm, this is interesting and maybe a better compromise for the in-between
> >> generations. Could it be as simple as not setting
> >
> > The logic around the cdclk computation is still a bit messy.
> >
> > First draft of just doing the lazy force_min_cdclk reduction in put_power():
> > git://github.com/vsyrjala/linux.git no_cdclk_in_audio_put_power
> >
> > Very lightly smoke tested, but not sure if it achieves anything useful :P
>
> I tested this today and no issues found. I can see clock bumped if there
> is audio activity, but clock is kept after audio goes back to sleep.
> But then e.g. at next display-off timeout, clk is brought back down.
> So works as expected.
>
> But, but, then I also tested...
>
> >> One problematic scenario that this doesn't cover:
> >> - a single display is used (at low cdclk), and
> >> - audio block goes to runtime suspend while display stays up.
> >>
> >> Upon resume (for e.g. UI notification sound), audio will initialize the
> >> HDA bus and call get_power() on i915, even if the notification goes to
>
> Now actually hitting this requires some effort. On most systems I tried,
> with display active, the clock will stay above the limit for other
> reasons, but yup, when this happens, it is pretty, pretty bad.
>
> Your no_cdclk_in_audio_put_power patch does reduce the level of annoyance
> also in this case -- you only get one flash instead of two. But does not
> seem acceptable still. If you happen to have a system where the conditions
> are met, then this happens all the time. In case of UI notification sounds
> being the trigger, we could consider the visual flash as a feature, but
> probably not widely appreciated. ;) .. and especially as you cannot turn
> it off.
>
> So I think this starts to look that we should move calling glk_force_audio
> to bind/unbind pair. I can make a patch for this.
That would stop us from doing dynamic cdclk changes once we get the hw
that can do that properly. Rather I think I'd just hardcode the 2xbclk
requirement in i915 for the platforms that suck.
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2020-03-12 17:50 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-31 14:00 [Intel-gfx] [PATCH v2] drm/i915: Limit audio CDCLK>=2*BCLK constraint back to GLK only Kai Vehmanen
2019-12-31 14:38 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Limit audio CDCLK>=2*BCLK constraint back to GLK only (rev2) Patchwork
2019-12-31 20:06 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2020-01-02 18:28 ` [Intel-gfx] [PATCH v2] drm/i915: Limit audio CDCLK>=2*BCLK constraint back to GLK only Rodrigo Vivi
2020-01-03 15:28 ` Kai Vehmanen
2020-01-06 16:49 ` Matt Roper
2020-03-06 16:45 ` Kai Vehmanen
2020-03-09 10:54 ` Takashi Iwai
2020-03-10 11:20 ` Kai Vehmanen
2020-03-10 13:41 ` Ville Syrjälä
2020-03-10 17:18 ` Kai Vehmanen
2020-03-10 18:25 ` Ville Syrjälä
2020-03-10 19:13 ` Takashi Iwai
2020-03-11 12:16 ` Kai Vehmanen
[not found] ` <s5hk13q7uf6.wl-tiwai@suse.de>
2020-03-11 17:04 ` Kai Vehmanen
2020-03-11 17:21 ` Takashi Iwai
2020-03-12 17:27 ` Kai Vehmanen
2020-03-12 17:48 ` Ville Syrjälä
2020-03-12 17:50 ` Ville Syrjälä [this message]
2020-03-13 14:54 ` Kai Vehmanen
2020-03-11 20:12 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Limit audio CDCLK>=2*BCLK constraint back to GLK only (rev3) Patchwork
2020-03-11 20:37 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-03-12 13:05 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
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=20200312175040.GJ13686@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=kai.vehmanen@linux.intel.com \
--cc=tiwai@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