Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp58669yba; Fri, 12 Apr 2019 17:13:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJ51rl37fZQuwdsJp5HllV7IGcFZ+Q1473kVXGfGbvUIE0HG3O0CltdX4HvKGTIzf5lh2Q X-Received: by 2002:aa7:81d0:: with SMTP id c16mr60782047pfn.132.1555114420324; Fri, 12 Apr 2019 17:13:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555114420; cv=none; d=google.com; s=arc-20160816; b=CgpNXv2RwRQYW28yubKuuINM2uu3tatDiwESNINwKifSKwlBP18hf9R4IVRq+ZxSxS cmnbx/id0n+vni38jOOLxhP/oD9QbjjDDT9iQAoEzBvvj6milhzp+7iNiZl6JNHyaPjw SfhDhpBkJXjbIpIa+PU9tUQ84P8C2PoligDU242xtbUk/USXzUVTKOi4keiH1O6ZEbyH xShmXHSI/XiE9nFP3FoWU/q0zfzzmBifTKBCecAOaKn++AYL8YP9MOCO1Rm2VfFatBNT TwVTgVb7xC6iltEhJENIjgcB77X+dZTVj292ToGHyzoZTZ4s8arDFZOX/iLKd4cZCSNs dU/Q== 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=tKy/1tk4tvKeRmpGz+7+rq/OSvJFqAcwZaB/B047Mvo=; b=SZPL5qQk50Px6jTmry73Z6PZ/PpbnJOAzxoHfQMftmeb5bnZMJRQsOqZTwyEwWajwe 4AD0OxGZix2j2Q6DvMfrrpJgzeUHm9cQQAqwlzmLPqYvL6M2eofd/098wl+2FUnVNMKv J0hfycLsKwiDqv6YazXejTzN8od52aUORj5g9KVQE0aUu8QhlXWDG5azzRbsYdf4Ht7N +lVm/sdL1Np25ZulS26uJil74sgIn9/RK/l4PiaLSx1buq7kXxPA6MXHjY9SfwwBFJ3X QefAeE3tBlYymdGCkbXCPixz6FViKBCx2X/CRM6DzsCi5EOxyYt6aiM87rNo9pWKUBlP EVTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=iMt4NyQR; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12si37522507pls.209.2019.04.12.17.13.24; Fri, 12 Apr 2019 17:13:40 -0700 (PDT) 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=@chromium.org header.s=google header.b=iMt4NyQR; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726998AbfDMAMt (ORCPT + 99 others); Fri, 12 Apr 2019 20:12:49 -0400 Received: from mail-ua1-f68.google.com ([209.85.222.68]:46907 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726886AbfDMAMs (ORCPT ); Fri, 12 Apr 2019 20:12:48 -0400 Received: by mail-ua1-f68.google.com with SMTP id v7so3803556uak.13 for ; Fri, 12 Apr 2019 17:12:47 -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=tKy/1tk4tvKeRmpGz+7+rq/OSvJFqAcwZaB/B047Mvo=; b=iMt4NyQRPqlyQFIF80o8voPJJWKHIfT4iHw+wM+odI2ubVz+8Uqefw99j8p/qY0MsM FLAJuMrYr4PdrdrGhN9LcWqr6n9aG60WfpgTpV2Ic8FDowmPZxltQtD64FPu1cp1sjoF hDhVvoYOx5KxnRNaXQYfuxW0fyXDwZIsNMdW4= 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=tKy/1tk4tvKeRmpGz+7+rq/OSvJFqAcwZaB/B047Mvo=; b=ii4XzWQtXEjOSAWCbbyc/u7R/vh7NWmkHrFSMUERcZoOyH21h4ZMlqGfuajKagKr6C 8vT8SbGJzsYz8mheT11dw/dlEbxgAb36onC49yL5vQHFw5qNf/wqHreafGzpL2pRXFAo wRsjGLglq6idbPmyo/NonwwjdLHS8e/3kWsrLstWLSOVxt6p2CkWXuOAk17lNz+LExYY Bm2LXQa9VRvfifHLhhTv6qghPvR/O5r9u/V6NWGfHdkWnsQryC7pvv1wlqKxU1wsJCLu 5FltfTU6epME/VSuArpk8BBEBENl9YU0MNpMOfGabxgLPkEOoAPvUuluDOZh5f35s7lF eb1w== X-Gm-Message-State: APjAAAVGPQkKi16IotF+36ANY0LHzPFuy9iYLksxiaU/KL5xfSXJwPi5 6rPBnzXWJRvxwYbVK6sOlhywToAyEGI= X-Received: by 2002:ab0:1d82:: with SMTP id l2mr33215613uak.120.1555114366743; Fri, 12 Apr 2019 17:12:46 -0700 (PDT) Received: from mail-ua1-f50.google.com (mail-ua1-f50.google.com. [209.85.222.50]) by smtp.gmail.com with ESMTPSA id v22sm11643023vkv.35.2019.04.12.17.12.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Apr 2019 17:12:46 -0700 (PDT) Received: by mail-ua1-f50.google.com with SMTP id l17so3829441uar.4 for ; Fri, 12 Apr 2019 17:12:46 -0700 (PDT) X-Received: by 2002:ab0:7212:: with SMTP id u18mr31245998uao.32.1555114045585; Fri, 12 Apr 2019 17:07:25 -0700 (PDT) MIME-Version: 1.0 References: <20190401171724.215780-1-dianders@chromium.org> <20190401171724.215780-7-dianders@chromium.org> In-Reply-To: From: Doug Anderson Date: Fri, 12 Apr 2019 17:07:12 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 6/7] ARM: dts: rockchip: Specify rk3288-veyron-chromebook's display timings To: Urja Rannikko Cc: Thierry Reding , Heiko Stuebner , Sean Paul , Mark Rutland , devicetree@vger.kernel.org, Rob Herring , dri-devel , LKML , "open list:ARM/Rockchip SoC..." , Boris Brezillon , Laurent Pinchart , =?UTF-8?Q?Enric_Balletb=C3=B2?= , Ezequiel Garcia , Matthias Kaehlcke , Linux ARM 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 Mon, Apr 8, 2019 at 9:26 AM Urja Rannikko wrote: > > Hi, > > On Mon, Apr 8, 2019 at 3:21 PM Doug Anderson wrote: > > > > Hi, > > > > On Sat, Apr 6, 2019 at 6:16 PM Urja Rannikko wrote: > > > > > > Hi, > > > > > > > The difference would be in this format just setting hfront-porch = 87 > > > and vback-porch = 14. > > > Anyways the point is: I support moving this mode info into the dts, > > > and I'd like to know how if at all should i go about getting a > > > 60Hz(ish) mode upstreamed? > > > > I'm a bit torn here. I like the idea of actually getting 60 Hz and > > you also increase the vblank time by a little bit (which means that if > > anyone ever gets DDRFreq upstream it will work better). ...but I'm > > also slightly nervous changing something like this without a really > > good motivation. As you said in your commit message the pixels clocks > > claimed by the spec don't actually all work and thus, to some extent, > > we can only rely on trial-and-error here. While your new mode works > > well on your device (and you wisely gave it a bit of margin), it is > > _possible_ that there could be devices out there where it doesn't work > > (especially across various temperature extremes). All devices were > > tested in the factory with the old timings and presumably have been > > running fine for years like that... > Re: the trial and error: it might be the case that the panels actually > work at 1506 vtotal if you also adjust the sync length and/or back > porch "accordingly", whatever that accordingly would be for this panel > since the datasheet doesnt tell. I missed this point when i was doing > my testing and just adjusted the variables with the most > "adjustability" (bigger starting value) to them. Fair enough. I guess I just have my gut instincts that say that this will break some device somewhere, but it's certainly possible that's wrong. > > I will certainly admit that it's unlikely devices would be affected, > > but at the same time I'd want to know how much of a difference going > > from 58.3 Hz to 60 Hz made for you. Could you actually notice any > > visible difference, or was it just nice to be at 60 Hz? > Honestly I was just doing this because i really liked the idea of > actually making it 60Hz and my eyes arent that good at noticing > high-fps things - i think the one case where it might be visible to a > keen eye is 720p60 playback where you'd need to skip "about 2" (1.7..) > frames a second if running at 58.3 Hz. But currently the C201 isnt > doing a lot of that given i dont think i/we have a good software setup > for it. That could be changing in the future with panfrost and the VPU > hardware decoder support, etc. Yeah, I'd definitely wonder how easy this is to notice. Since I haven't ever heard of anyone who thought that the current 58.3 Hz was causing problems that they could actually notice it makes me hesitant to change it. > Anyways I'm thinking it would be prudent to first get this framework > of device-tree modes in and then maybe adjust the mode later. If you're OK with it, let's aim to land things with the current 58.3 and then we can do think about the 60 Hz mode. ...I'm probably sounding super paranoid here since (presumably) anyone who is running upstream Linux on their Chromebook is more than capable of bisecting problems like this if it causes problems, but I guess I'm worried that this could eventually make its way into a Chrome OS tree (either through a kernel uprev or simple cherry-picks) and affect people. > Testing the 60Hz mode is simple enough: > xrandr --newmode 1366x768p60 74.25 1366 1453 1483 1543 768 776 790 802 > -HSync -VSync > xrandr --addmode eDP-1 1366x768p60 > xrandr --output eDP-1 --mode 1366x768p60 > > (The mode name can be anything...) > So meanwhile I would appreciate it if we could get some test reports > of the mode with other veyron chromebooks that have this panel :) I still haven't done this and I'm not in front of my Chromebook now. I'll try to give it a try soon. The kinds of problems I'd expect (if there are any) would be flickers that happen _very_ rarely though, but I can at least do some basic testing. One other note to justify my paranoia: on a past Chromebook we certainly had crazy flickering problems. On one device one day you'd get two flickers and then see nothing for the next two weeks. ...some devices would see at least a flicker a day and some would see no flickers ever. Obviously it's unlikely that would happen here, but such past experience just makes me paranoid. ;-) -Doug