Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4341849ybi; Tue, 30 Jul 2019 00:16:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwepm9a41r5N9alCmjcriw92vZ8I7aQq/AfTgYEGMx9uL3gLxRHswwMsZXfeyThRbm6eYGm X-Received: by 2002:a63:7358:: with SMTP id d24mr107538778pgn.224.1564470975924; Tue, 30 Jul 2019 00:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564470975; cv=none; d=google.com; s=arc-20160816; b=E3GQUzqxq5SZL+L1NL54BOY4Ev8r9WYJyIBhwp8Jytt9iTqmM+A+kiykFYW8oE76qm bQ5yoU+hEkCduXf7YadlYEn18VAkVXpMbMPTcL4Mun5s+iISksER6/ZK/5Tt1n+k/0Vw qelmXd9U1GEB46y0h4Odw/2DDN3R5/4b3o56hQBaqsoYpgz4jtohey9Szo6bFgmExLkx zHllYibSAhvtJSfyK5thW7TEqux5PDF/rl/6x606MRYJqadKNMFDJanjZUAUNUXWHBBp frjWvJITIK7OE+RYlHTYVnpPSn6F0Bck+E2KS+jI+DmBBKOjoysXt5oU5u7RLFwxbPTf Z1fw== 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=Vg9xzhUfCFZiIkrRqB092FFqJkcFtFMjohciutD58Z0=; b=Mu2hrrMS9ePjM7JaoBu0EKAs0q+tV1tWtHmk4bpzvdly5Jnr/uMqwBBxe8v7UyIKDf 2rsrUy4Xgw/Lk3olmY4W++GbVTA1cfsuBryBjywYsQgJMOM6V31QazTtL/DyW+uCl/xI dVcENEq+RqX640W54hE+FaXTMbM86+ahvCM+IenQkPOdMI7OsrF3MDQHUG1nUONOTDGl nguQcwQTKhd6qwP7UHJ1Kd/EGTEtSpnJiLo/zX2hTWLOBY7BFFAcw74EcUM2aclkm7u8 Jmh8JS2d0VbR9K/X5JxJ9fOrz24lMAmQT2hCHe6cD+ZagSa7kQYqXGmYSvIgVjcT+zcH bnSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=y9EnJhSZ; 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 a13si28289021pgt.217.2019.07.30.00.16.01; Tue, 30 Jul 2019 00:16:15 -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=y9EnJhSZ; 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 S1730258AbfG2UOK (ORCPT + 99 others); Mon, 29 Jul 2019 16:14:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:41552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730022AbfG2T2v (ORCPT ); Mon, 29 Jul 2019 15:28:51 -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 79BE52171F; Mon, 29 Jul 2019 19:28:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564428530; bh=AQNp5ECe9sgyjFWOGgvv1e6tRkk2iwL30xwMF+qUeZU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y9EnJhSZ3jwZdGyexIDK9WfXewr0s1Wr0UcVpjQMx0f5zUBg6G9JUyUX51xydxT/W k/b06tnSa2j7QqRKd3va9gJCqC3SJxXjVnRmeFw5iREfFNnQppgyKdfKZuQLVt2mis m+wFhEM5tBGlorXQR7pkYao4U4//Vmh9PJgaBEdU= 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 4.14 066/293] acpi/arm64: ignore 5.1 FADTs that are reported as 5.0 Date: Mon, 29 Jul 2019 21:19:17 +0200 Message-Id: <20190729190829.714016734@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@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 b3162715ed78..285f0b4851fc 100644 --- a/arch/arm64/kernel/acpi.c +++ b/arch/arm64/kernel/acpi.c @@ -157,10 +157,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