Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21951006ybl; Mon, 6 Jan 2020 14:49:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzA4+6z5631/jeobfhj63Qc9PSlKbxDpFolVwTCZ6rOQ6/yBUL5WOk2fR54K78Ypz3hlCAm X-Received: by 2002:a05:6830:c2:: with SMTP id x2mr107565565oto.8.1578350982337; Mon, 06 Jan 2020 14:49:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578350982; cv=none; d=google.com; s=arc-20160816; b=I2zj5jd0SrHvdKc2dSJzu7EHUUd/gEGKYTItL0LdovZl0fbgiPROYWhzwkjmUWVsnj OlESJOo37IcuAuPnvH3rX0s8wDjEFibzPEwF3fZhLdCtCREuZwQglXQuEf6VcaJSH6Br GILoyHL8P4fsmQzn5lJctK2XwEDuxCwnrqwKJssXCmy2rH0Bc5oDDCnqXYL8SdN3NLqE R+uGW6KOwyLIc9uIP9gGKQMcJJXThKs8xXUTLeIDKQSyFkeng75xedDFyV3452Hq2ODU sG3OMsccsPkkzreLO0j1CRo+fngSjoJfN8QtScXfJ6HcB2YpsbF0OZNgsn3gn634Stdl sPgQ== 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=ZPggc09q4vWJiJGeYG2oFAf7yiWFDoQ0/X6ZL5GufYM=; b=Oe0sOsxem8NmB127w4dIaHN/wbgWNOcll+6/1uBextqEVMgHSKdA96fY0uMmMse70W MGybvfriDlY5eXbUqBgdsXt6u4X2hVTAvYVSOWgSQSRNHCqxbNYJH9Tyh7K8ScNDXTCL 2AlLkq0eeIzXPQtlSN2vQbk3e5Uhe57tA8T0zqV7P3n3eLfGQ6T247IHrwziQxaHmei3 kXVkQQgwzhJM0sUoGr52H7v3aM2JrBbBjXJvahuEKcz0xSrjOAbXgxSJ5gGm3fVaTnzh dOfG8vJzjACV9A9z7gbBXoa3cNvNxh4PSQzmaK3koBi1jD+7OSk/boDTk/YuEMj0eX39 750A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Zeer5njn; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g126si28590887oif.106.2020.01.06.14.49.29; Mon, 06 Jan 2020 14:49:42 -0800 (PST) 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=@chromium.org header.s=google header.b=Zeer5njn; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727219AbgAFWrp (ORCPT + 99 others); Mon, 6 Jan 2020 17:47:45 -0500 Received: from mail-vk1-f195.google.com ([209.85.221.195]:33482 "EHLO mail-vk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbgAFWrp (ORCPT ); Mon, 6 Jan 2020 17:47:45 -0500 Received: by mail-vk1-f195.google.com with SMTP id i78so12922968vke.0 for ; Mon, 06 Jan 2020 14:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZPggc09q4vWJiJGeYG2oFAf7yiWFDoQ0/X6ZL5GufYM=; b=Zeer5njnwbkguXoF6hj9BDKR7cWv0XXG74CAaacH7WKsGO03WBsYRwluZBRHBpvvl2 H/heif5uK3dpnbuoo/D716BiPU2db9TuATf45AU3B62xB0SoXTxJ/+1mw9azz4wcfunY ZuxQna/HjAooa79p2+5STVdQv68ck77vE3Xmo= 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=ZPggc09q4vWJiJGeYG2oFAf7yiWFDoQ0/X6ZL5GufYM=; b=lgtJrBQOwoUIFq92G3T4RPdZmT0FQ2PBcvCjvMOnhWM+7fp9GnTM+FGkY8O8+X270o EDLqT2OREWIkmWjFJ7A8PNbIKotQVEoC0RxBrZlyiqtlh4zRx1NcwgwRG1IIraJhPvt8 D8m0HSl1bkykqt/s9rARS3/AWPpbYa01ClKEKM0dWDqrHnXbsCCwzfZvc/w+k4FA1HEa 075/1hIRwhsDzn3Et7foc/Nk7CBC3t447HJb1KYP8SJjbDtvgsLLy+KIFt/DJLcLt7aQ /BCKLgZZyfwI94wFVB3WlnsCtUn9EhSqjq8UdnbhLSQFWtp6a8Oevleth1bOFIEf9qyR FcCQ== X-Gm-Message-State: APjAAAVLpLz1eXXI7xqg3l2X2JgKN1g7cBBhJlk2LjnpMwrYh+kXMDoO FkgjHOkX1G9PJGx4ECi4tYz7vBdYvqo= X-Received: by 2002:a1f:c982:: with SMTP id z124mr56957186vkf.6.1578350863268; Mon, 06 Jan 2020 14:47:43 -0800 (PST) Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com. [209.85.222.44]) by smtp.gmail.com with ESMTPSA id l21sm17016193vsi.1.2020.01.06.14.47.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Jan 2020 14:47:42 -0800 (PST) Received: by mail-ua1-f44.google.com with SMTP id y3so13866941uae.3 for ; Mon, 06 Jan 2020 14:47:42 -0800 (PST) X-Received: by 2002:ab0:5c8:: with SMTP id e66mr62195504uae.120.1578350861775; Mon, 06 Jan 2020 14:47:41 -0800 (PST) MIME-Version: 1.0 References: <20191218223530.253106-1-dianders@chromium.org> In-Reply-To: <20191218223530.253106-1-dianders@chromium.org> From: Doug Anderson Date: Mon, 6 Jan 2020 14:47:30 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 0/9] drm/bridge: ti-sn65dsi86: Improve support for AUO B116XAK01 + other DP To: Andrzej Hajda , Neil Armstrong Cc: Rob Clark , linux-arm-msm , Bjorn Andersson , Sean Paul , Jeffrey Hugo , Daniel Vetter , Jonas Karlman , LKML , dri-devel , David Airlie , Jernej Skrabec , Laurent Pinchart 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 Hi, On Wed, Dec 18, 2019 at 2:36 PM Douglas Anderson wrote: > > This series contains a pile of patches that was created to support > hooking up the AUO B116XAK01 panel to the eDP side of the bridge. In > general it should be useful for hooking up a wider variety of DP > panels to the bridge, especially those with lower resolution and lower > bits per pixel. > > The overall result of this series: > * Allows panels with fewer than 4 DP lanes hooked up to work. > * Optimizes the link rate for panels with 6 bpp. > * Supports trying more than one link rate when training if the main > link rate didn't work. > * Avoids invalid link rates. > > It's not expected that this series will break any existing users but > testing is always good. > > To support the AUO B116XAK01, we could actually stop at the ("Use > 18-bit DP if we can") patch since that causes the panel to run at a > link rate of 1.62 which works. The patches to try more than one link > rate were all developed prior to realizing that I could just use > 18-bit mode and were validated with that patch reverted. > > These patches were tested on sdm845-cheza atop mainline as of > 2019-12-13 and also on another board (the one with AUO B116XAK01) atop > a downstream kernel tree. > > This patch series doesn't do anything to optimize the MIPI link and > only focuses on the DP link. For instance, it's left as an exercise > to the reader to see if we can use the 666-packed mode on the MIPI > link and save some power (because we could lower the clock rate). > > I am nowhere near a display expert and my knowledge of DP and MIPI is > pretty much zero. If something about this patch series smells wrong, > it probably is. Please let know and I'll try to fix it. > > Changes in v3: > - Init rate_valid table, don't rely on stack being 0 (oops). > - Rename rate_times_200khz to rate_per_200khz. > - Loop over the ti_sn_bridge_dp_rate_lut table, making code smaller. > - Use 'true' instead of 1 for bools. > - Added note to commit message noting DP 1.4+ isn't well tested. > > Changes in v2: > - Squash in maybe-uninitialized fix from Rob Clark. > - Patch ("Avoid invalid rates") replaces ("Skip non-standard DP rates") > > Douglas Anderson (9): > drm/bridge: ti-sn65dsi86: Split the setting of the dp and dsi rates > drm/bridge: ti-sn65dsi86: zero is never greater than an unsigned int > drm/bridge: ti-sn65dsi86: Don't use MIPI variables for DP link > drm/bridge: ti-sn65dsi86: Config number of DP lanes Mo' Betta > drm/bridge: ti-sn65dsi86: Read num lanes from the DP sink > drm/bridge: ti-sn65dsi86: Use 18-bit DP if we can > drm/bridge: ti-sn65dsi86: Group DP link training bits in a function > drm/bridge: ti-sn65dsi86: Train at faster rates if slower ones fail > drm/bridge: ti-sn65dsi86: Avoid invalid rates > > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 259 +++++++++++++++++++++----- > 1 file changed, 216 insertions(+), 43 deletions(-) Happy New Year everyone! I know people probably were busy during the last few weeks (I know I was offline) and are now probably swamped with full Inboxes. ...but I'd be super interested if folks had any comments on this series. Notably it'd be peachy-keen if Bjorn / Jeffrey had a chance to see if this is happy for any users of sn65dsi86 that they were aware of. Thanks much! :-) -Doug