Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3896987rdb; Thu, 28 Dec 2023 03:54:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHceMND99IYSMmJlpPG9Hra3wfdlOLdKGOlZp9KZhPVWV5Yu4lMRMMURAuiTvGY0H8C1pD8 X-Received: by 2002:a05:6512:1328:b0:50e:82e7:912b with SMTP id x40-20020a056512132800b0050e82e7912bmr1422133lfu.138.1703764454619; Thu, 28 Dec 2023 03:54:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703764454; cv=none; d=google.com; s=arc-20160816; b=cXlkM6Dfu7kHtupwegMuI5ci6mkveqrutpgG22f9XRHt/jt6VJGlhoKiuM/qhCsssp by6o4leltuUAyTy2sWmu4UiZsZItsneFfw2sEQde33qRw6fh385UR580rR3dNL7Pl9z8 9dpkLWL6aW80m2UBpCnSnTfwxrvEf41vvatoNsPUMFlF662Li8BSI8gQn0SR13CJyiBI 0R7afMFmh0ajerXZDpaU2pc4zeii5ZXM9pxbNpp1iUjq8gt1cK1+26jk7EXZ2eMBqAX0 sdbw6HsPvQRzNFT10vaxdj4VDdanT11orcU8HqaHbQ8kzmYccpIzazznmvMoPhJeGsit dTWA== 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=yN+vkI381iHtopjOZzDAYDmGQOmBHRU7c+Kow0M8XDo=; fh=wVnTCbpNfmfLYz5VmiOSaNbcgR7J5z1SnBZJuxeUFqY=; b=Ix0OhrQUD0oio/lK7fV142EVMgSApDEsnuyEaua3jUlM4zuJHgPE6epMzKTNr5XASz QJdIzu/LmRkraxNSXQvz/JTB3olK0dKlk0HcTCbEpM1L5zp7iXtEg7BEoGQGtIgL5cIR W2X8UOVy66zpiGlX68x5MqNbCjZKUmHS4ba0GifDJQLajyOIwP7QpFyn94uMT3dItrtA znEKqAdyKmhrMqz69w8IJkpUet6kJzc7HY+tIB1frw4ehDjmCAjBwnOYV5oClIxRpmE+ h0PCWjudg1F1amBby8EKk0+1+M8Fxc2uMq3SWN6ZPhVT520kmggckX4phfpFDLlR2ag8 QerA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12628-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id pv26-20020a170907209a00b00a2352a12fb4si7069309ejb.1017.2023.12.28.03.54.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 03:54:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12628-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5165E1F21396 for ; Thu, 28 Dec 2023 11:54:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D22F79D2; Thu, 28 Dec 2023 11:54:06 +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 E5A6279C6 for ; Thu, 28 Dec 2023 11:54:03 +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 2A2072F4; Thu, 28 Dec 2023 03:54:49 -0800 (PST) Received: from bogus (unknown [10.57.74.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 71CFC3F5A1; Thu, 28 Dec 2023 03:54:01 -0800 (PST) Date: Thu, 28 Dec 2023 11:50:53 +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: <20231228115053.zlypgc5uxxvghi4a@bogus> References: <20231227-topic-psci_fw_sus-v1-0-6910add70bf3@linaro.org> <20231227-topic-psci_fw_sus-v1-2-6910add70bf3@linaro.org> <20231228102801.fzaubcjq5thfwgxg@bogus> 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 Thu, Dec 28, 2023 at 12:47:51PM +0100, Konrad Dybcio wrote: > On 28.12.2023 11:28, Sudeep Holla wrote: > > 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. > > Not sure if I got the message through well, but the bottom line is, on > Qualcomm platforms the "idle" states aren't actually just "idle" (read: > they're not like S0ix). All but the most shallow ones shut down quite a > chunk of the entire SoC, with the lowest ones being essentially S3 with > power being cut off from the entire chip, except for the memory rail. > No I understood that and S2I is exactly what you need. Have you checked if S2I already works as intended on these platforms ? What extra do you achieve with this hack by advertising fake S2R ? S2I will have less latency compared to S2R and the mem_sleep will be automatically set to S2I if S2R is not supported, so no userspace impact as well. So please let us know what this change provide extra over S2I ? Until then my NACK still stands. -- Regards, Sudeep