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 7877AEB64DA for ; Sat, 24 Jun 2023 21:12:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4DA3985CB1; Sat, 24 Jun 2023 23:12:21 +0200 (CEST) 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="HswIg/LQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8AC1B85CB1; Sat, 24 Jun 2023 23:12:19 +0200 (CEST) Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) (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 3250A85FE2 for ; Sat, 24 Jun 2023 23:12:16 +0200 (CEST) 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-oa1-x30.google.com with SMTP id 586e51a60fabf-1a9db19d663so1840753fac.3 for ; Sat, 24 Jun 2023 14:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1687641135; x=1690233135; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3iM9GZILzU/JKtVM+HW5MMbsHyP43COWR1Zq1l4qG6Q=; b=HswIg/LQwwvE43zIyZxqqMZaiOG8FabgtLNr/IGHuVo8LYBom452oSmjDU7Km4pRtX kAMH/qNCpTGHfwzvMZMlCxdR5pZ2RuKqVYHNxgYXFn+xLHt5Va9hg/8sUR59SY/wemFw pGMXkwoRxTRqyZA7pBGFEGdzDtaQcziTXv9DI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687641135; x=1690233135; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3iM9GZILzU/JKtVM+HW5MMbsHyP43COWR1Zq1l4qG6Q=; b=D9VJRxadVij1N+lgl4O/w1M+nNQU+wPSB2I1raxIMQVBl5gHzWOXJ73/99/EXzTauW Mke1nK9wtEcBi+VXaKOh0LUDdoRxplDCCP1heFPtsLlN/MKq65k9nj8K/odJqJDa6HVr t+LzmSU3+50E38kWAe560Ta99alqJPGUmJw0k4IVYtWKlAyqUjilMMLsglLYllqfyAIj cP7l0LfZSPT028aQoS/ozhIAUxT5J6Nw7Qn3xeRaBWGI/LatzpGf28ge13GTit+MLthW l1kLgCs5xN8BKJlDAQ8wC4b7mNfZznaPwS7Q0/EwcMtq1gbU/3W9EGoaG4Wn4DLX+eXD 7hGA== X-Gm-Message-State: AC+VfDyTjnu5RQvhFJLrK3EDgo5W/ynWdysKriMz1G51ZMSYdMLlWylU xm/nD6KT2WqmehGy9iEXkNyeqyeE0yN35rUu4xayXA== X-Google-Smtp-Source: ACHHUZ63P9yphYksCJy8Dk6EA6VEdsdUmcKQjHN8E4bJNEtWEIGyqj2c9KzHtrvQEEJSE0RWXbdl6A== X-Received: by 2002:a0d:f383:0:b0:573:a763:5876 with SMTP id c125-20020a0df383000000b00573a7635876mr10790596ywf.51.1687625889694; Sat, 24 Jun 2023 09:58:09 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-da61-6355-3777-b00c.res6.spectrum.com. [2603:6081:7b00:6400:da61:6355:3777:b00c]) by smtp.gmail.com with ESMTPSA id h3-20020a0dc503000000b005705cbba0bcsm405630ywd.98.2023.06.24.09.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jun 2023 09:58:09 -0700 (PDT) Date: Sat, 24 Jun 2023 12:58:07 -0400 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Simon Glass , Stefan Roese , u-boot@lists.denx.de Subject: Re: [PATCH u-boot 0/3] Revert broken Bootmenu commits Message-ID: <20230624165807.GX3931582@bill-the-cat> References: <20230611125324.15860-1-pali@kernel.org> <20230614195121.GR3931582@bill-the-cat> <20230624085041.jf3rs6bptfuzmaxy@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NEnxg0AuMHf7FIvU" Content-Disposition: inline In-Reply-To: <20230624085041.jf3rs6bptfuzmaxy@pali> 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.8 at phobos.denx.de X-Virus-Status: Clean --NEnxg0AuMHf7FIvU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 24, 2023 at 10:50:41AM +0200, Pali Roh=E1r wrote: > On Tuesday 20 June 2023 11:20:35 Simon Glass wrote: > > Hi Tom, Pali, > >=20 > > On Wed, 14 Jun 2023 at 20:51, Tom Rini wrote: > > > > > > On Sun, Jun 11, 2023 at 02:53:21PM +0200, Pali Roh=E1r wrote: > > > > > > > These 3 commits broke support for U-Boot Bootmenu on Nokia N900. > > > > Issues were reported more than month ago, but nobody reacted to the= m. > > > > So revert these broken commits for now, to fix U-Boot Bootmenu supp= ort. > > > > > > > > With these revered commits, U-Boot Bootmenu from master branch is > > > > working fine again on Nokia N900. > > > > > > > > Pali Roh=E1r (3): > > > > Revert "video: Enable VIDEO_ANSI by default only with EFI" > > > > Revert "menu: Factor out menu-keypress decoding" > > > > Revert "menu: Make use of CLI character processing" > > > > > > > > cmd/bootmenu.c | 9 ++-- > > > > cmd/eficonfig.c | 12 ++--- > > > > common/cli_getch.c | 12 ++--- > > > > common/menu.c | 122 ++++++++++++++++++++++++++------------= ---- > > > > drivers/video/Kconfig | 7 +-- > > > > include/cli.h | 4 +- > > > > include/menu.h | 17 +----- > > > > 7 files changed, 91 insertions(+), 92 deletions(-) > > > > > > Following up over here, while > > > https://patchwork.ozlabs.org/project/uboot/patch/20230612201434.86170= 0-1-sjg@chromium.org/ > > > addresses some of the issues, but not all (as it clearly isn't working > > > in all of the cases Pali has explained), looking in to the VIDEO_ANSI > > > part of this too, all three of these reverts are related seemingly to > > > something escape-character related. I'm not taking any of the revert > > > commits in just yet, but will by the next -rc if we don't have someth= ing > > > that fixes all of the issues. > >=20 > > I did send a series [1] with a fix for the nokia_rx51 keyboard driver, > > including the previous ansi-code patch. Given that: > >=20 > > - this problem doesn't seem to manifest on other boards > > - it does not cause any CI test to fail > > - there seem to be bugs in the nokia_rx51 implementation which are a > > possible/likely cause > > - the nokia_rx51 CI uses a 10-year-old out-of-tree QEMU > > - the problem goes away if debugging is added, suggesting it is > > related to timing > >=20 > > ...I don't think a revert is appropriate. >=20 > Unfortunately it does not fix this issue :-( New patch series from [1] > applied on top of the master branch has still issue with DOWN key on > emulated UART terminal. >=20 > > Pali, can you please take a look and see if you can debug what is > > actually going on? Here is my guess: > >=20 > > 1. When an arrow key is pressed, cli_ch_process() handles it by being > > passed the codes in sequence: \e [ B > > 2. Calling cli_ch_process() with ichar =3D 0 causes it to think the > > sequence is finished: \e [ \0 B (this doesn't work since the \0 ends > > the sequence) > > 3. nokia_rx51 keyboard driver is returning '\0' even when key codes > > are pending, causing cli_ch_process() to be told that the sequence is > > done >=20 > I can look at it later, but I'm loosing motivation to do whole debugging > for another issue again, because for the last year my fixes and other > patches were stalled and u-boot devs show me that they are not > interested even in commenting them. I do not want to work again on > something which would be ignored. Well, unless your changes here break something else, I don't think a fix for your problem will be ignored. > Hence, now I did only smaller - but still important - task: Locate exact > commits which broke particular feature and prepare reverts on top of the > master branch which _really_ fix the broken functionality - and make > code working again. Unfortunately you're also the only person able to replicate the problem, and Simon has tried (and posted fixes to your platform for other issues, and debugging patches to hopefully making finding the problem easier). --=20 Tom --NEnxg0AuMHf7FIvU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmSXIJ8ACgkQFHw5/5Y0 tyzOlgwAp33CK513EFrEwYnVKYZz2G7xfLGEFJlitAU4yuZc54EXyOIdZAwYAIAJ VFHXmFq/gc922zXNj5e69fLVRrynSLf3cb9loNKHTwBjFMiA2oER4XEoKhhBuPil 8V7EgScF4d4d745YXsJ1nWb3/ndibs/C9JVfuJfpDodlz5un0iPdW1el0GvzB1lH cmlT5NRm7N1e4jcClYbE3YTh8M3E3KckE4vigMEFkDEa4WQi/6HQ2R6QSH9ni9Kr vTSfmWUxYPgLdYbEqa+6xgOwaYtezDypyBug+mocvE5HgyveW7dsPs+gXJtp525e luYPRgvUxRbvzK+pAX6jLNM7gr9SLJLNjpnrSkjZAsBh84NPW+mNG+LPzB9FNOWU p/gEURYF4KDxjDnc+ig+3+pY9XTuHd4y8+AvzfMURPPkek3gT8Qj6SOdPrg7PJza +qjF6BTjwvdYYVhXJ/fL3TB8SLD2pB0rsAtPDHegBcU6KOFZ/SrBHPJfUS26RhyW DCQaJkvX =UvZh -----END PGP SIGNATURE----- --NEnxg0AuMHf7FIvU--