Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3315576pxv; Mon, 26 Jul 2021 00:57:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMSamsPJOI+vqSbkkIkiUyuknKRnxeiu9iMtL3UE+kGsMso5cPpXGTDYDWP1X+/j3DV25t X-Received: by 2002:a5d:8456:: with SMTP id w22mr14149578ior.63.1627286272669; Mon, 26 Jul 2021 00:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627286272; cv=none; d=google.com; s=arc-20160816; b=E3Y8aY/ubPxH1dFIqvannGofDdoBn7ZFJ6O1DKA7hFdIanLA0GRbeOYKPmmQbcLt+A 4mFIyeqyaJFBqmNDjrXVmhJy4Nkqh2rqmxJ2ZewipTx5+n0sf0sBguud690h/URI9chI P1XzMCZKFlpupWyrkM8lyXqIBPAkC0nUl0G7u8cOWO8hWfH63j6Cf9u6MScqKNQqHHfQ CQgKL8lWzGqvCY0GEzGQHSTksAVf4OLcPYy6vMWw8tHHOPyKugE2lRAdfEhXodTyw71p VKezdoQteB1qRpDGAc+WmRT61pUmkOEsbsYkmG1j6j/Wa73l+d1H4Jxhsis1jU4zyd8U 67Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=zeZqtxONqWWF1em7aYmF1Pe2r2Sx+MqyCamwwBYmG9Y=; b=0sW2k/OljUtP62g+hcDOUuWqtLyCvoG31+ehHrr6Joqlxmys+SHvQOumJauiX/LfRI QtLpxZjE8yVnk3Xqg65NOGPBEO1OwMTe+6ZWYlYKbEAhJjccmCSZeepmcGLdCRtcm7TZ oLwcRCkUer5hb12eOeoiEV7gpWnzjBZgZsfBZ0K/XXTYDi+jLg0TWJUK7lltl4K5OStg LAt4RN7E6xQVz0Eh8nTFINsunXcQzfwSQBGcalU+/MS97FgJoj5Zzn/vBpKSetx9W+fJ H4G09nFhDK/84jpuWbuLHR/qaBW7j0Nv/4Ws9hSgugptEaCuKG+lWvVsdYSljArnnstM eitg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=mgtCpoRn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p31si47316587jac.95.2021.07.26.00.57.41; Mon, 26 Jul 2021 00:57:52 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=mgtCpoRn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232435AbhGZHQZ (ORCPT + 99 others); Mon, 26 Jul 2021 03:16:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231598AbhGZHQY (ORCPT ); Mon, 26 Jul 2021 03:16:24 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB4DFC061757 for ; Mon, 26 Jul 2021 00:56:52 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id q3so9999204wrx.0 for ; Mon, 26 Jul 2021 00:56:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zeZqtxONqWWF1em7aYmF1Pe2r2Sx+MqyCamwwBYmG9Y=; b=mgtCpoRn4tE+jdrGVM133ESQwkInrmHEMxbAv0NgNy7z8nv2s6PXOb85P9bzlSd+TQ QnLFOPCU6RLq5cIkaN6dkAzIiDoCP2xckOGiR0qc9JDbmCZRORjBmsGw6Il8uOcNzbj9 Htof2lkK57WMPLV7uUrr3pIjVBMUgxunp9uz/yNZo1zZZCrMMI+aQz6WnmuMSCVRplpV 44QznKcMlI6ABe+nxwIVfFwgwDq3fN138Yz80LcseSR/YhYp8U8L2UcrtN0qALmd0QZy yBIsIDwR0kGFKfVhNBG7hhFqfBIw1cIEEUFJqIOx7phDp5pLB/u2acD+ibeZJ77R6M67 CdbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=zeZqtxONqWWF1em7aYmF1Pe2r2Sx+MqyCamwwBYmG9Y=; b=AUvJ58UYUdkLl6BuZok92AthKVCUoEn1auCUiIkV75I5j5KkoDyR1M999527KBdXfa UE2rDhSfQ8oFVEI54pU4qViY8LqQcF1209IZfcp1L1JTsuVnbmdLPrGqFog/V0F6kjmK UlrqM+gMacVBkE2IvgaRd8PNOLbUoYbyWBRoti/413u1DSBFdqXbpwE/vrjzffMfs7Hr dBkj+7EGJRPzbDfZpO3OtWdOktYQV80pbw0UB6tIIxHfe3H5VEZVtdOWk80s14oj62cg zM2D11kqy9IqkJEgD1QRMBw9+Ebzectguh3PUWZt6TSc7/nR/fkPZbSU/r8koVwY1bwh BVAg== X-Gm-Message-State: AOAM533aKUKTJReGsJAYWDZ/bqpem+dhg0Fve4qeG6TCTRMk34u3wk4Z MHPKJVpiG/40MhSDst+bEaonGQ== X-Received: by 2002:a5d:5987:: with SMTP id n7mr17876210wri.263.1627286211271; Mon, 26 Jul 2021 00:56:51 -0700 (PDT) Received: from ?IPv6:2001:861:44c0:66c0:32b6:aa71:d2df:4f1d? ([2001:861:44c0:66c0:32b6:aa71:d2df:4f1d]) by smtp.gmail.com with ESMTPSA id 11sm12714511wmo.10.2021.07.26.00.56.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jul 2021 00:56:50 -0700 (PDT) Subject: Re: [PATCH] ARM: dts: meson8: Use a higher default GPU clock frequency To: Martin Blumenstingl , linux-amlogic@lists.infradead.org Cc: khilman@baylibre.com, jbrunet@baylibre.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Demetris Ierokipides References: <20210711214023.2163565-1-martin.blumenstingl@googlemail.com> From: Neil Armstrong Organization: Baylibre Message-ID: Date: Mon, 26 Jul 2021 09:56:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210711214023.2163565-1-martin.blumenstingl@googlemail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/07/2021 23:40, Martin Blumenstingl wrote: > 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 > --- > 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 157a950a55d3..686c7b7c79d5 100644 > --- a/arch/arm/boot/dts/meson8.dtsi > +++ b/arch/arm/boot/dts/meson8.dtsi > @@ -304,8 +304,13 @@ mali: gpu@c0000 { > "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>; > #cooling-cells = <2>; /* min followed by max */ > }; > Reviewed-by: Neil Armstrong