Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp40684pxb; Mon, 13 Sep 2021 12:21:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgcFJM58QA2Zt3qzhIa5CDNHjOxa3s4CKFYMNvTEmdnQvifSRt+viFMep3HEwYeLqCzDu9 X-Received: by 2002:a17:906:3a58:: with SMTP id a24mr14082866ejf.109.1631560909334; Mon, 13 Sep 2021 12:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631560909; cv=none; d=google.com; s=arc-20160816; b=XDj7xHVprF2q8czUlCFvagQfZBNaecRGhqUGFbclTYyKY7YAivlomf49YbTaiLhXbb 80/+Dixx72t11xqhHBNkxk+SdwNWTKubGLKqw9qCFLNKj/vjCKakPr6l1FNGCpH9ijZT kGYsoouTHUJIPfTaMRMlLT/kLVocCu5yIyLJocWL237w6CruD/PQFFUrkIs1GVhE8LGc K8FUb5/rSJRGNnsT6jtk3UP4PW52x9NFq/nI5xKpBDtZteg9CBXbNujCfiyQJZDzKM9O YKw8k02gDql+TOluR7SdL4pWw+vvBOINF7PxsvxjC/+WHLOEWX2rWlrBsM7hE3Jx/E5K MzGw== 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=piQF6S0cNnZtvKnDN0rBR1FkjQ1Y8AWwO7PnBJiyhEc=; b=PR7pdHh0lYDo/4n8jeNiTNWzVx9uSyaJ5d94i1cFQAPZoaIOJRBZLAAu3qZXg51Lry ffUZXXhkYMBn04hlVDa9s1/xm5qGvLSska+Yq5Mki8X40aH2ULZrPCVcjyDKag1MgqWX 7IL3p7/oXaSoz8j7hqd9Ft8GN9otaSauLps0C00TiiPH4B9ug/WqYfc7/zJHVCgc7c20 S30+DU/bMKc8hgRIHxfwEab7vxPgu2EvXYZbupWKBRGIKJ2odyK1KKYklReckodF3ffn cPEYJ/nQdIzSxlj1iTNcFHIq2WeMTlFsqgvEera7fVixukgK0B8QULbjy13s0DKfFdaK NG1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="KnKk/H2k"; 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=pass (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 l18si8337772eds.612.2021.09.13.12.21.24; Mon, 13 Sep 2021 12:21:49 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b="KnKk/H2k"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241899AbhIMN0P (ORCPT + 99 others); Mon, 13 Sep 2021 09:26:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:34834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240567AbhIMNWM (ORCPT ); Mon, 13 Sep 2021 09:22:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CBF5461159; Mon, 13 Sep 2021 13:20:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539246; bh=xCLWryCJ5SZE9fvXRVPIiVQjE4zis4KoslvYXRyheEM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KnKk/H2k5SKLjYs/CUN2imOc09WPxXCMJ5hsNPdHgOhAGUVwAfze86vRmElGHBK9N dYyh1AZXRfcrfqes1b+Bl6Qxzl28kCaMBqqz7OTESBoYIrm1CmrLwlpupQVlzf0gsv g9K+mjBkkm25w8Se8f66uXGeCCEL47BkSpitKxbU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Demetris Ierokipides , Martin Blumenstingl , Neil Armstrong , Sasha Levin Subject: [PATCH 5.4 065/144] ARM: dts: meson8: Use a higher default GPU clock frequency Date: Mon, 13 Sep 2021 15:14:06 +0200 Message-Id: <20210913131050.141913889@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131047.974309396@linuxfoundation.org> References: <20210913131047.974309396@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: Martin Blumenstingl [ Upstream commit 44cf630bcb8c5ec78125805c9447dd5766792224 ] We are seeing "imprecise external abort (0x1406)" errors during boot (which then cause the whole board to hang) on Meson8 (but not Meson8m2). These are observed while trying to access the GPU's registers when the MALI clock is running at it's default setting of 24MHz. The 3.10 vendor kernel uses 318.75MHz as "default" GPU frequency. Using that makes the "imprecise external aborts" go away. Add the assigned-clocks and assigned-clock-rates properties to also bump the MALI clock to 318.75MHz before accessing any of it's registers. Fixes: 7d3f6b536e72c9 ("ARM: dts: meson8: add the Mali-450 MP6 GPU") Reported-by: Demetris Ierokipides Signed-off-by: Martin Blumenstingl Reviewed-by: Neil Armstrong Signed-off-by: Neil Armstrong Link: https://lore.kernel.org/r/20210711214023.2163565-1-martin.blumenstingl@googlemail.com Signed-off-by: Sasha Levin --- arch/arm/boot/dts/meson8.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index 3efe9d41c2bb..d7c9dbee0f01 100644 --- a/arch/arm/boot/dts/meson8.dtsi +++ b/arch/arm/boot/dts/meson8.dtsi @@ -241,8 +241,13 @@ "pp2", "ppmmu2", "pp4", "ppmmu4", "pp5", "ppmmu5", "pp6", "ppmmu6"; resets = <&reset RESET_MALI>; + clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>; clock-names = "bus", "core"; + + assigned-clocks = <&clkc CLKID_MALI>; + assigned-clock-rates = <318750000>; + operating-points-v2 = <&gpu_opp_table>; }; }; -- 2.30.2