Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1qFa8p-0000g1-Qs for mharc-grub-devel@gnu.org; Sat, 01 Jul 2023 08:55:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFa8o-0000fn-Ex; Sat, 01 Jul 2023 08:55:54 -0400 Received: from domu-toccata.ens-lyon.fr ([140.77.166.138] helo=sonata.ens-lyon.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFa8l-0005TK-Jo; Sat, 01 Jul 2023 08:55:54 -0400 Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 93BE920150; Sat, 1 Jul 2023 14:55:48 +0200 (CEST) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bhsmkto3_LQU; Sat, 1 Jul 2023 14:55:48 +0200 (CEST) Received: from begin (lfbn-bor-1-1163-184.w92-158.abo.wanadoo.fr [92.158.138.184]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 7C32B2014E; Sat, 1 Jul 2023 14:55:48 +0200 (CEST) Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1qFa8i-00C9Ku-05; Sat, 01 Jul 2023 14:55:48 +0200 Date: Sat, 1 Jul 2023 14:55:48 +0200 From: Samuel Thibault To: grub-devel@gnu.org Cc: bug-hurd@gnu.org Subject: [PATCH] templates: Start pci-arbiter before acpi on Hurd Message-ID: <20230701125547.ch4nmvrcfgsxlqcw@begin> Mail-Followup-To: grub-devel@gnu.org, bug-hurd@gnu.org References: <20220926195132.dqhtgpfpim53tkzd@begin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220926195132.dqhtgpfpim53tkzd@begin> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) Received-SPF: pass client-ip=140.77.166.138; envelope-from=SRS0=HMzx=CT=ens-lyon.org=samuel.thibault@bounce.ens-lyon.org; helo=sonata.ens-lyon.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jul 2023 12:55:54 -0000 acpi actually needs to access PCI, while pci-arbiter will not be making use of ACPI, so we need to start acpi first. Signed-off-by: Samuel Thibault diff --git a/util/grub.d/10_hurd.in b/util/grub.d/10_hurd.in index b317a4b14..7d1e46391 100644 --- a/util/grub.d/10_hurd.in +++ b/util/grub.d/10_hurd.in @@ -68,18 +68,18 @@ for i in /hurd/${hurd_fs}.static /hurd/exec ; do fi done -if test -e '/hurd/acpi.static' ; then - acpi=true -else - acpi=false -fi - if test -e '/hurd/pci-arbiter.static' ; then pci_arbiter=true else pci_arbiter=false fi +if test -e '/hurd/acpi.static' ; then + acpi=true +else + acpi=false +fi + if test -e '/hurd/rumpdisk.static' ; then rumpdisk=true else @@ -159,35 +159,35 @@ EOF echo '$(echo "$message" | grub_quote)' EOF - if [ "$acpi" = true ] ; then - if [ "$pci_arbiter" = true ] ; then - next_task='${pci-task}' + if [ "$pci_arbiter" = true ] ; then + if [ "$acpi" = true ] ; then + next_task='${acpi-task}' elif [ "$rumpdisk" = true ] ; then next_task='${disk-task}' else next_task='${fs-task}' fi sed "s/^/$submenu_indentation/" << EOF - module /hurd/acpi.static acpi \\ + module /hurd/pci-arbiter.static pci-arbiter \\ $host_ports \\ --next-task='$next_task' \\ - '\$(acpi-task=task-create)' $resume_task + '\$(pci-task=task-create)' $resume_task EOF host_ports="" resume_task="" fi - if [ "$pci_arbiter" = true ] ; then + if [ "$acpi" = true ] ; then if [ "$rumpdisk" = true ] ; then next_task='${disk-task}' else next_task='${fs-task}' fi sed "s/^/$submenu_indentation/" << EOF - module /hurd/pci-arbiter.static pci-arbiter \\ + module /hurd/acpi.static acpi \\ $host_ports \\ --next-task='$next_task' \\ - '\$(pci-task=task-create)' $resume_task + '\$(acpi-task=task-create)' $resume_task EOF host_ports="" resume_task=""