Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp815890imi; Fri, 22 Jul 2022 10:04:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1turtC3Q+nCwgb6G7uhB4MovzOaBygZSEXpxbryTUEXnmiwZs/qNTe75UtEE5s2yLnxKu2H X-Received: by 2002:a17:907:7ba9:b0:72f:2994:74aa with SMTP id ne41-20020a1709077ba900b0072f299474aamr648055ejc.85.1658509445264; Fri, 22 Jul 2022 10:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658509445; cv=none; d=google.com; s=arc-20160816; b=b0qDv2jT15jg7/pPfxV0AD2hJA25ehdVbl/RjapUFOTBqebsLdWmYSgG/55jiObqGR JSLCUzJnK+6cZ+kwNSj7ZPmoWXbPdUOiwFWVHNfI+SSZ6N9TgWAMuZ1prU4E4jc4uogi DUZwORoySYk9A33Pul9O146ns+5hAGBLzR5Kzcg/+mVGAffwvyFHrRVqLiWG1QT/dCIK qR1KuFY7mjZ/tjYTMxE7yA63biRNnnvX664l7NRmyzcMDJ42TbU945JJckSPrWf381KG DV9RC6psUTF27BEd0BS3N+gCLeRmRIkDYlrOKNd1fPudQ8SfhG8OoeWImMVr+4uiqXx6 RtHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wPnjrGgNVhbBSH8gF2RGxnPdRwwa5gYEtG3aPqkrRNk=; b=dnIczRIKaZjhaM7pNyNF32x50iiuj/Wl/oWYUY1jGa7n+H59XkKx8hAMOlxlcwTNtw 0z5Xe8mpEwW1UIvkRPfoCceivGX6A37rbRFTu0qPy9jS7HDXzR5HBKuOkQvu1PM+D76t eHBJUz26oJ4xKebkg25JPHclDqqLa2pEnDh4HbxQJJeCm8/AYDE3xJ9Cz+oT134jtijY n+XyxgYi2Xk7SUcoaadRmx/qSOz5fyq+/AsuGLz9Cf6LVXbfdmZ9gNFlTM4tIKqruxlh V+o1jfEK2hFaqK3+lLsjjWz+COnn0S75811HbIvfI9o8kB8FSpkL8xG29qQgP59u2YQH cyHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MqDDjFOe; 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=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a1709062daa00b0072b02ef4ad9si4802152eji.307.2022.07.22.10.03.39; Fri, 22 Jul 2022 10:04:05 -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=@quicinc.com header.s=qcppdkim1 header.b=MqDDjFOe; 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=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235814AbiGVQiO (ORCPT + 99 others); Fri, 22 Jul 2022 12:38:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbiGVQiK (ORCPT ); Fri, 22 Jul 2022 12:38:10 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8BAE9B553 for ; Fri, 22 Jul 2022 09:38:08 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26MG8FJp015304; Fri, 22 Jul 2022 16:37:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=wPnjrGgNVhbBSH8gF2RGxnPdRwwa5gYEtG3aPqkrRNk=; b=MqDDjFOedVQR7TYyFZwLPHvjAS0ApjMZCdnMnRQN64RLHxlvHcJmPSzx+UkeCbPloxIr PBSdiUwLDBLcGrJHiDWPQaPlkG8HYOzote2GcEceVL5x1ycTEP/dQUmfDJCd9s1j4fY3 isSOQx6yqC28KGMDdJNuni4pn8F1xmFOTsRQ/LOqw6Paccgnxf8CWWQ3i0zoBK5+NVhb rzOfQaE9jsjOtW/zKkOYEjHSN56KmT8l606cepLGhMrdxJRagrTiVbcKNMYG6jHeViqE MARntvF5IW38Fe+6jeC+ZsZiGfY4eaC0nFWdxw/YKVFQBXVckP336z7Vs/Z4hP+ee4YB Rw== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3hftv78w19-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Jul 2022 16:37:52 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.47.97.222]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 26MGbpBu008535 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Jul 2022 16:37:51 GMT Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 22 Jul 2022 09:37:51 -0700 Received: from [10.38.243.149] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 22 Jul 2022 09:37:48 -0700 Message-ID: <269f2610-425b-f296-dcfc-89bdc2e1d587@quicinc.com> Date: Fri, 22 Jul 2022 09:37:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [RFC PATCH] drm/edid: Make 144 Hz not preferred on Sharp LQ140M1JW46 Content-Language: en-US To: Douglas Anderson , CC: Rob Clark , , Daniel Vetter , David Airlie , "Maarten Lankhorst" , Maxime Ripard , Thomas Zimmermann , , Sankeerth Billakanti References: <20220721152314.RFC.1.Ie333b3e4aff6e4a5b58c4aa805e030e561be8773@changeid> From: Abhinav Kumar In-Reply-To: <20220721152314.RFC.1.Ie333b3e4aff6e4a5b58c4aa805e030e561be8773@changeid> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: OdVUAT7OcjVy9m3db0NZ8-DlwwxG64rn X-Proofpoint-GUID: OdVUAT7OcjVy9m3db0NZ8-DlwwxG64rn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-22_06,2022-07-21_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 clxscore=1011 suspectscore=0 impostorscore=0 adultscore=0 mlxlogscore=999 spamscore=0 phishscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207220070 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, 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 + 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. 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. Will update this thread once we finalize. > --- > > drivers/gpu/drm/drm_edid.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c > index bbc25e3b7220..06ff8ba216af 100644 > --- a/drivers/gpu/drm/drm_edid.c > +++ b/drivers/gpu/drm/drm_edid.c > @@ -160,6 +160,9 @@ static const struct edid_quirk { > EDID_QUIRK('S', 'A', 'M', 596, EDID_QUIRK_PREFER_LARGE_60), > EDID_QUIRK('S', 'A', 'M', 638, EDID_QUIRK_PREFER_LARGE_60), > > + /* 144 Hz should only be used when needed; it wastes power */ > + EDID_QUIRK('S', 'H', 'P', 0x1523, EDID_QUIRK_PREFER_LARGE_60), > + > /* Sony PVM-2541A does up to 12 bpc, but only reports max 8 bpc */ > EDID_QUIRK('S', 'N', 'Y', 0x2541, EDID_QUIRK_FORCE_12BPC), >