Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1851671lqe; Tue, 9 Apr 2024 02:13:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTuDZq1hfAAJnhESZjMfgqUYzYaCqu4M+zFLyGCGJ8IlI6b3ZT8BEcSs3ggSVMSZcRc2zizV9BIp++fjERQ8U7ba/iAmWZUygiowBDHQ== X-Google-Smtp-Source: AGHT+IFnbffaSaWLGxnOBG95A7SS2eE+wecRdVFLbJSOUpAmpvUASvx10cflOmGRgdCuHpesi72P X-Received: by 2002:a05:6a20:431a:b0:1a3:a85c:44a5 with SMTP id h26-20020a056a20431a00b001a3a85c44a5mr2595194pzk.31.1712654013122; Tue, 09 Apr 2024 02:13:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712654013; cv=pass; d=google.com; s=arc-20160816; b=JDXDrOGocOk0X1OipLA7hZjJW73aQ3cjzZzHLE2ATuYyw+f75iCL7q0fuSQ9mugUvv m+6fPGuZapptcjWOXp7TbMdMz5lRH12pDXog+L9pfaOzjY8CxinfNbv1ASzz0WI2/492 8O3QwJpkp0xeawfGeDNZYvhJd1Ml/1Z8tVr04c0TsL14EnPhtRCF8GO7r9KAvYfsmqRc T8ap6laJumHhpr1h+GlM8Iix9mDYh7gzg6DyT0aEo7gXliLv7dp3oMBNMiB5tProkz8x 8sjKtyaCi4O1skfZ3ux4MVCFf/Vbv1qh80oB1/gq8AxBJHc4H0/TJyVXhTLwvOETWRM2 3L6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id; bh=3KoyW+04pAXozNypGhpHI+mr3j/NNSqD6T5KHdy/hLo=; fh=uuLUKptb0fS2yFzE0pTeFrbPlpE+xGeBFNJ/pH2u/O4=; b=CJ7QH0X8DzxnFIZff4NqLbqmFabDoqZMZQOWqi3zGa1j6h/B08YsYM7AV7DR/nC/3M GNKsnhgzc4EFdK3N4FhdxIpllKr7mYUQbtmWC+l3FzDoC0PlFL8ztoEm1r0Lqsi2uXAt 1RZW2cqp1LouRfGwNWGez5QHP5yQCpZlchJjxCfjWYxCXQV9zE0irSlSvKAIl8mjRC5D OKUGWFGM6x+9hsmOeo2ddygMomOZWyC1apOCu041Eflm7sUJoQFFzydmPysoKfIxEqfv ExLgMygtnc4PhQipWyOW2DQYLr6vL1HkC7LrATqZesE7W2iYrfCl8hDep+Lg7KeY8YgK 6Jog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-136528-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136528-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id kq15-20020a056a004b0f00b006ed1790830bsi5955820pfb.68.2024.04.09.02.13.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 02:13:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136528-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-136528-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136528-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C9713282F26 for ; Tue, 9 Apr 2024 09:13:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7CC27F464; Tue, 9 Apr 2024 09:13:29 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1F037E777 for ; Tue, 9 Apr 2024 09:13:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712654009; cv=none; b=VTOPEn3JEWh7DzG893Ivjyp30Ntc9ME/iA2eeCZEvF32ykr+tmOUZxQ+EISl0tRhzBEz6Bo0ta1Z+zKjGwXNo3+yimneTRV1Bl/07fPTUDy4nzjp94nBBk3qDoeZUoy09ZfBz6eIiN1Br61TsHRe7iUtG5YII4hBdemk7x3elJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712654009; c=relaxed/simple; bh=DDDP1MRm7J507ibgfXCuV7RGp0XeST5hGJXpspFd8rM=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=V2tU9AYyZjQ+SPPCTeQzQ/tbfM6Ws2dNJNUmIkawAWxGuZ4BYpElmAy8+9yhJc55gBlsYa9/S/HXSk6hey/uX/oiyNCgSUOvXxgYwlbYFiPRWmc9hi4c/C8fndCLLIOnnzH4ydLd4D41cbI6E4D7W6RzgGgCU9A00Lyjea3WXyM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[IPv6:::1]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ru7XW-0004PQ-Cr; Tue, 09 Apr 2024 11:13:14 +0200 Message-ID: <9ce35b9bb5a15891f6bd01bd54b7dc84b3ba4021.camel@pengutronix.de> Subject: Re: [PATCH v1] arm64: dts: imx8mm: fix missing pgc_vpu_* power domain parent From: Lucas Stach To: Vitor Soares , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Vitor Soares , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Date: Tue, 09 Apr 2024 11:13:13 +0200 In-Reply-To: <20240409085802.290439-1-ivitro@gmail.com> References: <20240409085802.290439-1-ivitro@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Hi Vitor, Am Dienstag, dem 09.04.2024 um 09:58 +0100 schrieb Vitor Soares: > From: Vitor Soares >=20 > The pgc_vpu_* nodes miss the reference to the power domain parent, > leading the system to hang during the resume. >=20 This change is not correct. The vpumix domain is controlled through the imx8mm-vpu-blk-ctrl and must not be directly triggered by the child domains in order to guarantee proper power sequencing. If the sequencing is incorrect for resume, it needs to be fixed in the blk-ctrl driver. I'll happily assist if you have any questions about this intricate mix between GPC and blk-ctrl hardware/drivers. Regards, Lucas > As these PU domains are nested inside the vpumix domain, let's reference > it accordingly. After this change, the suspend/resume is working. >=20 > Cc: Lucas Stach > Cc: > Closes: https://lore.kernel.org/all/fccbb040330a706a4f7b34875db1d896a0bf8= 1c8.camel@gmail.com/ > Fixes: d39d4bb15310 ("arm64: dts: imx8mm: add GPC node") > Signed-off-by: Vitor Soares > --- > arch/arm64/boot/dts/freescale/imx8mm.dtsi | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/= dts/freescale/imx8mm.dtsi > index 8a1b42b94dce..97d0c6d23ad8 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi > @@ -739,16 +739,19 @@ pgc_vpumix: power-domain@6 { > pgc_vpu_g1: power-domain@7 { > #power-domain-cells =3D <0>; > reg =3D ; > + power-domains =3D <&pgc_vpumix>; > }; > =20 > pgc_vpu_g2: power-domain@8 { > #power-domain-cells =3D <0>; > reg =3D ; > + power-domains =3D <&pgc_vpumix>; > }; > =20 > pgc_vpu_h1: power-domain@9 { > #power-domain-cells =3D <0>; > reg =3D ; > + power-domains =3D <&pgc_vpumix>; > }; > =20 > pgc_dispmix: power-domain@10 {