mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Andreas Heider <andreas@meetr.de>,
	Seth Forshee <seth.forshee@canonical.com>
Subject: Re: [PATCH 4/4] drm/i915: check LVDS for EDID on GPU switches
Date: Tue, 7 Jan 2014 13:14:01 +0000	[thread overview]
Message-ID: <20140107131401.GF8991@nuc-i3427.alporthouse.com> (raw)
In-Reply-To: <CALkWK0kcEOkao9HUv_0GnBawcwaNyNfe-KWCTZ348yvp7oy90g@mail.gmail.com>

On Tue, Jan 07, 2014 at 06:35:26PM +0530, Ramkumar Ramachandra wrote:
> Chris Wilson wrote:
> > Rather than special casing lvds (especially when there are other panel
> > connectors that can also be muxed), extend the connector interface to
> > support a reprobe and walk over all connectors associated with i915
> > after a switcheroo event.
> 
> Okay, so I can see the following get_edid functions:
> 
>   intel_lvds_get_edid()
>   intel_crt_get_edid()
>   intel_sdvo_get_edid()
>   intel_dp_get_edid()
> 
> In the hdmi case, drm_get_edid() is called in two places:
> intel_hdmi_detect() and intel_hdmi_detect_audio(); should I factor out
> something into a corresponding intel_hdmi_get_edid() function?
> 
> Now, in i915_switcheroo_reprobe(), I need to call all these functions,
> right? They all accept a a generic drm_connector and an specific
> i2c_adapter. But how do I do that without exporting each of these
> functions and their adapters?

If you look at struct intel_connector, you will see space for adding a
callback that each of the LVDS/CRT/SDVO/DP connectors can hook into if
they want to reprobe after a switcheroo.

  struct intel_connector *connector;
  list_for_each_entry(connector,
                    &dev->mode_config.connector_list,
		    base.head) {
	connector->reprobe(connector);
  }

(or something similar) would do in the switcheroo callback.

-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

  reply	other threads:[~2014-01-07 13:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-07  9:58 [PATCH 0/4] Get EDID late for VGA switcheroo Ramkumar Ramachandra
2014-01-07  9:58 ` [PATCH 1/4] drm/i915: add support for vga_switcheroo reprobe Ramkumar Ramachandra
2014-01-07 10:43   ` Chris Wilson
2014-01-07 10:53     ` Ramkumar Ramachandra
2014-01-07  9:58 ` [PATCH 2/4] drm/i915: factor out intel_lvds_get_edid() Ramkumar Ramachandra
2014-01-07  9:58 ` [PATCH 3/4] drm/i915: prepare intel_lvds_get_edid() for multiple calls Ramkumar Ramachandra
2014-01-07  9:58 ` [PATCH 4/4] drm/i915: check LVDS for EDID on GPU switches Ramkumar Ramachandra
2014-01-07 10:45   ` Chris Wilson
2014-01-07 11:12     ` Ramkumar Ramachandra
2014-01-07 11:48       ` Chris Wilson
2014-01-07 13:05         ` Ramkumar Ramachandra
2014-01-07 13:14           ` Chris Wilson [this message]
2014-01-07 13:54 ` [PATCH 0/4] Get EDID late for VGA switcheroo Seth Forshee
2014-01-07 14:30   ` Ramkumar Ramachandra
2014-01-07 14:42     ` andreas
2014-01-07 14:58       ` Ramkumar Ramachandra

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=20140107131401.GF8991@nuc-i3427.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=andreas@meetr.de \
    --cc=artagnon@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=seth.forshee@canonical.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

all inboxes | Powered by JetHome®