Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2095950lqz; Tue, 2 Apr 2024 07:12:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXf75Cg7C1zw2Y8U+Mm9ojcxJ+ePowym4WWkiUy5QStQgv4OjHmSaEk86TvS+S8Ps7Er4n4CE/QRUAPwrPAI0NXKoSPxHB99Ig7RqHsWA== X-Google-Smtp-Source: AGHT+IHchXaZiS4X7dIwgX0y0WeKfPXsCHAc2LMW7dJfxrmbkwdmgvoWgtMOzKFMTd2dhSeNwasm X-Received: by 2002:a17:903:41d0:b0:1e2:7aba:4682 with SMTP id u16-20020a17090341d000b001e27aba4682mr1230531ple.60.1712067137890; Tue, 02 Apr 2024 07:12:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712067137; cv=pass; d=google.com; s=arc-20160816; b=jkeYQBlc4jq4DoCt/DSwe0dzEInE68jSFy8yvUkupN73praFmfbCx0+T9AMqxHVUaG 26e1ca9L3KHhd2myQBE8oB+/rjFo0CWIivRzA6tZcaVJaKA8FnP6NO2Vp0a6iOdK3fMc OubHaSf70hgQNNM9wSpEDl3BsdMAi0c3jXK2if/iZQyWsFPBDkJzARyGiLDAXmrmmRVw qZPC4aYUmyPkLCWy/DTZHonG8+UDYsGuvxKsjs+yWaYukFKaAGB4zlkJ2coEcajV1NOW KEbnKmi8MCPmyTHgEUnxkmS/4qLafdROyIS+Mvhp5M96wcV1sG9zdbl9gfym4ChtlOeg lyMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=z5mhzhJkxhrVCS9d3GUUHWy5bYQzlNYNn/ud4/P+DKg=; fh=YLRY0EOOnUgxMG5W/V0F3RaSL3NT8AwMlZ7LfjJ+wYY=; b=DZwRiHUQkliutBgwpG4SIpGHrK8dnJPmYVOZHqhUWhoQLvaS6T/anyWrkNswVSJBIG 8AtXwoeyH/FbWs29gkgh+oolz58+2yWZHTIpqLEgXLjreBujmBuT3AwXXAPX37RObN2f wg7z6NkiKB7Fm3DHV9T2CqivCt9HGvZCpN8uK8UtIwR6UUhVAuSpPOOlcWaU3HjiP4R1 2PA1DgMBRWBNUX5voCi7nqlZgM6IOzeFP7O+WCYetMJuZjHwO8c45jVlEUMPGyj6N9DO RZ1z9/zYAga67z4GrSAHDDtgFX4H1FZp+uoIyb4rCSvhjCjGl+x+kM4Qej8BXr0t0b7d g6nw==; 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-128117-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128117-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 k2-20020a170902c40200b001e21db5dbb4si10654027plk.6.2024.04.02.07.12.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:12:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128117-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-128117-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128117-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 86AB828189C for ; Tue, 2 Apr 2024 14:12:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A555D85283; Tue, 2 Apr 2024 14:12:11 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E7998405F; Tue, 2 Apr 2024 14:12:09 +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=1712067131; cv=none; b=N0YIKZ8DghqKfwsmFfsafLdrveWTA497EuvQkcV5rLjLCqwtZCnmf1BKEaq4arQ1dGs+Z39OF3OeGX1tjwuw3I8w0swYwT0qDnK9x3cGTm4dm97fImz1RkSP11tRDRjnRK4MI+FTtXEYMjC26yS3RZvtE9AGteRgnH2Ch7u8RNg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712067131; c=relaxed/simple; bh=sBOdmheLZ2gGf5kKDBuAKPcg2oBCHcIwa/Kgod/gHsM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oB9iZ/Qmn1MBjFyOB5xPSAlc/nW5vPnwDntfsPpPp9EEUcJHfe9NaT3ViWJ/ibA71WClVfAsz9TMvF8CuyUeIMN+X/igl08pJxxf6ziNevovgqb6wiwDRu593yWAZfehDXKMQie+4nQF/20EPLKoyDkUy4F1LjCeIKP1IKChmI4= 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 75B9A2F4; Tue, 2 Apr 2024 07:12:40 -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 E93503F64C; Tue, 2 Apr 2024 07:12:06 -0700 (PDT) Date: Tue, 2 Apr 2024 15:12:04 +0100 From: Sudeep Holla To: "Mediouni, Mohamed" Cc: David Woodhouse , "linux-arm-kernel@lists.infradead.org" , Catalin Marinas , Sudeep Holla , Will Deacon , Robert Moore , "Rafael J. Wysocki" , Len Brown , "Saidi, Ali" , "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" , "acpica-devel@lists.linux.dev" , Saket Dumbre Subject: Re: [PATCH 2/2] arm64: acpi: Honour firmware_signature field of FACS, if it exists Message-ID: References: <20240312134148.727454-1-dwmw2@infradead.org> <20240312134148.727454-2-dwmw2@infradead.org> <70B4B352-08A5-4922-93A0-7F420374A831@amazon.de> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <70B4B352-08A5-4922-93A0-7F420374A831@amazon.de> On Tue, Apr 02, 2024 at 12:17:22PM +0000, Mediouni, Mohamed wrote: > > > On 2. Apr 2024, at 12:29, Sudeep Holla wrote: > > > > I think it is OK as a temporary solution for now. But there was some > > investigation last year as part of some work in Linaro to enable > > "drivers/acpi/sleep.c" into the build cleaning up some x86-ness in there. > > acpi_sleep_hibernate_setup() already does this but enabling sleep.c need > > some careful investigation so that it doesn't break any existing arm64/x86 > > platforms and made need some wordings clarification in the ACPI spec. > > Today system suspend work via psci std path bypassing the ACPI paths which > > may not be ideal as none of the ACPI methods are honoured. Some arm64 > > platforms may implement them and expect to be executed in the future, > > maybe ? > Current Windows on Arm platforms (seen on SC8280XP) don’t have _GTS > or _PTS methods, and don’t have sleeping objects either. > IMO, SC8280XP is not a very good model platform for ACPI firmware reference. It uses PEP which Linux doesn't support for good reason and that make it hard to follow everything on that platform. > As such, I don’t expect any users for that potential functionality. I am not 100% sure > Am I missing something or hibernation signalling to firmware (on ARM64) > can be made PSCI only indefinitely? Also bypassing certain operation taken care in sleep.c might result in missing certain features. Few things IIRC(might be missing things myself or misunderstood as it has been a while since I looked at the code in detail): handing of GPE for wakeup, power resource handling during the resume, power button event to mention few. -- Regards, Sudeep