From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22891C10F14 for ; Thu, 11 Apr 2019 15:50:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E5FE72082E for ; Thu, 11 Apr 2019 15:50:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="g1n8Jjw1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E5FE72082E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/+1UCkExc4bUu+79EeoJRfkZuO1K2nKX+0cUup4Kkck=; b=g1n8Jjw16wA/dExQeAYsZaCi4 4PeYOPpLlXQykWrzpEiCcMhI2iXj3jU551aqKsETc9iepDd59aekGSS4JVNylWDjupEINymeSZ8UY LFPLilewLd4Oup1dDQGth5z+NPnYTPORj1Z4g/xtTtj0nQzjrvDdYq2OqVuXUHajluv1z44nFj5vO BYS7luHCeeaQ1zpNP0fpkPPWLA7GprMlf2QUEsrfYMh8J036eE5mqd0LXZQJU0M4lS0DGNG6RYiDg dk12t7sxGxOjKs3E4/ZYNGmspX3y/jfHtODsSV0Mm9e1jMmCmbmgb8GqPskAuWfCSE+ACK1LFPPFE jvIlSd3JA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEbyC-00068V-B7; Thu, 11 Apr 2019 15:50:32 +0000 Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEby9-00067g-AT for linux-arm-kernel@lists.infradead.org; Thu, 11 Apr 2019 15:50:31 +0000 X-Originating-IP: 90.88.18.121 Received: from localhost (aaubervilliers-681-1-63-121.w90-88.abo.wanadoo.fr [90.88.18.121]) (Authenticated sender: maxime.ripard@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 2EC812000A; Thu, 11 Apr 2019 15:50:25 +0000 (UTC) Date: Thu, 11 Apr 2019 17:50:25 +0200 From: Maxime Ripard To: Jernej =?utf-8?Q?=C5=A0krabec?= Subject: Re: [PATCH v2 4/8] arm64: dts: allwinner: Add ARM Mali GPU node for H6 Message-ID: <20190411155025.d5hmbw2jzhp3wyuq@flea> References: <20190411105720.32357-1-peron.clem@gmail.com> <2797515.ZAugZ1JPiN@jernej-laptop> <20190411152752.qlabx7heh74dy2ao@flea> <5149757.GgN2G91tE9@jernej-laptop> MIME-Version: 1.0 In-Reply-To: <5149757.GgN2G91tE9@jernej-laptop> User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190411_085029_656763_E7E0A44B X-CRM114-Status: GOOD ( 22.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree , linux-sunxi@googlegroups.com, linux-kernel , dri-devel@lists.freedesktop.org, Chen-Yu Tsai , Rob Herring , =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Jagan Teki , linux-arm-kernel , Icenowy Zheng Content-Type: multipart/mixed; boundary="===============8031543754016272086==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============8031543754016272086== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ughvejlzbua5n4db" Content-Disposition: inline --ughvejlzbua5n4db Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 11, 2019 at 05:42:56PM +0200, Jernej =C5=A0krabec wrote: > Dne =C4=8Detrtek, 11. april 2019 ob 17:27:52 CEST je Maxime Ripard napisa= l(a): > > On Thu, Apr 11, 2019 at 05:23:25PM +0200, Jernej =C5=A0krabec wrote: > > > Dne =C4=8Detrtek, 11. april 2019 ob 17:20:04 CEST je Cl=C3=A9ment P= =C3=A9ron napisal(a): > > > > Hi, > > > > > > > > On Thu, 11 Apr 2019 at 17:05, Jernej =C5=A0krabec > > > > > > wrote: > > > > > Dne =C4=8Detrtek, 11. april 2019 ob 12:57:16 CEST je Cl=C3=A9ment= P=C3=A9ron > napisal(a): > > > > > > Add the mali gpu node to the H6 device-tree. > > > > > > > > > > > > Signed-off-by: Cl=C3=A9ment P=C3=A9ron > > > > > > --- > > > > > > > > > > > > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 14 ++++++++++++= ++ > > > > > > 1 file changed, 14 insertions(+) > > > > > > > > > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > > > > > b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index > > > > > > e0dc4a05c1ba..196753110434 100644 > > > > > > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > > > > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > > > > > @@ -157,6 +157,20 @@ > > > > > > > > > > > > allwinner,sram =3D <&ve_sram 1>; > > > > > > > > > > > > }; > > > > > > > > > > > > + gpu: gpu@1800000 { > > > > > > + compatible =3D "allwinner,sun50i-h6-mali", > > > > > > + "arm,mali-t720"; > > > > > > + reg =3D <0x01800000 0x4000>; > > > > > > + interrupts =3D > > > > > > > > > IRQ_TYPE_LEVEL_HIGH>, > > > > > > > > > > > + > > > > > > > > > IRQ_TYPE_LEVEL_HIGH>, > > > > > > > > > > > + > > > > > > > > > IRQ_TYPE_LEVEL_HIGH>; > > > > > > > > > > > + interrupt-names =3D "job", "mmu", "gpu"; > > > > > > + clocks =3D <&ccu CLK_GPU>, <&ccu CLK_BUS_= GPU>; > > > > > > + clock-names =3D "core", "bus"; > > > > > > + resets =3D <&ccu RST_BUS_GPU>; > > > > > > + status =3D "disabled"; > > > > > > > > > > Usually self sufficient peripherals are enabled by default in DTS= I. > > > > > > > > I follow the other Mali Midgard (rk3399, rk3288) syntax. > > > > But I think you're right here, will go for an update I think. > > > > > > I quickly checked A64 and H5 DTSI and both have GPU enabled by default > > > (status property is not set). > > > > I asked myself the same question, but the H6 seems to have a supply > > wired to the GPU, while the H3 and H5 do not. So I'm not sure we want > > to enable it on all the boards, even though some might have left out > > the GPU supply which will result in a non-working GPU (I assume?) > > It's true that GPU doesn't work at all without power supply. Even worse, = ARM > kernel driver just hangs whole SoC if it tries to use unpowered GPU. > > I checked few datasheets and almost none of them have GPU power supply, e= xcept > H5, where GPU is enabled by default in DTSI. I guess we should fix that then. > Yeah, I guess it's more safe to explicitly enable it in board DT. It's also something we do for the CPU, even though the CPU should be obviously be powered before starting Linux... Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --ughvejlzbua5n4db Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXK9iQQAKCRDj7w1vZxhR xW8KAQC6G/zptIZMa3Iez/W7WOhXWk54gWQ0gUOe1wOvm5zMFgEAkYt6r8m5dYvW QFoyycKpJudgsTM0htXFB3AyjlPEag8= =fNBG -----END PGP SIGNATURE----- --ughvejlzbua5n4db-- --===============8031543754016272086== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============8031543754016272086==--