Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: David Flynn <davidf@rd.bbc.co.uk>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/dp: Fix I2C/EDID handling with active	DisplayPort to DVI converter
Date: Thu, 9 Dec 2010 18:31:14 +0000	[thread overview]
Message-ID: <20101209183113.GA21823@rd.bbc.co.uk> (raw)
In-Reply-To: <849307$amb8jq@azsmga001.ch.intel.com>

* Chris Wilson (chris@chris-wilson.co.uk) wrote:
> On Wed, 8 Dec 2010 16:10:21 +0000, David Flynn <davidf@rd.bbc.co.uk> wrote:
> > This fixes broken EDID reading when using an active DisplayPort to
> > duallink DVI converter.  If the AUX CH replier chooses to defer the
> > transaction, a short read occurs and erroneous data is returned as
> > the i2c reply due to a lack of length checking and failure to check
> > for AUX ACK.
> 
> And it didn't break my bog standard DP setup. :)
> Applied to -fixes and tagged for stable.

Excellent, thanks.  The above patch only attempted to fix the issue at
hand, and didn't resolve the possibility that the read is still short
although reported as OK.  This ought to either be handled or treated as
an error (iirc -- i don't have the standard in front of me right now) it
is valid for an i2c device to ack the address, but DP time out before
any data is returned.

Unfortunately i don't have a device to hand to test this (or even know
if it is a problem).

However, the not checking number of bytes read should be trivial to fix.
(treat as error, log a possible fixme) -- since a broken device could
trigger this.

I was slightly concerned that the edid parsing routines were able to
attempt to validate so much erroneous data -- on occasion even trying
to validate what looked like bits of /proc or even other processes.
(see commit message).  I don't enjoy the possibility of a broken
edid causing that.  Does anyone have any thoughts on this?

Kind regards,

..david
-- 
R&D Engineer, BBC Research & Development, Tel: +44 (0)303 0409618
Centre House, 56-58 Wood Lane, LONDON, W12 7SB

      reply	other threads:[~2010-12-09 18:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-08 16:10 [PATCH] drm/i915/dp: Fix I2C/EDID handling with active DisplayPort to DVI converter David Flynn
2010-12-08 20:17 ` Chris Wilson
2010-12-09 18:31   ` David Flynn [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=20101209183113.GA21823@rd.bbc.co.uk \
    --to=davidf@rd.bbc.co.uk \
    --cc=chris@chris-wilson.co.uk \
    --cc=dri-devel@lists.freedesktop.org \
    --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