From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Reject modeset when the same digital port is used more than once
Date: Mon, 19 May 2014 17:45:07 +0300 [thread overview]
Message-ID: <20140519144506.GC27580@intel.com> (raw)
In-Reply-To: <20140519142957.GO8790@phenom.ffwll.local>
On Mon, May 19, 2014 at 04:29:57PM +0200, Daniel Vetter wrote:
> On Mon, May 19, 2014 at 05:19:09PM +0300, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > On pre-HSW we have two encoders per digital port: one HDMI, one DP.
> > However they are the same physical port in hardware and we can't enable
> > both at the same time. Reject the modeset if the user attempts this.
> >
> > So far we've been saved by the fact that we never see both HDMI and DP
> > connectors as connected. But if the user decides to force a mode anyway,
> > all kinds of funny stuff might happen.
> >
> > Unfortunately we don't seem to have any way to inform userspace that
> > such configurations are invalid except by returning an error from
> > setcrtc. possible_clones only covers real cloning situations, and
> > looking at the connector names doesn't work either since we don't
> > always register both connectors for the same port. I suppose the
> > only way to fix that would be to expose only a single encoder per
> > digital port like we do on HSW+ but that would be a fairly large
> > undertaking for little gain.
> >
> > kms_setmode hits this since it forces modes on non-connected VGA and
> > HDMI connectors. Previosuly it just resulted in weirdness such as
> > failed link training. With this patch it will now get an error back
> > from the kernel and will die with an assert since it thinks that the
> > configuration should be fine.
> >
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Do we have a bugzilla for this somewhere?
No idea. Can't spot anything right now that would match my IVB
kms_setmode symptoms (tons of link training failures when the same port
gets used for both DP and HDMI).
--
Ville Syrjälä
Intel OTC
next prev parent reply other threads:[~2014-05-19 14:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-19 14:19 [PATCH] drm/i915: Reject modeset when the same digital port is used more than once ville.syrjala
2014-05-19 14:29 ` Daniel Vetter
2014-05-19 14:45 ` Ville Syrjälä [this message]
2014-10-28 13:20 ` Paulo Zanoni
2014-11-03 10:29 ` Daniel Vetter
2014-11-04 12:50 ` Paulo Zanoni
2014-11-05 9:05 ` Daniel Vetter
2014-12-02 12:10 ` [PATCH v2] " ville.syrjala
2014-12-02 12:17 ` Chris Wilson
2014-12-02 12:42 ` Ville Syrjälä
2014-12-02 12:55 ` Daniel Vetter
2014-12-03 0:44 ` shuang.he
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=20140519144506.GC27580@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.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