Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp182077ybt; Thu, 9 Jul 2020 19:15:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwSGI1hPVh/MS10LdZiYLHCl4jS5yZS5Go806DXyvi5VBbbIc0a2DmrgoQLRURrn4ltD6G X-Received: by 2002:a50:ccc7:: with SMTP id b7mr32535289edj.9.1594347329745; Thu, 09 Jul 2020 19:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594347329; cv=none; d=google.com; s=arc-20160816; b=lrdNQcUnOPdq6G9tGBeFNSzp0io6UaGuzHAfks/ZeQ9e4MdPb3P1KM943Fj4LJqmmr bhC6L/phu8NrvAw5DChW9PDwelB4JpC/xMDilBHn1gkQ9zmNW1Njm+I5n+AbqtSwnQWv oLF3mrkOxf71XC9JMmt+Ss7qmoaZPyesPMVA1qVVtgzmTYlEYRJI7yDaO1AkrHbLuqS1 AtV7C2DtqIo6Q7nMUMyDD9hF3+xrr/usKUllCKJBmj0RoY1ZZuzQ3rjFoYsXDui8CVNF rjxcKrZW1mmuTgq5iDef4e4YQfgOSKHtcFXGXKiIMOW340NhokXq2u8FdOuXGubB2El4 C9lA== 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=4Hywc1x9A6pr0CRt+2NvKzTMAzPWDqqcQzWTAgr3WdA=; b=Shg12B96KgeIbZuVGBkEZyA0ZfWoGWgVEaPu7jVU2TRy2J+dhQid79ir8/PcC1u15U DzmlkHJm9nc1nyhZQlfW9yK+lDbPNCHdKjzzi7tWNhyq1QlBZq+JMhhNo7thAVqOe9eV Go0y417nQGOBuVUvKkn+144tUCSYhqqRJPosflx1qu8uCgrpTK61dTmBD8ClOXkPhlrx euJ2jVyG3SWdocvxjuJrt5zqT+DJ7L6yL5GeW5J98TUwU5vtJkEBTOOuHMjNM8SnKzCb OAWI9I8M+N66o3UPGcsO7VfPd7mWzezA5MY0FMft5/TRtcrGH2Ac3/a2u7qgInB2eE2e /9Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FqMpvwwC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id y18si3290660edw.583.2020.07.09.19.15.05; Thu, 09 Jul 2020 19:15:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FqMpvwwC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726848AbgGJCO4 (ORCPT + 99 others); Thu, 9 Jul 2020 22:14:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726796AbgGJCOz (ORCPT ); Thu, 9 Jul 2020 22:14:55 -0400 Received: from mail-vs1-xe44.google.com (mail-vs1-xe44.google.com [IPv6:2607:f8b0:4864:20::e44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54AB1C08C5CE for ; Thu, 9 Jul 2020 19:14:55 -0700 (PDT) Received: by mail-vs1-xe44.google.com with SMTP id d198so2203146vsc.1 for ; Thu, 09 Jul 2020 19:14:55 -0700 (PDT) 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=4Hywc1x9A6pr0CRt+2NvKzTMAzPWDqqcQzWTAgr3WdA=; b=FqMpvwwCb9dpe7UBryM/EcOozRX1lwFdrdBzi6xzDnEKZh2OoMEtN2fjbqcDCUrTRA G/uqyZ8phkRmpHCnbtDwt4L9W1fAWzn3ef/hbpBNScSTumoNlfxcimfhrs002pQgYYMO C5wNeccogggNi/MBtl9XYVeMhj+5M8PkPDZAA= 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=4Hywc1x9A6pr0CRt+2NvKzTMAzPWDqqcQzWTAgr3WdA=; b=qQi5Rr8jn+SHFmA0ZoWYrBvtLgg9rDjDaux/a7ZjFaNqJMfnLV744FFYSqjsxhll9O f0QLn2sKiz0y4M292iROmlEJ5cgPDfP7afiuqTMvwfbf72T6SQayvmaSYWUKlZ1z7Uza cYLnuXhByLsAvL7tEHpyNyaKZWiInvPeLJE7igD1rKNdPTJm1iG0o0mtYaSsg9NC6cuW T/0SsMSJqpMWNg4Sf3W/WKXjKlDq0f5W2G0cOtFFd/3gn4GniG2YJPQotxrx3sMpwe93 j2QxY5XKqPcB8cDiixkILz7bhAsA6eLe+/KrHwKloXElYWKknmtzqt6msoPfiq9vzTiv oEfw== X-Gm-Message-State: AOAM530PPFqqRz1+VRDXfBW8L1Rx3SFCxur4PxeMXtp89Fp3H4UELYzO 2bkHHQWHccixqFgUqlv7BpN9fI9D0O4= X-Received: by 2002:a05:6102:c5:: with SMTP id u5mr16021173vsp.147.1594347294297; Thu, 09 Jul 2020 19:14:54 -0700 (PDT) Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com. [209.85.222.43]) by smtp.gmail.com with ESMTPSA id b21sm485709uap.15.2020.07.09.19.14.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2020 19:14:52 -0700 (PDT) Received: by mail-ua1-f43.google.com with SMTP id f11so1347409uao.9 for ; Thu, 09 Jul 2020 19:14:51 -0700 (PDT) X-Received: by 2002:ab0:6e8e:: with SMTP id b14mr54133636uav.0.1594347291225; Thu, 09 Jul 2020 19:14:51 -0700 (PDT) MIME-Version: 1.0 References: <20191218143416.v3.6.Iaf8d698f4e5253d658ae283d2fd07268076a7c27@changeid> <20200710011935.GA7056@gentoo.org> In-Reply-To: From: Doug Anderson Date: Thu, 9 Jul 2020 19:14:40 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 6/9] drm/bridge: ti-sn65dsi86: Use 18-bit DP if we can To: steev@kali.org Cc: Laurent Pinchart , Andrzej Hajda , David Airlie , Bjorn Andersson , Daniel Vetter , dri-devel , Jeffrey Hugo , Jernej Skrabec , Jonas Karlman , linux-arm-msm , LKML , Neil Armstrong , Rob Clark , Rob Clark , Sean Paul , Steev Klimaszewski 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 Thu, Jul 9, 2020 at 6:38 PM Doug Anderson wrote: > > Hi, > > On Thu, Jul 9, 2020 at 6:19 PM Steev Klimaszewski wrote: > > > > Hi Doug, > > > > I've been testing 5.8 and linux-next on the Lenovo Yoga C630, and with this patch applied, there is really bad banding on the display. > > > > I'm really bad at explaining it, but you can see the differences in the following: > > > > 24bit (pre-5.8) - https://dev.gentoo.org/~steev/files/image0.jpg > > > > 18bit (5.8/linux-next) - https://dev.gentoo.org/~steev/files/image1.jpg > > Presumably this means that your panel is defined improperly? If the > panel reports that it's a 6 bits per pixel panel but it's actually an > 8 bits per pixel panel then you'll run into this problem. > > I would have to assume you have a bunch of out of tree patches to > support your hardware since I don't see any device trees in linuxnext > (other than cheza) that use this bridge chip. Otherwise I could try > to check and confirm that was the problem. Ah, interesting. Maybe you have the panel: boe,nv133fhm-n61 As far as I can tell from the datasheet (I have the similar boe,nv133fhm-n62) this is a 6bpp panel. ...but if you feed it 8bpp the banding goes away! Maybe the panel itself knows how to dither??? ...or maybe the datasheet / edid are wrong and this is actually an 8bpp panel. Seems unlikely... In any case, one fix is to pick , though right now that patch is only enabled for sc7180. Maybe you could figure out how to apply it to your hardware? ...another fix would be to pretend that your panel is 8bpp even though it's actually 6bpp. Ironically if anyone ever tried to configure BPP from the EDID they'd go back to 6bpp. You can read the EDID of your panel with this: bus=$(i2cdetect -l | grep sn65 | sed 's/i2c-\([0-9]*\).*$/\1/') i2cdump ${bus} 0x50 i When I do that and then decode it on the "boe,nv133fhm-n62" panel, I find: 6 bits per primary color channel -Doug