LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Bjørn Mork" <bjorn@mork.no>
To: Imre Deak <imre.deak@intel.com>
Cc: linux-kernel@vger.kernel.org,
"Daniel Vetter" <daniel.vetter@intel.com>,
"Jani Nikula" <jani.nikula@linux.intel.com>,
intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
stable@vger.kernel.org,
"Ville Syrjälä" <ville.syrjala@linux.intel.com>
Subject: Re: [PATCH] drm/i915: fix failure to power off after hibernate
Date: Thu, 26 Feb 2015 10:34:19 +0100 [thread overview]
Message-ID: <87bnkhqan8.fsf@nemi.mork.no> (raw)
In-Reply-To: <1424889214.5991.4.camel@intel.com> (Imre Deak's message of "Wed, 25 Feb 2015 20:33:34 +0200")
Imre Deak <imre.deak@intel.com> writes:
>> That patch fixes the problem, with only pci_set_power_state commented
>> out. Do you still want me to try with pci_disable_device() commented
>> out as well?
>
> No, but it would help if you could still try the two attached patch
> separately, without any of the previous workarounds. Based on the
> result, we'll follow up with a fix that adds for your specific platform
> either of the attached workarounds or simply avoids putting the device
> into D3 (corresponding to the patch you already tried).
None of those patches made any difference. The laptop still hangs at
power-off.
Not really surprising, is it? Previous testing shows that the hang
occurs at the pci_set_power_state(drm_dev->pdev, PCI_D3hot) call in the
poweroff_late hook. It is hard to see how replacing it by an attempt to
set D3cold, or adding any call after this point, could possibly change
anything. The system is stil hanging at the pci_set_power_state() call.
The generic pci-driver code will put the i915 device into PCI_D3hot for
you, won't it? Why do you need to duplicate that in the driver,
*knowing* that doing so breaks (at least some) systems?
I honestly don't think this "let's try some random code" is the proper
way to fix this bug (or any other bug for that matter). You need to
start understanding the code you write, and the first step is by
actually explaining the changes you make.
I also believe that you completely miss the fact that this bug has
survived a full release cycle before you became aware of it, and the
implications this has wrt other affected systems/users. I assume you
understand that my system isn't one-of-a-kind, This means that there are
other affected users with identical/similar systems. Now, if none of
those users reported the bug to you (we all know why: Linux kernel
development is currently limited by the available testing resources, NOT
by the available developer resources), then how do you know that there
aren't a number of other systems affected as well?
Let me answer that for you: You don't.
Which is why you must explain the mechanism triggering the bug, proving
that it is a chipset/system specific issue. Because that's the only way
you will *know* that you have solved the problem not only for me, but for
all affected users.
IMHO, the only safe and sane solution at the moment is the revert patch
I posted. It's a simple fix, reverting back to the *known* working
state before this regression was introduced.
Then you can start over from there, trying to implement this properly.
Thanks,
Bjørn
next prev parent reply other threads:[~2015-02-26 9:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-24 14:49 [BISECTED REGRESSION v3.18->v3.19-rc1] drm/i915: failure to poweroff after hibernation Bjørn Mork
2015-02-24 14:58 ` [PATCH] drm/i915: fix failure to power off after hibernate Bjørn Mork
2015-02-24 16:12 ` Imre Deak
2015-02-24 19:00 ` Bjørn Mork
2015-02-25 18:33 ` Imre Deak
2015-02-26 9:34 ` Bjørn Mork [this message]
2015-02-26 18:50 ` Imre Deak
2015-02-26 19:20 ` Bjørn Mork
2015-02-26 20:01 ` [Intel-gfx] " Daniel Vetter
2015-02-27 12:15 ` David Weinehall
2015-02-27 18:23 ` Imre Deak
2015-03-02 8:55 ` David Weinehall
2015-02-26 20:05 ` Ville Syrjälä
2015-02-26 20:29 ` Bjørn Mork
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=87bnkhqan8.fsf@nemi.mork.no \
--to=bjorn@mork.no \
--cc=daniel.vetter@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=ville.syrjala@linux.intel.com \
--subject='Re: [PATCH] drm/i915: fix failure to power off after hibernate' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).