Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2183187lqa; Tue, 30 Apr 2024 10:09:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4GFxLDhGnCIrQD8IBvaHQdrvKZCHzirUfC5rkHWbCxELrpdhF9nB6ZtVke4dfbOYsNAERiAUzy1L90Qbmd2FK7S3va+JwAGL9Y58QhA== X-Google-Smtp-Source: AGHT+IHjucoIHTFA5RWuNpu/RAaEiMvcoaCqzWbXTEyQBQ81guazm9F98ZubnNZS1ozgnEshGQ6l X-Received: by 2002:a17:902:e752:b0:1eb:77ed:8fba with SMTP id p18-20020a170902e75200b001eb77ed8fbamr20162plf.17.1714496986838; Tue, 30 Apr 2024 10:09:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714496986; cv=pass; d=google.com; s=arc-20160816; b=r7VCZ/IHVT4+0mpcEuaJ3nk0wAQ+DDNifGQsiVxCEOs9NDAYjti27Gn4TN/nfAHzh2 nk+pqnz6btSl58r5HX9r+zdnNzeloM4t4mprfJivmBgC8kECJA1nyCGKpod9rfPBvQdx LZsFs1SFiV8sh1PMRP+w7GRtpqOm1/rJ5WwVKoBMzD/4d6vRrvZ0AOPPV1lo0tWEABU0 Ph9oW0NeXgerCZzrIFJzBefTFBvXV7phuaJXDYXaD0AtDiMqRBunIX7tLAqOKWBdTMSf AP5VgPgaM36Vvi3of4griSJhWAox0+LHsZ8cL1Wxs4jIGRfU8aUtkU1n9qstyswYWl+/ D8Ow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lCCS2R2FR9/FAipUn7TWN7sN6TdN7DchzvkmF3EICv8=; fh=Xp2pvL1n9eMRR6hQ+MJKTpCpjmGyw4NAsLUz5qyL164=; b=qzmZa8Z3dw+di+NbMxJtEIBlfeS2Zz1m2vTwUC6uV9vfOVuZgyHi9tUgF7+XR2agMO PXL7LOj0i3yNtp8XpbBqJ6M/blCeWjbAe3N8jLm5T5YcF1YqrLviFirxC6PvDMVQtBi/ ONJ7Cdxk+3CHhFQODt54UQ3yNwcpUp4V3d1O4/JY7AC4hk+6geYTPopzuCw89oZxBmVD XNGb6wWRE8GbNYFJTZAOfVQD7Fehn/TGVeTRH9r8QrS1QIdgONWlp2OtFSud71x/JryU kSCE71iKzpx+UOJ/eoz6YW0+NWujSgbFYOBU+x8s1BUJx/AE1nIKPh4x8UARxslZ1QON Gflg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P5yP3jf7; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-164481-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164481-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o15-20020a170902d4cf00b001eb4a615f18si7197582plg.433.2024.04.30.10.09.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 10:09:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164481-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; dkim=pass header.i=@linaro.org header.s=google header.b=P5yP3jf7; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-164481-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164481-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 C82462897E1 for ; Tue, 30 Apr 2024 17:03:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A03B61A38C3; Tue, 30 Apr 2024 16:59:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="P5yP3jf7" Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (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 5981817F396 for ; Tue, 30 Apr 2024 16:59:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714496376; cv=none; b=oCRRBE0DiJW2x7C4ThYLbp+2s9NM9iM/JLpFDK5q8mb8gZQfq4+VNyyDhR9QTZW7M9QWo6jPlPobCv5CZM6GQGuj1t08sihCrojiKCTOuoTMIOCLoy/013JjfXTIZAzODGQJSheYMKIrEFpLM6sJPps7PcWXbB9bBl6tpVU02Lw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714496376; c=relaxed/simple; bh=R+EEWTKUw+xnpu64p6u8Ohkc7r7mBLTm2yumZi8kM6s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nBkwoFGGQo9T7XUPLPvBbsZC4CapploVDezeASUThloDDOUadPVU5M2Q6TN39y1eWmZFFM+Ec8TxbhN6psgHQtl1W8kX4xFn5rLxNQZYbpVj8SWgqZNz4yyZDoppOamQx7zvoPqe+L5/yGTz/zqNTB4IYPcbNIcdIhFo3rTCxp8= 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=P5yP3jf7; arc=none smtp.client-ip=209.85.210.178 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 Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6eced6fd98aso5300946b3a.0 for ; Tue, 30 Apr 2024 09:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714496375; x=1715101175; darn=vger.kernel.org; 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=lCCS2R2FR9/FAipUn7TWN7sN6TdN7DchzvkmF3EICv8=; b=P5yP3jf7IlN8+DN2tuob11AnX8Pl5j95Sa9CNAs95SG/yz1fsRUh6NeKgFpBtIKg8X 5UInm8iAMtcZl7Mvuzk3kKmpUMYVL1pLRNpb+YlhLjTo+worzgvSWn7kGSxsSo22nysJ 7Nk/i9g+JIN/WLyiDBlGhq8Uae7SAhV2+u3Agew2p/Hm11b9kjYqZkCoa4g3H9+EIJsU 6EdDCw3m4SllM5TTuwDR77PXV1I9UAPkC1SHwRc7nIHYx55v+GAy9WekXdHPOBx3qgRJ kCLFRd3AozCSJNBCZRFuVOINkDHTl/wdwNHIFhICP13ttQjrsOyYNTNU+9wCz9DkGi59 p4AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714496375; x=1715101175; 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=lCCS2R2FR9/FAipUn7TWN7sN6TdN7DchzvkmF3EICv8=; b=WbQ2s9SOdaHZlIdz/JuwHwUHn7W3p3+ffXxtk0sELe2bj9CX6iUrHNsgU4Qd/ALWwU k7ngy0L4URo1QnvX+5sYa+0wNRuTQTHKKDHp9q8sk2XAQzPsF4oH46zroJqCgto/JT7n vIxAHzR7EfALX3A8ak2pa65DLEwTJynwj+NFCVrPMie0/xid0+kpJsEVBTIZBgZo1TKT LXCVQaXyFOtsAVvyQAnkf7KwPT1OgOw6xB7oDyd0mrXj49jIkBZrCkvRN+eeA88rRRl7 8qdB+RCWtb6equME7ak+eMh5ehliNsZ1eQ5b4IQ/7h1ErxLCSk2CQKl1Z836I0lOXLqc 5MCA== X-Forwarded-Encrypted: i=1; AJvYcCVDegrNpG6M0rVGIADl7eB/OcnkkrnK8Np/3f3TyqjmnABpFBZNgdcP7BrJtO2bfJNGND99I/CtTxHFK9BmwB7VQ7wqyV4SU/MVtE0B X-Gm-Message-State: AOJu0YxUdxFaCZEXrYuFyX1WZKRVlRG/D7V1433jNC+MVuSJGk5T/VjL UtMMm4qHqQqMLlPK2OduuYrNA4NC8fAJDlxhS46W51PoZAsW2TsKnH3HPHW+HCfemj+r+Lggzqd t X-Received: by 2002:a05:6a00:2448:b0:6ec:f712:8a69 with SMTP id d8-20020a056a00244800b006ecf7128a69mr261943pfj.29.1714496374481; Tue, 30 Apr 2024 09:59:34 -0700 (PDT) Received: from p14s ([2604:3d09:148c:c800:2e09:6862:d789:2631]) by smtp.gmail.com with ESMTPSA id i6-20020aa787c6000000b006e6b52eb59asm21266353pfo.126.2024.04.30.09.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:59:34 -0700 (PDT) Date: Tue, 30 Apr 2024 10:59:31 -0600 From: Mathieu Poirier To: Beleswar Padhi Cc: andersson@kernel.org, s-anna@ti.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, u-kumar1@ti.com, nm@ti.com, devarsht@ti.com, hnagalla@ti.com Subject: Re: [PATCH v3 0/2] remoteproc: k3-r5: Wait for core0 power-up before powering up core1 Message-ID: References: <20240430105307.1190615-1-b-padhi@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240430105307.1190615-1-b-padhi@ti.com> On Tue, Apr 30, 2024 at 04:23:05PM +0530, Beleswar Padhi wrote: > PSC controller has a limitation that it can only power-up the second core > when the first core is in ON state. Power-state for core0 should be equal > to or higher than core1, else the kernel is seen hanging during rproc > loading. > > Make the powering up of cores sequential, by waiting for the current core > to power-up before proceeding to the next core, with a timeout of 2sec. > Add a wait queue event in k3_r5_cluster_rproc_init call, that will wait > for the current core to be released from reset before proceeding with the > next core. > > Also, ensure that core1 can not be powered on before core0 when starting > cores from sysfs. Similarly, ensure that core0 can not be shutdown > before core1 from sysfs. > > v3: Changelog: > 1) Added my own Signed-off-by in PATCH 1, specifying the changes done > 2) Addressed changes requested by adding comments in code in PATCH 1 > > Link to v2: > https://lore.kernel.org/all/20240424130504.494916-1-b-padhi@ti.com/ > > v2: Changelog: > 1) Fixed multi-line comment format > 2) Included root cause of bug in comments > 3) Added a patch to ensure power-up/shutdown is sequential via sysfs > > Link to v1: > https://lore.kernel.org/all/20230906124756.3480579-1-a-nandan@ti.com/ > > Apurva Nandan (1): > remoteproc: k3-r5: Wait for core0 power-up before powering up core1 > > Beleswar Padhi (1): > remoteproc: k3-r5: Do not allow core1 to power up before core0 via > sysfs > > drivers/remoteproc/ti_k3_r5_remoteproc.c | 56 +++++++++++++++++++++++- > 1 file changed, 54 insertions(+), 2 deletions(-) Applied - thanks, Mathieu > > -- > 2.34.1 >