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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8269C433EF for ; Sun, 27 Feb 2022 18:14:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F086B83BA7; Sun, 27 Feb 2022 19:14:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="d2fZ58dv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C35E283BA7; Sun, 27 Feb 2022 19:14:28 +0100 (CET) Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BFD7C83B75 for ; Sun, 27 Feb 2022 19:14:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x833.google.com with SMTP id c4so7161570qtx.1 for ; Sun, 27 Feb 2022 10:14:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=oX3411HCKMT2P5TF8YEtJI3QtLOccYz+yAApLLzrtHk=; b=d2fZ58dvvGAGBksfOYCUd5lm52+ri7JkIyHWwEqx2Nh3bV6sIJTnjIkwbSTy0q/tHd xaRdRFa4Tp70AQBG1c+AWIO8zm/JrOzSEZRS9zGu0iVNVoHJAdvFpgmcbY36uWEeT5Dj X5dhs5YT55qdY3iTX8uA384Ai5XcpAlLjZdKc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oX3411HCKMT2P5TF8YEtJI3QtLOccYz+yAApLLzrtHk=; b=8RsJeiM4Tyf35yNJUdRGEH1OdDQOmwZsPor/hSZCAXkrOK+h3QlZjZry3OBsdvEItr /+v3orPlaRkWwCiv2MQSoKnOItj7VJ/vtTDKUiJepDP2JAgbd4oDdbKItcKBdmrd8vVn qF3SFUppH56/7KQheEoljH/d0XsVz1LbCojQ6rgDSeOtCzG3iXT+sGyM9Kdg/2xUIlyq UGJMCvFqIKUUXV2mLhNkRac0q1ol2DY/5/f5fQf06hZIxKhd4twMHJvua1nOIyyGrtMH cmcrunfb/RzYD7UDoV248Eg6HAoiXffWiUnSaMMzCn36BKtlAd8est9hXqofM+DBXdVD ZhdQ== X-Gm-Message-State: AOAM532EhZpOMc9kdfRXeCX3MEQvvlJyek9KxDHWwZjKnqsbbPKU1h6k azfLTebLP1HnGWzBZ+Hq4j2uGg== X-Google-Smtp-Source: ABdhPJzrUj63qKH0ggp+/AfNygYBtdQp5OYxBXSBPOohUnwIyPeUoCsG/RQ0Xz0g+SVZG4TE1cRISw== X-Received: by 2002:ac8:7f83:0:b0:2d0:1769:f2c1 with SMTP id z3-20020ac87f83000000b002d01769f2c1mr13888872qtj.427.1645985662741; Sun, 27 Feb 2022 10:14:22 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id o24-20020a05620a15d800b00648a9cf86e7sm3986103qkm.33.2022.02.27.10.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Feb 2022 10:14:21 -0800 (PST) Date: Sun, 27 Feb 2022 13:14:19 -0500 From: Tom Rini To: Simon Glass Cc: Heinrich Schuchardt , U-Boot Mailing List , Patrick Delaunay , Patrice Chotard , Alexander Graf , AKASHI Takahiro , Bin Meng , Ilias Apalodimas , Jose Marinho , Grant Likely , Etienne Carriere , Sughosh Ganu , Paul Liu , Masami Hiramatsu Subject: Re: [PATCH v5 3/4] test/py: Handle expected reboot while booting sandbox Message-ID: <20220227181419.GJ1576803@bill-the-cat> References: <164499213192.688621.17382243642029677399.stgit@localhost> <164499216253.688621.5866897494911875372.stgit@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AbSVCDwndjOm3rzj" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --AbSVCDwndjOm3rzj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 27, 2022 at 08:39:30AM -0700, Simon Glass wrote: > Hi Heinrich, >=20 > On Sun, 27 Feb 2022 at 01:22, Heinrich Schuchardt wr= ote: > > > > On 2/26/22 19:37, Simon Glass wrote: > > > Hi Masami, > > > > > > On Tue, 15 Feb 2022 at 23:16, Masami Hiramatsu > > > wrote: > > >> > > >> Add expected_reset optional argument to ConsoleBase::ensure_spawned(= ), > > >> ConsoleBase::restart_uboot() and ConsoleSandbox::restart_uboot_with_= flags() > > >> so that it can handle a reset while the 1st boot process after main > > >> boot logo before prompt correctly. > > >> > > >> Signed-off-by: Masami Hiramatsu > > >> --- > > >> Changes in v5: > > >> - Rename parameter to expect_reset and update the description to = clarify > > >> the reset will happen between main boot and the command prompt. > > >> --- > > >> test/py/u_boot_console_base.py | 48 ++++++++++++++++++++++---= ------------ > > >> test/py/u_boot_console_sandbox.py | 7 ++++- > > >> 2 files changed, 33 insertions(+), 22 deletions(-) > > >> > > > > > > Didn't I already comment on this patch? Why did it come back? > > > > Dear Simon, > > > > The discussion is in > > https://patchwork.ozlabs.org/project/uboot/patch/164491595065.536855.94= 57820061065514578.stgit@localhost/ > > > > You suggested: "We have a means to avoid actually doing the reset, see > > the reset driver." > > > > We need a real reset on the sandbox and no fake reset as already said in > > the referenced thread. >=20 > Why? >=20 > The fake reset is there for use by tests. We don't need this load of > Python code at all for sandbox. We should worry about it later. Well, isn't this going to make the tests more sandbox-centric then, and then need changes later to be able to test on real hardware? --=20 Tom --AbSVCDwndjOm3rzj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmIbv3EACgkQFHw5/5Y0 tyyRtwwAkZBoOnQaazOJKPlchHJRTBbUrlVBcDxMRq1PiEKEWTwsH2y+0g1vWQX6 +odohjIDoR7qFTI41dh/RZ+ZtFz0ZndA73NGVrtMDhEcV3n6V2M6Ae4++5EXzor6 Yl6ErZ2YBpv5tCUYF2guHyHxREq7REekEnw5A+plBl6aGZkXRgJIx3NGhTlEal8A cZf1McYcpGkrmOtmYWvL1l21zp5R0Y/o55boy1rikU7d2752XhSIBC0RwT+SNqRf uDOM3Wj0JrtN3uI7UC679oPBh5CrHDcFcZ2D7x6FApKT46YrJ/MykLWTNH7KXWPp t24lZl/C3LhE9kyGLcv1B2Lg7FGMdblqanBUURyaImjtt+jwVIsSjmCVrGAoccvm TM1LXD3xQx5tFMFNt4lOjKfP6n6iPd4wvrTpuUrTnO/VqqdV9nC8WNHn1Z6sVIkf 50M9kfIxinJijJ6wNWAiNgK2/MlPIRfcZrfu2iEK/dgp97XsHKU1igYtgzr3J4ag xl62fuwo =Fp4H -----END PGP SIGNATURE----- --AbSVCDwndjOm3rzj--