Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Scheller <d.scheller.oss@gmail.com>
To: imre.deak@intel.com, clinton.a.taylor@intel.com
Cc: Intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v4] drm/i915/glk: Add Quirk for GLK NUC HDMI port issues.
Date: Wed, 4 Jul 2018 23:28:26 +0200	[thread overview]
Message-ID: <20180704232826.59fe5b71@lt530> (raw)
In-Reply-To: <20180704100559.GA25286@ideak-desk.fi.intel.com>

Hi Imre, Clinton,

Am Wed, 4 Jul 2018 13:05:59 +0300
schrieb Imre Deak <imre.deak@intel.com>:

> On Tue, Jul 03, 2018 at 01:16:40PM -0700, clinton.a.taylor@intel.com wrote:
> > From: Clint Taylor <clinton.a.taylor@intel.com>
> > 
> > On GLK NUC platforms the HDMI retiming buffer needs additional disabled
> > time to correctly sync to a faster incoming signal.
> > 
> > When measured on a scope the highspeed lines of the HDMI clock turn off
> >  for ~400uS during a normal resolution change. The HDMI retimer on the
> >  GLK NUC appears to require at least a full frame of quiet time before a
> > new faster clock can be correctly sync'd. Wait 100ms due to msleep
> > inaccuracies while waiting for a completed frame. Add a quirk to the
> > driver for GLK boards that use ITE66317 HDMI retimers.
> > 
> > V2: Add more devices to the quirk list
> > V3: Delay increased to 100ms, check to confirm crtc type is HDMI.
> > V4: crtc type check extended to include _DDI and whitespace fixes
> > 
> > Cc: Imre Deak <imre.deak@intel.com>
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105887
> > Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com>
> > ---
> >  drivers/gpu/drm/i915/i915_drv.h      |  1 +
> >  drivers/gpu/drm/i915/intel_ddi.c     | 18 +++++++++++++++---
> >  drivers/gpu/drm/i915/intel_display.c | 20 +++++++++++++++++++-
> >  drivers/gpu/drm/i915/intel_drv.h     |  3 +--
> >  4 files changed, 36 insertions(+), 6 deletions(-)
> > 
> > [...]
> >  	val &= ~(TRANS_DDI_FUNC_ENABLE | TRANS_DDI_PORT_MASK | TRANS_DDI_DP_VC_PAYLOAD_ALLOC);
> >  	val |= TRANS_DDI_PORT_NONE;
> >  	I915_WRITE(reg, val);
> > +
> > +	if (dev_priv->quirks & QUIRK_INCREASE_DDI_DISABLED_TIME &&
> > +	    (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI) ||
> > +	     intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DDI))) {  
> 
> Hm, INTEL_OUTPUT_DDI is not a possible output type, the whole encoder
> enable/disable sequence would be broken with that. Even during module
> loading/HW readout we should already set the proper HDMI/DP type in
> intel_modeset_pipe_config().
> 
> Looking now at the bug report [1], the reporter is using an old kernel,
> where we left encoder->type at INTEL_OUTPUT_UNKNOWN during HW readout
> and set it correctly only after the first modeset. That could be
> addressed by adding INTEL_OUTPUT_UNKNOWN when backporting the workaround,
> but in this patch we should only check for INTEL_OUTPUT_HDMI.
> 
> [1] https://bugs.freedesktop.org/show_bug.cgi?id=105887#c110

You're correct, this (INTEL_OUTPUT_UNKNOWN being set) indeed seems to
be something with the i915 driver in kernel 4.15. I've just built a
Kernel image/package from 4.17.4 with this patch applied, plus the
DRM_ERROR print that logs the connector to the kernel log, and in fact
on 4.17.x it's already on INTEL_OUTPUT_HDMI right after boot/driver
load/hwinit (always 64), so for upstream the _UNKNOWN or _DDI check
probably really isn't necessary. Posting links to the bug report in a
second.

Sorry for any troubles or additional work the _UNKNOWN
report/suggestion might have caused.

For v5, given that the logic won't change, feel free to add my

Tested-by: Daniel Scheller <d.scheller.oss@gmail.com>

Best regards,
Daniel Scheller
-- 
https://github.com/herrnst
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2018-07-04 21:28 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-07 23:12 [PATCH] drm/i915/glk: Add Quirk for GLK NUC HDMI port issues clinton.a.taylor
2018-06-07 23:47 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2018-06-07 23:48 ` ✗ Fi.CI.SPARSE: " Patchwork
2018-06-08  0:06 ` ✓ Fi.CI.BAT: success " Patchwork
2018-06-08  2:46 ` ✓ Fi.CI.IGT: " Patchwork
2018-06-08 13:31 ` [PATCH] " Imre Deak
2018-06-08 15:48   ` Clint Taylor
2018-06-13 21:48 ` [PATCH V2] " clinton.a.taylor
2018-06-17 17:16   ` Daniel Scheller
2018-06-25 10:33   ` Imre Deak
2018-06-27 22:26     ` Clint Taylor
2018-06-28 10:05       ` Imre Deak
2018-06-28 18:14         ` [PATCH v3] " clinton.a.taylor
2018-06-29  9:09           ` Imre Deak
2018-07-03 20:26             ` Clint Taylor
2018-07-03 20:16         ` [PATCH v4] " clinton.a.taylor
2018-07-04 10:05           ` Imre Deak
2018-07-04 21:28             ` Daniel Scheller [this message]
2018-06-13 21:53 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/glk: Add Quirk for GLK NUC HDMI port issues. (rev2) Patchwork
2018-06-13 21:54 ` ✗ Fi.CI.SPARSE: " Patchwork
2018-06-13 22:13 ` ✓ Fi.CI.BAT: success " Patchwork
2018-06-14  2:36 ` ✓ Fi.CI.IGT: " Patchwork
2018-06-28 18:43 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/glk: Add Quirk for GLK NUC HDMI port issues. (rev3) Patchwork
2018-06-28 18:44 ` ✗ Fi.CI.SPARSE: " Patchwork
2018-06-28 18:59 ` ✓ Fi.CI.BAT: success " Patchwork
2018-06-28 22:05 ` ✓ Fi.CI.IGT: " Patchwork
2018-07-03 20:26 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/glk: Add Quirk for GLK NUC HDMI port issues. (rev4) Patchwork
2018-07-03 20:27 ` ✗ Fi.CI.SPARSE: " Patchwork
2018-07-03 20:43 ` ✓ Fi.CI.BAT: success " Patchwork
2018-07-04  3:13 ` ✓ Fi.CI.IGT: " Patchwork

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=20180704232826.59fe5b71@lt530 \
    --to=d.scheller.oss@gmail.com \
    --cc=Intel-gfx@lists.freedesktop.org \
    --cc=clinton.a.taylor@intel.com \
    --cc=imre.deak@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