Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4959255pxj; Wed, 12 May 2021 17:46:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwljgxRqXZBy1torftrERoYGfV/5qNFuuJzd6sqJ8v6gTqOi0jrpDI63zHMNuDBqN0abLH3 X-Received: by 2002:aa7:dc15:: with SMTP id b21mr47702891edu.350.1620866817105; Wed, 12 May 2021 17:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620866817; cv=none; d=google.com; s=arc-20160816; b=o2rFpI0kcC+OjfwVsJ13pGyxMn6VluDxLu/3HA7zi2S5r/8ynGQZKUdkjgNlP3uwPy uzwrdqkFyDn0Wb/us99vwv+ao0/5+myd2ZdEHXOihyOUkXXJOSNSKj1nT4TQjpQdJ6Wy iGlXqRFWFHCbzL+T9g1f/Hbw63RfjFUSF4r2kjodPh3xntnPt4xiyAISWs2zIvALJPUA z+QdZZGt4cQfIQzPad3Fqd7F2eGo7opzleCP1rNLZ2W1PlWh8JrDwdlPe+JyEEjKBlNR kR6sIU36zooQVDpX0s8A6rmDmXpTFmR/QrhYiqqgP8nLSac70WDYlSlBnG+9XMMKG7Fh Eeuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:subject:cc:to :from:date; bh=Jk9IbaCeoGKNwxaS5wJf9CR3Apfz0BBVuPcf9UuhoTc=; b=QYuln64h3G8UUo/Q+XuPNsVFtdzi/6SdKAxjlFXcjycg/zDfc+flUwDhSIXJpIoiAN OybqZQtBq9OlHXWfHXzT3Rk4YEHmbTUNP1m6b8RaD7Y5ON42WGKYXNIEOjtsoz+fKofI h21saaOs6biDgXIDxBBh+FduDWpkYnMpq5DdFm0FmaaeVz/eBm0xlceBPt1aDX9kynPt nRAxV25O7POFmqdygerIRo4cY+4tjJx/oykMs6YgjLtGX6Errgi/bnNZooQhdf+S7wpL wBk5d/Tf3xAvUqIidEP1XlY3qZ3Tvhpz0vDGD8io9kDLIc2S/rg0n0zGKmTpxKkRfZi7 ezqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b23si1354345edv.199.2021.05.12.17.46.33; Wed, 12 May 2021 17:46:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235893AbhEMAkj (ORCPT + 99 others); Wed, 12 May 2021 20:40:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239342AbhEMAiY (ORCPT ); Wed, 12 May 2021 20:38:24 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8DBA1C061760; Wed, 12 May 2021 17:37:15 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 7E0FB92009D; Thu, 13 May 2021 02:37:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 79B8D92009B; Thu, 13 May 2021 02:37:13 +0200 (CEST) Date: Thu, 13 May 2021 02:37:13 +0200 (CEST) From: "Maciej W. Rozycki" To: Greg Kroah-Hartman , Jiri Slaby cc: Linus Torvalds , Tetsuo Handa , Daniel Vetter , Martin Hostettler , Peilin Ye , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] VT_RESIZEX fixes Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I got to the bottom of the issue with VT_RESIZEX recently discussed and came up with this small patch series, fixing an additional issue that I originally thought might be broken VGA hardware emulation with my laptop, which however turned out to be intertwined with the original problem and also a regression introduced somewhat later. This had to become 1/3 then and to make backporting feasible I had to put a revert of the offending change from last Sep next, followed by a proper fix for the framebuffer issue the Sep change tried to address. See individual change descriptions for details. These have been verified with true VGA hardware (a Trident TVGA8900 ISA video adapter) using various combinations of `svgatextmode' and `setfont' command invocations to change both the VT size and the font size, and also switching between the text console and X11, both by starting/stopping the X server and by switching between VTs. All this to ensure bringing the behaviour of VGA text console back to correct operation as it used to be with Linux 2.6.18. A minor glitch observed was that when I called `svgatextmode' while running X11 the screen became garbled and upon a subsequent VT switch to a text console the machine locked up hard right away. This might require further attention, but is not itself a problem with this patch series or a regression. Please apply then. Maciej