From patchwork Wed Mar 27 02:04:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 13605479 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1C430CD1283 for ; Wed, 27 Mar 2024 02:05:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uVZWiBmYeVsgWm317zp8Lvq20cHul1EIqj3BtTzC+Lc=; b=0KKhJ43rZt3k/F OpSb1g62P75Nyp02n4pFN7m0p+CaD6ieWVWdVS/Dm0Xf1lfoumfBX8/6uw9ovg01yj8AAGK28EtpT 1jzTlXok2cJOHs5jpmAJbN8f2NvCF4MPKAjzPR7Q76hhi0Vgx6wsb4O2Skm9tMYLMTuzRij3Oo+R3 bFkBhOcO3jlq/cEvXkad+aX9IgcwEBDfPjtDvW9WqjIpI/4TpbLl/AXQE+9+UA/KY56d6/7OeyL3c b+DZvSwqCnFgffdc2j55VsLE+W0I74EI5t5mOlnQnXAOS7QX0rw0dmLJzM/sLj5s/Upg4Pkb5xEKn BX3hQdcM/NRnKNSfR7jg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIet-000000079tu-3awD; Wed, 27 Mar 2024 02:04:55 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIeg-000000079oR-1SN8 for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2024 02:04:45 +0000 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42R0tRsT024156; Wed, 27 Mar 2024 02:04:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=OA4HTGE3gk5yXf2lZJ9Uk1ZR1AxJF8BlqYBnZRsloV8 =; b=OmzOQpgOnKeqq7byHiyz3/+vwNBYLgBS4DiWRxmSjJt8B4+O7lvdIzxt9Ye 9NNHZVCkO9eoFR/cxujTEF37s1QQqS8fV7gzkkvgTZ9C0uKvaR6gczIil7F8j9WF SDVeGjKnij+osnGr0iU/CvpKc0MxMt9POE1qKKS8QeZywbSWNZr8SjczepS4eV7a xySlcGzAZpMOObAflUZcs5h7wbyoF5Cni5eulvZ7v+/dO0voPOB54U/DuLEhx2xI +xUVnUgFMZ2HUk1NEo6fq5S3oiGZMkgRI7vzhPe1TubLE9c2PLehoFCJcrdTMtlE 1hQ1D/9Um5x5ZIxo2FKj9SlkAHA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x4780gbf0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:30 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42R24TRx012225 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:29 GMT Received: from [169.254.0.1] (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 26 Mar 2024 19:04:29 -0700 From: Bjorn Andersson Date: Tue, 26 Mar 2024 19:04:18 -0700 Subject: [PATCH v2 1/6] arm64: dts: qcom: sc7280: Enable MDP turbo mode MIME-Version: 1.0 Message-ID: <20240326-rb3gen2-dp-connector-v2-1-a9f1bc32ecaf@quicinc.com> References: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> In-Reply-To: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> To: , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Dmitry Baryshkov CC: , , , , Douglas Anderson , Abhinav Kumar , Bjorn Andersson X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711505069; l=1047; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=PH3agPVcu0oRlNkvdU1AcR2OvLC0h7VlusCgUGbWUQk=; b=MgIUmDhiEgicryNajAoVbvLkS3dRSe/Q056wfsQ24Zn4H4nreljRKaUFie14TnsrHmHfB6eq/ ppq+RWJQbCqBekN+Tp+yHb6ouIOxV2wmMEQKBzmha2HPMNlk3HpEzex X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 6GMQsUpAR1sNcUkqroR15R5iYDhCwiKC X-Proofpoint-GUID: 6GMQsUpAR1sNcUkqroR15R5iYDhCwiKC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-26_12,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 mlxlogscore=917 bulkscore=0 mlxscore=0 phishscore=0 clxscore=1015 spamscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403270012 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_190442_503153_A867ACEB X-CRM114-Status: GOOD ( 11.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The max frequency listed in the DPU opp-table is 506MHz, this is not sufficient to drive a 4k@60 display, resulting in constant underrun. Add the missing MDP_CLK turbo frequency of 608MHz to the opp-table to fix this. Acked-by: Douglas Anderson Reviewed-by: Abhinav Kumar Reviewed-by: Konrad Dybcio Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 41f51d326111..261d2d431faa 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -4458,6 +4458,11 @@ opp-506666667 { opp-hz = /bits/ 64 <506666667>; required-opps = <&rpmhpd_opp_nom>; }; + + opp-608000000 { + opp-hz = /bits/ 64 <608000000>; + required-opps = <&rpmhpd_opp_turbo>; + }; }; };