Received: by 2002:a05:7208:31d3:b0:81:e143:7c29 with SMTP id v19csp410813rbd; Fri, 5 Apr 2024 08:06:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvsbmwBrv43oJeV8zO+9pk0zeG937ZUrooBuvy93QJD5qhMLWuzSSPG+NtstltrIA+raRu3cjfe+G0u3V/D7B8y9hDkR0JtA85EoNhNQ== X-Google-Smtp-Source: AGHT+IE20GHyr0oOLuBsw05ORZzbUtatIeU3i5UMkpwmc+W8ZZTtvedyEp4zxn7vlIMyya39Fvg6 X-Received: by 2002:a17:906:bc50:b0:a51:9e3b:8ba3 with SMTP id s16-20020a170906bc5000b00a519e3b8ba3mr1344413ejv.15.1712329604874; Fri, 05 Apr 2024 08:06:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712329604; cv=pass; d=google.com; s=arc-20160816; b=PWNT+vMtgXFoSvokDUr/DqKYPrerV4Kib2LrSjk+IL0hJNCSCREIwjpCe9qqktj9TY pkNmX0C3g0OO8nNbY/m3p4jBWt94s92DKMi+jgqpsAquXYK+Q8ANdFf7rfnWo6WcH8MK gJLSRgzRYq4LX+3O4/G2rUUEaVQDSJ6xWZSddmncxipGiPE16r2YU0oeXmF90Kp5KGtk xCkKwjFCdL2ZQZOJnlzrzw8T3bRmkeKZmsUh9rqJ6FjnPVDaX4wEaFS5ZfhB33tgq30Y Jrspntd4CWW/E7cunQqmTKWRhC/pzbKH/Gaq7pFmlFDH9qEJFUY74FkDXCgo+klmqU9d rbWQ== 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:dkim-signature; bh=cBcaVMbSMZkgJPIkV9Rq48dY7hxQJkftAGqxOYcj3jc=; fh=44zaSM0FEpqfqfCctK4gLDpLfF0feG4iK+QmtY5/kU0=; b=kZYERpOdSW/s7ukWZISOZ8ImcdUhTsf6n/1hxY8sPomeb/3UPy9y3TbI63fW/kDjiY ziH7nLlQkF3yGZxCGx2DXuGAWl1aV2hyojTicZ/IF9XvCqj4XR7UPo3YYQlYlXFnKrrZ 3KN78p2pzbIli78v6j4Co5KEfjJhE96TGRchkMQpqCB5gKHH+0MiYu3A8bNccVv6m6gy ipNGb9zYE4H0KpoD8iMql9Ty2GXAMGuBIk/VEhbSRTjkNDxhek8Ru3afYl0jVzYgIFPm O32UOkg8xdBRZOpQHaHDx/6rSWP94rYmC28JBjWJBekIYgepqSS4ffaoSpV5rRpm/yDh mvjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=I4Ua375V; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-133217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133217-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s10-20020a170906168a00b00a518cfe40d6si774024ejd.113.2024.04.05.08.06.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 08:06:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=I4Ua375V; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-133217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133217-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 84B1F1F2244B for ; Fri, 5 Apr 2024 15:06:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57C0E16F8F7; Fri, 5 Apr 2024 15:06:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="I4Ua375V" Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E926D16F832; Fri, 5 Apr 2024 15:06:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712329590; cv=none; b=YwXmTNYZYiNsRz1aCo8VwRwcy0y9zA8Gci6W57rp4eU+PM/Fp43g3+EvYW+MdMeLuDat6Rc7QPDtp3gU6/xB27qOzjygTLIL/le+JIwH59E+jRRppV+pgoN4gohvMidFMAX5PQsZeUWYWV7XNSuf1tgUFHT5MOueJr8tAfRVcEU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712329590; c=relaxed/simple; bh=nDClXF3j4lc22O9XFA6Ptr+e7CswgCu/KhRNNcL/s2k=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=RF2MewbJzX7d7B4uWFCa/JrJyBHsYLrKa2R1GTHVdibgkMEx03QFn6PcogXfxgQs5IuiTd5QbjhmZOuTl4CYSLOy7xkD3hKxPRoKVN9hM61gTOli+Zg8zj8qSnHUuhGuRTEo/1muas0S6RVCJoxeKKMNnT4crIW9ZKQ2odaTKPQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=I4Ua375V; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-343d88460cdso859204f8f.2; Fri, 05 Apr 2024 08:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712329587; x=1712934387; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=cBcaVMbSMZkgJPIkV9Rq48dY7hxQJkftAGqxOYcj3jc=; b=I4Ua375Vu2cxCySRVctA7MQy4P5adUzw7E+o75qNtSljM9hKQIMmgJ/wnrNMoiyOIl 6jmi/v9OcZ5HNfTRNiMC1AndJvcm9wuI8g/jorGcsF6hDOuGdhDBcNOypOzzZ3XWHqcm aKpcnP5hvodyTfRnrE+C2ZZsA89fG+ViRCMDKdZ98juUIAiGWnJPlafN8WzE0Efo0ErU 41TbNJULb0TNBf+al/hqJfqQowR9s9MafT5idLwqwVtC5zHAdsc5/SQCt43tvccI6L1E Ot1PNSPdxOcAHH3o2wOEyHXMnOOg7qlw7ZJrlIKw00PygWYxb4CkFm9l3MbNfHwhWGa2 kPxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712329587; x=1712934387; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cBcaVMbSMZkgJPIkV9Rq48dY7hxQJkftAGqxOYcj3jc=; b=s4ng1CbWbD5h6ZyMm7SCsV4sTK6B9T2kde3dqiWjtoz0d01INsDGWs4EI07VNBHDWA cS4Pl5xbkJVJe4MsFgX1r0cgsJU4aEWrE2gk6qDmnt9jnBGhUh0Wt1a0cBBk/9f+KTdQ 5nPDM2xxu5BFRh3KMz0rEJ6AeurtmiuZVWTAQgh+yx1gqHC5NHn0Tib6jkzfX8PnjyWQ g/ePcuXMdQ8kGY0VtLTG4hgkRZ0A1CcmIsGly9XUB8ACwzdqjybVFJ7vApY2UI5BRMdt +3YaB7YSebWhg+4dfSX95n8FUROJ/k0QbujLltHEHtB9V7c2gwl9LqJ7PVLCpkw+Yu2S VfHQ== X-Forwarded-Encrypted: i=1; AJvYcCXTgpIKn0xYKXPgWnqYzLNy4NXXa+/mFcRPIRGNcbrZCP09dEgWoq6h3cJzUHFLi0R6I5zZtcTO+jCkIstuDG2vZbyppejJzRDx0UmD X-Gm-Message-State: AOJu0Yz7K2TcvADG2hXUl4qvXv6JbxroMzKUokfMsUGm2OQnAtNKFR71 QoQcBRX+lIFNh63y3/ZQyIddAmwR0xUfkCRUaiJuQ5EzY//HBFqeSNDmz3QojzE= X-Received: by 2002:adf:e510:0:b0:33e:8aba:cd0a with SMTP id j16-20020adfe510000000b0033e8abacd0amr1267736wrm.9.1712329586904; Fri, 05 Apr 2024 08:06:26 -0700 (PDT) Received: from ?IPv6:2001:8a0:e622:f700:b890:c074:f63d:508d? ([2001:8a0:e622:f700:b890:c074:f63d:508d]) by smtp.gmail.com with ESMTPSA id a17-20020a5d5091000000b00341ba91c1f5sm2210015wrt.102.2024.04.05.08.06.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 08:06:26 -0700 (PDT) Message-ID: <4e781d80fbec0db13555456ab8af6bdae6dee168.camel@gmail.com> Subject: Re: iMX8M Mini suspend/resume hanging on imx8m_blk_ctrl_power_on() From: vitor To: linux-pm@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: vitor.soares@toradex.com, ulf.hansson@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, rafael@kernel.org, geert+renesas@glider.be, peng.fan@nxp.com, linus.walleij@linaro.org, u.kleine-koenig@pengutronix.de, marex@denx.de Date: Fri, 05 Apr 2024 16:06:25 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi, On Thu, 2024-04-04 at 16:53 +0100, vitor wrote: > Greetings, >=20 > I'm trying to suspend/resume our Verdin iMX8M Mini with VPU IP using > the latest 6.9.0-rc2 Kernel. While the system can suspend without > issues, it hangs on the resume routine. After some investigation, I > can > see the Kernel hanging on imx8m_blk_ctrl_power_on()[1] while resuming > the hantro-vpu power domain. >=20 > Any hint about that? >=20 > [1] > https://elixir.bootlin.com/linux/v6.9-rc2/source/drivers/pmdomain/imx > /imx8m-blk-ctrl.c#L101 >=20 Looking at other child nodes of the pgc node, pgc_vpu_[g1|g2|h1] seems to be nested into pgc_vpumix. After applying the following changes to imx8mm.dtsi, the suspend/resume is working. @@ -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>; }; pgc_vpu_g2: power-domain@8 { #power-domain-cells =3D <0>; reg =3D ; + power-domains =3D <&pgc_vpumix>; }; pgc_vpu_h1: power-domain@9 { #power-domain-cells =3D <0>; reg =3D ; + power-domains =3D <&pgc_vpumix>; }; I will prepare the patch to send in the next couple of days. Regards, Vitor Soares