Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10612026ybi; Thu, 25 Jul 2019 02:24:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbIE5qNpmD63zi/3tXtjaNYzZktygSpXPdTbeHQ38A547H458l9mE0SUAb5+lcyFY3v+Zq X-Received: by 2002:aa7:914e:: with SMTP id 14mr15607851pfi.136.1564046665044; Thu, 25 Jul 2019 02:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564046665; cv=none; d=google.com; s=arc-20160816; b=zB56sUY1izx3XXPw0ZRr1REf3h4oF0kaHmLCAmIDJCndfMxa1NZXAHWh0XfJ/+HsPU gDHe/+6Eas7lzBfoFk0fQqqPNycUBl9P0i4GhHkKI6VLGfMiNQeu0pU6MLvolps1gRyl vY/vzT7dFd4mjP8aXX42k7qesbBDLTcr68FuZyhqvoUd7lWP4sZfmZk/PJLJYqo9RK/j K9mtGkgbEYUyYO8IIhEboVbQKzZ47KEBoTooDvfPlWT5Say10nj6WFcI2tDc3XZY9RWW O1NHg5+HTN1xObBwYlI7uaAwRTj8bwSbhUDFMYIIPzQslXRcWFz6yX1iCZnagzIN7Ply gBAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lrscJZ2Qe4c16xzh0WdiMkDtp/MM6tfsiT4920hGYhM=; b=oxQlrrlIz030sADs/9Qon9XlI9+wSaEDvvRrKGKtjnpo/8X+3o6/553umGD4Gpzsdi BnCkuZ4J+IYTSWNrdGGNR1t/rH7EOu17ml1yTgDDJwqORMgMLJjTXg+Ia8nY+3TMNolS /owp4MjZHP7oVDVCQDtuFZ6JEKh6TNqdYmSQQ9vlyPpcA4pPSA6uDSZTL1Y58ZaYgyvn TFQnkW/6EiCUJg56mPb8LxyTHaJoztBgqKJI9QEh+j7vfsauvs86JUfXnJzvM3jkL5J0 Mvr/eo/9JQ32Wru3EaY7hv+y8ELeiXpuKNzjsW7fInGCFPU/OTUSogVjZscX88HnfrIx zwJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dzNpB8x2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si19705633pjl.77.2019.07.25.02.24.06; Thu, 25 Jul 2019 02:24:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dzNpB8x2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388777AbfGXUbv (ORCPT + 99 others); Wed, 24 Jul 2019 16:31:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:49302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729354AbfGXT3p (ORCPT ); Wed, 24 Jul 2019 15:29:45 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 66100229FA; Wed, 24 Jul 2019 19:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563996584; bh=qrB5kfjoyVh2sPmkyHE/OtAOTCt8vxYhmexMrBsbF6E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dzNpB8x2eyNOfpsz/I4oWkFAVTSAzlKw8KwdVVCcC3OB49rX8vVYg7ZbPp5iVzfj1 gitnbAOFTJpfm9m+6OnqI11JbyIIE6n4K0xjF/X1/3IozT1Np5ViLWy6+UGE/DcLkc TgsmHZLY4sT+pwUDVR4nYqjxW4X5buYH0WmM5ZOE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sudeep Holla , Lee Jones , Graeme Gregory , Lorenzo Pieralisi , Hanjun Guo , Ard Biesheuvel , Catalin Marinas , Sasha Levin Subject: [PATCH 5.2 147/413] acpi/arm64: ignore 5.1 FADTs that are reported as 5.0 Date: Wed, 24 Jul 2019 21:17:18 +0200 Message-Id: <20190724191745.459972974@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 2af22f3ec3ca452f1e79b967f634708ff01ced8a ] Some Qualcomm Snapdragon based laptops built to run Microsoft Windows are clearly ACPI 5.1 based, given that that is the first ACPI revision that supports ARM, and introduced the FADT 'arm_boot_flags' field, which has a non-zero field on those systems. So in these cases, infer from the ARM boot flags that the FADT must be 5.1 or later, and treat it as 5.1. Acked-by: Sudeep Holla Tested-by: Lee Jones Reviewed-by: Graeme Gregory Acked-by: Lorenzo Pieralisi Acked-by: Hanjun Guo Signed-off-by: Ard Biesheuvel Signed-off-by: Catalin Marinas Signed-off-by: Sasha Levin --- arch/arm64/kernel/acpi.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c index 2804330c95dc..3a58e9db5cfe 100644 --- a/arch/arm64/kernel/acpi.c +++ b/arch/arm64/kernel/acpi.c @@ -152,10 +152,14 @@ static int __init acpi_fadt_sanity_check(void) */ if (table->revision < 5 || (table->revision == 5 && fadt->minor_revision < 1)) { - pr_err("Unsupported FADT revision %d.%d, should be 5.1+\n", + pr_err(FW_BUG "Unsupported FADT revision %d.%d, should be 5.1+\n", table->revision, fadt->minor_revision); - ret = -EINVAL; - goto out; + + if (!fadt->arm_boot_flags) { + ret = -EINVAL; + goto out; + } + pr_err("FADT has ARM boot flags set, assuming 5.1\n"); } if (!(fadt->flags & ACPI_FADT_HW_REDUCED)) { -- 2.20.1