From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 00244CA0EE0 for ; Fri, 30 Aug 2024 05:46:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:CC:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=v5j0W8rMVLi7gb2W/LeZtE4q2VahruXBxMCiU7WwVGk=; b=aMzmning8cQEn0f9tmON3iNDtx j7lrEo0zQt/D7UXUlSvthSiQOfNVSYal/T3aIrldXYQNN2r7g1oqgXHAdf4Ttiu1iHgjqq/IwAeTn t+Sl2n0nykbj9iLpkteY7u1V8tA3CCaXwsP62PvinGnXUQIRFfoihRyUaawle3aw7kIKqIvqIV9ql j/kZr6FcuHWNXXk8SQH1VoSZ1/nHaG6KdtCtRyOGVIHhw4SlRTgUCJ7U7GtaAO4aH5lAh7ER5H36U 1S5JzrRU0q6NA92YQ4PWfgP/nPOMzue2ZoElNKTDwPwBcaH/pS08tzfCnuJxyXU2xQutJ8RDQr3BP 71qxhhwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjuSU-00000004qcP-1FtB; Fri, 30 Aug 2024 05:46:06 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjtMF-00000004fcF-0Afo for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 04:35:36 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 47U4ZUo3083552; Thu, 29 Aug 2024 23:35:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1724992530; bh=v5j0W8rMVLi7gb2W/LeZtE4q2VahruXBxMCiU7WwVGk=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=jalR//3kcMQrp2HAz0AYG0df2uYXq+S/zssZ3/VQGVUBuS4JHWGxgTi567hpTrVR2 JptWLG8X3ieNX1F4RKWtNKlnwTKxsrkV7z788yqhi5i6hnvclNtw9jgNAklNypMHNv 5xYbjEf5qs36QuckjqXMPf7lhJuuaUjxsJYfqBM8= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTP id 47U4ZU9h041646; Thu, 29 Aug 2024 23:35:30 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 29 Aug 2024 23:35:30 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 29 Aug 2024 23:35:30 -0500 Received: from localhost (lcpd911.dhcp.ti.com [172.24.227.68]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 47U4ZTqU113945; Thu, 29 Aug 2024 23:35:29 -0500 Date: Fri, 30 Aug 2024 10:05:29 +0530 From: Dhruva Gole To: Markus Schneider-Pargmann CC: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Vibhore Vardhan , Kevin Hilman , , , Akashdeep Kaur Subject: Re: [PATCH v11 3/4] firmware: ti_sci: Introduce Power Management Ops Message-ID: <20240830043529.a2lsvazchc3onrzi@lcpd911> References: <20240829201606.1407773-1-msp@baylibre.com> <20240829201606.1407773-4-msp@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240829201606.1407773-4-msp@baylibre.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240829_213535_213970_2514A3EA X-CRM114-Status: GOOD ( 13.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Aug 29, 2024 at 22:16:04 +0200, Markus Schneider-Pargmann wrote: > From: Dave Gerlach > > Introduce power management ops supported by the TISCI > Low Power Mode API [1]. > > 1) TISCI_MSG_LPM_WAKE_REASON > Get which wake up source woke the SoC from Low Power Mode. > The wake up source IDs will be common for all K3 platforms. > > 2) TISCI_MSG_LPM_SET_DEVICE_CONSTRAINT > Set LPM constraint on behalf of a device. By setting a constraint, the > device ensures that it will not be powered off or reset in the selected > mode. > > 3) TISCI_MSG_LPM_SET_LATENCY_CONSTRAINT > Set LPM resume latency constraint. By setting a constraint, the host > ensures that the resume time from selected mode will be less than the > constraint value. > > [1] https://software-dl.ti.com/tisci/esd/latest/2_tisci_msgs/pm/lpm.html > > Signed-off-by: Dave Gerlach > [g-vlaev@ti.com: LPM_WAKE_REASON and IO_ISOLATION support] > Signed-off-by: Georgi Vlaev > [a-kaur@ti.com: SET_DEVICE_CONSTRAINT support] > Signed-off-by: Akashdeep Kaur > [vibhore@ti.com: SET_LATENCY_CONSTRAINT support] > Signed-off-by: Vibhore Vardhan > Signed-off-by: Kevin Hilman > Reviewed-by: Akashdeep Kaur > Tested-by: Dhruva Gole > Signed-off-by: Markus Schneider-Pargmann > --- > drivers/firmware/ti_sci.c | 198 +++++++++++++++++++++++++ > drivers/firmware/ti_sci.h | 76 ++++++++++ > include/linux/soc/ti/ti_sci_protocol.h | 26 ++++ > 3 files changed, 300 insertions(+) > LGTM, Acked-by: Dhruva Gole -- Best regards, Dhruva Gole Texas Instruments Incorporated