Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9112880rwr; Thu, 11 May 2023 10:06:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5E6wWjOF9M1IbhMhV3Tmm63FecaGAU4iTLZkVathNtfc35UuXH0hXxzdIGkY1gNWr9Fsnl X-Received: by 2002:a17:90a:458e:b0:24e:277a:c031 with SMTP id v14-20020a17090a458e00b0024e277ac031mr22080037pjg.28.1683824799999; Thu, 11 May 2023 10:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683824799; cv=none; d=google.com; s=arc-20160816; b=rHcUryuReREqS2JCTFAuFg3wDZpH4RBfc3NP8dUyWybiZHlEDP4qa59KdbALq3HTuk Uft50fTSy7fU8JLb8+nV8+3zifpRaIl1PX7ywhP5HClmK/VA/oBXF3FQJSUo/WjQdVJz m9Syt1od66hGAsR2ufmuJr+VVwQt38Nb1QMNuM3UN897rEc+CKvqzdpFiDdCHMTy0368 kFhUPYzzyR/DpfknZr6GWyzKziR+OGI+PeMNl9I3bkHoNNEv5KMxDmjtBeTy4BFLxma4 gY1DcxFKACu4SAQ0+mbvRn3MsO1D+b9kasqAZFER3uDImiKaaXgHDzC2aJAaeyDmZ2NG Otgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:subject:from:references:cc:to:content-language :user-agent:mime-version:date:message-id:dkim-signature; bh=TUfys7E+944TFOkISLZBtPQGBgxCF4KtXqESXjvmNFU=; b=zu2BQ2k/AV/qEmUxpEmfWgEH6aTa17l9NTfRWJQ1glZdedGo7TNXf5qRC+czQ9SU6O +QHLdgI19BqQoiH01XoTdSJ7uD66M+aSXiW6mRsy0oMy7Qh4PU3FkS4D2d6sh6EJGUZZ k36nNmyFgP+JdrFqZCEqstFca+nsqlYDnyxB1A/9Nyc+b4rS6s/q3VFV7diTzDIeAnw2 Ig90o1cyUgAI2l6MvN/kWi2NyvRls9H36NhCqDoOFr532j4CVRzgRVNJCYnfvyqTYxLz iJxIiBecmVrFlIaaEcrs3uODWqAD4373dAjbGxovPkwfWNwM+JwyUCkItxYahTrCx8WB w7dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=scv9qxT9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6-20020a1709027e8600b001aafe496e6dsi6880781pla.539.2023.05.11.10.06.24; Thu, 11 May 2023 10:06:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=scv9qxT9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238776AbjEKREe (ORCPT + 99 others); Thu, 11 May 2023 13:04:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238664AbjEKREL (ORCPT ); Thu, 11 May 2023 13:04:11 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD2251FEA; Thu, 11 May 2023 10:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1683824541; i=deller@gmx.de; bh=TUfys7E+944TFOkISLZBtPQGBgxCF4KtXqESXjvmNFU=; h=X-UI-Sender-Class:Date:To:Cc:References:From:Subject:In-Reply-To; b=scv9qxT93PJ7A0UpCn69G+Ly5nTi+CXfVcQmXYY0h5U3YKxRkMjuKYktk2on7nOFP +AXaTie+FVz84ad9703BT/WeO4aZ7ptb8tnaiPfzz6ORJatrz384WE4XZ8i9GYVhna 7KmGx8EJWaX1F5XLWgxdLVx7/8Nv5MzpRCysPIfOrdmu9U/LbeEaZxifvRcrDJL3fS tL8aoUk5gGBorCdu0HZi7DBndQn+2pRPNZBWktrMw3KCcIZEMSqDrxjeC3V6adWcZu etqXIWGauT8+6v/BDBVW/JNiEzv+ZuzNug/MObZqzswP6TaulVmOafXNvyFot1jhf6 L9qea8qKFiFcA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([94.134.146.253]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MiJZO-1qRW5D0kr8-00fRyc; Thu, 11 May 2023 19:02:21 +0200 Message-ID: <1c7ca6d3-76d7-047b-42ac-716e12946f90@gmx.de> Date: Thu, 11 May 2023 19:02:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US To: Thomas Zimmermann , Sui Jingfeng <15330273260@189.cn>, geert@linux-m68k.org, javierm@redhat.com, daniel@ffwll.ch, vgupta@kernel.org, chenhuacai@kernel.org, kernel@xen0n.name, davem@davemloft.net, arnd@arndb.de, sam@ravnborg.org Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arch@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, sparclinux@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-parisc@vger.kernel.org References: <20230510110557.14343-1-tzimmermann@suse.de> <20230510110557.14343-2-tzimmermann@suse.de> <0e13efbf-9a48-6e70-fdf3-8290f28c6dc7@189.cn> <15fe1489-f0fa-bbf6-ec08-a270bd4f1559@gmx.de> From: Helge Deller Subject: Re: [PATCH v6 1/6] fbdev/matrox: Remove trailing whitespaces In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:ufxNy/weZGscP6z1+yJxtdDriOq+3MhqVBYT0w/Jb/4wi8A99Ir q3ByFzMRRO4dUqy7hFc+cC6yNkkK2QSqIE54t5POprgelcLfG2ncw6s4alEeJ111FqnqJFa 8Kp05TDsMboSk///SW2zrtsgTJUrfeLaADKzc6qnZG/Mlam9qihDJzKya1HMoK80D71UubL wAcLsIQy/lrxpKfcj/x1Q== UI-OutboundReport: notjunk:1;M01:P0:1SaGdAIIpdA=;9AItiyXmKn/Gp7RMlGxwmCRodmr CWgfSrtW37wCM0eDyOgjgDthyt7iwvZxUQNOKI/GSiLUf5QrDOLS3fBoliHuMG2JxPPo3p6zW ys7XBwtkfXF6888crwuYFTFYt6DOu8MUXAPTy5QpV1zcCkbORuigAI4JMNScZW9U4R6zwl608 lDCYZHTHDaoX1sFBFD/F7hSovTMkxooObtEJe3lLBtrcj02z+3iC9IaPTZp1Dk+u0NTRLhOc2 p3Ni45n755W/QPjVeW64D5nwYN+WN0c1NM4Q0E/Zy0inYF4QmTAnINJ42+nqRIXzOp4CDefOD TahZjko9NbIqPwZDlv2ca65IJISU4ZXxyl0CwIfRWK3PrPROxY5R4Qp28iMuzuMl2GEZrdS8n gxXGsBtGQhWh6PPcbDeZ6EEzWeoZDZOdAXsNpXnd1lNQpvUyx4Yed/88XM/rafMboYdnaJmBY orb7xp1ZfLXqbaGCUzGh02pxQ/oBKek13pI6o6sB4sZ/ZnO/43dbfdpvjILnA6kV6O0V1Jhx/ YofcmeYIg9H1KJgoIkTdN1KELUR9kzilR4xETfVWMdC8dkXeqUh1AGaOqag3iU97brNv/ilLD n2NltCLggIAu4psorNUxCx705HkK2uFfOWi6B3r4RbX5V4/D0CMzUIpSEwd6oB7ORk+5BY8qN e2LFmWrtkGd55nGb+MBbTFccLE6jNdNW/qAolaxEYq21PiSA+WwkPnW3Toelu0Y2EjDlaO/mD VB2IIkHuaI15Ctzb5wVa613FEyt2c6/6K9hRfXtRGn8O5pItAxtb4okfEUTgdd+jMOxNy4zAb UoaCQv8l1eBXdWgQwQ0m1Z3zIDXeLrJODqLk2XTzGJxg+WyWQTzHJtHIVuSSxfkyhT2wdwEBA ic+AnpERUoBaWMpNmC2aEGeMMWq6Qnz4FCozkmhRStfC1q501JfllQvAz40v6a9zMa+ZE9N4b eVR7qc1FPZIoBv1aUAH2VDqh+Ww= X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/11/23 16:27, Thomas Zimmermann wrote: >>> But the work I do within fbdev is mostly for improving DRM. >> >> Sure. >> >>> For the >>> other issues in this file, I don't think that matroxfb should even be >>> around any longer. Fbdev has been deprecated for a long time. But a >>> small number of drivers are still in use and we still need its >>> framebuffer console. So someone should either put significant effort >>> into maintaining fbdev, or it should be phased out. But neither is >>> happening. >> >> You're wrong. > > I'm not. I don't claim that these drivers are all broken. But fbdev > as a whole is bit-rotting and no one attempts to address this. There > are several recent examples of this: > > * I recently send out a 100-patches series to improve parameter > parsing and avoid memory leaks. That got shot down. I didn't attempt > to support parameter parsing for module builds. Your work is appreciated and it wasn't shot down, but it wasn't perfect ei= ther. > * There's been a 15-yrs old bug in fbdev's read/write where they > return an incorrect value. ? > * See the other discussion on this patchset on the state of hitfb. > > * The fbdev code I recently cleaned up had bugs in how it uses some > of fbdev's basic building blocks (see the screen_base/screen_buffer > confusion). As you said... some (little-used/outdated) drivers may have issues which of course show up if one starts to clean up, as you do. On a per-driver basis it can make sense to drop a specific driver. > * has been in the tree since 2009 and no one > attempted to include it until now. > > None of this is a sign of good maintenance. > As I've worked on DRM's fbdev emulation a lot, I try to be a good > kernel citizen and clean up in fbdev as well when I see a problem.> But = I'd really like to see most of these drivers being moved into > staging and deleted soon afterwards. Users will complain about those > drivers that are really still required. Those might be worth to spend > effort on. I'd really like to see a way forward and get the required drivers over to DRM, e.g. based on your simpledrm driver. If there is a way to get basic on-screen 2D bitblt and fillrect support, it would drop the need for most of the fbdev drivers. The current way of bitblt'ing from a buffer on regular basis istoo slow fo= r such older cards. Even on new hardware in emulators there is a big slowdown visible. >> You don't mention that for most older machines DRM isn't an >> acceptable way to go due to it's limitations, e.g. it's low-speed >> due to missing 2D-acceleration for older cards and and it's >> incapability to change screen resolution at runtime (just to name >> two of the bigger limitations here). > > You can change resolution at runtime; just not through fbdev ioctls. > There's no technical limitation here. No one found any use for this, > so it's not there. fbdev drivers would need that when ported to DRM. >> So, unless we somehow find a good way to move such drivers over to >> DRM (with a set of minimal 2D acceleration), they are still >> important. > > 2d acceleration is mostly useful for the framebuffer console. and X11 > You can > do that with DRM and drivers have (nouveau). It just didn't make a > meaningful difference in most cases. if nouveau got it, can't it be done for simpledrm in a generic way too? >> Actually, I just did test matroxfb and pm2fb successfully a few >> days back, and they worked. For some smaller issues I've prepared >> patches, which are on hold due conflicts with your latest >> file-move-around- and whitespace-changes which are partly in >> drm-misc. And I do have some upcoming additional patches for >> console support. Helge