From patchwork Mon Mar 11 12:19:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Woodhouse X-Patchwork-Id: 13627113 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4B136C4345F for ; Fri, 12 Apr 2024 08:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Date:From: Message-Id:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=FfKDKmVbtqS7RVWZCfzC5ZZYAN5w9PrIsnH58UXn0ig=; b=PvFMZNH9g7OLIZ 8+pJCqvkn3UYGJqaP19ZIrLhzDGtYSJNmojQL5tRlpPGpbTZlotZbBnzzSwX3T3FWy77soymntgdg wXxmmha0pd80xNjbC8ELaOmjJIiDrJaaIu7AlqbZlJrSxZ3c4bOVHKeM63fXtCzSPY1oIXCIx9xuh Uc2zUl+rG4tye36fmP8sFq1FcaXu5O4isJrajWILB4zxTQLViHYAkcsuHAn6oUrg4zvtPc4nojOvr QoiWTDGOgMZCeTwoLWp5IIIV8sXTgOyArLkh9KGMnbN2mDEmTbIPT5bC392vhy70dPkKMZqIllTDs Udh5kRBIJ2AePTnSrSig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvBtS-0000000Fymx-17kI; Fri, 12 Apr 2024 08:04:18 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvBtQ-0000000Fyle-3Fhs for linux-arm-kernel@bombadil.infradead.org; Fri, 12 Apr 2024 08:04:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Sender:Cc:To:Subject:Date:From: Message-Id:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=TZIYJ0iaQArFGrOLPYJ4tsogyNaAuf4eWxh/L+DfOaM=; b=jNllclIBnCKaxYK+mZCnEaw538 iAGBBmHhPQQFW4Ol9+hljzCnpT9QFfIfKTmmBNLelu2iVFVSYk9Oz5jFyMVEnV0ZoFlPvDcqTpMjh HPj6Dfg35HLiXg9z0NWz9M0xm2dOjdpIcyHR/b32nNCimBC4Ka66AOQBROOWMGO7GMviJAES+sXsd PsRpRavdumDfk0W9sbi+KyBG/X8M/Mmp5Q3uS/NazvfXKqkWfOjIuE6Kh6OHpe5hRwAEgB7EyviyP KcF9gDqHIB0KTcWm7UhP+I+vbXj4H/XFljhgkUu24mYt9fpdCfzR+uysYUNcF7Si/8gS5uqEm9GB5 Oxv5R91A==; Received: from [2001:8b0:10b:1::ebe] (helo=i7.infradead.org) by desiato.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvBtG-0000000926G-2suv; Fri, 12 Apr 2024 08:04:09 +0000 Received: from dwoodhou by i7.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvBtG-00000009KSr-0Gxd; Fri, 12 Apr 2024 09:04:06 +0100 Message-Id: <20240412073530.2222496-1-dwmw2@infradead.org> From: David Woodhouse Date: Mon, 11 Mar 2024 12:19:14 +0000 Subject: [PATCH v2 0/2] Support clean reboot after hibernate on Arm64 To: Catalin Marinas , Will Deacon Cc: Robert Moore , "Rafael J. Wysocki" , Len Brown , Sudeep Holla , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev X-SRS-Rewrite: SMTP reverse-path rewritten from by desiato.infradead.org. See http://www.infradead.org/rpr.html X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When the hardware signature in the ACPI FACS changes, the OS is supposed to perform a clean reboot instead of attempting to resume on a changed platform. Although these patches have a functional dependency, they could be merged separately. The second patch just won't *see* a FACS table if the ACPICA fix isn't present. v2: Now that the ACPICA patch is merged upstream, note its commit ID David Woodhouse (2): ACPICA: Detect FACS even for hardware reduced platforms arm64: acpi: Honour firmware_signature field of FACS, if it exists arch/arm64/kernel/acpi.c | 10 ++++++++++ drivers/acpi/acpica/tbfadt.c | 30 +++++++++++++----------------- drivers/acpi/acpica/tbutils.c | 7 +------ 3 files changed, 24 insertions(+), 23 deletions(-) Acked-by: Rafael J. Wysocki