From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Shashank Sharma <shashank.sharma@intel.com>
Cc: jani.nikula@linux.intel.com, intel-gfx@lists.freedesktop.org,
joseph.salisbury@canonical.com, sonika.jindal@intel.com,
daniel.vetter@intel.com, stable@vger.kernel.org
Subject: Re: [PATCH v3] drm/i915: Fake HDMI live status
Date: Thu, 21 Apr 2016 15:14:04 +0300 [thread overview]
Message-ID: <20160421121404.GM4329@intel.com> (raw)
In-Reply-To: <1461237606-16491-1-git-send-email-shashank.sharma@intel.com>
On Thu, Apr 21, 2016 at 04:48:32PM +0530, Shashank Sharma wrote:
> This patch does the following:
> - Fakes live status of HDMI as connected (even if that's not).
> While testing certain (monitor + cable) combinations with
> various intel platforms, it seems that live status register
> doesn't work reliably on some older devices. So limit the
> live_status check for HDMI detection, only for platforms
> from gen7 onwards.
>
> Fixes: 237ed86c693d ("drm/i915: Check live status before reading edid")
> Cc: stable@vger.kernel.org # v4.4
>
> V2: restrict faking live_status to certain platforms
> V3: (Ville)
> - keep the debug message for !live_status case
> - fix indentation of comment
> - remove "warning" from the debug message
>
> (Jani)
> - Change format of fix details in the commit message
>
> Suggested-by: Ville Syrjala <ville.syrjala@linux.intel.com>
> Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/intel_hdmi.c | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> index b199ede..2cdab73 100644
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -1412,8 +1412,16 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
> hdmi_to_dig_port(intel_hdmi));
> }
>
> - if (!live_status)
> - DRM_DEBUG_KMS("Live status not up!");
> + if (!live_status) {
> + DRM_DEBUG_KMS("HDMI live status down\n");
> + /*
> + * Live status register is not reliable on all intel platforms.
> + * So consider live_status only for certain platforms, for
> + * others, read EDID to determine presence of sink.
> + */
> + if (INTEL_INFO(dev_priv)->gen < 7 || IS_IVYBRIDGE(dev_priv))
> + live_status = true;
> + }
>
> intel_hdmi_unset_edid(connector);
>
> --
> 1.9.1
--
Ville Syrjälä
Intel OTC
WARNING: multiple messages have this Message-ID (diff)
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Shashank Sharma <shashank.sharma@intel.com>
Cc: jani.nikula@linux.intel.com, intel-gfx@lists.freedesktop.org,
joseph.salisbury@canonical.com, sonika.jindal@intel.com,
daniel.vetter@intel.com, stable@vger.kernel.org
Subject: Re: [PATCH v3] drm/i915: Fake HDMI live status
Date: Thu, 21 Apr 2016 15:14:04 +0300 [thread overview]
Message-ID: <20160421121404.GM4329@intel.com> (raw)
In-Reply-To: <1461237606-16491-1-git-send-email-shashank.sharma@intel.com>
On Thu, Apr 21, 2016 at 04:48:32PM +0530, Shashank Sharma wrote:
> This patch does the following:
> - Fakes live status of HDMI as connected (even if that's not).
> While testing certain (monitor + cable) combinations with
> various intel platforms, it seems that live status register
> doesn't work reliably on some older devices. So limit the
> live_status check for HDMI detection, only for platforms
> from gen7 onwards.
>
> Fixes: 237ed86c693d ("drm/i915: Check live status before reading edid")
> Cc: stable@vger.kernel.org # v4.4
>
> V2: restrict faking live_status to certain platforms
> V3: (Ville)
> - keep the debug message for !live_status case
> - fix indentation of comment
> - remove "warning" from the debug message
>
> (Jani)
> - Change format of fix details in the commit message
>
> Suggested-by: Ville Syrjala <ville.syrjala@linux.intel.com>
> Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
Reviewed-by: Ville Syrj�l� <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/intel_hdmi.c | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> index b199ede..2cdab73 100644
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -1412,8 +1412,16 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
> hdmi_to_dig_port(intel_hdmi));
> }
>
> - if (!live_status)
> - DRM_DEBUG_KMS("Live status not up!");
> + if (!live_status) {
> + DRM_DEBUG_KMS("HDMI live status down\n");
> + /*
> + * Live status register is not reliable on all intel platforms.
> + * So consider live_status only for certain platforms, for
> + * others, read EDID to determine presence of sink.
> + */
> + if (INTEL_INFO(dev_priv)->gen < 7 || IS_IVYBRIDGE(dev_priv))
> + live_status = true;
> + }
>
> intel_hdmi_unset_edid(connector);
>
> --
> 1.9.1
--
Ville Syrj�l�
Intel OTC
next prev parent reply other threads:[~2016-04-21 12:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-21 11:18 [PATCH v3] drm/i915: Fake HDMI live status Shashank Sharma
2016-04-21 12:14 ` Ville Syrjälä [this message]
2016-04-21 12:14 ` Ville Syrjälä
2016-04-21 16:54 ` ✓ Fi.CI.BAT: success for drm/i915: Fake HDMI live status (rev3) Patchwork
2016-04-22 17:23 ` Ville Syrjälä
2016-04-22 17:34 ` [PATCH v3] drm/i915: Fake HDMI live status Ville Syrjälä
2016-04-22 17:34 ` Ville Syrjälä
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=20160421121404.GM4329@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=daniel.vetter@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=joseph.salisbury@canonical.com \
--cc=shashank.sharma@intel.com \
--cc=sonika.jindal@intel.com \
--cc=stable@vger.kernel.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 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.