Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1935097lqp; Tue, 16 Apr 2024 02:14:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXH3Ppl5IzMj6c16bt7sZisUaZ6wBSc67xvTxKouQubZatotIjLRp3PzGZa85OCXEE7PjRzUXfvBddgm3EKhomNTecOLsQu2zr39WxZ2w== X-Google-Smtp-Source: AGHT+IEsow9gPtF6EKR3KDj83Dlu1XuttxfmP0K/fbtq8mdUeFrrlOjJXA4aoCEKE6qEKVe/Uj3d X-Received: by 2002:a05:622a:241:b0:436:a3c2:e3b4 with SMTP id c1-20020a05622a024100b00436a3c2e3b4mr11699611qtx.5.1713258857451; Tue, 16 Apr 2024 02:14:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713258857; cv=pass; d=google.com; s=arc-20160816; b=cJ30j2OxTOgYcqyWMoZZ1Gtd7aeVSlBa2lcJzdl0RfGRIENS8V73zP8+N7c0gQbNHN +4eE4zer/gmyHaTUbvhaGzW6q/X9GbIxqoR+JK8NDf59+JBrMiksl4Ldm9IvJ28ywx73 AZPkTxgLrA66utNGL22nDIVFSj5flS0hap6U2L6LvJoJ2o57Ruev3or9Fr5zmnw8NSk4 qtVmiVe/p2wPfc+tKoWnJd0PnIXQ7QsDtViJcmI4eq54EoVggrYzCL0+iKlaoIT4vXaC VTNrygZdHRNgMV84vd7g9W/BbeJnRA1i/3ZlU+3EzaZ6Xb6JkYeo/XCaLW8m5PAnQu6U j2zQ== ARC-Message-Signature: i=2; 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=KTuyumpp1XumBHUYrVePJacAJFTkqwKUDCBVW5u3+yg=; fh=lCwlr1IQ5lO8jRU2kdfjyY0kOUI0/CQY4DQ/GDloduQ=; b=qd6rWyPlV2GIW8URSrcqnjqQxP/RJgUBcK5rQ4DzBoYpUuYTrOYxbOIdUOwmVGjX4o t6KvngUyMgav37616LNXqrVwUrC/FAafYudVUn3wZycKCahC/aYOwYaeMXwrK9ZVExRo IgJhlpetMqAUZgRXoI/m21Fr+UGMk5u8522auzJiJSY1sx4cGTzngzm5xQQULjMxO0On gP7lMoUmszQejLP7e8Q/FUYMEuVQnRMvi12PgbcEVKxlUezYptO08GOn5V1dicn3R2Hc spYt++GPgOv8GmLN1sDHI/8u8Z1Dodg0Tgu+AABIe3CkOJ+LZBb1EHhljJrimSDIx+Qv +IRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-146543-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146543-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 c5-20020a05622a024500b004370db3d3fesi3908831qtx.727.2024.04.16.02.14.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 02:14:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146543-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-146543-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146543-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 818121C228A3 for ; Tue, 16 Apr 2024 09:14:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2858F85260; Tue, 16 Apr 2024 09:14:11 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E47F0205E10 for ; Tue, 16 Apr 2024 09:14:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713258850; cv=none; b=mpHcBJKYpxQ080IUVuzx83rg/HmwVMmQUwIsU22Q6rO2GvxEdXQyDCp+EmFYRPagAsIL/FZFMwizrVblNqFCc4mafak/qBA29fVkwsPlFxkmri8PbaOwniPz9M1tTL79iYsJenQueX4+zftxGdUKMal4BtDkur88nZxrDr+auD8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713258850; c=relaxed/simple; bh=SLnMlc+/eK00EmnxeOI7j3/d57CnaPFNk93KmLlRKTE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lXB7sUTbxb/aIGmilWsCqbgwb6Zn0rkuasF/LDjor/MkvM4bt0L74fCrrUWesxdIS4YW5oOuxWeuWZSgqw9Cmd8yNhpt0OFrLFBDFWRbEaImw/6REQLCncKGJy8CK4BVIDQ6aFFH9ib23tOJHffsSuAsHAwZSrtmlQkA/KzYFAU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 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 4D6D5339; Tue, 16 Apr 2024 02:14:36 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 37B373F792; Tue, 16 Apr 2024 02:14:07 -0700 (PDT) Date: Tue, 16 Apr 2024 10:14:04 +0100 From: Sudeep Holla To: "Peng Fan (OSS)" Cc: cristian.marussi@arm.com, linux-arm-kernel@lists.infradead.org, Sudeep Holla , linux-kernel@vger.kernel.org, Peng Fan Subject: Re: [PATCH] firmware: arm_scmi: power_control: support suspend command Message-ID: References: <20240415101141.1591112-1-peng.fan@oss.nxp.com> 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: <20240415101141.1591112-1-peng.fan@oss.nxp.com> On Mon, Apr 15, 2024 at 06:11:41PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > Support System suspend notification. Using a work struct to call > pm_suspend. There is no way to pass suspend level to pm_suspend, > so use MEM as of now. > While the change itself is simple and no-controversial, I am bit worried about: 1. The choice of S2R(MEM) by default - not sure if different system prefer different things. The userspace can configure whatever default behaviour expected as S2R IIUC, so should be OK. I need to check though. 2. The userspace needs to keep the wakeup source enabled always which I need to check if it is feasible on all the platforms. If wakeups are not configured properly and suspend is triggered, the system can never resume back. We may need to mention above points at-least as part of commit log. I would wait for some feedback from SCMI users. -- Regards, Sudeep