Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751530AbcLDKyf (ORCPT ); Sun, 4 Dec 2016 05:54:35 -0500 Received: from mout.gmx.net ([212.227.17.21]:57848 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750804AbcLDKyc (ORCPT ); Sun, 4 Dec 2016 05:54:32 -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, 4 Dec 2016 11:53:53 +0100 Message-Id: <1480848836-11330-1-git-send-email-manuel.schoelling@gmx.de> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:e8DXR2uTotVyGl5DOoBYjXo0QXNjhOu9X3I1RpdzRegGhLec8Ji IWi5aadKURghrJ1W27Wj5MFesUKBIpmt0xEG8jFUZT4zr3dj9jbPD12XfznYT9Qvp+QizvE pV87Mjj0nURyEERY/hA92F6LxsDOYBGLJNWzgPOjD30UPyZ+0gLZvLDuuRXtt8XceVSUSh6 wm+usPd8SHjF3WsvbWgyw== X-UI-Out-Filterresults: notjunk:1;V01:K0:lnF7MQv+tLk=:aNAz2Nt0sB57Yxrwy1mmqZ b32x1yjp1HJR2QSnoN0kjWS0m/SS/jG4xGiuzmIuGSYpxYVIyH266+YLfW66uE+XenbwLBkF1 Mt2bvdK6BkWqADs/YwH880x/ofc7uM33kCzqDP7ffJKB/MIhbOHqnnI866Dm9ebcp50OEjYRb /KiRx2fcB/0lN4ZhVS2QtzE1l6Nxfu4EkKXcMn/6vrY+toLJFF3YNMp+wg3y6rUx+CNKanhac AJ5xd0dCnSYASWXBe3zfVps8UpWDH1AL1Gmujt57pg4Xm3RkzwFa3aJr27dokQe92mDQ0AY2T MnbJpckPE5JclUk1IjxfmL63eImQto6FDE5iXnAJo5TNWX+Zqxdv8ZTKLsp0wd8sNAy+udjKo YR23gs2f8QkeoqOHrXCV/WZqFpk2a7nGCHBdlwse4VCu6AZsVrXccn2cc7FwY6W0a8+S+tb3n vTS6V9yhgW6dcr/K/ZSrz9avgVL3uuqCMVz9/yUfUAzq5ArSR3laMGOUbCfdXDjedVyFx8E4c rYVGKVVP7gIgv5WCm58wYZLr6TDcn7d9tzMN0KcZQvJRACmbSYfZVV33sVE1ODRZIYDT5MFdR VMfCgzk5aV5NP9ykkNRciGlIeu55EMLijS58Wm6upmHYfWO3v4huuqjCHqUyRLiUW0/xzo8mk dgf2KYsldSrtSeJv/cNVgV8E2WIOMzngIXGrHzuhfT9kktLhEbzwxMstgrvVbRTFSmIbPDXBA EqpvTPL8Bvsr11pOApUNHHUNxZTXPjQwr7whtNBmaQF0jwlDlkJC5/ENym2EJbrV6E/dgEiG7 kHM0Dyq Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1851 Lines: 50 Reviewed-by: Andrey Utkin Tested-by: Andrey Utkin Tested-by: Adam Borowski -- 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