Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753002AbcK0QwS (ORCPT ); Sun, 27 Nov 2016 11:52:18 -0500 Received: from mout.gmx.net ([212.227.17.20]:60603 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752078AbcK0QwK (ORCPT ); Sun, 27 Nov 2016 11:52:10 -0500 From: =?UTF-8?q?Manuel=20Sch=C3=B6lling?= To: plagnioj@jcrosoft.com, tomi.valkeinen@ti.com Cc: manuel.schoelling@gmx.de, jslaby@suse.cz, gregkh@linuxfoundation.org, andrey_utkin@fastmail.com, kilobyte@angband.pl, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 0/3] console: Add persistent scrollback buffers for all VGA consoles Date: Sun, 27 Nov 2016 17:51:46 +0100 Message-Id: <1480265509-20922-1-git-send-email-manuel.schoelling@gmx.de> X-Mailer: git-send-email 2.1.4 In-Reply-To: <20161123173340.GA24872@angband.pl> References: <20161123173340.GA24872@angband.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:kvKj8kZzcBcsj+IzDhsRKgYd3CjNxE2u0QNPbTz0EZFntdLLdZe oWKxEN4N1hnkGSuA0vhLgmAIcbv0slyhutAfPtPCxeySF+yhUey7czDY7e2IcKfmai9RhFi U+kyajH1M1E8ToZPOPtseCnxf3F+mf4havs57OszbxvBnxGuTCkdWocyD4+6uax2qi4IPBF IdAU9ZW/zROlem4LZAaUA== X-UI-Out-Filterresults: notjunk:1;V01:K0:88x10K/xoWQ=:yMPgN6ZSn3J3NioZVK5n+0 IrQVKsyBZ2FixBsBHHFJrwheIQb5Rx62ohrPj4WOw6V2QqC8UCDKHTAfB/x6sQIBWuHoNpurR fXiHV+E5NzxJgBbJ4UdWd7RoDQjB8b6PByYw6NLg3cMYeG9yvf2f2GM3v7+1NMHh0Nv7QKd2N e4DR4trm3niZBUwMQ1I+U6w+FbZodnToYYKTKvv/tqM/feuqDynXWKSnlBL6jBYY0rJzyuBRR IqBMVQt4SsMIe/m5Owm8tOglG8+IoFTCS+Ug7QUBKyq+5dO3jgQMxquECFpedddAGw6BxmR7Z /7xR5sR+jpxB0VwlvEqwOQZEWVQFSZdY4BsJQOuumC06Iw8tScy+rC86AGBKwS7ca+OdzlznV 7SuX6XZ6C24DlBSwyBsyQleHuLs5M2SEfdmL1mjAf30hpauwCcMztGFfwuiCN9dbER4Zwthq1 QGe3MXcbk7A3QDMKChkpnobM9jm3M5EAfhnxLqOH9xW+CdqOEj5PjmqMgXWyINOFQmEWgSfIZ e7reXBkgWYlpWPIB5rjtr7Z5qCqjMORGnsjwavuOJqM0AbPQSSMT0u71hg7ejfvAaxLnDDDAJ cSlSQgB8oT6QhlvIihIFgDN2X+kuG4kPO+FnTPCTp1ILfsmpNNWGzyP/wpZrQgjrzpiqOlmsZ 5/R6RvcXRExOiWcO4amyRIHjyCRiGXWC3aoOI2ASUMXoWtE7dlNYhCSC9QUa6uGn8vLxnQAb1 p7mH7jCLVoDsQYR7XEfQf3TB8oB0J0J9JZ1wzfFO79Tbp2w7Mt+tiFZDMzDVPF7Q4jj+wIoej hQd71RA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1694 Lines: 45 Changes in v7: - Add new callback to consw struct for flushing video console driver's scrollback buffer. Fixes issues with escape sequence '\e[3J' reported by Adam Borowski (kilobyte@angband.pl). - Fix style issues Changes in v6: - Change of check if feature is enabled in vgacon_scrollback_switch() Changes in v5: - Clearify documentation - Skip superfluous array initialization - Disable scrollback if buffer allocation fails - Refactor vgacon_switch_scrollback() - Rename vgacon_switch_scrollback() to vgacon_scrollback_switch() - Add check for fg_console in vgacon_scrollback_update Changes in v4.1: - Fix compiler error Changes in v4: - Rename from VGACON_SOFT_SCROLLBACK_FOR_EACH_CONSOLE to VGACON_SOFT_SCROLLBACK_PERSISTENT - Split into two patches - Rework documentation - Remove cosmetic changes in comments (postponed) Changes in v3: - Add config option for this feature - Fallback to old scrollback buffer if kcalloc() fails - Remove ioctl() call again and add documentation about existing escape sequence to flush the scrollback buffer Changes in v2: - Add ioctl() call to flush scrollback buffer - (Patch v2 was not labeled as such, sorry) Manuel Schölling (3): console: Move scrollback data into its own struct console: Add callback to flush scrollback buffer to consw struct console: Add persistent scrollback buffers for all VGA consoles drivers/tty/vt/vt.c | 9 +++ drivers/video/console/Kconfig | 25 ++++++- drivers/video/console/vgacon.c | 165 ++++++++++++++++++++++++++++------------- include/linux/console.h | 4 + 4 files changed, 148 insertions(+), 55 deletions(-) -- 2.1.4