Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4267797ybl; Mon, 3 Feb 2020 15:47:33 -0800 (PST) X-Google-Smtp-Source: APXvYqzZ2VvOz/5ANZGHi2Sc+1j/KtVrGVNcJ73yR+ixEz5AD9Zq89q7mM453X1f3l9MVsezjlAL X-Received: by 2002:a05:6830:158:: with SMTP id j24mr20372006otp.316.1580773653416; Mon, 03 Feb 2020 15:47:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580773653; cv=none; d=google.com; s=arc-20160816; b=o4eQfxUXHwmogkzzb20LhdKg/l0ZLOqZab/vkgBW0ltOGdnSVqthMbKztfkW2caldV pA3DbTisXsoX3uWwSoDnVP3Onq98+2aEpufCglVdTLKRKaA76WCADJyVf+2IgxHpq9yp ldZPlrmLodyWlGVQZVNUSRJ0H5gnecuQDFBsPanxdeKNHhucZnd4PAFPIXU0VfpN3I/s 8oUjP+osyq2WomTU5xk9w6QvFGwwqZaf4KPwGl8cVkheiwgRJDOYOrMDhuYU4E/7LR+K P0Zc6Vs5zxuztDQSSC63XV98T2M5S+QS4161g4Gj53Ra5i+h5t832DcuI5BxfgHiyCfv WG9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=G6Bxx9TbIG0iY9oRVMNU9c056800TubVW/1xZmxYimU=; b=Fj4FETVuxpNEQfLXFb4vlW+uJ2v/YamwEEce1/2NDAh5YBwtDDKmXs5Bov+Y2x7/gD LCAKRJ4NuJVppXmMiFUD3KE2QQ56Jx6nSwO6ovt1QFHVK+6XDhVJBPviU5euQBNYZ1Ci 0pfu1Ikhh7e4E7MbXKlWKXl/kzNTvsmP8+245xbAJuhXsBpSN2K/a/TWEim4PaUnOZfF sw4tzNUClVXGjJZdusMxsaEn0sHhOqfu22AHCOxDVoaTKzrjMDH2Uu+ZUFGOcUMglKrM oe9b+MSpDSxgg2XJKeEKQvxJbA+VT0l2DVfnO1g87he8QwxUchV0X+rE+0GLKl1TClGH yQrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BS2opUho; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l21si10697165otd.1.2020.02.03.15.47.20; Mon, 03 Feb 2020 15:47:33 -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=@linaro.org header.s=google header.b=BS2opUho; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727044AbgBCXpN (ORCPT + 99 others); Mon, 3 Feb 2020 18:45:13 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:50243 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726561AbgBCXpN (ORCPT ); Mon, 3 Feb 2020 18:45:13 -0500 Received: by mail-pj1-f65.google.com with SMTP id r67so508350pjb.0 for ; Mon, 03 Feb 2020 15:45:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=G6Bxx9TbIG0iY9oRVMNU9c056800TubVW/1xZmxYimU=; b=BS2opUho7qkDJYHP42XaqdEJFYhNQcO6Ijt3iC3262X2h0sS7oHTZDGcTL9gurt+Tx 1FUoMi3Em+Mlx04ikIRH2PtuMrayXZNUcYuY0VRxb32QixT6yOzYhP2LL+1KwsYZfyZA mpFHLliKcZAohbuIhHVYk4RKmMNSUGDKZsl3IUAnTEB9b4g4K/JiYNMUljIQq1e8Zlxd vsAVojJsK6FBXa9e+gAJrIXlX9CjlBUPEGecZg7pgfOS/R1XsUIoFcl5l/ptEIy5XQjR mo8wJp+g9+puNFeSBZiOLSO7Yj0Gif/NBFvoUWLO1KACtvDjxqsnW8x/gJyTZ6ozpOea iDfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=G6Bxx9TbIG0iY9oRVMNU9c056800TubVW/1xZmxYimU=; b=tPg7howV3CfO/6OWvQSni94iJRYAn4xO/qp951v8OelfJgkMqepBJzbbOWJRZzptya 5Zypr9UJuJsl3qqA2uDEEALZEmjJHii+hWB5nH16hIJGFBq0j+CWsKdxyQtnJo/sECP0 6jIycbPqvJMUvz0kXpc6pU0bSZjze+6UlQHqcISVEQm1o1oPtlOe0LUhNUkM48XlKMUy 8Ow9wPFrQ6JLiFgJvw7PXkk6yS2n+rp4slYEsD6uAbca74BJSs3UFAjCGWzK4kjH59iH HYwUpAkJ+3X20fX4EP0Ttu8gGgqf3Ftge5tPPXxY+BlHlPdYONai9+W4+Z0uh9HnLDW6 Rq/g== X-Gm-Message-State: APjAAAV/Vgy0yv7q/LA4uUlPh5faK+eJb0afVTd8WNhAzRXq55nUxnAW CUURxREc2or/k6Aaavrc+6aOXg== X-Received: by 2002:a17:902:a711:: with SMTP id w17mr8133895plq.152.1580773512589; Mon, 03 Feb 2020 15:45:12 -0800 (PST) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id m12sm21180648pfh.37.2020.02.03.15.45.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2020 15:45:11 -0800 (PST) Date: Mon, 3 Feb 2020 15:45:09 -0800 From: Bjorn Andersson To: Douglas Anderson Cc: Andrzej Hajda , Neil Armstrong , robdclark@chromium.org, linux-arm-msm@vger.kernel.org, seanpaul@chromium.org, Jeffrey Hugo , Daniel Vetter , Jonas Karlman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , Jernej Skrabec , Laurent Pinchart Subject: Re: [PATCH v3 0/9] drm/bridge: ti-sn65dsi86: Improve support for AUO B116XAK01 + other DP Message-ID: <20200203234509.GJ311651@builder> References: <20191218223530.253106-1-dianders@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191218223530.253106-1-dianders@chromium.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 18 Dec 14:35 PST 2019, 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. > Thanks for the patches Doug, this fixes the rate and DP lane-count issues I'm seeing on my Lenovo Yoga C630 with the current implementation. Tested-by: Bjorn Andersson Regards, Bjorn > 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(-) > > -- > 2.24.1.735.g03f4e72817-goog >