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 1BE24CA0EE4 for ; Fri, 30 Aug 2024 04:31:12 +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=41xMG3qhDMXgrisGkZ7YqvIT0lqH6fleXZV4RA17Ubc=; b=u9dQyOqN2C4kkKSs/QtvEZOm4c RCjrwRlNPEq66nRs177u9R41D7vnJrXo9VsticUVHrK8Ty402bYszguzyEOr80mKUuS8DCFahs4Y2 +YcDPIIpUtftgpv1jd79ExjrRWhn8GIBqGqDq/l81mCKZp2vrNkh4ubD1KzeqFY4ntU7IZ8hRvyZS SLBGSzgSqcSoO9OZuLXbadLO+F1SrY1ffkEha32CnGQzOvDX+a10fA1FwvV8olUPPV16gJc811XL9 Wl8uWwZreXwTCfqmzEFAp+PfwgPxgogm9eptPxP3SCLf/HBnaK6fzj22c33X85rHtQZvGynHDAHE1 3XYfhkPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjtHo-00000004f9h-346Z; Fri, 30 Aug 2024 04:31:00 +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 1sjtGv-00000004ezU-3Lxl for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 04:30:08 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 47U4Txq0082333; Thu, 29 Aug 2024 23:29:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1724992199; bh=41xMG3qhDMXgrisGkZ7YqvIT0lqH6fleXZV4RA17Ubc=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=Sxqj3D2j92rN5Yt5cbNG+ecBQh8/DZpp4GKsAYtgkQClelwFoamLtDkf5oR/amE84 I3jznRt0vgcOzM1wMWX30L4XJXB0TCROdK4O1SxbP0MGcwcFY/u+lpMxmDzu+lj0dn e/pN4ADkSAApHQVwkIZeGUjIxUbDBjgEeYke7y9M= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 47U4TxlW121167 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 29 Aug 2024 23:29:59 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE103.ent.ti.com (157.170.170.33) 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:29:59 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE114.ent.ti.com (157.170.170.25) 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:29:59 -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 47U4Twu6107767; Thu, 29 Aug 2024 23:29:58 -0500 Date: Fri, 30 Aug 2024 09:59:58 +0530 From: Dhruva Gole To: Markus Schneider-Pargmann CC: Nishanth Menon , Tero Kristo , "Santosh Shilimkar" , Vibhore Vardhan , "Kevin Hilman" , , , Georgi Vlaev Subject: Re: [PATCH v11 1/4] firmware: ti_sci: Add support for querying the firmware caps Message-ID: <20240830042958.33d35pfos7uv4wqb@lcpd911> References: <20240829201606.1407773-1-msp@baylibre.com> <20240829201606.1407773-2-msp@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240829201606.1407773-2-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_213006_058261_4C03DB03 X-CRM114-Status: GOOD ( 18.54 ) 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:02 +0200, Markus Schneider-Pargmann wrote: > From: Georgi Vlaev > > Add support for the TISCI_MSG_QUERY_FW_CAPS message, used to retrieve > the firmware capabilities of the currently running system firmware. The > message belongs to the TISCI general core message API [1] and is > available in SysFW version 08.04.03 and above. Currently, the message is > supported on devices with split architecture of the system firmware (DM > + TIFS) like AM62x. Old revisions or not yet supported platforms will > NACK this request. > > We're using this message locally in ti_sci.c to get the low power > features of the FW/SoC. As there's no other kernel consumers yet, this > is not added to struct ti_sci_core_ops. > > Sysfw version >= 10.00.04 support LPM_DM_MANAGED capability [2], where > Device Mgr firmware now manages which low power mode is chosen. Going > forward, this is the default configuration supported for TI AM62 family > of devices. The state chosen by the DM can be influenced by sending > constraints using the new LPM constraint APIs. > > [1] https://software-dl.ti.com/tisci/esd/latest/2_tisci_msgs/general/core.html > [2] https://software-dl.ti.com/tisci/esd/latest/2_tisci_msgs/general/core.html#tisci-msg-query-fw-caps > > Signed-off-by: Georgi Vlaev > [vibhore@ti.com: Support for LPM_DM_MANAGED mode] > Signed-off-by: Vibhore Vardhan > Signed-off-by: Kevin Hilman > Tested-by: Dhruva Gole > Signed-off-by: Markus Schneider-Pargmann > --- > drivers/firmware/ti_sci.c | 74 ++++++++++++++++++++++++++++++++++++++- > drivers/firmware/ti_sci.h | 22 ++++++++++++ > 2 files changed, 95 insertions(+), 1 deletion(-) > [..snip..] No remaining concerns, Acked-by: Dhruva Gole -- Best regards, Dhruva Gole Texas Instruments Incorporated