From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Paulo Zanoni <przanoni@gmail.com>
Cc: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 1/4] drm/i915: don't warn if IRQs are disabled when shutting down display IRQs
Date: Mon, 7 Jul 2014 14:53:13 -0700 [thread overview]
Message-ID: <20140707145313.719df3fd@jbarnes-desktop> (raw)
In-Reply-To: <CA+gsUGQ8XDZ=L8pP7PE3D0YUguqXjXtUWApjA=R3dOX11E1srg@mail.gmail.com>
On Mon, 7 Jul 2014 18:48:47 -0300
Paulo Zanoni <przanoni@gmail.com> wrote:
> (documenting what we discussed on IRC)
>
> 2014-06-20 13:29 GMT-03:00 Jesse Barnes <jbarnes@virtuousgeek.org>:
> > This was always the case on our suspend path, but it was recently
> > exposed by the change to use our runtime IRQ disable routine rather than
> > the full DRM IRQ disable. Keep the warning on the enable side, as that
> > really would indicate a bug.
>
> While I understand the patch and think it's a reasonable thing to do,
> I feel the need to spend some time persuading you in replacing it with
> something that doesn't involve removing WARNs from our driver. While
> the driver is runtime suspended, no one should really be manipulating
> IRQs, even if they're disabling stuff that is already disabled: this
> reflects there's probably a problem somewhere. These WARNs are
> extremely helpful for the runtime PM feature because almost nobody
> actually uses runtime PM to notice any bugs with it, so the WARNs can
> make QA report bugs and bisect things for us.
>
> Also, it seems S3 suspend is currently a little disaster on our
> driver. Your 6 patches just solve some of the WARNs, not all of them.
> And last week I even solved another WARN on the S3 path. I just did
> some investigation, and the current bad commits are:
> 8abdc17941c71b37311bb93876ac83dce58160c8,
> e11aa362308f5de467ce355a2a2471321b15a35c and
> 85e90679335f56d162f4a0ff525573818e17ce44. If I just revert these 3
> commits, S3 doesn't give me any WARNs.
>
> Instead of the change you proposed, can't we think of another solution
> that would maybe address all the 3 regressions we have? Since we're
> always submitting patches to change the order we do things at S3
> suspend/resume, shouldn't we add something like "dev_priv->suspending"
> that could be used to avoid the strict ordering that is required
> during runtime?
Hm I was running with those changes and didn't see additional warnings,
so I'll have to look again.
I agree we want sensible warnings in place, and maybe removing this one
is too permissive, but I'd like to avoid a suspending flag if we can.
Maybe we just need to bundle up our assertions and check all the
relevant state after runtime suspend or S3 like we do for mode set
state in various places. That would let us keep our warnings, but also
save us from having them spread out in code paths that get used in
many different contexts.
--
Jesse Barnes, Intel Open Source Technology Center
next prev parent reply other threads:[~2014-07-07 21:52 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-20 16:29 [PATCH 1/4] drm/i915: don't warn if IRQs are disabled when shutting down display IRQs Jesse Barnes
2014-06-20 16:29 ` [PATCH 2/4] drm/i915: add helper for checking whether IRQs are enabled Jesse Barnes
2014-07-14 15:06 ` Paulo Zanoni
2014-07-14 15:19 ` Paulo Zanoni
2014-07-14 15:58 ` Jesse Barnes
2014-06-20 16:29 ` [PATCH 3/4] drm/i915: drop runtime PM get/put pair around DP detect Jesse Barnes
2014-07-14 15:11 ` Paulo Zanoni
2014-06-20 16:29 ` [PATCH 4/4] drm/i915: set pm._irqs_disabled at IRQ init time Jesse Barnes
2014-07-14 15:23 ` Paulo Zanoni
2014-07-14 17:26 ` Daniel Vetter
2014-07-14 17:47 ` Paulo Zanoni
2014-07-14 20:25 ` Jesse Barnes
2014-06-20 16:39 ` [PATCH] drm/i915: clear pm._irqs_disabled field after installing IRQs Jesse Barnes
2014-06-20 18:57 ` [PATCH] drm/i915: mark IRQs as disabled on unload Jesse Barnes
2014-07-17 8:27 ` Daniel Vetter
2014-07-07 21:48 ` [PATCH 1/4] drm/i915: don't warn if IRQs are disabled when shutting down display IRQs Paulo Zanoni
2014-07-07 21:53 ` Jesse Barnes [this message]
2014-07-14 14:56 ` Paulo Zanoni
2014-07-14 17:34 ` Daniel Vetter
2014-07-16 21:19 ` Paulo Zanoni
2014-07-17 8:06 ` Daniel Vetter
2014-07-17 13:42 ` Paulo Zanoni
2014-07-17 16:55 ` Daniel Vetter
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=20140707145313.719df3fd@jbarnes-desktop \
--to=jbarnes@virtuousgeek.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=przanoni@gmail.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