Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp848837imi; Fri, 22 Jul 2022 10:48:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vUa2hI2eXC1UslFewD9662Cx8ZkZOn4uFHak5tUa8CWkwPgMo60hiuxjrDWMaaeI/0iVm6 X-Received: by 2002:a17:907:2cd3:b0:72b:5cc2:bc1f with SMTP id hg19-20020a1709072cd300b0072b5cc2bc1fmr778060ejc.574.1658512105096; Fri, 22 Jul 2022 10:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658512105; cv=none; d=google.com; s=arc-20160816; b=EhIVW//PQTF0u41LQ3/F+nNjl2DiIYFze2Zk43vlW9sqeKq02XNs0Ba4WFHeCfcvAs b79AMmYDT5dZmC+vJN+tavigT7ziKwkrXfz6eyoe5+6C6HZ5KPi9OCNSurVJ36L+xaOr UKHsH3fXhfpcZCL8bCB788E3M5LlrrXLXwn+uBNal4eOlxXTl3oaehWxLAiVXO0nHGbM IqnjqC3+eVIJjrDzYzPfdhCbK2YpyEdKz44bEVCfazeADiIeDH8/xKNR2sRj5MHTREP4 vPkAzjkKPInma0oOo/JoY7DgJqY6bv7cX1eHa8h0vOZnYvzFTheHmvS3Jb3ks+azzNTB kY1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yGBGk+p2EktzA+zS1mnmSkS2k1FkCaq2TcgNmtHB9w8=; b=iIb43T/z1F0sPA0DwTddP3un2Zt7yscsHh+YgsYwRknQJCFPGGgky0q0apUxI3jmp2 MDYsAfhTu//6JXCZLn0gBn20fvDEoBmvp3Buw04dGtXLaHdkLdSWOhRZOaT23hwSMhK5 vDPCCdGem+4WMKQJ3kbrNhi66ex+W7lto56TVjiBawnDCM+3AFnvTu0ckHO9sxDEeVGL aJ2h4fw76Z6co/8OPm7+OT3Gkm2RU7nbZpZDDZz30QiASgObXKuL3X5p8MZqDWxa8QiE sbfXPvsutSZexerR5leCgYoKiwBZ2WYQpBW2WJQBYcdsCaKIZuPud4MiEiTHKKaWaOcl YgSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AuiC7D3W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o12-20020a1709061d4c00b0072b592b3fd6si5675549ejh.960.2022.07.22.10.47.59; Fri, 22 Jul 2022 10:48:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AuiC7D3W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236159AbiGVRg0 (ORCPT + 99 others); Fri, 22 Jul 2022 13:36:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235919AbiGVRgZ (ORCPT ); Fri, 22 Jul 2022 13:36:25 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C66DD8F52E for ; Fri, 22 Jul 2022 10:36:23 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id f24-20020a1cc918000000b003a30178c022so5606663wmb.3 for ; Fri, 22 Jul 2022 10:36:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yGBGk+p2EktzA+zS1mnmSkS2k1FkCaq2TcgNmtHB9w8=; b=AuiC7D3WaG23z3SLsy5dE+QMQxe+snbzEWYetJrnDWtIk5JkMaBzzb+1XmGz/7npeJ prALpI+A0WrXNqQ+ZPXUQxR2/OttVmzrZN8/rQcazbGWI2uVfqAAN2ELkjiPt5lIwNLh jqQoZAjQ1N5+bwAF90E/3eLtTEAb+zMDiqqv0knOHSmuH9tLjhMcuDYYcDbWKtZCZ1d2 KjwZJOyABGNRkacHxap052MwJCkVrWYekdQz/hStIgdovBy7JMUqJEbOtvj0k+ZJeRjo nva1EScC/2J+fRygysf7Z1Kf8dNcietJ9qXqcBUFv0Dph+lQvORTcFYX7w66YyrWpzBk TL2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yGBGk+p2EktzA+zS1mnmSkS2k1FkCaq2TcgNmtHB9w8=; b=eDcMeEJGsgdgYppFnJm/hbFgB4oynveyN9+/2n7cNkCLG2IhxU/eKbeitMUeMT08/9 VIgn+PzM8EvHrp73YVg8WKC/+ge6dMlRTt60nAD4RQ19R08BqIHDexsDqKd9m18TW/Ay iEuFQWmAjSB4XeWGDDIE52VbtvBVQ8s8dy5S9bH8Jj6OfF3W3lvWKww9IAYOPQWCb1RK NW8qy5Ux2vTMFjoFU7FduuCd8haXxyAo3Ruou6d2nAGpnV9VqczNXW+2ZCV/lkdA6eD0 KNHZkscuITQzsrAVJmUR+QF/IXLffQ0u+wckmvxXZ4aU7y6oCWmpNWfGdb609dUXxUSn o9uA== X-Gm-Message-State: AJIora+HtRFticTEJ2XFfk4+A/PR5JPr5KDnxHGnCW1S9VWzAi53ALru Hw9G9cnAoc2PkkazzToHAGKCnNm0HgvHWwJ1yMn2DGp1 X-Received: by 2002:a05:600c:3510:b0:3a3:34e7:cfc8 with SMTP id h16-20020a05600c351000b003a334e7cfc8mr6773219wmq.164.1658511382374; Fri, 22 Jul 2022 10:36:22 -0700 (PDT) MIME-Version: 1.0 References: <20220721152314.RFC.1.Ie333b3e4aff6e4a5b58c4aa805e030e561be8773@changeid> <269f2610-425b-f296-dcfc-89bdc2e1d587@quicinc.com> In-Reply-To: From: Rob Clark Date: Fri, 22 Jul 2022 10:36:44 -0700 Message-ID: Subject: Re: [RFC PATCH] drm/edid: Make 144 Hz not preferred on Sharp LQ140M1JW46 To: Doug Anderson Cc: Abhinav Kumar , dri-devel , freedreno , Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , LKML , Sankeerth Billakanti Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 22, 2022 at 9:48 AM Doug Anderson wrote: > > Hi, > > On Fri, Jul 22, 2022 at 9:37 AM Abhinav Kumar wrote: > > > > + sankeerth > > > > Hi Doug > > > > On 7/21/2022 3:23 PM, Douglas Anderson wrote: > > > The Sharp LQ140M1JW46 panel is on the Qualcomm sc7280 CRD reference > > > board. This panel supports 144 Hz and 60 Hz. In the EDID, the 144 Hz > > > mode is listed first and thus is marked preferred. The EDID decode I > > > ran says: > > > > > > First detailed timing includes the native pixel format and preferred > > > refresh rate. > > > > > > ... > > > > > > Detailed Timing Descriptors: > > > DTD 1: 1920x1080 143.981 Hz 16:9 166.587 kHz 346.500 MHz > > > Hfront 48 Hsync 32 Hback 80 Hpol N > > > Vfront 3 Vsync 5 Vback 69 Vpol N > > > DTD 2: 1920x1080 59.990 Hz 16:9 69.409 kHz 144.370 MHz > > > Hfront 48 Hsync 32 Hback 80 Hpol N > > > Vfront 3 Vsync 5 Vback 69 Vpol N > > > > > > I'm proposing here that the above is actually a bug and that the 60 Hz > > > mode really should be considered preferred by Linux. > > > > > > The argument here is that this is a laptop panel and on a laptop we > > > know power will always be a concern. Presumably even if someone using > > > this panel wanted to use 144 Hz for some use cases they would only do > > > so dynamically and would still want the default to be 60 Hz. > > > > > > Let's change the default to 60 Hz using a standard quirk. > > > > > > Signed-off-by: Douglas Anderson > > > > Yes, we were aware that 144Hz was getting picked. We found that while > > debugging the screen corruption issue. > > > > Well, yes power would be less with 60Hz but so will be the performance. > > What performance specifically will be less with 60 Hz? In general the > sc7280 CPU is a bit memory-bandwidth constrained and the LCD refresh > from memory is a non-trivial part of that. Reducing to 60 Hz will > relieve some of the memory bandwidth pressure and will actually allow > tasks on the CPU to run _faster_. I guess the downside is that some > animations might be a little less smooth... I guess he is referring to something that is vblank sync'd running faster than 60fps. but OTOH it is a bit of a waste for fbcon to be using 144Hz. And there are enough android games that limit themselves to 30fps to save your "phone" battery. So it seems a lot more sane to default to 60Hz and let userspace that knows it wants more pick the 144Hz rate when needed. BR, -R > > > > The test teams have been validating with 144Hz so far so we are checking > > internally with the team whether its OKAY to goto 60Hz now since that > > kind of invalidates the testing they have been doing. > > You're worried that the panel itself won't work well at 60 Hz, or > something else about the system won't? The whole system in general > needs to work well with 60 Hz displays and I expect them to be much > more common than 144 Hz displays. Quite honestly if switching to 60 Hz > uncovers a problem that would be a huge benefit of landing this patch > because it would mean we'd find it now rather than down the road when > someone hooks up a different panel. > > -Doug