Received: by 2002:a05:6622:f08:0:0:0:0 with SMTP id l8csp4490360ivc; Tue, 3 Nov 2020 13:25:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOdpk59y2fVazm9KUsdYJZbvEjPC1JNnFBvBF/7cbNBzv57/kwdXudHShuUJ5UO5h40hHC X-Received: by 2002:a17:906:fa1b:: with SMTP id lo27mr21675286ejb.216.1604438753315; Tue, 03 Nov 2020 13:25:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604438753; cv=none; d=google.com; s=arc-20160816; b=YHpVsZcQm2XdNPB22099JqxWyZqG+w2KbVXVfDJo/Tk1qYGDFg1GrzV+2Tpb9mRa88 vmgrfcQJIwD1EJx6jUrUieoyWrxn4d21WqQwCOVQbDRQenVOLzrQHfU9D1JmwcErQx/T qfLob16eDS9nY2xcNB1PWDBmAFRCPlKmtB5KvEaVx7gy7C7cnmmSonjgwrEbTvjTDhva jND6qGi5qc2tjRbAUOa3WuHF/s1TeTxZYabIj8ZaH3YRyTMrSYnlysoY2iH+A92Uf4k0 7nCZYcJxAyKhKEeL2ilW1DRA/8Ey+YIqY0LI75ZuDRIuCkY2xdHbE471nPYRzp2rl+24 Jo/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=25NcQ8q801t7Ed2wqgWZPGg/hcYuAZH7aE8OAMuA9Ho=; b=fxt72HGSIoQn7E7rIJEJYwbQd7R0lwH/YmllF9qlLc1cbvbKVhYC6nmFtwMjl6vklt vz7STDl2QbmO/BAYkgYUZMEzlLMYmZJyXkmQbcK0oyp1ACNx0588eszBeo8pOYTxN4XZ fvj0HljqmXAhJthOuR4v+rkU06c6gKZ3WathKyhnEZQYsJCvkp8ioouSC0oNLhJYEAdA RMBpHvYJwWAoFwx1KW/2FcF3TG2ycrmH+Ve66Vl+TLn0tLMyL+3U+C84gZQkDkiBBcwB a/JI03WjieuOa8EfPsYNJdejSqCOTcN7wfOWv2anTedExxzMX77bRSUC7j7tWIpU4sAK eT2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=C8XePdPj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zc3si65637ejb.158.2020.11.03.13.25.30; Tue, 03 Nov 2020 13:25:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=C8XePdPj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732956AbgKCVWz (ORCPT + 99 others); Tue, 3 Nov 2020 16:22:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:43298 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388051AbgKCVFB (ORCPT ); Tue, 3 Nov 2020 16:05:01 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D8FF7206B5; Tue, 3 Nov 2020 21:04:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437500; bh=3gAaBhkMm9SAZQuLIq7w4AscinPUediptKNOgzRcnDU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C8XePdPjY8V9DKQLfjlyzlrZUnBTFmdpW0SaNfs72V8RZiE5ZmAiCE0gPSCMqWuYG ibaxI2f1ghJTeIaoZzPvYkwHtq0ZWRHIe9lzDeF8tCl63s5z7cqztRy+u1RBzaKQ/W c4Rs0b3PGd4Px59eEHVcXw8ceAWmUh1oqg1rqk4o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arthur Demchenkov , Merlijn Wajer , Sebastian Reichel , Tony Lindgren , Sasha Levin Subject: [PATCH 4.19 104/191] ARM: dts: omap4: Fix sgx clock rate for 4430 Date: Tue, 3 Nov 2020 21:36:36 +0100 Message-Id: <20201103203243.375949063@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203232.656475008@linuxfoundation.org> References: <20201103203232.656475008@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tony Lindgren [ Upstream commit 19d3e9a0bdd57b90175f30390edeb06851f5f9f3 ] We currently have a different clock rate for droid4 compared to the stock v3.0.8 based Android Linux kernel: # cat /sys/kernel/debug/clk/dpll_*_m7x2_ck/clk_rate 266666667 307200000 # cat /sys/kernel/debug/clk/l3_gfx_cm:clk:0000:0/clk_rate 307200000 Let's fix this by configuring sgx to use 153.6 MHz instead of 307.2 MHz. Looks like also at least duover needs this change to avoid hangs, so let's apply it for all 4430. This helps a bit with thermal issues that seem to be related to memory corruption when using sgx. It seems that other driver related issues still remain though. Cc: Arthur Demchenkov Cc: Merlijn Wajer Cc: Sebastian Reichel Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/boot/dts/omap4.dtsi | 2 +- arch/arm/boot/dts/omap443x.dtsi | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi index 1a96d4317c975..8f907c235b02c 100644 --- a/arch/arm/boot/dts/omap4.dtsi +++ b/arch/arm/boot/dts/omap4.dtsi @@ -516,7 +516,7 @@ status = "disabled"; }; - target-module@56000000 { + sgx_module: target-module@56000000 { compatible = "ti,sysc-omap4", "ti,sysc"; ti,hwmods = "gpu"; reg = <0x5601fc00 0x4>, diff --git a/arch/arm/boot/dts/omap443x.dtsi b/arch/arm/boot/dts/omap443x.dtsi index cbcdcb4e7d1c2..86b9caf461dfa 100644 --- a/arch/arm/boot/dts/omap443x.dtsi +++ b/arch/arm/boot/dts/omap443x.dtsi @@ -74,3 +74,13 @@ }; /include/ "omap443x-clocks.dtsi" + +/* + * Use dpll_per for sgx at 153.6MHz like droid4 stock v3.0.8 Android kernel + */ +&sgx_module { + assigned-clocks = <&l3_gfx_clkctrl OMAP4_GPU_CLKCTRL 24>, + <&dpll_per_m7x2_ck>; + assigned-clock-rates = <0>, <153600000>; + assigned-clock-parents = <&dpll_per_m7x2_ck>; +}; -- 2.27.0