Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp946234img; Fri, 22 Mar 2019 12:02:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRGPYAK5aBxV3pR28DC+2+4/aMtyJVQSk3/jFX0wp/ROAXGnBq2DKeDB1nV3nfJklwP8+J X-Received: by 2002:a17:902:f302:: with SMTP id gb2mr11386456plb.51.1553281346769; Fri, 22 Mar 2019 12:02:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553281346; cv=none; d=google.com; s=arc-20160816; b=W5FB1beaqFG2Qc8eKOZfUkPj2yfB6GK2620pSCOze8+mRkwgn7TmwIkMsEVl8M2Ka8 0JS2kpWeNKs5TdO1wXVacii2ZZugIHSI1ozTifmBNYSVYWqqCB/ttgJaCPiLmeFmgcUv w7/1LC1Gfyrmy08LoQhhQw216lkZaqVvVs6jAigfe6LyxFsXOrjWTdGUeKsYHANv+y9G 3ZuD8+ArCeGXET/3fLt1XiifTdxNe0DGfi48psuIJoLoiAwRjxYvJbkwgwFJrghSu+uv msfMxJNWZ1fbSqPqtVQ9GwasnlDBV9U6EiYMt4Bzloocm6VJu5jP0nTKww5B1fg825sF bqsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6rcQyRQDzK04ZtP6ajwRLdrnI7q2ixPM5X5JNsniQqw=; b=DJWQSpgbeVnIlkJFrhcAVDGCrNwkDvwypqmelAascWTO5yLoosfmoy0QcLjoRAusBa 1n46LEt330NdXkOavkAlAaOOMDxKuT42E7byjHoqHRQUV2axRa1je3EewDKW3p5QAfU5 wCKDT8ey9pxLxwOfL6gbcki2GD6bry0wOSNChT3oUMmyLM1oMMisPNPwx/HJ50EuzIvq oX5mpcQkUVTy0mBlmEpxvHiH0USzYlZVRpw1jyqAtEHCpeGWSgl3NB0/AU590rvtI/HC Vh2VKvwA2+ChaUL9kY+qk2cOqwjkPdPYiQGle0l9/TcozbKgKa+8iI8ax8PxvaBA+ULU bpLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GE1iTvF6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si4216956pgv.559.2019.03.22.12.02.09; Fri, 22 Mar 2019 12:02:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GE1iTvF6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727157AbfCVTBU (ORCPT + 99 others); Fri, 22 Mar 2019 15:01:20 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42133 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725998AbfCVTBU (ORCPT ); Fri, 22 Mar 2019 15:01:20 -0400 Received: by mail-wr1-f65.google.com with SMTP id g3so3479836wrx.9 for ; Fri, 22 Mar 2019 12:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6rcQyRQDzK04ZtP6ajwRLdrnI7q2ixPM5X5JNsniQqw=; b=GE1iTvF6z1nYYUX5YQW7FVm2B9R4gW0OiqzCr38w/xqYu8J5yFAAv9EZtVL/j7k5Xq 5cY2UHepD/qjutIN8pa+n1cTKp8bbkn0SpqMBXFk1IXy+nJFGjXECbznwHtlsQGKz2GQ V8tTOm1Cv7EhwLd6w1DzsOs9S1nTtEsqEyOElTtyvfWMA+fQWXXWv/oHPJCoI9JUzIWF FVT41/v8A4JaK0PABOEs2jZMMQ9MqzGJsvOsmZJA69xH1TcWKNclchdIhb+7iKz6JIhb xKIlBm8nOqbvTWeXewQIRQkOou+1uGtknwjzBIDkYbwVegR8BnXW5wBi+zryXGUVHsuU d36Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6rcQyRQDzK04ZtP6ajwRLdrnI7q2ixPM5X5JNsniQqw=; b=FJWrma7dQ0BWj2eXkY5ZZk7d5U/YJmtHvAanQ2X5Wedn5uVIS3zPgO4jo1dpNfxTJ/ bo0FW9fLD0ZgdxyYnB0q5/tHFi7QECL1pMTZYmbIX5sfj1oZrRyh2HbjElf3rHBty4gL O76k5jFtO7BPv7/Fq1Fikhjx20C5AGBH5BTlRAiyz0jVnaO4YJ3YSvDyvbmhmr41gW/t FQFpcR6stoDuV9DRFuOkugLL8B5YaTJECMokfS4JXBsZo1BbzI5PGPPTgVKijHjh2H+S JHk/NmcRnGGehe+ZsCY9dTnMuFIOKSceVfGe2EvmPRqWx0iax4L1svCRaqAJfdFWLQO0 Qvdg== X-Gm-Message-State: APjAAAXJDXIdw69Zb9wJ10LHYAvX6FWkCe7fjIl35FryvTUZ/dBWS2Ru orz4fz5ASNPV3wd54WarRZUfhyODZr0VGJT7Eu8= X-Received: by 2002:adf:a382:: with SMTP id l2mr979352wrb.79.1553281278129; Fri, 22 Mar 2019 12:01:18 -0700 (PDT) MIME-Version: 1.0 References: <20190322032901.12045-1-andrew.smirnov@gmail.com> <20190322032901.12045-9-andrew.smirnov@gmail.com> <7dbccf61-29fb-a6df-7f54-fd7c29bba57f@ti.com> In-Reply-To: <7dbccf61-29fb-a6df-7f54-fd7c29bba57f@ti.com> From: Andrey Smirnov Date: Fri, 22 Mar 2019 12:01:07 -0700 Message-ID: Subject: Re: [PATCH v2 08/15] drm/bridge: tc358767: Increase AUX transfer length limit To: Tomi Valkeinen Cc: dri-devel@lists.freedesktop.org, Archit Taneja , Andrzej Hajda , Laurent Pinchart , Andrey Gusakov , Philipp Zabel , Chris Healy , Lucas Stach , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 22, 2019 at 6:14 AM Tomi Valkeinen wrote: > > On 22/03/2019 05:28, Andrey Smirnov wrote: > > According to the datasheet tc358767 can transfer up to 16 bytes via > > its AUX channel, so the artificial limit of 8 apperas to be too > > low. However only up to 15-bytes seem to be actually supported and > > trying to use 16-byte transfers results in transfers failing > > sporadically (with bogus status in case of I2C transfers), so limit it > > to 15. > > 16 is the limit from the DP spec. I agree, 8 looks odd. > > 15 looks odd too, so I think it warrants a comment there in the code. > Crap, was going to add that, but forgot. Will do in v2. > Does 15 byte transfers ever work? Or mostly works but sometimes fails? > 15 bytes transfers work every time (at least to extent I tested it). For 16 byte transfers it depends on the transfer type. AUX transfers work for a while but then fail (as tested by dd'ing AUX chardev). I2C transfers work intermittently and when they fail return completely bogus status. Thanks, Andrey Smirnov