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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EAB48C352A1 for ; Wed, 7 Dec 2022 06:45:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbiLGGpj (ORCPT ); Wed, 7 Dec 2022 01:45:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbiLGGpj (ORCPT ); Wed, 7 Dec 2022 01:45:39 -0500 Received: from soltyk.jannau.net (soltyk.jannau.net [144.76.91.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15ED611447; Tue, 6 Dec 2022 22:45:38 -0800 (PST) Received: by soltyk.jannau.net (Postfix, from userid 1000) id CC5A826F498; Wed, 7 Dec 2022 07:40:05 +0100 (CET) Date: Wed, 7 Dec 2022 07:40:05 +0100 From: Janne Grunau To: Asahi Lina Cc: Hector Martin , Sven Peter , Alyssa Rosenzweig , Marc Zyngier , asahi@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: apple: t6002: Fix GPU power domains Message-ID: <20221207064005.GA20388@jannau.net> References: <20221207014305.21018-1-lina@asahilina.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221207014305.21018-1-lina@asahilina.net> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 2022-12-07 10:43:04 +0900, Asahi Lina wrote: > On t6002 (M1 Ultra), each die contains a self-contained GPU block. > However, only the coprocessor and global management circuitry of the > first die are used. This is what is represented by the "gpu" PS (the > one in die1 is disabled). Nonetheless, this shared component drives the > processing blocks in both dies, and therefore depends on the AFR fabric > being powered up on both dies. > > Add an explicit dependency from the GPU block on die0 to AFR on die1, > next to the existing die0 AFR dependency. > > Fixes: fa86294eb355 ("arm64: dts: apple: Add initial t6000/t6001/t6002 DTs") > Signed-off-by: Asahi Lina > --- > arch/arm64/boot/dts/apple/t6002.dtsi | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm64/boot/dts/apple/t6002.dtsi b/arch/arm64/boot/dts/apple/t6002.dtsi > index 1376103b49c6..8fa2d8dd72ff 100644 > --- a/arch/arm64/boot/dts/apple/t6002.dtsi > +++ b/arch/arm64/boot/dts/apple/t6002.dtsi > @@ -296,3 +296,8 @@ &cpu_p20 &cpu_p21 &cpu_p22 &cpu_p23 > }; > }; > }; > + > +&ps_gfx { > + // On t6002, the die0 GPU power domain needs both AFR power domains > + power-domains = <&ps_afr>, <&ps_afr_die1>; > +}; Reviewded-By: Janne Grunau Janne