From nobody Wed Jul 07 13:18:19 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E6AA911DFDFC for ; Wed, 7 Jul 2021 13:18:28 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mail.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GKg3S4Pldz3D8Y for ; Wed, 7 Jul 2021 13:18:28 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1625663900; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oHtFx3aq7ofBURsytfgNbS4slsmAT9AaD+ORrVwKx/4=; b=kMv8ZB0YHrVmUXipqGRwEWxaBBYbXGfx3MhM2QB235mA+gMuEWq7iOongjtgsG2AOCh9z+ sNtdawTvAQoLqJDWBcKZZzcim4XL1pMWA20RxNQL95brPMZ+CP2E+OPlUUEY8MgPolyeU1 xacVgFpPPYShYgWRf/qf7cYA7G3BT3Q= Received: from amy (lfbn-idf2-1-644-4.w86-247.abo.wanadoo.fr [86.247.100.4]) by mx.blih.net (OpenSMTPD) with ESMTPSA id bff3e1b5 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 7 Jul 2021 13:18:20 +0000 (UTC) Date: Wed, 7 Jul 2021 15:18:19 +0200 From: Emmanuel Vadot To: "Bjoern A. Zeeb" Cc: freebsd-arm@FreeBSD.org Subject: Re: rk3399 "power off" gpu? Message-Id: <20210707151819.74377cb776da1acde9d9b5d6@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4GKg3S4Pldz3D8Y X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, 7 Jul 2021 13:06:14 +0000 (UTC) "Bjoern A. Zeeb" wrote: > Hi, > > I was wondering if there is a way to completely "shutdown" (power off) > the GPU or put it into "low power" (suspend) mode? > > Just setting the gpu state to disabled is probably the wrong as it won't > give the SYR828 PMIC anymore and u-boot likely enables it all. > > If it's possible would anyone have a dtso to do that? > > /bz > > -- > Bjoern A. Zeeb r15:7 > The mali part in RK3399 is powered via an external regulator. If the regulator is unused it's automatically shutdown in FreeBSD unless you set hw.regulator.disable_unused=0. That being said on rockpro64 the always-on property is set for this regulator so you will need some overlay that removes this property. -- Emmanuel Vadot