From: Daniel Vetter Subject: Re: [PATCH 2/2] drm/i915: Use EIO instead of EAGAIN for sink CRC error. Date: Tue, 16 Sep 2014 10:55:14 +0200 Message-ID: <20140916085514.GB31703@phenom.ffwll.local> References: <1410823443-5527-1-git-send-email-rodrigo.vivi@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-we0-f174.google.com (mail-we0-f174.google.com [74.125.82.174]) by gabe.freedesktop.org (Postfix) with ESMTP id 2E72E6E1F0 for ; Tue, 16 Sep 2014 01:54:48 -0700 (PDT) Received: by mail-we0-f174.google.com with SMTP id t60so5424816wes.33 for ; Tue, 16 Sep 2014 01:54:47 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1410823443-5527-1-git-send-email-rodrigo.vivi@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Rodrigo Vivi Cc: intel-gfx@lists.freedesktop.org, Rodrigo Vivi List-Id: intel-gfx@lists.freedesktop.org On Mon, Sep 15, 2014 at 07:24:03PM -0400, Rodrigo Vivi wrote: > If something while getting panel CRC this means that probably hw I/O error > so hw is busted and try again shouldn't help much. > > Signed-off-by: Rodrigo Vivi Queued for -next, thanks for the patch. -Daniel > --- > drivers/gpu/drm/i915/intel_dp.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c > index fae0fae..963e956 100644 > --- a/drivers/gpu/drm/i915/intel_dp.c > +++ b/drivers/gpu/drm/i915/intel_dp.c > @@ -3473,14 +3473,14 @@ int intel_dp_sink_crc(struct intel_dp *intel_dp, u8 *crc) > int attempts = 6; > > if (drm_dp_dpcd_readb(&intel_dp->aux, DP_TEST_SINK_MISC, &buf) < 0) > - return -EAGAIN; > + return -EIO; > > if (!(buf & DP_TEST_CRC_SUPPORTED)) > return -ENOTTY; > > if (drm_dp_dpcd_writeb(&intel_dp->aux, DP_TEST_SINK, > DP_TEST_SINK_START) < 0) > - return -EAGAIN; > + return -EIO; > > drm_dp_dpcd_readb(&intel_dp->aux, DP_TEST_SINK_MISC, &buf); > test_crc_count = buf & DP_TEST_COUNT_MASK; > @@ -3494,7 +3494,7 @@ int intel_dp_sink_crc(struct intel_dp *intel_dp, u8 *crc) > return -EIO; > > if (drm_dp_dpcd_read(&intel_dp->aux, DP_TEST_CRC_R_CR, crc, 6) < 0) > - return -EAGAIN; > + return -EIO; > > drm_dp_dpcd_writeb(&intel_dp->aux, DP_TEST_SINK, 0); > return 0; > -- > 1.9.3 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch