All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Tom Pitcher <tom@tjbp.net>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: Switcheroo support in i915
Date: Mon, 8 Sep 2014 09:06:50 +0100	[thread overview]
Message-ID: <20140908080650.GC19343@nuc-i3427.alporthouse.com> (raw)
In-Reply-To: <17412193.9crM6G9hXq@tomac>

On Sat, Sep 06, 2014 at 02:01:31PM +0100, Tom Pitcher wrote:
> I've been attempting to solve a bug with i915 & switcheroo on many Macbook 
> Pros (some with nvidia discrete cards, others radeon), report here:
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=61115
> 
> Basically, after switching to i915 using switcheroo the display isn't 
> connected. It was mentioned that some kind of reprobing was needed, so I tried 
> the following:

Right, I guess the output states do need to be repolled as well. But we
need to effectively re-initialised the LVDS (and possibly all the other
connectors, but it is likely to only be the panel connectors that are
muxed).

This will require some rejigging of intel_lvds_init(), though it should
be safe enough to destroy and attempt to recreate it here:

for_each_connector_safe()
  if (connector->type == DRM_MODE_CONNECOR_LVDS)
     drm_connector_destroy(connector);

for_each_encoder_safe()
  if (encoder->type == DRM_MODE_ENCODER_LVDS)
     drm_encoder_destroy(encoder);

intel_lvds_init();
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

  reply	other threads:[~2014-09-08  8:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-06 13:01 Switcheroo support in i915 Tom Pitcher
2014-09-08  8:06 ` Chris Wilson [this message]
2014-09-08 21:41   ` Tom Pitcher
2014-09-06 17:50 Tom Pitcher

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=20140908080650.GC19343@nuc-i3427.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=tom@tjbp.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.