Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp206253pxb; Fri, 15 Jan 2021 00:44:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7IDnLQu9OmBO0Sj0KjNt9/5RZqy6PFjAFPxFa0qI2pW3rz1TEXSbd4kgZ6pIGh0qlgHjZ X-Received: by 2002:aa7:d4c8:: with SMTP id t8mr9072001edr.199.1610700289391; Fri, 15 Jan 2021 00:44:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610700289; cv=none; d=google.com; s=arc-20160816; b=zLyeduFtk+cfybJSgpopeOreNz36LP0ZFENKL6JAy8d1ZodBr69mfXq+rySJ6oBR5J WNXLeH2Ow2TKEf4GyitmbMoBxOxHMSowwfQmuHZy3ZDhXkAqTpIZdBXBrqseczVToTQp PixeHEcreXEglgaShKcexc7alYtoCPoD1cR3lb6LnOaqFUb/L87ukN9qubp88J/hTEIn O5ti7Z/bCV3TsUg+fWyUJNzgN+GmLqSZ21rVoPhEqV1QEwCItPLWbmcUqyDNlAV/ymc9 h/0F5LQwTezQY5qWfz6XbKzFQgcyWK3w6qrhbFmjJ60Y0S+HCueJccAaNE/mRHu74QNa EG0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=KHJ4LFBTeySXrAB0B3j8k7W0q4a43BLWpsk73jsTU8I=; b=kNUpfHy8zHG4P913jSgFYzwkN8xFCFolioW3zx13/0l82WbQYrqS1brTDNQ6FwOoRW Fmpbq2SL1rx7ebfyJPsHgfTR2yGUdYGBrDV3rtplYTbBiG/DIythE8zUV3Cic2M8EkTO 4vk22IMGvXxu9r+4cTwrQyU/Wzvwbf3igdDWRaxLefcgVGh2ToX+LNAhkAEAIti0/luy DTwxUelPr2FjiG6HKGMJrEarnTlihSGtb4sJT++vR5tQRkujezm8Z3sX5GvqEnsZjvU6 z3epMtePPvo3f0LZBm/AWqpfRh/gI/gI7X2k5+eVs3TYJ7K007oKyvOMr/CJGDWz4qhr FxQA== 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 i19si3745985edq.373.2021.01.15.00.44.24; Fri, 15 Jan 2021 00:44:49 -0800 (PST) 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 S1728688AbhAOIH0 (ORCPT + 99 others); Fri, 15 Jan 2021 03:07:26 -0500 Received: from mail-oi1-f179.google.com ([209.85.167.179]:46130 "EHLO mail-oi1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725797AbhAOIHZ (ORCPT ); Fri, 15 Jan 2021 03:07:25 -0500 Received: by mail-oi1-f179.google.com with SMTP id q205so8686432oig.13; Fri, 15 Jan 2021 00:07:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KHJ4LFBTeySXrAB0B3j8k7W0q4a43BLWpsk73jsTU8I=; b=NoLkyZsN+ZgPjDcb6PrXIWaPgVLiEBhFVaC15tvTWzZTUId5jh5K/2zcATLH8Dbged jJRqx2FNWthMvuf3+4DHWomQZJp6WEMEXaxq+Sg988OYZV+tDGMeA2IjcgvTgRIzlRgO 0v733gm7fvpLvEQbsyRl3nhjFq04gtt3iK89wbJB03+KcE8Fj84HZRjdrOn7Tpt2RXmu OeoD0Yidw6DVRPpNyPfvph1PwfPUNKQ/jeQwIxOXXXeca3w5RqhNKRr+Oj/Ah/hiPgQ/ Ridhjq0vALzeGpzpJLZRZ2P/7f4BzGAey7zbzepgoZEi+XKgzbm3GmFp0DECLawgBnJY p2Pg== X-Gm-Message-State: AOAM531HPJYd5jpuHhRtnXxQY+jzgj6JX1uWIC5QKGQWGDjISXe4WT0G 4WNMY9Q1e/3YC9I2a02aiqiqxR7Lj8IV0XZNtQU= X-Received: by 2002:aca:4b16:: with SMTP id y22mr4929340oia.148.1610698004707; Fri, 15 Jan 2021 00:06:44 -0800 (PST) MIME-Version: 1.0 References: <20200916205434.GA10389@duo.ucw.cz> <87czyf5jjp.fsf@vps.thesusis.net> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 15 Jan 2021 09:06:33 +0100 Message-ID: Subject: Re: fbcon: remove soft scrollback code (missing Doc. patch) To: Daniel Vetter Cc: Linus Torvalds , Phillip Susi , Pavel Machek , Randy Dunlap , LKML , "linux-doc@vger.kernel.org" , Greg Kroah-Hartman , dri-devel , Linux Fbdev development list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, On Thu, Jan 14, 2021 at 5:11 PM Daniel Vetter wrote: > On Thu, Jan 14, 2021 at 4:56 PM Geert Uytterhoeven wrote: > > On Tue, Jan 12, 2021 at 5:00 PM Daniel Vetter wrote: > > > On Sat, Jan 9, 2021 at 12:11 AM Linus Torvalds > > > wrote: > > > > On Fri, Jan 8, 2021 at 11:13 AM Phillip Susi wrote: > > > > > > Could we pause this madness? Scrollback is still useful. I needed it > > > > > > today... it was too small, so command results I was looking for > > > > > > already scrolled away, but... life will be really painful with 0 > > > > > > scrollback. > > > > > > > > > > > You'll need it, too... as soon as you get oops and will want to see > > > > > > errors just prior to that oops. > > > > > > > > > > > If it means I get to maintain it... I'm not happy about it but that's > > > > > > better than no scrollback. > > > > > > > > > > Amen! What self respecting admin installs a gui on servers? What do we > > > > > have to do to get this back in? What was so buggy with this code that > > > > > it needed to be removed? Why was it such a burden to just leave it be? > > > > > > > > It really was buggy, with security implications. And we have no maintainers. > > > > > > > > So the scroll-back code can't come back until we have a maintainer and > > > > a cleaner and simpler implementation. > > > > > > > > And no, maintaining it really doesn't mean "just get it back to the > > > > old broken state". > > > > > > > > So far I haven't actually seen any patches, which means that it's not > > > > coming back. > > > > > > > > The good news? If you have an actual text VGA console, that should > > > > still work just fine. > > > > IIRC, all of this was written for systems lacking VGA text consoles > > in the first place... > > > > > Also on anything that is remotely modern (i.e. runs a drm kernel > > > modesetting driver undearneath the fbdev/fbcon stack) there's a pile > > > more issues on top of just the scrollback/fbcon code being a mess. > > > > Would it help to remove DRM_FBDEV_EMULATION (instead)? > > It's a problem with the hardware. "Write some registers and done" > isn't how display blocks work nowadays. So your proposal amounts to > "no fbdev/fbcon for anything modern-ish". With "modern-ish" actually meaning: "desktop/gaming/mobile-style 3D-accelerated wide-color display hardware". There's plenty of display hardware that doesn't fall into that class, and is served by fbdev (also out-of-tree due to the moratorium) because of that. > Also I said "a pile more", most of the issues in fbcon/fbdev code > apply for all drivers. > > > > Specifically the locking is somewhere between yolo and outright > > > deadlocks. This holds even more so if the use case here is "I want > > > scrollback for an oops". There's rough sketches for how it could be > > > solved, but it's all very tricky work. > > > > When an oops happens, all bets are off. At that point, all information > > you can extract from the system is valuable, and additional locking > > issues are moot. > > Except the first oops then scrolls aways because it's getting buried > under further fail. Your locking needs to be minimally good enough to > not make the situation worse. When an oops happens, all bets are off... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds