Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1280103lqp; Fri, 22 Mar 2024 10:09:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUB9gtKfF9vamQDqN1JaobjIJXS2G8U7PBgqcNDGr5DqsIW5PSwu8qMZfDJX1Z/3Zdmysvexvha35nEyfbnklwcZKzn/iFU2BAmEr7axg== X-Google-Smtp-Source: AGHT+IFPrfPAMboaN0TZqHmxeGytKJXRsk/mF42jId4UopbCB1Zv15QG0sQCJpUzMtec5twz+yEL X-Received: by 2002:a17:902:74cb:b0:1e0:36e:2bb1 with SMTP id f11-20020a17090274cb00b001e0036e2bb1mr367716plt.67.1711127389626; Fri, 22 Mar 2024 10:09:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711127389; cv=pass; d=google.com; s=arc-20160816; b=rZQsfdYC6v/0dtIAT3kHMEXVKiAdpOUUTDJKMUT+mfvs23IG+QLSJpCxPO3VeDsyPP S666ppK8VYKPY3MQtkEwarLajKYMGZwenvZ/LmBe8dNO0pY8fPpk1K3R9sah0KU682gt EtJJ41tR6NO7YlHYAq15FOSe42wVBRk55UWM/bDO6Ue8eDfmp0WUBODNsgq5g3Q/lEJP 8pKyuugBSaRv/KAhUZdLzi090ttVHVrzIq/tzvqXK1sLlwRKqciFevVO+eZlb4iEbRzl Bm8F75LAzin3d0bUnoIqRSFICcp6ZYYUuv/agiVn3UDmfeHGTzQuO5FCYCbVJCsFcLAv jQBA== 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=Yg9TYkZ9Y2BbQwjiVuO/64dPRb1+HC0Y5HucB6MEQAE=; fh=Y7uh8P1H7THmJC0WG5Sl8rVeJL9TmPcnCKXXA4kBNNM=; b=PyedNM8/LDyCWFzMz5tCZ1UobgRAAH5eNXj8YVeZ6g7Dut+fLcnFriAMELF87rfsSo feqA618iOIpsnbkT2EWIBsAmOosXzlum/YFu+Ul9ea7BvzsaXxf6qWAOpFwTk0CyPvQX 1phGsff+stDbu0vnL18qYWHu8cqCGZHtl7BjV4yDrqDQp0XP2a86cZyJxrHMqQ92Hb9C qz7Zst+4Oz/jo72Kgv20lbQnJoQNQ8mYu3VBH7u3Ge1w89f8vthbko5KgcLdBVX84tz7 XvOqvZA3bGFP2R6nVtbUdA3eCNOcUPixBMcLMWLHtciC1RpS1S6S9AxbUhARuboqY/v6 81kg==; 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-111848-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111848-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d15-20020a170902654f00b001e003c4fac4si2202362pln.309.2024.03.22.10.09.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 10:09:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111848-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-111848-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111848-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1B6042847AE for ; Fri, 22 Mar 2024 17:08:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EB7B5FBAC; Fri, 22 Mar 2024 17:08:41 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 428D857875; Fri, 22 Mar 2024 17:08:39 +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=1711127320; cv=none; b=ftHfNboG47kg00f89smO0E7uUA+Zn8fbC/2EOGOwNBMzhXjmSPI4K7LDOsAZMta1LpOZ1bUI8fO5M/goKCYrGoztVx/ku92N2RwuX6yYPRnTCBSmR92NvSuQth2GxzlvL81iVSjO3dD1oIM7lPVxOBf98AL3bCZ1bur0d6jb2tc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711127320; c=relaxed/simple; bh=rUMg9wwIpGTFQYHeRWFvoWGZrl4+3gIHbAdaODaQlcc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WiUEvTyvYR+nSUNToUsdapfl6NOBVJ6TgG9UFuC88kRbJF+sOXJ38LwFgDBQ9Hhcn32+IfYjN+ml50L7gR8XdKR+9yBAE3fMfn2BEQDzpwWCchXcwcRjWRuJcIvABrbSX5cuEQ5DVaIPnVxNxzDDk8LFrS3oSc4E2vrwjNsukz8= 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 D7CD7FEC; Fri, 22 Mar 2024 10:09:12 -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 C69BE3F67D; Fri, 22 Mar 2024 10:08:35 -0700 (PDT) Date: Fri, 22 Mar 2024 17:08:33 +0000 From: Sudeep Holla To: David Woodhouse Cc: Marc Zyngier , linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, Paolo Bonzini , Sudeep Holla , Jonathan Corbet , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Mark Rutland , Lorenzo Pieralisi , "Rafael J. Wysocki" , Len Brown , Pavel Machek , Mostafa Saleh , Jean-Philippe Brucker , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, linux-pm@vger.kernel.org Subject: Re: [RFC PATCH v3 5/5] arm64: Use SYSTEM_OFF2 PSCI call to power off for hibernate Message-ID: References: <20240319130957.1050637-1-dwmw2@infradead.org> <20240319130957.1050637-6-dwmw2@infradead.org> <86jzluz24b.wl-maz@kernel.org> <9efb39597fa7b36b6c4202ab73fae6610194e45e.camel@infradead.org> <86edc2z0hs.wl-maz@kernel.org> <12bc0c787fc20e1a3f5dc2588a2712d996ac6d38.camel@infradead.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: <12bc0c787fc20e1a3f5dc2588a2712d996ac6d38.camel@infradead.org> On Fri, Mar 22, 2024 at 04:55:04PM +0000, David Woodhouse wrote: > On Fri, 2024-03-22 at 16:37 +0000, Marc Zyngier wrote: > > > > I agree that nothing really breaks, but I also hold the view that > > broken firmware implementations should be given the finger, specially > > given that you have done this work *ahead* of the spec. I would really > > like this to fail immediately on these and not even try to suspend. > > > > With that in mind, if doesn't really matter whether HIBERNATE_OFF is > > mandatory or not. We really should check for it and pretend it doesn't > > exist if the correct flag isn't set. > > Ack. > > I'll rename that variable to 'psci_system_off2_hibernate_supported' then. > > static void __init psci_init_system_off2(void) > { > int ret; > > ret = psci_features(PSCI_FN_NATIVE(1_3, SYSTEM_OFF2)); > if (ret < 0) > return; > > if (ret & (1 << PSCI_1_3_HIBERNATE_TYPE_OFF)) > psci_system_off2_hibernate_supported = true; > Ah OK, you have already agreed to do this, please ignore my response then. -- Regards, Sudeep