From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: A wrong DDI encoder override from HDMI to DP at hotplug
Date: Wed, 18 Nov 2015 17:38:03 +0200 [thread overview]
Message-ID: <20151118153803.GN4437@intel.com> (raw)
In-Reply-To: <s5hsi43cox1.wl-tiwai@suse.de>
On Wed, Nov 18, 2015 at 04:23:06PM +0100, Takashi Iwai wrote:
> Hi,
>
> currently a DDI port may register both DP and HDMI and it shares the
> same encoder. The bug we've got a report is about this encoder type:
> namely, a machine using DDI port D for HDMI is screwed up because the
> encoder is switched to DP suddently. The details are found in:
> http://bugzilla.opensuse.org/show_bug.cgi?id=955190
>
> The problem happens in intel_dp_hpd_pulse(). Since the machine
> declares both DP and HDMI, the driver registers this callback. And at
> a hotplug event, the function changes the encoder type like:
>
> if (intel_dig_port->base.type != INTEL_OUTPUT_EDP)
> intel_dig_port->base.type = INTEL_OUTPUT_DISPLAYPORT;
>
> After this point, the encoder is handled as DP although the same HDMI
> monitor is connected.
>
> Changing this to exclude INTEL_OUTPUT_HDMI makes the thing working in
> the bug report above, but I'm not sure what's the right fix.
>
> Any suggestions?
This has been causing all sorts of troubles for years. I've suggested
several times that we should just split the encoder into two, like we
have for older platforms, but no one has taken the bait thus far.
This particular piece of code to change the encoder type in the
hpd_pulse hook came about with the mst code drop from Dave IIRC. At
least I never figured out what it's trying to do since -ENOCOMMENT.
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-11-18 15:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-18 15:23 A wrong DDI encoder override from HDMI to DP at hotplug Takashi Iwai
2015-11-18 15:38 ` Ville Syrjälä [this message]
2015-11-18 16:00 ` Takashi Iwai
2015-11-18 21:30 ` Dave Airlie
2015-11-18 22:01 ` Takashi Iwai
2015-11-18 15:38 ` 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=20151118153803.GN4437@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=tiwai@suse.de \
/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