Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp222845ybt; Thu, 9 Jul 2020 20:44:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxs7+t8S8sdeWFUH3wS3FD0v4Z5vAz5HAL46XO/iGxZLavBFYNRXGYgVE5B62gmSEVJddEy X-Received: by 2002:a05:6402:31ba:: with SMTP id dj26mr69639300edb.181.1594352652360; Thu, 09 Jul 2020 20:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594352652; cv=none; d=google.com; s=arc-20160816; b=HWZqZArWIn4myQDescBov9MypXGA9s05DZPfwVBLjfpWnEY6bopCtItlDTIAAJ9NXi 9VrQZisclik7hkJlZua4eFXeHUCf69WHpEwbijldAeQQbM05O1duJUhRU+/WmKq96zA0 Lu+XfnaiJ8Msml0LIMDzUl2uC9LbJtSCExQj3u/wM/RKn8Ig5PjPGIOXAYGO8XkNMAST d/sKl3lzshGEjzqWIrO085DWxy5Vy9EaTCUPe4ivEvwSxDmjxCWAkbp2ddufj0px0t4R 3hGT+4pkZDb4omPy7EH4aJ6FfbESl2z0Mu89O+LVl5Dkd6D4v34IFVec4Oekm9s/5r3A Ushw== 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:references:cc:to:from:subject:dkim-signature; bh=ZsCfMVxhN8HqerkbJcQvxK/1uivZN3EoSEMu1iIXARQ=; b=HFh7HbkTuEPjwDIbW85XuJFzUehQinmQKFA2Jj5OSIB1rqSdmSK9k4Mw+YMEroPzQ5 MiXeckXpJSfaTcj02/FXr0fOb4D1PZDeJCUmGtI3izS7l4satxPIXmwQkO1/8d255WeL vst+jRiFclvAcOtCpf8w4HBHrpW+kHm8mJOcg3P1BOYSXYnCB8H2sqd0dNpMcHxtg20X VBk2/aaLZVTW2+WoivuArfl7639zL/vTNBFgW4d1/AXrQ9MuBSIchyDuZw0rlA/p8JeM 6YJ3RiA5TXV98Sryif3JllhZWQrfZ+nSI0RX6GI8AxFrlPp+5ED+jlPycbEEHjy5rvYx bvgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=Ey0W1+RD; 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 c14si3118871edr.41.2020.07.09.20.43.49; Thu, 09 Jul 2020 20:44:12 -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=Ey0W1+RD; 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 S1726495AbgGJDnW (ORCPT + 99 others); Thu, 9 Jul 2020 23:43:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726509AbgGJDnV (ORCPT ); Thu, 9 Jul 2020 23:43:21 -0400 Received: from mail-oo1-xc44.google.com (mail-oo1-xc44.google.com [IPv6:2607:f8b0:4864:20::c44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BD06C08C5CE for ; Thu, 9 Jul 2020 20:43:21 -0700 (PDT) Received: by mail-oo1-xc44.google.com with SMTP id c4so745455oou.6 for ; Thu, 09 Jul 2020 20:43:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=ZsCfMVxhN8HqerkbJcQvxK/1uivZN3EoSEMu1iIXARQ=; b=Ey0W1+RDhGppDWcHFH35tEFeA+9ks88FzZBKadS7rgMdwQbURTM4tfCtqCR3q7KNzm yMun9yCkNnqoXSoSm1Ry6qKwxkfNdxATWogHZbvMjVkPo1CmuWAztsP19vtDp04ziYMj wlueEUjEylFMjikXmwEoeYMEqdHMGYmZdBxUynvpYNwfC3AjLBavQctnboJxSs95y53a O1kPZlXnnNEtB6WNFtVTGLGcC4AGUXU+2LUU8svFFdHThn1w7EOjefvHTPlOPHmBbCJa rxKqnaJDzJYQSZmMqvf4+UgLiG9MNCbnU9DAtDZMX64it9BYownJAtMSEZYANo09xnEt HBBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=ZsCfMVxhN8HqerkbJcQvxK/1uivZN3EoSEMu1iIXARQ=; b=Rglx2mmBtH4jVXyjJ8BemWIWLUmvepF03E2mEQsk3Z8lzGzhBZWsfLqQjjYLIwZoKt ElE8KbPVHxfROarycVbDjYGpuGizkCvLW0HRlfyHtmYUGCc6W5FeIjChMAknk8VEYOz/ 5yftSa/sWsdjwrRk63vxnRamtA1+PkZwg71DmXARhyXO0Xjx04svzo2yCi7CliU8wt7L pHY9/KJC4GZJk6c6PjYnLuFE1Mrs64bIa+p7cCTbMByiziuU73LTiHazY1sXEtPmDlm7 jTkPyMNz7xNdnXx+JHuHX6dOC5UqRKIg8OuSXExKk2+SqxVgxMiXJi+eNd19Xq6iz/Fm vrBw== X-Gm-Message-State: AOAM531q32LNt4DP8VUas6AIfajYq5VaipG56y6gE2z7yKgle/MCt90D wVYCfB+p2bC8bCcW4G+KwN/CNw== X-Received: by 2002:a4a:ea03:: with SMTP id x3mr58938173ood.16.1594352600386; Thu, 09 Jul 2020 20:43:20 -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 i20sm872800ota.55.2020.07.09.20.43.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2020 20:43:19 -0700 (PDT) Subject: Re: [PATCH v3 6/9] drm/bridge: ti-sn65dsi86: Use 18-bit DP if we can From: Steev Klimaszewski 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> Message-ID: Date: Thu, 9 Jul 2020 22:43:18 -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: 8bit 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 10:17 PM, Steev Klimaszewski wrote: > > On 7/9/20 10:12 PM, Steev Klimaszewski wrote: >> >> 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 derped again... root@c630:~# bus=$(i2cdetect -l | grep sn65 | sed 's/i2c-\([0-9]*\).*$/\1/') root@c630:~# i2cdump ${bus} 0x50 i > edid WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-16, address 0x50, mode i2c block Continue? [Y/n] root@c630:~# edid-decode edid edid-decode (hex): 00 ff ff ff ff ff ff 00 09 e5 d1 07 00 00 00 00 01 1c 01 04 a5 1d 11 78 0a 1d b0 a6 58 54 9e 26 0f 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 c0 39 80 18 71 38 28 40 30 20 36 00 26 a5 10 00 00 1a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1a 00 00 00 fe 00 42 4f 45 20 43 51 0a 20 20 20 20 20 20 00 00 00 fe 00 4e 56 31 33 33 46 48 4d 2d 4e 36 31 0a 00 9a 03 26 0a 77 ab 1c 05 71 6f 1d 8c f1 43 ce 6a bb fb d3 11 20 39 07 22 6e 65 68 77 70 d3 05 34 73 44 21 8b fd f5 6d 11 62 94 2a 7c fa 93 ba 6a 61 92 da 15 53 4c 39 eb f7 86 23 97 48 e9 39 09 d2 66 02 70 bb e2 77 0f 4a a3 a0 4c 72 6e 5d 47 70 43 c2 13 f3 b2 d9 b9 78 02 be 41 82 15 6a 28 dc 45 0f 9d eb 0f 2a cc e8 35 8d 34 7f 3e 84 5e a3 30 5e 1e 29 0a 48 0c d1 0a c4 08 31 03 a9 3b 29 ---------------- EDID version: 1.4 Manufacturer: BOE Model 2001 Serial Number 0 Made in week 1 of 2018 Digital display 8 bits per primary color channel DisplayPort interface Maximum image size: 29 cm x 17 cm Gamma: 2.20 Supported color formats: RGB 4:4:4, YCrCb 4:4:4 First detailed timing includes the native pixel format and preferred refresh rate Color Characteristics   Red:   0.6484, 0.3447   Green: 0.3310, 0.6181   Blue:  0.1503, 0.0615   White: 0.3125, 0.3281 Established Timings I & II: none Standard Timings: none Detailed mode: Clock 147.840 MHz, 294 mm x 165 mm                1920 1968 2000 2200 ( 48  32 200)                1080 1083 1089 1120 (  3   6  31)                +hsync -vsync                VertFreq: 60.000 Hz, HorFreq: 67.200 kHz Manufacturer-Specified Display Descriptor (0x00): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1a  ................ Alphanumeric Data String: BOE CQ Alphanumeric Data String: NV133FHM-N61 Checksum: 0x9a ---------------- Unknown EDID Extension Block 0x03   03 26 0a 77 ab 1c 05 71 6f 1d 8c f1 43 ce 6a bb .&.w...qo...C.j.   fb d3 11 20 39 07 22 6e 65 68 77 70 d3 05 34 73  ... 9."nehwp..4s   44 21 8b fd f5 6d 11 62 94 2a 7c fa 93 ba 6a 61 D!...m.b.*|...ja   92 da 15 53 4c 39 eb f7 86 23 97 48 e9 39 09 d2 ...SL9...#.H.9..   66 02 70 bb e2 77 0f 4a a3 a0 4c 72 6e 5d 47 70 f.p..w.J..Lrn]Gp   43 c2 13 f3 b2 d9 b9 78 02 be 41 82 15 6a 28 dc C......x..A..j(.   45 0f 9d eb 0f 2a cc e8 35 8d 34 7f 3e 84 5e a3 E....*..5.4.>.^.   30 5e 1e 29 0a 48 0c d1 0a c4 08 31 03 a9 3b 29 0^.).H.....1..;) Checksum: 0x29 (should be 0x82) - My edid does in fact say it's 8bit