Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3863747rdb; Thu, 28 Dec 2023 02:31:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKWgZX3kXdnqanoTPdaCeoOYcA+Z3cnl1I618lg2NYFi352JArcUp3fIlz+L5YaRnxYChE X-Received: by 2002:a05:6808:1454:b0:3b8:b063:9b5d with SMTP id x20-20020a056808145400b003b8b0639b5dmr14990757oiv.79.1703759478926; Thu, 28 Dec 2023 02:31:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703759478; cv=none; d=google.com; s=arc-20160816; b=YVcBwHXBMh1L21qdODA18O29PUwBBEWNoM7vyH4liM3RltJEV74M03dDxbJNVyi4ma noNJ28aLbODv4ousRjqcDEzubjl1RV7y/SfXnjCtB7/klSCwXOhJOsRJPnlDwcPfRmWw PEiSXvD7SC20ShSY+3RumviS5rGF0jAma9FamwIwP6JU95lFW/XMXn9DhAGfK+8Gq78a tGYO4wr2FVVZBO7LFhKKTLjPctTYiqCJD+V7lY5V52+WXFFGZ+sByNur6mLzf8bY4ynU 6Oxlp5bOEDSnvVzKbAmau06Beyum9kVEfGG5qUOFvZw8Xd70aSVkr1cjfkPjwwqJ6NAL Q4HQ== ARC-Message-Signature: i=1; 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=yUFI9MjWt43wcmIdNbUUFJdTudJkwssscftMdJrd7jg=; fh=wVnTCbpNfmfLYz5VmiOSaNbcgR7J5z1SnBZJuxeUFqY=; b=eLykDqPVluvpkBqeV7IgFKckLPlci8FyxJDjkeGRHbrGfhc5lVvneSXWRSUJwe20Oq G27RO+SvvUp3spqeJ2xZM3MQP0rfcvK0KNIb0I/DgAngcMfLlUialky60DnClTbD3PBf bxgp/vvgzh1s1rHgrsKelwsDdOQWvTNRjD3QL+WglPyltz4X3GE3ARPaOVar154MGy1E 3DH/+krGfrnjYNSE7uue0ttOCmNicU6I3tXQ2tCxuXkwRKK9CkKhKZoIk8K51+ZUTQSb SoDMQbRgTeQFmCiWDRsxZddaIoqDTh41zxAza/QyFErUM9JjEgq9El1Lf0/WNysJlavS vnSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h15-20020a0cf20f000000b0067f843ed880si15581177qvk.257.2023.12.28.02.31.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 02:31:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12566-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AB75B1C21DC8 for ; Thu, 28 Dec 2023 10:31:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 002296AB0; Thu, 28 Dec 2023 10:31:13 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E91C980B for ; Thu, 28 Dec 2023 10:31:10 +0000 (UTC) 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 640EE2F4; Thu, 28 Dec 2023 02:31:56 -0800 (PST) Received: from bogus (unknown [10.57.74.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 89A653F5A1; Thu, 28 Dec 2023 02:31:08 -0800 (PST) Date: Thu, 28 Dec 2023 10:28:01 +0000 From: Sudeep Holla To: Konrad Dybcio Cc: Mark Rutland , Sudeep Holla , Lorenzo Pieralisi , Marijn Suijten , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Andersson Subject: Re: [PATCH 2/2] firmware/psci: Set pm_set_resume/suspend_via_firmware() on qcom Message-ID: <20231228102801.fzaubcjq5thfwgxg@bogus> References: <20231227-topic-psci_fw_sus-v1-0-6910add70bf3@linaro.org> <20231227-topic-psci_fw_sus-v1-2-6910add70bf3@linaro.org> 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: <20231227-topic-psci_fw_sus-v1-2-6910add70bf3@linaro.org> On Wed, Dec 27, 2023 at 11:15:31PM +0100, Konrad Dybcio wrote: > Most Qualcomm platforms implementing PSCI (ab)use CPU_SUSPEND for > entering various stages of suspend, across the SoC. These range from a > simple WFI to a full-fledged power collapse of the entire chip > (mostly, anyway). > > Some device drivers are curious to know whether "the firmware" (which is > often assumed to be ACPI) takes care of suspending or resuming the > platform. Set the flag that reports this behavior on the aforementioned > chips. > > Some newer Qualcomm chips ship with firmware that actually advertises > PSCI SYSTEM_SUSPEND, so the compatible list should only grow slightly. > NACK, just use suspend-to-idle if SYSTEM_SUSPEND is not advertised. It is designed for such platforms especially on x86/ACPI which don't advertise Sx states. I see no reason why that doesn't work on ARM platforms as well. -- Regards, Sudeep