Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1845282pxb; Sat, 23 Apr 2022 19:44:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfLTAXAw6/l4rv/EnY5G5QG1y6xXGRPd1qmImLfW4Ue3uHGuYcv33WRqFbKdNVifB40WTr X-Received: by 2002:a05:6402:1247:b0:41d:7932:30d with SMTP id l7-20020a056402124700b0041d7932030dmr12511274edw.2.1650768259888; Sat, 23 Apr 2022 19:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650768259; cv=none; d=google.com; s=arc-20160816; b=T1bipxN3QzkfjLhYQ1A60v5ikdq0zrLLbMDl0/8rpfuuTrAT7poBDdUK+EKOQ3qBYP kEwacG8bJN2emYcH7FIx2tzeeSaQaw9HTAkkKI79UXeA2Ns2UGs3s9fg+H5mQ3Oy3fpQ mbcSy1bAzehdBjI6JPXAkBk+0y2AoVmAsn0HLPjKsX9YTnZrEIJSL5XEorxaRo+Sev9i mH69Dv+zJtLxLxqX98QfK5Sww6pIDcxLK85QYm67wErz2M6tDyaasRf9urS7by3hnv8P Zq9wBZz59l8qaGKPY0MsOrfqSR54yVGyzBo2tbFeP0C1RSoXZilDG+HvZB0wcmcY2peM oasQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nZTG/Z0Q88uNNqF3Re5+dg/49/Y1ijjfTIsuMEzSTv0=; b=MbgebXMIQHOeTJEyB4M9jusIF1GZdqnSlNpcae2guZahC2CAql4jIz6pBJaaTELv+I TK2ON/cZWaTWUX8UpTBCVxenATmVZuIKo6ArftDaAatDplpm5WVtLFV/tgDAuXaLwRQ2 /AVOJM+HziU5EXlrGmAfsrd4KPQ6UHBnIdSyKUX8Ld5VG00bTnuQzqhd6uHou7yqdkSt pZryztk0dsdd3j8slNCG14Ah6Pym23jy1yt09IRyBnxT8kM1f+80yHg4W7E/zXbh8pOL cvdulojiodR/3eD9ZzEqqLVAagZPB8pMVfVmY7VYLTuY6dcs/1Rmou1Er4g7Fz6NY4Lz Uy9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eGQWfOwg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz13-20020a0564021d4d00b0041d9354ecacsi11969857edb.222.2022.04.23.19.43.56; Sat, 23 Apr 2022 19:44:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eGQWfOwg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232596AbiDWNj5 (ORCPT + 99 others); Sat, 23 Apr 2022 09:39:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232261AbiDWNjz (ORCPT ); Sat, 23 Apr 2022 09:39:55 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A13C13C3D4; Sat, 23 Apr 2022 06:36:58 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 23NDantv090290; Sat, 23 Apr 2022 08:36:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1650721009; bh=nZTG/Z0Q88uNNqF3Re5+dg/49/Y1ijjfTIsuMEzSTv0=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=eGQWfOwgHyNFWjmKht2gVt2Aaug+qkU96Ms9xiIpdYsYmd6Atn+euDHGj7OkGNC0h na1bU9wJ+3Vmf5PTkqgfqlz/DD+zYsLEMqLlr3sbku55JHG8R7iYRCifmA3fWsC4TZ +uO0q1VWRvQdOLFJnjWS1w/JaKJHWexmT1NRmfkw= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23NDanjW006077 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 23 Apr 2022 08:36:49 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Sat, 23 Apr 2022 08:36:48 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Sat, 23 Apr 2022 08:36:48 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 23NDansj015117; Sat, 23 Apr 2022 08:36:49 -0500 Date: Sat, 23 Apr 2022 08:36:48 -0500 From: Nishanth Menon To: Dave Gerlach CC: Andrew Davis , Rob Herring , Santosh Shilimkar , Krzysztof Kozlowski , Tero Kristo , , , , Vignesh Raghavendra Subject: Re: [PATCH 1/6] dt-bindings: ti,sci: Add ti,ctx-memory-region property Message-ID: <20220423133648.jlkeyfq7gjbwij5l@bonelike> References: <20220421203659.27853-1-d-gerlach@ti.com> <20220421203659.27853-2-d-gerlach@ti.com> <2528be71-ca3f-566b-4769-36063c98ee0e@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <2528be71-ca3f-566b-4769-36063c98ee0e@ti.com> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14:10-20220422, Dave Gerlach wrote: > Hi, > > On 4/22/22 14:02, Andrew Davis wrote: > > On 4/21/22 3:36 PM, Dave Gerlach wrote: > >> Add documentation for the ti,ctx-memory-region property which is a > >> phandle to a reserved-memory carveout to be used by the ti_sci driver > >> storage of low power mode memory context. This is optional for normal > >> system operation but required to enabled suspend-to-mem usage of Deep > >> Sleep state. > >> > >> Signed-off-by: Dave Gerlach > >> --- > >> .../devicetree/bindings/arm/keystone/ti,sci.yaml | 9 +++++++++ > >> 1 file changed, 9 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml b/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml > >> index 34f5f877d444..ec88aa88a2a0 100644 > >> --- a/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml > >> +++ b/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml > >> @@ -61,6 +61,15 @@ properties: > >> mboxes: > >> minItems: 2 > >> > >> + ti,ctx-memory-region: > >> + description: > >> + Phandle to the reserved memory node to be associated with the > >> + ti-sci device, to be used for saving low power context. The > >> + reserved memory node should be a carveout node, and should > >> + be defined as per the bindings in > >> + Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml > >> + $ref: /schemas/types.yaml#/definitions/string > >> + > > > > > > Why does this have to be yet another reserved carveout region, > > should be dynamically allocated. > > > > This must be a fixed address in order to support other low power modes > which have not yet been introduced. Please elaborate the need - Many of our devices, esp the AM62 class ones are memory constrained devices - LPM states are controlled entry states, why should we loose a chunk of DDR in operational state while waiting for the suspend or idle state to be invoked? OR, is the argument is as follows: - need a guarenteed memory for me to enter low power and not be dependent on availability on attempt. - Latency overhead of allocation during a "hot path" such as cpu idle, this is completely unacceptable? or something of that form.. please elaborate? -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D