From nobody Sun May 5 11:33:17 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1603424149; cv=none; d=zohomail.com; s=zohoarc; b=dOxhYeP/I68CPN/1+lfZnpMrsjeLT4hMupDYEr0vBeXIBr4Tshd23HqkVQb8cI8AD24fzeQb0zUBHO2/A9Nzrnh6lqTRYre7U6ZoAoAtHVBYKcdXbSMKVT44tot9I2Bl9iLR1agtvkhW8oehjcjvw1E7uPP3+flyC2zjsQtFGxg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603424149; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=019ZO2xHOWDidOYs6KRnglndjO8WKgrKdgSjVMeoRV4=; b=hgABzatdEcPVg7OTzDfh3kpAVJ7js+CqKAbsJRVBpWoTkszhLjXzapFHabHwWD/zA+jfoOq1iJliRZPwxevzBj2hDm1ldoZk4yZlaGZ2jLp2Q3J2J8dnSrkFKuTT+6YoBCvxYlgZRWp3B3gywb3ZySRg98wWW/j5gK5cfTX9+Ro= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1603424149048106.28736123099259; Thu, 22 Oct 2020 20:35:49 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.10678.28517 (Exim 4.92) (envelope-from ) id 1kVnrO-0000hP-JD; Fri, 23 Oct 2020 03:35:22 +0000 Received: by outflank-mailman (output) from mailman id 10678.28517; Fri, 23 Oct 2020 03:35:22 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVnrO-0000hI-GF; Fri, 23 Oct 2020 03:35:22 +0000 Received: by outflank-mailman (input) for mailman id 10678; Fri, 23 Oct 2020 03:35:20 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVnrM-0000hD-N1 for xen-devel@lists.xenproject.org; Fri, 23 Oct 2020 03:35:20 +0000 Received: from mailhost.m5p.com (unknown [74.104.188.4]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id c52b60c9-6201-4adb-839c-9d949dde7327; Fri, 23 Oct 2020 03:35:19 +0000 (UTC) Received: from m5p.com (mailhost.m5p.com [IPv6:2001:470:1f07:15ff:0:0:0:f7]) by mailhost.m5p.com (8.15.2/8.15.2) with ESMTPS id 09N3Z6vb085398 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 22 Oct 2020 23:35:12 -0400 (EDT) (envelope-from ehem@m5p.com) Received: (from ehem@localhost) by m5p.com (8.15.2/8.15.2/Submit) id 09N3Z6uK085397; Thu, 22 Oct 2020 20:35:06 -0700 (PDT) (envelope-from ehem) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVnrM-0000hD-N1 for xen-devel@lists.xenproject.org; Fri, 23 Oct 2020 03:35:20 +0000 Received: from mailhost.m5p.com (unknown [74.104.188.4]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id c52b60c9-6201-4adb-839c-9d949dde7327; Fri, 23 Oct 2020 03:35:19 +0000 (UTC) Received: from m5p.com (mailhost.m5p.com [IPv6:2001:470:1f07:15ff:0:0:0:f7]) by mailhost.m5p.com (8.15.2/8.15.2) with ESMTPS id 09N3Z6vb085398 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 22 Oct 2020 23:35:12 -0400 (EDT) (envelope-from ehem@m5p.com) Received: (from ehem@localhost) by m5p.com (8.15.2/8.15.2/Submit) id 09N3Z6uK085397; Thu, 22 Oct 2020 20:35:06 -0700 (PDT) (envelope-from ehem) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c52b60c9-6201-4adb-839c-9d949dde7327 Date: Thu, 22 Oct 2020 20:35:06 -0700 From: Elliott Mitchell To: Stefano Stabellini Cc: Julien Grall , xen-devel@lists.xenproject.org, Volodymyr Babchuk Subject: [PATCH] xen/arm: ACPI: Remove EXPERT dependancy, default on for ARM64 Message-ID: <20201023033506.GC83870@mattapan.m5p.com> References: <20201022014310.GA70872@mattapan.m5p.com> <7bf92deb-b1ba-31b2-0357-2639cd2a1bca@xen.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=0.0 required=10.0 tests=KHOP_HELO_FCRDNS autolearn=unavailable autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mattapan.m5p.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Linux requires UEFI support to be enabled on ARM64 devices. While many ARM64 devices lack ACPI, the writing seems to be on the wall of UEFI/ACPI potentially taking over. Some common devices may require ACPI table support to boot. For devices which can boot in either mode, continue defaulting to device-tree. Add warnings about using ACPI advising users of present situation. Signed-off-by: Elliott Mitchell --- Okay, hopefully this is okay. Warning in Kconfig, warning on boot. Perhaps "default y if ARM_64" is redundant, yet if someone tries to make it possible to boot aarch32 on a ACPI machine... I also want a date in the message. Theory is this won't be there forever, so a date is essential. --- xen/arch/arm/Kconfig | 7 ++++++- xen/arch/arm/acpi/boot.c | 9 +++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig index 2777388265..29624d03fa 100644 --- a/xen/arch/arm/Kconfig +++ b/xen/arch/arm/Kconfig @@ -32,13 +32,18 @@ menu "Architecture Features" source "arch/Kconfig" =20 config ACPI - bool "ACPI (Advanced Configuration and Power Interface) Support" if EXPERT + bool "ACPI (Advanced Configuration and Power Interface) Support" depends on ARM_64 + default y if ARM_64 ---help--- =20 Advanced Configuration and Power Interface (ACPI) support for Xen is an alternative to device tree on ARM64. =20 + Note this is presently EXPERIMENTAL. If a given device has both + device-tree and ACPI support, it is presently (October 2020) + recommended to boot using the device-tree. + config GICV3 bool "GICv3 driver" depends on ARM_64 && !NEW_VGIC diff --git a/xen/arch/arm/acpi/boot.c b/xen/arch/arm/acpi/boot.c index 30e4bd1bc5..c0e8f85325 100644 --- a/xen/arch/arm/acpi/boot.c +++ b/xen/arch/arm/acpi/boot.c @@ -254,6 +254,15 @@ int __init acpi_boot_table_init(void) dt_scan_depth1_nodes, NULL) ) goto disable; =20 + printk("\n" +"*************************************************************************= \n" +"* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *= \n" +"* *= \n" +"* Xen-ARM ACPI support is EXPERIMENTAL. It is presently (October 2020) *= \n" +"* recommended you boot your system in device-tree mode if you can. *= \n" +"*************************************************************************= \n" + "\n"); + /* * ACPI is disabled at this point. Enable it in order to parse * the ACPI tables. --=20 2.20.1 --=20 (\___(\___(\______ --=3D> 8-) EHM <=3D-- ______/)___/)___= /) \BS ( | ehem+sigmsg@m5p.com PGP 87145445 | ) / \_CS\ | _____ -O #include O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445