From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77BC5C38147 for ; Wed, 18 Jan 2023 16:46:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229879AbjARQqR (ORCPT ); Wed, 18 Jan 2023 11:46:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229949AbjARQpp (ORCPT ); Wed, 18 Jan 2023 11:45:45 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79C762ED60 for ; Wed, 18 Jan 2023 08:45:43 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1D118618F1 for ; Wed, 18 Jan 2023 16:45:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25A7DC433EF; Wed, 18 Jan 2023 16:45:42 +0000 (UTC) Date: Wed, 18 Jan 2023 11:45:40 -0500 From: Steven Rostedt To: LKML Cc: Masami Hiramatsu Subject: Re: [PATCH] ktest.pl: Fix missing "end_monitor" when machine check fails Message-ID: <20230118114540.6cf75247@gandalf.local.home> In-Reply-To: <20230118114301.6b4d09cf@gandalf.local.home> References: <20230118114301.6b4d09cf@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Jan 2023 11:43:01 -0500 Steven Rostedt wrote: > In the "reboot" command, it does a check of the machine to see if it is > still alive with a simple "ssh echo" command. If it fails, it will assume > that a normal "ssh reboot" is not possible and force a power cycle. > > In this case, the "start_monitor" is executed, but the "end_monitor" is > not, and this causes the screen not to be given back to the console. That "the screen will not be given back" Will try to remember to update this when I import it. -- Steve > is, after the test, a "reset" command needs to be performed, as "echo" is > turned off. > > Fixes: 6474ace999edd ("ktest.pl: Powercycle the box on reboot if no connection can be made") > Signed-off-by: Steven Rostedt > ---