Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2110041lqe; Tue, 9 Apr 2024 09:44:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlGD0X6NVk3yGYfeNGtjwesEXq7vaCfwvqOCmvPasSTdKBlrqqRcufvZp91dCxipQvxxbeMPyevJi+8KMRiG4XQ72tuUU23HY5k+lmLQ== X-Google-Smtp-Source: AGHT+IGqpUxEBLmla3snRlNhvXTn3KcNqw+QSyFOJk8eX1HVpTodYZ+CxQ9jpPAuE9I5QcUl4qpf X-Received: by 2002:a25:844a:0:b0:dcc:8f97:9744 with SMTP id r10-20020a25844a000000b00dcc8f979744mr299477ybm.43.1712681099500; Tue, 09 Apr 2024 09:44:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712681099; cv=pass; d=google.com; s=arc-20160816; b=f0aUawTsIea1Nro+6kKsxPWPIzdb5Fimu6nYC+lEgwb/lwmnrJPFrXoeKA9+TiRMCb oPBFX0QhWQ2Epi21Z66MF9xdVe1INvXWGN/lM/Ej938JI7MQVvJzwdHfl2whGW/USSi0 +NcEkfURKnkP2Y3sS1JT39s8pLcyC+bFtPHSEwUCGPCx4DSvYoRelNAursLFgRpRtn7i 9IHZL7Zje3/zjnb0br9HP/r+FC/6U//O+xhwxuLF+f5akkS4bdiE/1ZhZIsm6KIdkl3w p9idet+o1HqPZIb1yCTB6igfbaF6XsFjDzelJily8CLoOE8zOwwaxhvdHyrnTeFzTJ5r 1gnQ== 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=39YyZmAfdf4vHb3K8iCAxVV01Zal5LvvE4zzi2uoc7o=; fh=JTvJPue0/y+aX4R4cBI2J5yd7CxfhF2irUT3fniUxts=; b=vW3yPUhrt4LBNZpSM9Nwris5VkWISE6ybUaVGTsVXqplYz2g6SzNEbcmEI94KNke2M kTHf2rZFU2JldsfLk7YhE1lpKEjctfYzYHkx6H7YQtVjjXLenOWB9iy9U6nfmFhG5BGG vjMvA8bRUag2FzVg3fq6JoKV74/AHBvk+NCjxaP/TjJuUmjSyBFDzkeGwoaPVrcJRVZI oiN5pNJruFaFsOKDBTkqwmV5+9KRaohTD1O0YTLyBCMjuW8BfFvUi4GcvQoawXNy/0f5 msuuBlNOPGnXDOP71n2moSLkmiWRiISh91wMzBw5hOocSP8MFRb5YA1HGL+gcQQEGDcB kDWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Vbklh3fZ; 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-137338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y8-20020ac85f48000000b004346197bd33si10012791qta.500.2024.04.09.09.44.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 09:44:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Vbklh3fZ; 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-137338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137338-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 181B31C22864 for ; Tue, 9 Apr 2024 16:44:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 512CF15383B; Tue, 9 Apr 2024 16:44:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Vbklh3fZ" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 CC03F15358E; Tue, 9 Apr 2024 16:44:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712681082; cv=none; b=kHnyt69nye5XczOTIVUsekhI2bhD9zMIbiLlyVlYib8SJA2A0Lzpxb1kNSWUBB5ATk7IsUt3djNi5FEhXU5mXewpFY4ul8lf2KLFSDSFKw4UrjevXrFPUa7n6KRl2NU3QgnWECMEXX/fUU2Yb3rNjj+3/LvVy95veeMAWFDbXFo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712681082; c=relaxed/simple; bh=39YyZmAfdf4vHb3K8iCAxVV01Zal5LvvE4zzi2uoc7o=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=ZOG27ZWpauDiRZTV0QhNw1vSqbbebo7qsYPVJA0yFkV4F7i454ttTdRgW1ffXDBd3r9AW/qo48MpyrwiwWwcdNhiXiUrqx2UlBxTEhlE4v80vE8bOhqXkeYORidY5P3/1BRgQ7Gk6WK/IqwmWsV9Z1Wj5knVcVVXYB9XIu/sayg= 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=Vbklh3fZ; arc=none smtp.client-ip=209.85.221.53 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-f53.google.com with SMTP id ffacd0b85a97d-343c891bca5so3737440f8f.2; Tue, 09 Apr 2024 09:44:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712681079; x=1713285879; 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=39YyZmAfdf4vHb3K8iCAxVV01Zal5LvvE4zzi2uoc7o=; b=Vbklh3fZq1hRUg0OaYoT730emGfW8d6EJRM2hOSMEtY6FPoNh4bPBovS70DXPCwk66 bxMjcdH7036sSJSy616l3Z8VpsUmeUkodxTMgtowP33bgjFJCF52tUrrVFCT+tqo3XS8 /M1EGmX1YL3kOLvxrrhSYjH/QXF2bYQn9PoNgXVfufcjgQ6UopFIqfbRrsmT3uI292Qt dQXz4fHIdjtuH2Xo5y6jxcUQlvhlG2MjfKVYiXtryjV4FJ9zGrTM/XMtzePuBRIGPuOe BGwFwF/A2NW8xxcv5y7T5FTAmjI/QzFnQrL6cQj0O4GxcLq9ifDJoUhxtf84PCcwhXic Mdww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712681079; x=1713285879; 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=39YyZmAfdf4vHb3K8iCAxVV01Zal5LvvE4zzi2uoc7o=; b=mcLHKWIMys5/z/6fZ0lXH/1INpMIzMtHe0/jq2D0f00kLLy85IhmNx/kbgZkqRCyLJ sPHVTkn2yNQtDoKa9HLJxslz3lB2TOGlmvD7rRUGYiio5cY0568x24lVKJTUR3yMpj5j 3bgWXCthDZZcTUDwi6lvKFANaqwJq4zUqD2QDBGdG5fKi2MBA1RE4jbjoNUdkSFF2FQ7 czMTRNF5V1PBqQcLgnJTPjAKBHxmgWKBHDIl6Da4nhihuc6uulFnn2jI9e/EeBSJl8xo J9bAWNVkvJfkxJ19E7P3nGAtPP4Yrvxh+cx1aKQOVTkJ8r5U7/ZcG/fQ4PBQSuYcsAUw CxUg== X-Forwarded-Encrypted: i=1; AJvYcCVt5hN+YK+LNok8RqP9MR3exYLEyvG6rENhQIUWMwqUs9z5ehr2GhEqGKrgGrhYZuulbIbsMJqZ8kzaO99/3cFCvlWyIBxkLGglcGk6t6HTzQSpV82AyfrnzygSU4EkbWhL9FgZpSG1PsjehRHEveN4O8jJ+EJe4PMBUhpVq+X+5g== X-Gm-Message-State: AOJu0YyyCj4cObqS1jSzfnHDTzVhEVkGHFoWqkfRiffiHICTz68sT0Sa RUgGnmzZljHeBFaEMtnrft/gHrsy5RIWZdm0ljcLHwfiRNeFY7elasigEiY4t6I= X-Received: by 2002:adf:f3d0:0:b0:341:8412:a6e7 with SMTP id g16-20020adff3d0000000b003418412a6e7mr188242wrp.18.1712681078763; Tue, 09 Apr 2024 09:44:38 -0700 (PDT) Received: from ?IPv6:2001:8a0:e622:f700:5844:d7c8:2851:cad9? ([2001:8a0:e622:f700:5844:d7c8:2851:cad9]) by smtp.gmail.com with ESMTPSA id e27-20020a5d595b000000b003445bb2362esm9308419wri.65.2024.04.09.09.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 09:44:38 -0700 (PDT) Message-ID: Subject: Re: [PATCH v1] arm64: dts: imx8mm: fix missing pgc_vpu_* power domain parent From: Vitor Soares To: Lucas Stach , 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 17:44:37 +0100 In-Reply-To: References: <20240409085802.290439-1-ivitro@gmail.com> <9ce35b9bb5a15891f6bd01bd54b7dc84b3ba4021.camel@pengutronix.de> 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 On Tue, 2024-04-09 at 16:36 +0200, Lucas Stach wrote: > Am Dienstag, dem 09.04.2024 um 14:22 +0100 schrieb Vitor Soares: > > Hi Lucas, > >=20 > > Thanks for your feedback. > >=20 > > On Tue, 2024-04-09 at 11:13 +0200, Lucas Stach wrote: > > > Hi Vitor, > > >=20 > > > 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. > > >=20 > > > 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. > > =C2=A0 > > I'm new into the topic, so I tried to follow same approach as in > > imx8mp > > DT. > >=20 > That's a good hint, the 8MP VPU GPC node additions missed my radar. > The > direct dependency there between the GPC domains is equally wrong. >=20 > > I also checked the imx8mq DT and it only have one domain for the > > VPU in the GPC. It seem blk-ctrl also dependes on pgc_vpu_* to work > > properly. > >=20 > > The blk-ctrl driver hangs on imx8m_blk_ctrl_power_on() when access > > the > > ip registers for the soft reset. I tried to power-up the before the > > soft reset, but it didn't work. > >=20 > The runtime_pm_get_sync() at the start of that function should ensure > that bus GPC domain aka vpumix is powered up. Can you check if that > is > happening? I checked bc->bus_power_dev->power.runtime_status and it is RPM_ACTIVE. Am I looking to on the right thing? It is RPM_ACTIVE event before runtime_pm_get_sync(). >=20 > Regards, > Lucas >=20 > > Do you have an idea how we can address this within blk-ctrl? > >=20 > > Best regards, > > Vitor