From patchwork Wed Aug 4 10:22:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Art Nikpal X-Patchwork-Id: 1513372 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=gNY3bE1O; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GfnrF0Wwwz9sT6 for ; Wed, 4 Aug 2021 20:23:07 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EB8B882BEC; Wed, 4 Aug 2021 12:22:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gNY3bE1O"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DFEAA82BEC; Wed, 4 Aug 2021 12:22:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (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 7FA1A80725 for ; Wed, 4 Aug 2021 12:22:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=email2tema@gmail.com Received: by mail-pj1-x1032.google.com with SMTP id l19so2337814pjz.0 for ; Wed, 04 Aug 2021 03:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZeLCJ21OdohtWBtr78gMgVQegzHLU1Fqr5GXDNf0xOw=; b=gNY3bE1Ou2uO0ei3ycRGBG4vXnBtB6ZGHD/q3vy76qenp0hC0XXd/FY3PkYS0hO42M Seqwpjg+uF2Y+d6DNzlA9jllRVzm+ws+QvZoFtUJl2vpONdmacbfE7hoXAJxNKtAEnf7 +8m4lMQpN6KSX11R+b4PS7cnfpDrp8YpWuBRaZwoq7HmbINnKCy3sE5RQ9ldJPJV7eXM 5QW0/e4vr3xslG1YRZw7PirtGfD1qaixM+T0mxjGjcOrP3gH+kC9ASHLs1f9TuNMF1rs tBfZYDqjFsJ3Qf+TLj+HccnevayLWOm4gpklf9WGR0PD/nqc8y5DOa/RxgdBZhZdh8k6 qa3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZeLCJ21OdohtWBtr78gMgVQegzHLU1Fqr5GXDNf0xOw=; b=tnrbvkVVCeeez1P7DEglY/vGC6MW3rXPvyvhEU6HMYV+jX/29vSH97aA7uJOjBBmeW iChtw1NB99YZ9S45HTkwqkxSEjDW2vyCBxgYwOAd/Nok8YKzz0UyIEPITa2iJ0fVlA2K tm8jCxV96u5LBarScFwRxWUrpj5gI9u9Lcs0FaTNEDQ219wPFUozXUY4MElYFXbjCkvm JA5151Qfw8yMT8r9oZaEA5YLycYeaAfrk0BGdaolhElgFxNcfl6g4dizDFcjKviGeG4u 9XPQQPbSMndnoAAd5mAKfCZViGtkrxCZl4dVkjalh5Ur4kovlJtEKkHExeVoSm5xP/aj nUMA== X-Gm-Message-State: AOAM533SvHSgYn5I/2/81Lef7dltfn5PCmAfXoclBA42tt/dF/Yxbqkm LJrhC48OmJizBOtd+19vzOY= X-Google-Smtp-Source: ABdhPJyYx+qVbwQ/lIS+nBE/GsxBKGrYqXiMbNNTZWhh3mFYf5Fhi5SR8j0By2D2X/tZOEP5XDJ31g== X-Received: by 2002:a17:90a:e54a:: with SMTP id ei10mr9031959pjb.82.1628072566711; Wed, 04 Aug 2021 03:22:46 -0700 (PDT) Received: from localhost.localdomain (104.194.74.249.16clouds.com. [104.194.74.249]) by smtp.gmail.com with ESMTPSA id z14sm2291976pfr.121.2021.08.04.03.22.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Aug 2021 03:22:46 -0700 (PDT) From: Artem Lapkin X-Google-Original-From: Artem Lapkin To: narmstrong@baylibre.com Cc: u-boot@lists.denx.de, u-boot-amlogic@groups.io, xypron.glpk@gmx.de, agraf@csgraf.de, trini@konsulko.com, christianshewitt@gmail.com, art@khadas.com, nick@khadas.com, gouwa@khadas.com Subject: [PATCH 0/4] EFI: console: improves Date: Wed, 4 Aug 2021 18:22:13 +0800 Message-Id: <20210804102217.2419510-1-art@khadas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Problems with Linux Grub and U-Boot EFI console - multiplexed console output scrambled - slow refresh rate for big console sizes - vidconsole incompatible with unicode This patchset provides the following solutions: 1) Fixed detection of vidconsole from within a multiplexed stdout string. As you know, a user can use a comma-separated list of devices to set stdin, stdout and stderr. For example, "setenv stdout serial,vidconsole" is a multiplexed string. 2) Multiplexed adaptation of the query_console_size() function; automatically determine the minimal console area that will fit all outputs properly. 3) Setup the max rows and columns limit for the EFI console output. 4) If EFI_CONSOLE_UTF_SAFE is enabled and vidconsole is active, unicode characters will be replaced with "." for all console outputs. Vidconsole does not support unicode output, and your console will suffer display issues if EFI_CONSOLE_UTF_SAFE is disabled. Artem Lapkin (4): EFI: console: query_vidconsole: multiplex adaptation EFI: console: query_console_size: multiplex adaptation EFI: console: max rows and cols user limit EFI: console: improve vidconsole unicode output lib/efi_loader/Kconfig | 21 +++++++++++++++++++++ lib/efi_loader/efi_console.c | 27 +++++++++++++++++++-------- 2 files changed, 40 insertions(+), 8 deletions(-)