Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp209997ybt; Thu, 9 Jul 2020 20:15:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBgejOpIeDdrJMnybLkROBhJIgWvdroHm2RB1Ci/33j2OWR17fKqyqlF3ZwFoQFobg45FY X-Received: by 2002:a17:907:110d:: with SMTP id qu13mr36895930ejb.217.1594350911295; Thu, 09 Jul 2020 20:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594350911; cv=none; d=google.com; s=arc-20160816; b=NY0qy1EJR4fQ4avX5Tb38IklM+OT5HPUg47Y8UCLspdIDOEFadkImyZRM+zwQ7/NZz uj2AyBZNOo0g+tia+WdjbKe1coK3aCGfRXBwugK1LrvoAWE3ToZaIox4C4LJ7os+yNLh 28ITrHUrRHqSRP2j6YvQUMcJWXc5YldX5onwW5XTjX/JmfkdDPOBxxDgTyOJIm6CjpdI gClQqt1S1/68DgpAXIP/DDil3kOJvNooN5zvlE4rrLGrHLIi18/D1l6jfyCjGxUtyRLU fyaX94ukUfUL2cwULDcVjFlWHgxytyVuEHoH/XiN1gXcVNHSnnraQU5rkD+Kh49RifIC Ew8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=DnmHgWcom46+tP3PEnGuwAzr3b6gjMlwO5pxp3gapqY=; b=umndb4EUBlPl4juxth2Uv+uuTYMM+PrQ1XcVKq34vT40QTw4mV8YX71P8K9RG06l1P ue7Q406F7We1PfghGaobhhQ/u5m/xI1mumTy6LPXqTD0HIPyVc6rKZRLvXPVgDYrL8J8 UXhyNCgZ03ibRVU2Npi48y30dqwgjwvYQXnZO2Xfy6OENlEQRLZONbnckOykJ3M0IcIm FGB9K8thx4K0sbsGthJvPW0wewbIJ5cr/p9zqQtM68tP/NypWieuR2hMyiYGIQgynkwO Ar4ZatfGRwNH0bkA0ilrWe6WVhlrLDHseYNUHV6o8TqOk/yvWwmutP6C/nB51VLchJp2 SWHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=jSuGNfD4; 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=kali.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ov7si2917906ejb.224.2020.07.09.20.14.48; Thu, 09 Jul 2020 20:15:11 -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=@kali.org header.s=google header.b=jSuGNfD4; 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=kali.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726615AbgGJDMd (ORCPT + 99 others); Thu, 9 Jul 2020 23:12:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbgGJDMd (ORCPT ); Thu, 9 Jul 2020 23:12:33 -0400 Received: from mail-oi1-x241.google.com (mail-oi1-x241.google.com [IPv6:2607:f8b0:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBB42C08C5CE for ; Thu, 9 Jul 2020 20:12:31 -0700 (PDT) Received: by mail-oi1-x241.google.com with SMTP id w17so3663925oie.6 for ; Thu, 09 Jul 2020 20:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=DnmHgWcom46+tP3PEnGuwAzr3b6gjMlwO5pxp3gapqY=; b=jSuGNfD45Izh3sRrOP0RiWYQ8FBRprrDa+5SeAyoMFHrIih0JrEYrIao53SPdJr1PQ 3GJa5ghDh4Un0ZKpxmYVcpXrUhCd5S5Y+LGbTNJctLtOSD2HltDVx6fPF7AS987Gd6RQ 7cVeLIO+rsqy7eipSmU+dT03/wVdJMCOuXgJl/4nwwnp17bNmM/XbtwipbD6iUPfvdY+ g6muq6gAcDM4YTEJ22dAqJu4yWccecvcxZ2zk3DWjsq0aJ2RrkrePo1/ZozS9IviBZ2j /94+3ONa1eYD16bqCz5+ASzu/pzGSuq3Z6nii/bXBO1t97JjlMztquEzxvM+q3ONhlmG eqcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=DnmHgWcom46+tP3PEnGuwAzr3b6gjMlwO5pxp3gapqY=; b=SiMKstXcuNgBW8T7tty9kdT0BC9Ag9QD3SMMVxFzKEHQbv9ysE/qgnmrB2k7qDsu1p vdg1gl/8W+JKoxd+MOp6HoLQ+iOdzsbsFpvpn2ZDJrD7mGcRgBSd3V2xqlvPmy/rq8bF HQzyFB3lcMEeuLbm8b3KkOq5+ixZCmegGolvHA8ifgx+Q0dh1mp+9L2eVgi+ywERJ9k2 K9BzvDJHCAgz9NDk4OI7SSxcHgPGixQcppgAQzw6sOC3KknF3Brc6HPxXXc0inmHboi2 BUEoxUzME5PLJvnt6u9CFXOKQNJCbkKzxif+jRd6/8tx6Yio5XlBw8JvcD2j8thJZ2Ls QIsQ== X-Gm-Message-State: AOAM532wvRtzgThLtuktZCAMKQCVHPa3pg+QPNJXeJfi/u3vT4XHHLhO NJIJDSgsb+S9Vmec7ZgIg1me/Q== X-Received: by 2002:aca:57c5:: with SMTP id l188mr2721479oib.154.1594350751200; Thu, 09 Jul 2020 20:12:31 -0700 (PDT) Received: from [192.168.11.9] (cpe-173-175-113-3.satx.res.rr.com. [173.175.113.3]) by smtp.gmail.com with ESMTPSA id s4sm946821oom.15.2020.07.09.20.12.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2020 20:12:30 -0700 (PDT) Subject: Re: [PATCH v3 6/9] drm/bridge: ti-sn65dsi86: Use 18-bit DP if we can To: Doug Anderson 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 References: <20191218143416.v3.6.Iaf8d698f4e5253d658ae283d2fd07268076a7c27@changeid> <20200710011935.GA7056@gentoo.org> From: Steev Klimaszewski Message-ID: Date: Thu, 9 Jul 2020 22:12:27 -0500 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/9/20 9:14 PM, Doug Anderson wrote: > 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 Hi Doug, Decoding it does show be to boe,nv133fhm-n61 - and yeah it does say it's 6-bit according to panelook's specs for it. I'll take a look at the patch and see what I can come up with... at the moment, I'm forcing it to be 8bit and that does "work fine" but I'd like it to be fixed properly instead of my hack. Thanks for your time and work! -- Steev