Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp211715ybt; Thu, 9 Jul 2020 20:18:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvlH8yL3X0rwYLKApOGdOayhEENzdPGwkvER/N16vGS974z6VoX3g1AkU1QkctxyGrEJv1 X-Received: by 2002:aa7:c31a:: with SMTP id l26mr72159271edq.61.1594351115468; Thu, 09 Jul 2020 20:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594351115; cv=none; d=google.com; s=arc-20160816; b=Ybn9clPZwzl4UtyvPp39Ss7HNs2ND4lJf+ZzsGBvUVOqylnksINYSmBKSOhcEIdFVw 9lTmafjHyVexIITU3fE5oMQGSbFfn/hTdUY4iESRNR5yr9Sgb07Fy8QR+BBl+e1jkSK0 MDVOX1yyjJt8mgMk7Eo8hru9PT0lduHPneoN9NDA8r3epkczkvquWCg3qCoqjbrJHvBT owurfim44d2T4KTe7xRvQ3I45kLjeocJ3KOMRCm4dXioU//gnj2nPveTr9i1ETd/4Fxx OgXXCaELrv/0PQpyTe7k6nm+zLwiPnmht1szRiuRcXcCC2cRLLkDBs/G7HTIJUc7WLo7 xK8A== 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=j0wwhr1/T/vy9n1+otmduXmzQCUiGkNtjh79hw1bxv4=; b=J0NA1l2pk5zaOi4cDxpUuSUqURftWnkrJO24kXZU2poct8iyK54Ze4d7Xj1sb+6xya 22qSso7fhH6NBdz684agGdfhJjQExlYVfvP3tVikGAQ1B6NFgmov3gj1qov7wZ8onPfV NBGeSAFdtj9NFTBXHWB398+9VJafSIhsGBjBqCegxgdnHMLKeE2nXZZLW+r2q4+Vh6U0 5R6HiQ8OIDvp/o+r5vPWsDMPV96/EHIdo6K6AX/Hu1UnhbYlghvTUMFATNLW6LKnQvQl mcdxi7fTNrUyEZQTut9H1q3qNylqg2RsoPkUtYgeoN1I71i7gG0/cFK5dNPmOyQu3l11 4BMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=BbmOQTRp; 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 qk3si3275839ejb.323.2020.07.09.20.18.12; Thu, 09 Jul 2020 20:18:35 -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=BbmOQTRp; 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 S1726852AbgGJDRU (ORCPT + 99 others); Thu, 9 Jul 2020 23:17:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbgGJDRT (ORCPT ); Thu, 9 Jul 2020 23:17:19 -0400 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60C9EC08C5CE for ; Thu, 9 Jul 2020 20:17:17 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id h13so3240831otr.0 for ; Thu, 09 Jul 2020 20:17:17 -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=j0wwhr1/T/vy9n1+otmduXmzQCUiGkNtjh79hw1bxv4=; b=BbmOQTRp6gYkwQqXj3JMZ3m0Tqr0EIu9qZrevvaVT+MMCS/1fSHpqZLGJfeAU8puZy 9RcjYup96/Cv7z5UP21se4Jg17+/9cQF39itTwIYmb3+k5ojm4IHmdtmCnd0FYxwv7o/ 4F0LZ2pAtf9q8WpVEUg5A+svER1CDsSU08jrknSpL7/Z5xPz/URGGp2MaIoeBGzQphIS 5zdxdg44kQyrTEyNsxhy6Mo7Ig36nIcNVAgQSS5YehxC4DjMzkC40goTy4lsxyL1bBSO IqgFmV3UgI1u/2nCvd0NRCxtnvYzJZFyyVPaj01JfrUQX6ctJFyhIOpP/MKL6WANMXOQ YQTA== 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=j0wwhr1/T/vy9n1+otmduXmzQCUiGkNtjh79hw1bxv4=; b=JpoeMpdoRZ/wnnpy8uiYuAqiSvyLGYI4WTbDbKdiG2cmgKO0IGHmnSmsbmTFPNk0zT gY8342fGYgFEK1OQ6xxvQ4QPe8mdLMZYUY8a6kDH1ZWQWrmtPIfD1HOd9iQIl7ZD7Djr 9uZXAS4IOjInnxemGgfRl9vWJcAnIWJuVB9A3UL/bcUjvOamgTJeYNsaXidGU0rN8Zdi orFYKpJfD4Yo4B6RTbuoCWVspib0uCNe/1xRxVXR4N7SmAOHUTRFC/UkluOLUkwoYO5/ Cj1gH5IQlP3WJIVCDka7Y62+TKaxQ2RxnpCgGnZFXOl5ZKQt2ta1tF9Eoe5qu897Xnix ZxFw== X-Gm-Message-State: AOAM531pzlnVxe3KCkHgKoBkbllUC2xWlNk2U78XeWf/qpGpbR6Cmenc uwy2tPItOxBwhHooSeEEU2O7Qg== X-Received: by 2002:a05:6830:1e03:: with SMTP id s3mr29365301otr.306.1594351036655; Thu, 09 Jul 2020 20:17:16 -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 f26sm942554oop.46.2020.07.09.20.17.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2020 20:17:15 -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:17:14 -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: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'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 > For what it's worth - the 5.8 that I'm testing is at https://github.com/steev/linux/commits/c630-5.8-rc4-inline-encryption