From nobody Thu Apr 9 23:26:36 2026 Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3FA88376BCC for ; Thu, 5 Mar 2026 09:15:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.3 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772702163; cv=none; b=rU1cT/LGLze064K0ko4dLqqlqz4eOuQlhI5tRoZpA6W2iLKeuVQGtL5MVf+W0nV96ESTG7OltLCFSOmuovE5jyJbj8rXkfVdiFVk+DWE4pddwJTmKVFBvdMVRP2LaLJZRFX5mGPO8DgywsBaYqnwi5DCtGimGPBeqk6U0Mbnv7I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772702163; c=relaxed/simple; bh=8JVjvZU0bNwDcaT8oD4KvsBbtzEWKMTbQc7k/ocQ5Gg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=YZF5hhL5p0dEUUkvYCOI0Izk4TqtdlH5jCIvJX7/G824qHFzcBQycDCL0f3zfre6p99THwHOv3ht/HKbtTyCVvSHtW4x98/zsXrSfkA88lYbKlCyl+JhTf4Frx4+X0LDjiTq0vXABhugv6aTNNjUwEBXOqoF2lbDsRh7dw4OFvA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=jB6FEq58; arc=none smtp.client-ip=220.197.31.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="jB6FEq58" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=Px sI37iS2BxXGfnxoputHv/D8WyK2PTEUtaF0Qm3b8o=; b=jB6FEq58f163Pappkl Bulw1dwN+HmE+ZMg7xLKgjO/Ajqi2vm/aRLj8S3JV0X8imdbtdKsr8c6kdifrxaK wuhfh3HYQIfk09F2SvX3Pt9hicXI0MpoX/fsfQcP841tNftf/+u2pJYgr3oVn4dQ MZTwyfQlKdRjaCqS1BrkaIGeA= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-4 (Coremail) with SMTP id _____wDnBLh8SalpRcKuOw--.51670S2; Thu, 05 Mar 2026 17:14:38 +0800 (CST) From: "rom.wang" To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Conor Dooley , Ryan Roberts , Sean Chang , Anshuman Khandual , Heinrich Schuchardt , linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Yufeng Wang Subject: [PATCH] riscv: acpi: update FADT revision check to 6.6 Date: Thu, 5 Mar 2026 17:14:33 +0800 Message-Id: <20260305091433.83983-1-r4o5m6e8o@163.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wDnBLh8SalpRcKuOw--.51670S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7ur1DJFyrCF1fGF13ZFy5Arb_yoW8WFWxpF s3ursYqrWrGFs3Jws3tFs5Za18ZFnY9w4Sgr4xGa45CF47Gryjvrs5GFW5uay2yrn5G3ya qFWjgr40yw48Za7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07U65lnUUUUU= X-CM-SenderInfo: 3uurkzkwhy0qqrwthudrp/xtbCzR42q2mpSX6HbgAA3Q Content-Type: text/plain; charset="utf-8" From: Yufeng Wang ACPI 6.6 is required for RISC-V as it introduces RISC-V specific tables such as RHCT (RISC-V Hart Capabilities Table) and RIMT (RISC-V I/O Mapping Table). Update the FADT revision check from 6.5 to 6.6 and remove the TODO comment since ACPI 6.6 has been officially released. Signed-off-by: Yufeng Wang Acked-by: Heinrich Schuchardt Reviewed-by: Sunil V L Reviewed-by: Yao Zi --- arch/riscv/kernel/acpi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/riscv/kernel/acpi.c b/arch/riscv/kernel/acpi.c index 71698ee11621..ff681db9f4f1 100644 --- a/arch/riscv/kernel/acpi.c +++ b/arch/riscv/kernel/acpi.c @@ -85,12 +85,12 @@ static int __init acpi_fadt_sanity_check(void) * The revision in the table header is the FADT's Major revision. The * FADT also has a minor revision, which is stored in the FADT itself. * - * TODO: Currently, we check for 6.5 as the minimum version to check - * for HW_REDUCED flag. However, once RISC-V updates are released in - * the ACPI spec, we need to update this check for exact minor revision + * ACPI 6.6 is required for RISC-V as it introduces RISC-V specific + * tables such as RHCT (RISC-V Hart Capabilities Table) and RIMT + * (RISC-V I/O Mapping Table). */ - if (table->revision < 6 || (table->revision =3D=3D 6 && fadt->minor_revis= ion < 5)) - pr_err(FW_BUG "Unsupported FADT revision %d.%d, should be 6.5+\n", + if (table->revision < 6 || (table->revision =3D=3D 6 && fadt->minor_revis= ion < 6)) + pr_err(FW_BUG "Unsupported FADT revision %d.%d, should be 6.6+\n", table->revision, fadt->minor_revision); =20 if (!(fadt->flags & ACPI_FADT_HW_REDUCED)) { --=20 2.34.1