From: Daniel Vetter <daniel@ffwll.ch>
To: Jani Nikula <jani.nikula@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/i915: Ignore "digital output" and "not HDMI output" bits for eDP detection
Date: Wed, 23 Sep 2015 17:00:03 +0200 [thread overview]
Message-ID: <20150923150003.GG3383@phenom.ffwll.local> (raw)
In-Reply-To: <87k2rhns8g.fsf@intel.com>
On Wed, Sep 23, 2015 at 05:08:15PM +0300, Jani Nikula wrote:
> On Fri, 11 Sep 2015, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > Ignore DEVICE_TYPE_NOT_HDMI_OUTPUT and DEVICE_TYPE_DIGITAL_OUTPUT when
> > trying to determine the presence of eDP based on the VBT child device
> > type. Apparently a significant portion of VLV systems have these bits
> > set incorrectly, and so we currently fail to detect eDP on said systems.
> >
> > This is based on an earlier patch [1] from Andreas Lampersperger.
> > Instead of ignoring the bits just on VLV as was done in the orignal
> > patch, we now ignore them for all platforms. We should still have
> > enough bits in there to avoid false positives (unless the VBT is totally
> > bonkers).
> >
> > Quoting the orignal patch:
> >> When the i915.ko identify an eDP output on a valleyview
> >> board, it should be more slackly. The reason for that is,
> >> that BIOS DATA TABLES generated with intel BMP (Binary
> >> Modification Program) do not set bits for NOT_HDMI or
> >> DIGITAL_OUTPUT on the device type. Due to Adolfo
> >> Sanchez from Intel EMGD, this is not possible.
> >> To solve this problem and enable i915.ko on embedded
> >> vlv boards with eDP, we ignore this two bits.
> >
> > [1] http://lists.freedesktop.org/archives/intel-gfx/2015-June/069416.html
> >
> > Cc: Andreas Lampersperger <lampersperger.andreas@heidenhain.de>
> > Cc: "Sanchez, AdolfoX" <adolfox.sanchez@intel.com>
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Only testing will tell for sure.
>
> Acked-by: Jani Nikula <jani.nikula@intel.com>
Both applied to dinq, thanks.
-Daniel
>
>
> > ---
> > drivers/gpu/drm/i915/intel_bios.h | 2 --
> > 1 file changed, 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_bios.h b/drivers/gpu/drm/i915/intel_bios.h
> > index 1b7417e..7ec8c9a 100644
> > --- a/drivers/gpu/drm/i915/intel_bios.h
> > +++ b/drivers/gpu/drm/i915/intel_bios.h
> > @@ -741,7 +741,6 @@ int intel_parse_bios(struct drm_device *dev);
> > */
> > #define DEVICE_TYPE_eDP_BITS \
> > (DEVICE_TYPE_INTERNAL_CONNECTOR | \
> > - DEVICE_TYPE_NOT_HDMI_OUTPUT | \
> > DEVICE_TYPE_MIPI_OUTPUT | \
> > DEVICE_TYPE_COMPOSITE_OUTPUT | \
> > DEVICE_TYPE_DUAL_CHANNEL | \
> > @@ -749,7 +748,6 @@ int intel_parse_bios(struct drm_device *dev);
> > DEVICE_TYPE_TMDS_DVI_SIGNALING | \
> > DEVICE_TYPE_VIDEO_SIGNALING | \
> > DEVICE_TYPE_DISPLAYPORT_OUTPUT | \
> > - DEVICE_TYPE_DIGITAL_OUTPUT | \
> > DEVICE_TYPE_ANALOG_OUTPUT)
> >
> > /* define the DVO port for HDMI output type */
> > --
> > 2.4.6
> >
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
>
> --
> Jani Nikula, Intel Open Source Technology Center
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-09-23 14:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-11 18:04 [PATCH 1/2] drm/i915: Make sure we don't detect eDP on g4x ville.syrjala
2015-09-11 18:04 ` [PATCH 2/2] drm/i915: Ignore "digital output" and "not HDMI output" bits for eDP detection ville.syrjala
2015-09-23 14:08 ` Jani Nikula
2015-09-23 15:00 ` Daniel Vetter [this message]
2015-09-23 14:07 ` [PATCH 1/2] drm/i915: Make sure we don't detect eDP on g4x Jani Nikula
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=20150923150003.GG3383@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox