Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3317871imm; Sun, 24 Jun 2018 17:34:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ+eJTLotYqqjuIYVE6BoVBJdvAKZuU6uYPsYrl7bK0KJ9/1iQ2vtSFRL++ys/+VCrFUjkA X-Received: by 2002:a62:db05:: with SMTP id f5-v6mr10640458pfg.123.1529886852821; Sun, 24 Jun 2018 17:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529886852; cv=none; d=google.com; s=arc-20160816; b=X18hRXwGh9fTD2URP3fgAuKFW6K4fJ8lKwayhlHXyyUKKe3Z0WE/GZ/3gtk3duGvF0 feaiisfQ61dprb3C7hA9hnRebZLgZtEn9guiEkDDWvXe7puhnM2LJ3j5bicRyVNRyd8K 8spBceIJLabosPks5ZQVItXEUDNTNJSLt97vwAxjbaBpfun5CC+0YiAsNZXM3KRc2L1V SRFeTSV1jrDG0A+CK142XcqAVRDHZHTGyNmiInUkF6SDPMyr6H3BpcQAzAkaciGMLvlU 59VRIn8LrkxOVKwuKub4LAkxuwwimvLgqRMw2IYGdXUi8tlHEFCdxJ8QN3yQ3z56PgHj etuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=iCcx+H5jkEs8QWe6pkgXaWOCRtL1pPHlxbF9HYG7ZXw=; b=X4natJwdOKOB9wsaRLM68Xud0hvlIPPmNuQ91YDOg6IQYox6KNbQlzlaUQMbOby3n5 hXpE9ueQhYVC6iKfHfV8DWYEBL1ZHDsJlm5wFPdAvlKflSwZ2lC4TnJBf+/so1mwqHno w0onjSpTUiYOO2CaZQnoksIvr8R9x2xbg8ij3dKA0hgXeaSUJaoVPXM3ODCo/dN4vYzI EEOXcdwgKi0fNlCi0BRXh8sQR3s7E4FbutxACpg2a/N3hFZ2h6bHoAvjJdV98RVdEdFL 0qrQ7BY4bg0V6kDqSn98GQpah/ZL7yvZATuLuVUwGudQEn/6GU4FLBuT4d9o12sWkDEi e3Sg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9-v6si13674252plb.262.2018.06.24.17.33.58; Sun, 24 Jun 2018 17:34:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752299AbeFYAdM (ORCPT + 99 others); Sun, 24 Jun 2018 20:33:12 -0400 Received: from tartarus.angband.pl ([89.206.35.136]:50650 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752225AbeFYAdL (ORCPT ); Sun, 24 Jun 2018 20:33:11 -0400 Received: from kilobyte by tartarus.angband.pl with local (Exim 4.89) (envelope-from ) id 1fXFRH-0005xl-Hh; Mon, 25 Jun 2018 02:33:03 +0200 Date: Mon, 25 Jun 2018 02:33:03 +0200 From: Adam Borowski To: Nicolas Pitre Cc: Greg Kroah-Hartman , Dave Mielke , Samuel Thibault , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/4] have the vt console preserve unicode characters Message-ID: <20180625003303.fqq6kr2dg4lffcve@angband.pl> References: <20180617190706.14614-1-nicolas.pitre@linaro.org> <20180619130953.bxil552igfkckjmr@angband.pl> <20180621014317.ebslk3gwvpq3k6sq@angband.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Junkbait: aaron@angband.pl, zzyx@angband.pl User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kilobyte@angband.pl X-SA-Exim-Scanned: No (on tartarus.angband.pl); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 20, 2018 at 10:59:08PM -0400, Nicolas Pitre wrote: > On Thu, 21 Jun 2018, Adam Borowski wrote: > > > On Tue, Jun 19, 2018 at 11:34:34AM -0400, Nicolas Pitre wrote: > > > On Tue, 19 Jun 2018, Adam Borowski wrote: > > > > Thus, it'd be nice to use the structure you add to implement full Unicode > > > > range for the vast majority of people. This includes even U+2800..FF. :) > > > If the core console code makes the switch to full unicode then yes, that > > > would be the way to go to maintain backward compatibility. However > > > vgacon users would see a performance drop when switching between VT's > > > and we used to brag about how fast the Linux console used to be 20 years > > > ago. Does it still matter today? > > > * VT switch > > * scrollback > > > > The last two cases are initiated by the user, and within human reaction time > > you need to convert usually 2000 -- up to 20k-ish -- characters. The > > conversion is done by a 3-level array. I think a ZX Spectrum can handle > > this fine without a visible slowdown. > > In the scrollback case, currently each driver is doing its own thing. > The vgacon driver is probably the most efficient as it only moves the > base memory register around without copying anything at all. And that > part doesn't have to change. As long as the data is still in video memory, yeah. Soft scrollback is not yet the default, because some userspace tools assume vt switch clears scrollback and do so for security reasons. All known tools that do so have been fixed (at least in Debian), but as you can run new kernels with arbitrarily old userspace, it's better to wait a bit longer before switching to something effectively identical to soft scrollback. Failure mode: after logout, you can scroll back to the supposedly cleared content of the old session. Your code avoids this, at the cost of losing data about anything representable by the currently loaded charset for anything inside scrollback. But in the near future, it'd be good to have soft scrollback work the same for all drivers. > > Right, let's see if your patchset gets okayed before building atop it. > > May I add your ACK to it? I don't believe I'm knowledgeful nor active enough in this part for my ACKs to be meaningful. On the other hand, I've analyzed your patchset long enough to see no problems with it, thus if you have an use for my tags, then sure, you have my ACK. Meow! -- ⢀⣴⠾⠻⢶⣦⠀ There's an easy way to tell toy operating systems from real ones. ⣾⠁⢰⠒⠀⣿⡁ Just look at how their shipped fonts display U+1F52B, this makes ⢿⡄⠘⠷⠚⠋⠀ the intended audience obvious. It's also interesting to see OSes ⠈⠳⣄⠀⠀⠀⠀ go back and forth wrt their intended target.