From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org,
"v3.8 and later" <stable@vger.kernel.org>,
Paulo Zanoni <paulo.r.zanoni@intel.com>
Subject: Re: [PATCH] drm/i915: Do not clobber config status after a forced restore of hw state
Date: Tue, 3 Dec 2013 17:43:14 +0100 [thread overview]
Message-ID: <20131203164314.GG27344@phenom.ffwll.local> (raw)
In-Reply-To: <1386005949-19198-1-git-send-email-chris@chris-wilson.co.uk>
On Mon, Dec 02, 2013 at 05:39:09PM +0000, Chris Wilson wrote:
> We call intel_modeset_setup_hw_state() along two paths, driver
> load/resume and after a lid event notification. During initialisation of
> the driver, it is imperative that we reset the config state. This
> correctly sets up the initial connector statuses and prepares the
> hardware for a thorough probing. However, during a lid event, we only
> want to undo the damage caused by the bios by resetting our last known
> mode. In this cirumstance, we do not want to clobber our desired state.
>
> In order to try and keep sanity between the config state and our own
> tracking, do the drm_mode_config_reset() first along the load/resume
> paths before reading out the hw state and apply any definite known
> corrections.
>
> v2: "As discussed on irc I don't think we should force the connector
> state to anything here: Imo connector->status should reflect what we
> believe to be the true output connection state, whereas connector->encoder
> reflects whether this connector is wired up to a pipe. And since we no
> longer reject modeset on disconnected connectors and never nuked the pipe
> if the connector gets disconnected there's no reason for that - such policy
> is userspace's job.
>
> This regression has been introduced in
>
> commit 2e9388923e83bc4e2726f170a984621f1d582e77
> Author: Daniel Vetter <daniel.vetter@ffwll.ch>
> Date: Thu Oct 11 20:08:24 2012 +0200
>
> drm/i915/crt: explicitly set up HOTPLUG_BITS on resume"
> so sayeth Daniel.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Daniel Vetter <daniel@ffwll.ch>
> Cc: stable@vger.kernel.org (v3.8 and later)
> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Picked up for -fixes, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
next prev parent reply other threads:[~2013-12-03 16:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-02 17:39 [PATCH] drm/i915: Do not clobber config status after a forced restore of hw state Chris Wilson
2013-12-03 16:43 ` Daniel Vetter [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-11-18 14:45 Chris Wilson
2013-11-18 16:28 ` 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=20131203164314.GG27344@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
--cc=paulo.r.zanoni@intel.com \
--cc=stable@vger.kernel.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