Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1maCFH-0006uA-R1 for mharc-grub-devel@gnu.org; Tue, 12 Oct 2021 03:30:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maCFA-0006r1-LZ for grub-devel@gnu.org; Tue, 12 Oct 2021 03:30:36 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:40541) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maCF4-0006Fg-Jh for grub-devel@gnu.org; Tue, 12 Oct 2021 03:30:35 -0400 Received: by mail-pl1-x62e.google.com with SMTP id v20so5882605plo.7 for ; Tue, 12 Oct 2021 00:30:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8oBVIdEekjmpOdi8+FwF1y2rVNEOXKc4+XFoRVa4Zd8=; b=UuwhI+2N4DJC2D7Mz0XjTUihF6QIAXYHD45FKau9w8k7rN+f999cbdZHqsSI5BxfBq WmQy0me6iN+qpiqg8qe8cM9jj9IKF+aZlY1Z5t2qZJmo/IvClSW1W79DAuwcYTZMhrtm 93tpULLATPqrm+EMLlFyLVOKrtpiWigS6xmHQ= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=8oBVIdEekjmpOdi8+FwF1y2rVNEOXKc4+XFoRVa4Zd8=; b=efWJH34I+JFel1cH0h+dMpCptkgxYQ04nR+ePqB+Dhs7JDVoJQ9d0J8zTC3hmqChgb WDm8D0QKT+CLy5pPbLffVt/8DWLesQGQk44Gji/qQ2PqfxAnAA4Ji4RebjsVjMFKePR2 yReKbHMJ71Z9JdKeH+ahkUx8UeExBQpExMbYGxN86SJ78+a3A+ItIYwp0RSXRr57y6RG 2hQ0wwF2FJQTFbK7Fiy7am8VXZEhnQ9wbnuQi92BkAyA0H5VkIFu8F99F8PoE0jDCPZt +fYgMsNEntxQXH/FiEUb9cF8hOisWlmOZyYC3XkK7o0bFEXm8siFmnJMwS8T17jaJqMV WRTQ== X-Gm-Message-State: AOAM532VNg8IbiwtysQm42ISJbUOucQgetCSp/JvvqFsb/+va5bbFvSM R5yNZSXek5PdlnEBSIlxevVYAFRvL+5AwA== X-Google-Smtp-Source: ABdhPJwV05f15F+zYCWL6ErWOr1mdrHZ3YNkQ1dHYxpXJv3F5+MHNVfdGqHvbD/mb4qbI7Jx4r2YoA== X-Received: by 2002:a17:90a:4b4d:: with SMTP id o13mr4143110pjl.236.1634023824304; Tue, 12 Oct 2021 00:30:24 -0700 (PDT) Received: from localhost ([2001:4479:e300:600:41fe:d15:934f:4029]) by smtp.gmail.com with ESMTPSA id k17sm10144105pfk.16.2021.10.12.00.30.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 00:30:23 -0700 (PDT) From: Daniel Axtens To: grub-devel@gnu.org Cc: leif@nuviainc.com, stefanb@linux.ibm.com, ps@pks.im, dkiper@net-space.pl, Glenn Washburn , Daniel Axtens Subject: [PATCH 01/19] grub-shell: Boot PowerPC using PMU instead of CUDA for power management Date: Tue, 12 Oct 2021 18:29:50 +1100 Message-Id: <20211012073008.4059133-2-dja@axtens.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211012073008.4059133-1-dja@axtens.net> References: <20211012073008.4059133-1-dja@axtens.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=dja@axtens.net; helo=mail-pl1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-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: Tue, 12 Oct 2021 07:30:37 -0000 From: Glenn Washburn 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 [dja: unbreak pseries] Signed-off-by: Daniel Axtens --- tests/util/grub-shell.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index 93e9f5148408..33590baeb13c 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) @@ -231,7 +232,7 @@ for option in "$@"; do qemu=qemu-system-ppc64 serial_port=ieee1275/hvterm serial_null= - qemuopts="$qemuopts -M pseries -no-reboot" + qemuopts="$(echo $qemuopts | sed -E 's/-M [^ ]+//') -M pseries -no-reboot" trim=1 pseries=y ;; -- 2.30.2