From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Daniel Vetter" <daniel@ffwll.ch>,
"Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: Takashi Iwai <tiwai@suse.de>, Dave Airlie <airlied@redhat.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Don't override output type for DDI HDMI
Date: Thu, 26 Nov 2015 15:47:37 +0200 [thread overview]
Message-ID: <87io4o7tza.fsf@intel.com> (raw)
In-Reply-To: <20151124133405.GZ17050@phenom.ffwll.local>
On Tue, 24 Nov 2015, Daniel Vetter <daniel@ffwll.ch> wrote:
> On Tue, Nov 24, 2015 at 03:08:17PM +0200, Ville Syrjälä wrote:
>> On Tue, Nov 24, 2015 at 01:44:46PM +0100, Daniel Vetter wrote:
>> > On Fri, Nov 20, 2015 at 12:18:41PM +0100, Takashi Iwai wrote:
>> > > On Thu, 19 Nov 2015 17:04:20 +0100,
>> > > Takashi Iwai wrote:
>> > > >
>> > > > On Thu, 19 Nov 2015 16:51:05 +0100,
>> > > > Daniel Vetter wrote:
>> > > > >
>> > > > > On Thu, Nov 19, 2015 at 12:09:56PM +0100, Takashi Iwai wrote:
>> > > > > > Currently a DDI port may register the DP hotplug handler even though
>> > > > > > it's used with HDMI, and the DP HPD handler overrides the encoder
>> > > > > > type forcibly to DP. This caused the inconsistency on a machine
>> > > > > > connected with a HDMI monitor; upon a hotplug event, the DDI port is
>> > > > > > suddenly switched to be handled as a DP although the same monitor is
>> > > > > > kept connected, and this leads to the erroneous blank output.
>> > > > > >
>> > > > > > This patch papers over the bug by excluding the previous HDMI encoder
>> > > > > > type from this override. This should be fixed more fundamentally,
>> > > > > > e.g. by moving the encoder type reset from the HPD or by having
>> > > > > > individual encoder objects for HDMI and DP. But since the bug has
>> > > > > > been present for a long time (3.17), it's better to have a
>> > > > > > quick-n-dirty fix for now, and keep working on a cleaner fix.
>> > > > > >
>> > > > > > Bugzilla: http://bugzilla.opensuse.org/show_bug.cgi?id=955190
>> > > > > > Fixes: 0e32b39ceed6 ('drm/i915: add DP 1.2 MST support (v0.7)')
>> > > > > > Cc: <stable@vger.kernel.org> # v3.17+
>> > > > > > Signed-off-by: Takashi Iwai <tiwai@suse.de>
>> > > > >
>> > > > > If you plug in a hmid screen (using a level-shifter adapter), then a DP
>> > > > > screen, does still everything work?
>> > > >
>> > > > That was my slight concern, too, although it seems working as long as
>> > > > I tested several HSW machines. Maybe better to double-check.
>> > >
>> > > I checked again some machines, and they all seem working.
>> > >
>> > > Actually the encoder type is set again in each detection function
>> > > (intel_hdmi_detect(), intel_dp_detect()) no matter with or without my
>> > > workaround. The problem happens when a HPD is triggered only to DP
>> > > while the HDMI is kept on. Then intel_hdmi_detect() won't be called
>> > > so the wrongly overridden encoder type remains.
>> > >
>> > > Why the override is still needed in intel_dp_hpd_pulse() isn't clear
>> > > to me, but at least it influences on the port power domain handling.
>> > > And my change won't affect in this regard.
>> >
>> > My suspicion is that we need this to reset between
>> > INTEL_OUTPUT_DISPLAYPORT and INTEL_OUTPUT_DP_MST.
>>
>> INTEL_OUTPUT_DP_MST is the type for fake mst encoders, and those
>> don't have a .hpd_pulse() hook to begin with.
>
> Hm ... that would mean we only need this for the initial hotplug when we
> go _UNKOWN -> _DISPLAYPORT. Oh well, putting it into the state properly,
> derived from what userspace wants, should be the proper fix anyway. But
> for stable this is good enough.
Pushed to drm-intel-fixes, thanks for the patch and review.
BR,
Jani.
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2015-11-26 13:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 11:09 [PATCH] drm/i915: Don't override output type for DDI HDMI Takashi Iwai
2015-11-19 15:51 ` Daniel Vetter
2015-11-19 16:04 ` Takashi Iwai
2015-11-20 11:18 ` Takashi Iwai
2015-11-24 12:44 ` Daniel Vetter
2015-11-24 13:08 ` Ville Syrjälä
2015-11-24 13:34 ` Daniel Vetter
2015-11-26 13:47 ` Jani Nikula [this message]
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=87io4o7tza.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=airlied@redhat.com \
--cc=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=tiwai@suse.de \
--cc=ville.syrjala@linux.intel.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 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.