From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 A4E601B043A for ; Tue, 15 Jul 2025 15:37:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752593875; cv=none; b=Ob9rfSsLaeOTPcxwPL7wu+sNcLvxoNq9skO59cuhUdFep+/BPCBmydcuNA75rKlisYu/YkB44SJ4TnUQk8+vuVYh+gfjzDSkfgMpIFka6oqWVEmrA5ogUFqL8rwKWgaUjmLS4qJmux7MgqbZRDAWgmdqLGfK0ZsontwhAooUw5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752593875; c=relaxed/simple; bh=MNjWM8Z0QuCnshVnQ1bsNB+5oVUx8sdzUpPC+lIh8FE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=W3+Kf4D3jfu87Z4lh7ug/SFLUnphdu+JNwypj2k5o03xoAwRHQduhi+6EJP9RFnhhdLfJIhEyykpWoA/EcAbK9N5LEDIir3aGAPXaqw2rrhXcosMsxtWVhn0bsLCXRNf0Z4a266L1Z2MqF3iVLmKQAtIGMSBPD4HyDoWxgk8/k0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=zrHKTd3Q; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zrHKTd3Q" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-742c7a52e97so4622012b3a.3 for ; Tue, 15 Jul 2025 08:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752593873; x=1753198673; darn=lists.linux.dev; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=FzNEH5LOAV7uVf2fuNEUyq4fxGqo7XGg0gkJqBbGqwk=; b=zrHKTd3QfWnTYZMUhHTNASYr554y0IgHHjwviIAyLa0QSQimRrZ76Ulfuc7yeA+75o /Q6+FHDFTI/zp9wwXkO+Yyf0ea8hVspMRZyKR/YnJ5wKL4a4zv2pCBaApK8WLlcaWY4/ 3f2Rfgg5LyfwlUju8plK2Wwrq0IgHrqfiej619s7AyBW7GgqUNVkBl9r6njafV/pJgUM pISK1QCyh+Nk/95Np+J1q1fnySZf36C2AI37bBxjZu9AhW7/FMAb+C2SVG7DAKRy8fWl Y74L2YB0iBXpzmoWghJduLQVIaG0KWMCSNY7q6P9BthWLrGiy2eshALdbWNa4va2ebIm wnzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752593873; x=1753198673; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FzNEH5LOAV7uVf2fuNEUyq4fxGqo7XGg0gkJqBbGqwk=; b=GYyV3Y+6OwioRHTWoBwjiYCOsE0G9JXSnTK6YzEwEP0Y340LwXoIo4A7za9bZ8uPRj oRoTfR0zkYUMRFAGaxHMb6Qzi8YCZlYu2pGi84MoazC2q/w4w99XgVG8DKatDZY+ZejL Aw3nB68zwv+BEHkQpDcgKOT7CII+d8eh6ne15wsU8o5+MHpDg76NY+HZWGMhOjlGsdyp VTSDTE75dDkO98DSTBOWnVxHtNT52+DqAIeZDn2XZoAEfvGlKToJ2mqIQa3mDhupIKNO gNP93PnHnKXErB2OX3vkYkuwTp88IG+rzhxVE92d8IvIikM6VxZ7z2wNEqy1kK3fqLm4 AIYQ== X-Forwarded-Encrypted: i=1; AJvYcCVrWZpxwah7fkf80tEuAoB+TyB3fJ1mbXeSawiAaUVv9JWTyzRFtBpQAEW0OhYO12UZPaU=@lists.linux.dev X-Gm-Message-State: AOJu0YxT6s1aLe49nv9FERAdQ6pBrOv4Cu++KvcJrPUgnk2YN9cmI9pH SrlWG8ekOgiPg/KLZ51eMO+HFAw2lLeAJu+nMOCEAg3TlWkGKW+Wu3fm5wyHFuHx1Hs= X-Gm-Gg: ASbGncsTwc/xjpiwDn4v5I4q+hKb9RXZK0W2+Rx93jx0Xz88UVdIIkEdwcXDpaovGdv L4SbrBH5vqcgmLutv2Z27JQbt4i4VY4q8uh6/cC00gWR9nC2em4cS9MstV/xUsr6NGgLi3MLaR1 SJI3dM0jhAGRp5AQRY8l6fByybhpK4SkgDvgZoUrZKWIStVJ9XBe4d+vym4nKoICVufj9Q6LJ7A PiJK9DhveKDOcG8Bkg9dRl44IdsVGn4syr/IFTeBQcsco6GdqXDEZhxHBvXhxYumhXgj9ogNZlZ /32oKmtojGWbQgqNTq2Gt4bghQ7IoAHmPRF5XzaDAxGAfLxBs8+ajOYWPWs9zLiDMNsakhIBaAq BZx0RZfIzPg3BV2MKhl659bnh X-Google-Smtp-Source: AGHT+IGfUd3Wq8tKCUsCK6+tRCHhWda76Q4+cIiZSoc97uhXtJTnyEkJT/SdNOXKgCueM3T97WS1Aw== X-Received: by 2002:aa7:8887:0:b0:74d:247f:fae4 with SMTP id d2e1a72fcca58-74ee0bb5748mr26983642b3a.4.1752593872779; Tue, 15 Jul 2025 08:37:52 -0700 (PDT) Received: from p14s ([2604:3d09:148c:c800:3f17:6d67:cf82:708]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-74eb9dd605dsm12780538b3a.18.2025.07.15.08.37.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jul 2025 08:37:52 -0700 (PDT) Date: Tue, 15 Jul 2025 09:37:49 -0600 From: Mathieu Poirier To: Ulf Hansson Cc: Hiago De Franco , linux-pm@vger.kernel.org, linux-remoteproc@vger.kernel.org, Shawn Guo , Sascha Hauer , Bjorn Andersson , Hiago De Franco , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan , daniel.baluta@nxp.com, iuliana.prodan@oss.nxp.com, "Rafael J . Wysocki" Subject: Re: [PATCH v7 0/3] remoteproc: imx_rproc: allow attaching to running core kicked by the bootloader Message-ID: References: <20250629172512.14857-1-hiagofranco@gmail.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi, On Tue, Jul 15, 2025 at 01:49:42PM +0200, Ulf Hansson wrote: > Hi Mathieu, > > On Thu, 3 Jul 2025 at 18:45, Mathieu Poirier wrote: > > > > Hi Hiago, > > > > Many thanks for re-working the changelog and comments in this patchset, things > > are much clearer now. > > > > Thanks, > > Mathieu > > > > On Sun, Jun 29, 2025 at 02:25:09PM -0300, Hiago De Franco wrote: > > > From: Hiago De Franco > > > > > > This patch series depends on Ulf's patches that are currently under > > > review, "pmdomain: Add generic ->sync_state() support to genpd" [1]. > > > Without them, this series is not going to work. > > The series above have been queued for v6.17 in my pmdomain tree. > > Do I have your ack to pick $subject series via my pmdomain tree for > v6.17 too or do you think it's better to postpone to v6.18? > I may have spotted an error condition that is not handled properly in 3/3 of this series. Given that we are already at rc6, it is probably better to way for the next cycle. Thanks for sheperding this work. > Kind regards > Uffe > > > > > > > For the i.MX8X and i.MX8 family SoCs, currently when the remotecore is > > > started by the bootloader and the M core and A core are in the same > > > partition, the driver is not capable to detect the remote core and > > > report the correct state of it. > > > > > > This patch series implement a new function, dev_pm_genpd_is_on(), which > > > returns the power status of a given power domain (M core power domains > > > IMX_SC_R_M4_0_PID0 and IMX_SC_R_M4_0_MU_1A in this case). If it is > > > already powered on, the driver will attach to it. > > > > > > Finally, the imx_rproc_clk_enable() function was also changed to make it > > > return before dev_clk_get() is called, as it currently generates an SCU > > > fault reset if the remote core is already running and the kernel tries > > > to enable the clock again. These changes are a follow up from a v1 sent > > > to imx_rproc [2] and from a reported regression [3]. > > > > > > [1] https://lore.kernel.org/all/20250523134025.75130-1-ulf.hansson@linaro.org/ > > > [2] https://lore.kernel.org/lkml/20250423155131.101473-1-hiagofranco@gmail.com/ > > > [3] https://lore.kernel.org/lkml/20250404141713.ac2ntcsjsf7epdfa@hiago-nb/ > > > > > > v7: > > > - Added Peng reviewed-by. > > > v6: > > > - https://lore.kernel.org/all/20250626215911.5992-1-hiagofranco@gmail.com/ > > > v5: > > > - https://lore.kernel.org/all/20250617193450.183889-1-hiagofranco@gmail.com/ > > > v4: > > > - https://lore.kernel.org/lkml/20250602131906.25751-1-hiagofranco@gmail.com/ > > > v3: > > > - https://lore.kernel.org/all/20250519171514.61974-1-hiagofranco@gmail.com/ > > > v2: > > > - https://lore.kernel.org/lkml/20250507160056.11876-1-hiagofranco@gmail.com/ > > > v1: > > > - https://lore.kernel.org/lkml/20250505154849.64889-1-hiagofranco@gmail.com/ > > > > > > Hiago De Franco (3): > > > pmdomain: core: introduce dev_pm_genpd_is_on() > > > remoteproc: imx_rproc: skip clock enable when M-core is managed by the > > > SCU > > > remoteproc: imx_rproc: detect and attach to pre-booted remote cores > > > > > > drivers/pmdomain/core.c | 33 +++++++++++++++++++++++++++ > > > drivers/remoteproc/imx_rproc.c | 41 ++++++++++++++++++++++++++++------ > > > include/linux/pm_domain.h | 6 +++++ > > > 3 files changed, 73 insertions(+), 7 deletions(-) > > > > > > -- > > > 2.39.5 > > >