From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mYaO6-000858-Sd for mharc-grub-devel@gnu.org; Thu, 07 Oct 2021 16:53:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYaO4-0007uJ-Bz for grub-devel@gnu.org; Thu, 07 Oct 2021 16:53:08 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:42601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYaO2-00018f-2y for grub-devel@gnu.org; Thu, 07 Oct 2021 16:53:08 -0400 Received: by mail-qt1-x82a.google.com with SMTP id z24so2846088qtv.9 for ; Thu, 07 Oct 2021 13:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EiOjb3a8UREJOVzJdNqQhQMiS79F+aaoegACKzwzB5I=; b=MaTBII+IQW97FPv6FP4jdLHi+FbNyOYIXA6pJ1paJ68FfPZwSvwQ5itSi4ZyPQZBst uAL2GLmml+M1w6QnHLaOmCkJrr9lt1rjc01TGhWRFzAIHhhGHISUcmiQSOlWj504yXu4 TpFrsTBAR7Z6xo7dVJXSMStCVbOkNox/bw/CtXgVEBnm01wAtZEW121UxF8/+LXBWJXt ylmAjAAdV521PZfQIaTlJuUA1JCJg7Hee4Y/N3yF0pBiq3i73nN6YQtXbkeAinVOVkYf Gm2F/gVXICdE0KGMkjxgU0+pfI8iiM61Fx79Jmy2oY/8lw5CQrY9lDueHjZGsRbJcVB+ t8mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EiOjb3a8UREJOVzJdNqQhQMiS79F+aaoegACKzwzB5I=; b=JSiyjvaZu3JdxX6M5ley2xxphUmqQp7cifAtZxnL+/QqzMWSjyehlWDVyAtvTwVQHn /6Fjqp88ZgbeRSUmsNqFDVGtRQdBNOB6RY68jyVSn2j3Tdq6olfKtB2ZNk1yJbADMdPl AaaXP4lzjngxJJEtLJVyF9adIIWoANg1KTosFMMzeZuCffCsLlsvqWCKN0Do7VIwk0os XeP3bAcluAHUrYBepl1p4c+vRLMqOvmkiQNfzMMzMHfcobK5hq+J0ffOVuDSYwxJrxIW oCiWh417Yj9+reuWJx7MU+EG/hGE2wnPy69YKbs7YhCRpUrMyDJljlA5nrRQSP7ipTiF xrKw== X-Gm-Message-State: AOAM532oG/x9hDIf45dEUGi8sCnidWtK2GSkqfzYMP4GENLKvwScygXH fEdxC2/2vCZ5bKfRspuohpJYSfwYrXa0Tg== X-Google-Smtp-Source: ABdhPJyUZtQsy/t9zlPdACL3jV7fXHIPWY560Vd3gUJAliscpEydvcGS980jyHmPGy72T3jpEsr6Rw== X-Received: by 2002:a05:622a:44f:: with SMTP id o15mr7538231qtx.74.1633639983956; Thu, 07 Oct 2021 13:53:03 -0700 (PDT) Received: from localhost.localdomain ([37.218.244.251]) by smtp.gmail.com with ESMTPSA id d11sm510739qtb.39.2021.10.07.13.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 13:53:03 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH v2] grub-shell: Boot PowerPC using PMU instead of CUDA for power management Date: Thu, 7 Oct 2021 15:52:51 -0500 Message-Id: <20211007205251.159703-1-development@efficientek.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=development@efficientek.com; helo=mail-qt1-x82a.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2021 20:53:08 -0000 A recent refactoring of CUDA command code has exposed a bug in OpenBIOS[1] which was causing system powerdown and system reset to fail, thus causing the Qemu instance to hang. This in turn caused the grub-shell command to timeout causing it to return an error code when the test actually completed successfully. Since it could be a while before the patch fixing this issue in OpenBIOS filters down to the average distro, switch to PMU to allow powerdowns and reboots to work as expected. [1] https://gitlab.com/qemu-project/qemu/-/issues/624 Signed-off-by: Glenn Washburn --- This is a correction of the commit message from patch #8 of the patch series titled "More test fixes/improvements". The changes remain the same. Glenn Range-diff against v1: 1: e13454839 ! 1: 754e7e77b grub-shell: Boot PowerPC using PMU instead of CUDA for power management @@ Metadata ## Commit message ## grub-shell: Boot PowerPC using PMU instead of CUDA for power management - At some point it looks like the defualt machine for qemu-system-ppc started - using CUDA as a backend for power management. This causes the machine to - throw an exception and not actually power down the VM[1]. Switching to PMU - allows power downs and reboots to work as expceted. + A recent refactoring of CUDA command code has exposed a bug in OpenBIOS[1] + which was causing system powerdown and system reset to fail, thus causing + the Qemu instance to hang. This in turn caused the grub-shell command to + timeout causing it to return an error code when the test actually completed + successfully. + + Since it could be a while before the patch fixing this issue in OpenBIOS + filters down to the average distro, switch to PMU to allow powerdowns and + reboots to work as expected. [1] https://gitlab.com/qemu-project/qemu/-/issues/624 tests/util/grub-shell.in | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index 93e9f5148..5354d8678 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -84,6 +84,7 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in serial_null="-serial null" netbootext=elf trim=1 + qemuopts="-M mac99,via=pmu $qemuopts" ;; sparc64-ieee1275) -- 2.27.0