Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp205968lqg; Fri, 1 Mar 2024 02:47:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV9FbtWVDMkPY/YQempbV00LRMK3UA0hXaFe/whieiUHymQhl7dqTlGFuQTVESCGO8sBuJt0dVvTiRxGUCVdEw6P+UDcbhpGLwDfVOTww== X-Google-Smtp-Source: AGHT+IHLT9ML43EBxdkEBbd83T74t+v8eEY6LX/S1TaUBAci1ZKsT5sLMRYhQBC97h8PD1Kx23ze X-Received: by 2002:a05:6870:d111:b0:220:8989:2ab9 with SMTP id e17-20020a056870d11100b0022089892ab9mr1300715oac.13.1709290044108; Fri, 01 Mar 2024 02:47:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709290044; cv=pass; d=google.com; s=arc-20160816; b=lpAtICdt4o0E9ZO3KxclujuBNxDJGDpbYsh65sKZ864Cuh7vGI/ax2lrtNEe/lUbfx yalaAF+F0AMdpmKZ+KYR+6UbaP9ILO69Kln2KhJ4lgpIkn1Hkl0mnxtrycgq10O60ADY hMgWuQN3/+TBFJsT16IO2chCKrs1vw3PcVCkq2txt8oNeuqdfJz9QAhHfBRaOD4418st xqsgkTi3dhx9cUnOygYE1pSAOqOzoezfGonspcto2A7munzMA0+g95sxkPdyIqOGpjY6 QibujbFuSqTLJM+yS9JfrdkHkmH4Z0QjyfqfI2nLuTxwS1EgJX9t02NKi3lUzvH2p59P BSiw== 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; bh=PBiJ3pqPKHP/oQm1hscjnyy1UIHHIgwMEMvnL+JYcQw=; fh=TM+2ptkyE39uIivNFcGMtiI3jnc+BUVYgxGxLeDETqg=; b=N6HvhgIqLDnQr8ZQa3d/ctNM6DZ68ZT42VpWDQT2QUgS5/igmFWzZrVsfCsPrpkDsD zKwHUXFx8BHg613BlNJeIISswes52kWVO7x6sihJAyyKwBfJvxZtjT2JsXHcQlcem+Rz q4I+CpoVzu7DCXFz/BByi60LkypuNrVWqagVMS3T/k8sORON9GZqjUDHrasCtxRdiNYB 1e71j5/lHNlSxrcHr2RmP+uD0QzYo3qbeIPrDbJYzHsKZppEZxcB8Ds0zb07aJtbifWM BAWJ9nwDcEEurxL2h7zRPUU1blhomOGSKoNOXPpRj//0rynBh9zol0VLYzqLhHl2DC44 LeMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-88281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 19-20020a631753000000b005cdf9c9b7e3si3289520pgx.179.2024.03.01.02.47.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 02:47:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-88281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0106AB226E2 for ; Fri, 1 Mar 2024 10:47:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 591C66BFA8; Fri, 1 Mar 2024 10:46:55 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F5C72E842; Fri, 1 Mar 2024 10:46:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709290014; cv=none; b=V8TS/DNbI04XO6yhGs5xOg5fdrOu86fkQKF1BsguZT7ftM7Yxt/iKx22Du7EZQFvaWHS/g/YXopiCVFvH1qTpY+IeacV2vqi8+IliY1F0BGj2JKxCR7ScGRoVuXFxilmwTmvBleTWIeConV3/8F6eEv4WGSjSXSVnDOzzW7oelM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709290014; c=relaxed/simple; bh=UN5sHJ7QXFagmdwLEF68zP/JsL2TgCa2jDMBQq1FBn4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E50qfbQ4QdMpOxtUt8eNtl166et2SdOQ0rbRBmAOs5/ab+b/2N8+iX5mboZ4zWImBpUAlkeo3OqnvlFQQwxOlIycISFuEpB7oAx99eP07hlLoUbLymCUKOK8nLGhyJVBS2EZN0626Ux1sc7rVSV+4bM6fyA0Xs1D7UyZ+9pl+Sk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E05AB1FB; Fri, 1 Mar 2024 02:47:30 -0800 (PST) Received: from pluto (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 668A93F762; Fri, 1 Mar 2024 02:46:51 -0800 (PST) Date: Fri, 1 Mar 2024 10:46:41 +0000 From: Cristian Marussi To: Peng Fan Cc: Sudeep Holla , "Peng Fan (OSS)" , "robh@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] dt-bindings: firmware: arm,scmi: support system power protocol Message-ID: References: <20240226130243.3820915-1-peng.fan@oss.nxp.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: On Fri, Mar 01, 2024 at 10:37:49AM +0000, Cristian Marussi wrote: > On Fri, Mar 01, 2024 at 09:22:24AM +0000, Peng Fan wrote: > > > Subject: Re: [PATCH] dt-bindings: firmware: arm,scmi: support system power > > > protocol > > > > > > On Fri, Mar 01, 2024 at 12:41:29AM +0000, Peng Fan wrote: > > > > > Subject: Re: [PATCH] dt-bindings: firmware: arm,scmi: support system > > > > > power protocol > > > > > > > > > > On Tue, Feb 27, 2024 at 01:01:41AM +0000, Peng Fan wrote: > > > > > > > Subject: Re: [PATCH] dt-bindings: firmware: arm,scmi: support > > > > > > > system power protocol > > > > > > > > > > > > > > On Mon, Feb 26, 2024 at 01:28:31PM +0000, Cristian Marussi wrote: > > > > > > > > On Mon, Feb 26, 2024 at 09:02:43PM +0800, Peng Fan (OSS) wrote: > > > > > > > > > From: Peng Fan > > > > > > > > > > > > > > > > > > Add SCMI System Power Protocol bindings, and the protocol id is > > > 0x12. > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > yes this is something I spotted in the past it was missing and > > > > > > > > I posted a similar patch but I was told that a protocol node > > > > > > > > without any specific additional properties is already being > > > > > > > > described by the general protocol node described above. > > > > > > > > > > > > Without this patch, there is dtbs_check warning. > > > > > > > > > > > > scmi: 'protocol@12' does not match any of the regexes: 'pinctrl-[0-9]+' > > > > > > from schema $id: > > > > > > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fd > > > > > > > > > evic%2F&data=05%7C02%7Cpeng.fan%40nxp.com%7C3ef5d152a8e5463e9b > > > 3408 > > > > > > > > > dc39c47e41%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63844 > > > 87632 > > > > > > > > > 86203182%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoi > > > V2luM > > > > > > > > > zIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=kRBV9FPk6 > > > Nrgu > > > > > > Hs2SHpL74VlNUH6cYO1kAsW74CkaTk%3D&reserved=0 > > > > > > > > > > > > > > etree.org%2Fschemas%2Ffirmware%2Farm%2Cscmi.yaml%23&data=05%7C0 > > > > > 2%7Cpen > > > > > > > > > > > > > > g.fan%40nxp.com%7Ccac77deb5f6a4b20460a08dc392ead40%7C686ea1d3b > > > > > c2b4c6fa > > > > > > > > > > > > > > 92cd99c5c301635%7C0%7C0%7C638448119832543335%7CUnknown%7CT > > > > > WFpbGZsb3d8e > > > > > > > > > > > > > > yJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D > > > > > %7C0% > > > > > > > > > > > > > > 7C%7C%7C&sdata=6MldIOUQ4hxn%2BRffwJJJ3jxXXtHCSxLUOa4JMWB0htU% > > > > > 3D&reserv > > > > > > ed=0 > > > > > > > > > > > > > > > > Why are you adding protocol@12 to the device tree ? Does it have a > > > > > dedicated channel ? If not, you shouldn't need to add it. > > > > > > > > No dedicated channel. > > > > The idea is we have multile Agent, the M7 agent may ask to shutdown > > > > Linux Agent. So the linux agent need use protocol@12 to do the action. > > > > > > > > > > Ok, so indeed you need, AFAICR, the node in the DT even without a dedicated > > > channel nor anynone referring it: no DT node means no protocol initialization. > > > > Yeah, so this binding update is needed, right? > > > > > > > > > For now, we have not finish implementing this in linux side, just add > > > > the node in dts. > > > > > > On the linux side you should not need to do anything but adding the node > > > @12, the existent drivers/firmware/arm_scmi/system_power_control.c > > > driver when loaded will shutdown the system upon receiving the > > > SytemPower notification....what lacks Linux side in these regards ? > > > > " Ignoring unsupported system_state:" we have new defined > > number here. > > > > So I suppose you are using the Vendor defined system states and writing > your own driver to handle these instead of system_power_control ? Or some vendor extensions to the std driver ? IOW what is the plan...custom vendor states was left out from system_power_control waiting for a real usecase...that seems to have shown up eventually :D Thanks, Cristian