Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2911616pxa; Tue, 25 Aug 2020 06:47:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbSIdE3CNdSMKXw93BoLKowS6iZEPJFnyNchlC9+3i9L77rLRfjeR/Vt7sUwXJ42R3Sxbe X-Received: by 2002:a17:906:81d3:: with SMTP id e19mr10403102ejx.51.1598363270393; Tue, 25 Aug 2020 06:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598363270; cv=none; d=google.com; s=arc-20160816; b=ddj68hYRn5Yp/FO4SfuvcTZ5w+Reeicwv7drT93jUY+vDtFw03JNUvmedAzLBvmMXA C2NhHv5ceGtJhZETgwRHDgrTbKTIibHqTbHraMMCwgTGAl8mIp+4bQkb+o5YpHwrMIZJ hbFMKMxhIgfdcS60+yUjH7sP5JTz99JYePQi8EFHnXY0dPgOAAz5N8syDZiRxYzwdoUl bIUZyan3R1B+YeDzsAC9HRwc5cL16g6SLMzFOxv7lPkJ/YLKTVg6SXqPu5QGKIEWCe8b fQz0tayctlDBWpwhMuRRsuJb5reZRthqJ4D6E5ommbzfd5AtAxIdGnvXYjCxHLykE/uQ P89Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=BD5bjXAobBCo9yTevZ5BZkrhVrVsqNpdHQCkmUriY40=; b=iWQ1jB6yMXknxeoRsAfth+zKeOWNTtcJFf6uKFMd/828BwCRNxGGsHfez5z1sMib7H Nsvkc60be2OOLEeb6uupmhDqQL1jYaztUXNmsJt3JWjB+KFymcEMh+2ENj8JirpFdXb3 jNEeHDc46Mld+omhmkOgCnKoviGKR2n6rnB+SCDRZTAdJ3/GA1GXgsZhsr/tbDj9q/x4 8mZSKgO9nGqVHAAqVVtHqDGErJLVP4cy75LOzJvHbSz9RCViELRMytKgeMPDOatnFfyw nKyDW+0BMpsTPRw6pxy8bl56RB4aYV9Re/55mFqbEB0x5sI/XgNXqK9fsSkN+mi5/AQu YPgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=kuV2RCaE; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=BqNzfJk9; 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=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j13si8761375edp.43.2020.08.25.06.47.26; Tue, 25 Aug 2020 06:47:50 -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=@cerno.tech header.s=fm3 header.b=kuV2RCaE; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=BqNzfJk9; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726570AbgHYNqY (ORCPT + 99 others); Tue, 25 Aug 2020 09:46:24 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:34071 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbgHYNll (ORCPT ); Tue, 25 Aug 2020 09:41:41 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 25E955800F9; Tue, 25 Aug 2020 09:35:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 25 Aug 2020 09:35:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=BD5bjXAobBCo9yTevZ5BZkrhVrV sqNpdHQCkmUriY40=; b=kuV2RCaEiK33UvZoHu5zDowvk+1jn3Yo0s+6FrDTG4T vkpluoU5hENDRI3Dh30C6mvULk9bTrGgyZwXQuIAlTeX/9JWKUK/WQE2dkUzMvgQ M4LkeCSOw0a6YRIYoOrPMjMh5UvJyWa9dc5yqktipM77D/3Asz+SPqU+5ePwS60s O1XjVAmAvv7FJtrlUyiJtchoqBaHD0bJ6+NAiCTA9Pjt/zCERA5EN6R7h9OsOLaY fqoqRwuP/8MqJV0fIeHlHkrdoRmyf3jO60Sz2vrUo9KN2Efug87QhFh+8ERF+XC9 7ZLn4TthxylC8UbRqMsCQpeGNByMuOCH3h7r9x2qv5A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=BD5bjX AobBCo9yTevZ5BZkrhVrVsqNpdHQCkmUriY40=; b=BqNzfJk9idLMcxnAJ3vfsf +ZUuvY9k2OeVrrgatSXhQ7leyf2HWpge8QmJYMjBmR7xbdRg02NzuvEpYi9hEO7a G9qeMgzfoNqzYXORpMUuqOUC4k/J7ahp4OB9o+wfddjmr12ANDgMd7G8xo3BZDNz IZO6+oRwEnmTauNTmZETu6cQVAin9XSJDtqdK77c5V0zRDyVbbcfbfNUhPsmoPB4 dDuJonGD7lRzU53k2AdaxO3u0/wjcwzr+mWgP3BGZurekknd2LVT1KQnmcpbdv2E 3EcNoOoToPiM2r9CoWgR0Id5ejn3fhArslG9hyyBAExlcXWIhcAwNNbL2+Ji7yOQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedruddvtddgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddunecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnheptdejfeekvdffhffhffehjeevjefhfeffffdvieevtdeghfelveeuuddtffei gfehnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghdpshhpihhnihgtshdrnhgvthdpfi hhihhtvghquhgrrhhkrdhorhhgnecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvg hrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 46C0930600A6; Tue, 25 Aug 2020 09:35:38 -0400 (EDT) Date: Mon, 24 Aug 2020 15:11:33 +0200 From: Maxime Ripard To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Rob Herring , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , Viresh Kumar , Nishanth Menon , Stephen Boyd , Chen-Yu Tsai , dri-devel , linux-kernel , Ondrej Jirman , linux-sunxi Subject: Re: [PATCH v2 13/14] [DO NOT MERGE] arm64: dts: allwinner: h6: Add GPU OPP table Message-ID: <20200824131133.hp3resve6c3r3xqq@gilmour.lan> References: <20200704102535.189647-1-peron.clem@gmail.com> <20200704102535.189647-14-peron.clem@gmail.com> <20200704121301.jfd3m3jnlghmddg4@gilmour.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ssjrkcbupbbjduka" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ssjrkcbupbbjduka Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Clement, On Mon, Aug 03, 2020 at 09:54:05AM +0200, Cl=E9ment P=E9ron wrote: > Hi Maxime and All, >=20 > On Sat, 4 Jul 2020 at 16:56, Cl=E9ment P=E9ron wro= te: > > > > Hi Maxime, > > > > On Sat, 4 Jul 2020 at 14:13, Maxime Ripard wrote: > > > > > > Hi, > > > > > > On Sat, Jul 04, 2020 at 12:25:34PM +0200, Cl=E9ment P=E9ron wrote: > > > > Add an Operating Performance Points table for the GPU to > > > > enable Dynamic Voltage & Frequency Scaling on the H6. > > > > > > > > The voltage range is set with minival voltage set to the target > > > > and the maximal voltage set to 1.2V. This allow DVFS framework to > > > > work properly on board with fixed regulator. > > > > > > > > Signed-off-by: Cl=E9ment P=E9ron > > > > > > That patch seems reasonable, why shouldn't we merge it? > > > > I didn't test it a lot and last time I did, some frequencies looked uns= table. > > https://lore.kernel.org/patchwork/cover/1239739/ > > > > This series adds regulator support to Panfrost devfreq, I will send a > > new one if DVFS on the H6 GPU is stable. > > > > I got this running glmark2 last time > > # glmark2-es2-drm > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > > glmark2 2017.07 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > > OpenGL Information > > GL_VENDOR: Panfrost > > GL_RENDERER: Mali T720 (Panfrost) > > GL_VERSION: OpenGL ES 2.0 Mesa 20.0.5 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > > > > [ 93.550063] panfrost 1800000.gpu: GPU Fault 0x00000088 (UNKNOWN) at > > 0x0000000080117100 > > [ 94.045401] panfrost 1800000.gpu: gpu sched timeout, js=3D0, > > config=3D0x3700, status=3D0x8, head=3D0x21d6c00, tail=3D0x21d6c00, > > sched_job=3D00000000e3c2132f > > > > [ 328.871070] panfrost 1800000.gpu: Unhandled Page fault in AS0 at VA > > 0x0000000000000000 > > [ 328.871070] Reason: TODO > > [ 328.871070] raw fault status: 0xAA0003C2 > > [ 328.871070] decoded fault status: SLAVE FAULT > > [ 328.871070] exception type 0xC2: TRANSLATION_FAULT_LEVEL2 > > [ 328.871070] access type 0x3: WRITE > > [ 328.871070] source id 0xAA00 > > [ 329.373327] panfrost 1800000.gpu: gpu sched timeout, js=3D1, > > config=3D0x3700, status=3D0x8, head=3D0xa1a4900, tail=3D0xa1a4900, > > sched_job=3D000000007ac31097 > > [ 329.386527] panfrost 1800000.gpu: js fault, js=3D0, > > status=3DDATA_INVALID_FAULT, head=3D0xa1a4c00, tail=3D0xa1a4c00 > > [ 329.396293] panfrost 1800000.gpu: gpu sched timeout, js=3D0, > > config=3D0x3700, status=3D0x58, head=3D0xa1a4c00, tail=3D0xa1a4c00, > > sched_job=3D0000000004c90381 > > [ 329.411521] panfrost 1800000.gpu: Unhandled Page fault in AS0 at VA > > 0x0000000000000000 > > [ 329.411521] Reason: TODO > > [ 329.411521] raw fault status: 0xAA0003C2 > > [ 329.411521] decoded fault status: SLAVE FAULT > > [ 329.411521] exception type 0xC2: TRANSLATION_FAULT_LEVEL2 > > [ 329.411521] access type 0x3: WRITE > > [ 329.411521] source id 0xAA00 >=20 > Just to keep a track of this issue. >=20 > Piotr Oniszczuk give more test and seems to be software related: > https://www.spinics.net/lists/dri-devel/msg264279.html >=20 > Ondrej gave a great explanation about a possible origin of this issue: > https://freenode.irclog.whitequark.org/linux-sunxi/2020-07-11 >=20 > 20:12 looks like gpu pll on H6 is NKMP clock, and those are > implemented in such a way in mainline that they are prone to > overshooting the frequency during output divider reduction > 20:13 so disabling P divider may help > 20:13 or fixing the dividers > 20:14 and just allowing N to change > 20:22 hmm, I haven't looked at this for quite some time, but H6 > BSP way of setting PLL factors actually makes the most sense out of > everything I've seen/tested so far > 20:23 it waits for lock not after setting NK factors, but after > reducing the M factor (pre-divider) > 20:24 I might as well re-run my CPU PLL tester with this > algorithm, to see if it fixes the lockups > 20:26 it makes sense to wait for PLL to stabilize "after" > changing all the factors that actually affect the VCO, and not just > some of them > 20:27 warpme_: ^ > 20:28 it may be the same thing that plagues the CPU PLL rate > changes at runtime I guess it's one of the bugs we never heard of... It would be a good idea to test it on another platform (like Rockchip?) to rule out any driver issue? What do you think? Maxime --ssjrkcbupbbjduka Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCX0O8hQAKCRDj7w1vZxhR xYVDAQDDudJ6bCiXmHhPMijhyU+WqByi72nw3zyKM0R1vtKqHAEA09BJDULh+d1r DAOm2fiobSXmAHKe46f2he9tBkh/KgM= =/QwQ -----END PGP SIGNATURE----- --ssjrkcbupbbjduka--