Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2474957rdb; Mon, 5 Feb 2024 07:41:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXxr7sS9qSUWdEKzrdcp8YFyRS0UUzKCJBxovMvPGtfelmIMkjAujUEgwZvM6bcH30j+lP X-Received: by 2002:aa7:d347:0:b0:55f:fb28:2701 with SMTP id m7-20020aa7d347000000b0055ffb282701mr4888257edr.1.1707147687358; Mon, 05 Feb 2024 07:41:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707147687; cv=pass; d=google.com; s=arc-20160816; b=zGEy6EGbE8Y2CKBwWli597fcs0FMWPu8o4p/gt3NTCO+Ofkai44incyd14MEUXQNyo MbGx/IEKRYm/HSFIcywLfqc9zIoUYLVHQ14CxFxJyLBSm7j5ug1UUbfV5bMkCa47iOlh SidQiPWVSd7siQ43gZi6yAxaQ9w2UvKt4aioTjJaZ4aTVxl5l7hdZLyBiZc9BuSq5L8m vH1XV299QXKiMS8Ec6HRi/YW8PLu13GZFAM/Uo4ftBmMs9Y5O2qzDuZ4ADdXrYHQMt1E mHtLo7M0GqGi4xmORPdc7sM2pLxdJgWge31vbs0sCChd8jEmHFvXA21kbTb6JzEM6PYs xKow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=qC4mq/tsfLRuzLmRs5JjHQXl/DynYoHApRzxf1WL2uM=; fh=ecXiNJRUJ3OnB1s8iIxa+7ByyhokOIOZActabjDa5gM=; b=MuZeuoTfth+qXZ1YkA49rynGh4aO7E7lZI7BbC+N0RmrAK/tyCMi4HYo8cpuQJ+mCd zFaGMXd9PiYQ57zC1vrK8gGBuofKG9oIhKpFJvwtYR9ERX5eUf4fnOqqBcaVfK3Ksd+j R4kjjV10Iwes47zFjtoHpT2nox/WEa80UG34wI1JVTj0/A2otBCeAmN/3Wpx0U3sAiBM Iwiz8VA8e94NbRxj1IThODM1SMDDrow88o+2MqsF67eEi9yGSmVfBb1COZH5gnN/Tjx1 Q9RYj4RZO3CQtHhLZ5ABRqJDY6LD/Jn4/r1R33NeLQiiR+RJD8n+zAuNIVrA969h1cZC dI9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oltmanns.dev header.s=MBO0001 header.b=p5BOTlx7; arc=pass (i=1 spf=pass spfdomain=oltmanns.dev dkim=pass dkdomain=oltmanns.dev dmarc=pass fromdomain=oltmanns.dev); spf=pass (google.com: domain of linux-kernel+bounces-52896-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52896-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oltmanns.dev X-Forwarded-Encrypted: i=1; AJvYcCUkWUGjSlb6KvVNLUxMp6DWMalCJfTvDNMlQs/Cnid0KmX03crK5bSXbuDfuKoL8+fXI8JzhDYfblVWYYiAE8U2NMnsnDrl2Rb/5FHcLQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w20-20020aa7d294000000b0055fea5dd2b9si3213edq.402.2024.02.05.07.41.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 07:41:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52896-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@oltmanns.dev header.s=MBO0001 header.b=p5BOTlx7; arc=pass (i=1 spf=pass spfdomain=oltmanns.dev dkim=pass dkdomain=oltmanns.dev dmarc=pass fromdomain=oltmanns.dev); spf=pass (google.com: domain of linux-kernel+bounces-52896-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52896-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oltmanns.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 96C461F25FBD for ; Mon, 5 Feb 2024 15:24:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 321F23FE5F; Mon, 5 Feb 2024 15:23:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oltmanns.dev header.i=@oltmanns.dev header.b="p5BOTlx7" Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A18463FE5D; Mon, 5 Feb 2024 15:23:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707146607; cv=none; b=D1YACqvJzQuFMRcMxk+20iM2G68oiOQx9inGUK+L1fWORg4pSAjwjmWageyI++LVjrKenRWZCMUqt8TIb6KZ4DaLbL6sLoYuAm8T4e3VxTLPCzASVqMILf6MEG/2oXRZZOgBoa2NNuNiYQS1I7nJqym3npusjnndNvIhTZLMfO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707146607; c=relaxed/simple; bh=zwBfjIxPZERVFfsaNgpqFLdeiKWw7hboXJ6uRiKwYxM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pVemkB+gQPWRl6IC/Qo4ZRfcIKk4uEO1H9dE99Peoee6umr0sqhLSxLnmJYBnefvzMRJ7E1ZLONdyA7ga4+zEZ0LPwFSbXovKf0nPQTUURa5fzJvD8RO3CfXjDJf4+wzw7OHlURYy1Kb3S1zHiTQkJIwjzoPvZ03y/pK6cY/qnw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oltmanns.dev; spf=pass smtp.mailfrom=oltmanns.dev; dkim=pass (2048-bit key) header.d=oltmanns.dev header.i=@oltmanns.dev header.b=p5BOTlx7; arc=none smtp.client-ip=80.241.56.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oltmanns.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oltmanns.dev Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4TT9BJ5DfPz9swV; Mon, 5 Feb 2024 16:23:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oltmanns.dev; s=MBO0001; t=1707146600; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qC4mq/tsfLRuzLmRs5JjHQXl/DynYoHApRzxf1WL2uM=; b=p5BOTlx7BFzH5jfkDYpQViWSxKs5abIL8hm2KzHBy21+XzrQNcnG7drDYZmaNPxgoq6svd VOSQLdXUhkmNUjvvyni3MqpxfHJ9FfT9ALjLCZUljFNWk19ObC6iFsezdkutZunV5B8fHZ jB+XIXs90OYNf3K9Mt+jErTvhXbdBH2ROAKG4uAEMbwpQOo1819ukPoEBy4tBSRQqt/JOf 8anff4Wsl++LcK4cx5OCjA5bJWAMRppsY9M4jJCNb+xzJPwHfl2rW/S52m2QxEs4zPnOTp iljLh3JK+krTqxPfsWyMMUrjP6VeycUjCDdi+Autvy4D6dY/G0E7QW2NosNGUQ== From: Frank Oltmanns Date: Mon, 05 Feb 2024 16:22:29 +0100 Subject: [PATCH v2 6/6] arm64: dts: allwinner: a64: Fix minimum GPU OPP rate Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240205-pinephone-pll-fixes-v2-6-96a46a2d8c9b@oltmanns.dev> References: <20240205-pinephone-pll-fixes-v2-0-96a46a2d8c9b@oltmanns.dev> In-Reply-To: <20240205-pinephone-pll-fixes-v2-0-96a46a2d8c9b@oltmanns.dev> To: Michael Turquette , Stephen Boyd , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Ondrej Jirman , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Frank Oltmanns X-Developer-Signature: v=1; a=openpgp-sha256; l=1574; i=frank@oltmanns.dev; h=from:subject:message-id; bh=zwBfjIxPZERVFfsaNgpqFLdeiKWw7hboXJ6uRiKwYxM=; b=owEB7QES/pANAwAIAZppogiUStPHAcsmYgBlwP0/YywsMvB2h9f3zxar+UUpwxyriOAGKTLGS ZdrqQvmPRqJAbMEAAEIAB0WIQQC/SV7f5DmuaVET5aaaaIIlErTxwUCZcD9PwAKCRCaaaIIlErT x3RxDACBLK+cLnbt4nqBmvnVYYuwNDvDRxFAxO4EA3xfHnuyUi9obGXAhbHRwu5r0O73xHPRVNr 4Wom+6tBs3/fQuItFP79IP5TmiAFQrzSkoGLQ92bS5iXGhBEcIYFwlpkUXgOrCTqtXWypBAdp29 RAQI6ih2i6NilPU/cyy0Y+cdmz/NlslvlnloC2NIgNtCgna8EqxXVuznxxOIsfw70TXsMZa7FEL nG4hYb1xsmY98DZy2qeZA3OJNg+sXOyxL+J3Vey8KfaAx3NJdZ5eQo0RiwX/Lrvc/bOweP6oovx Bs8nYRM/GJ5zndYzn49FwuuIIzmtWco7Era813fL1BsSdT0EdMFQSE4b/7TqbKkE3zj9Xnq+9BD /P0du+E3yb6d8fHwBbUqfBL6QtBVwrxvsC68I5utxurpsD07McLUo54uaOBRrufJoJHceUfjGRV vGonUD0GohydlHH8bkAhELUd6IZTEOOawyGWyIOycvEhaBrM5Rmbdj1jFE/oBIptqjiM0= X-Developer-Key: i=frank@oltmanns.dev; a=openpgp; fpr=02FD257B7F90E6B9A5444F969A69A208944AD3C7 X-Rspamd-Queue-Id: 4TT9BJ5DfPz9swV The PLL-GPU has a minimum rate of 192 MHz according to the A64 manual. If run at less than 192 MHz the pinephone (based on the A64) sometimes replays the last few frames that were displayed over and over (see first link below). Note, that running PLL-GPU at 240 MHz and using a divisor of 2 *should* circumvent this problem as well. But unfortunately, the GPU shows the erratic behaviour even more often, even though its parent is driven at a supported range. This might be due to a similar issue to the one observed on the Allwinner H6 (see second link). Running both the GPU and PLL-GPU at more then 192 MHz reduces the occurrenc of the issue. Therefore, increase the minimum rate in the GPU OPP table to 192 MHz. Link: https://gitlab.com/postmarketOS/pmaports/-/issues/805 Link: https://lore.kernel.org/linux-arm-kernel/2562485.k3LOHGUjKi@kista/T/ Signed-off-by: Frank Oltmanns --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 57ac18738c99..448d7fbdd1a9 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -107,8 +107,8 @@ de: display-engine { gpu_opp_table: opp-table-gpu { compatible = "operating-points-v2"; - opp-120000000 { - opp-hz = /bits/ 64 <120000000>; + opp-192000000 { + opp-hz = /bits/ 64 <192000000>; }; opp-312000000 { -- 2.43.0