Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1218658pxb; Tue, 1 Feb 2022 22:53:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxW8Pxb9lAGXSv5Uput8rwhOckkmNASFT+bllF2qZ8Cl/KxNQg4NO9QWa2snUS9hlbsrLPN X-Received: by 2002:a17:90a:764f:: with SMTP id s15mr6611582pjl.80.1643784807395; Tue, 01 Feb 2022 22:53:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643784807; cv=none; d=google.com; s=arc-20160816; b=yZiR4J2hkB5+raaSrHYtraBiYw05pvrHWTtHPn76G4ZAnv77L7sru9rkWi7TOgAgR+ gxl00fnvxJ8oD/tggL5Cd/BbHJxt8d1RwnP5RJaFyqHF8xhc3PgP8D5tViPBffwLzC5i WH4CwZHeZr0dU93IgP8M8ng1eMPaWNWd24P4L7jR+nVEGojenehyOEXraYsJAt//lyp6 MnhIhZI5ZcsfIZu6EXwkUBr9eCYvPL2NJW8qmpfAloF5jU9v/6plQNrCeCmMz0w0SXdn ZD2rGJdCitXm546GQhZzJbJQKHjQqGBP0Zzpa9lGiOBheOBzyN40Sq8fhQHNINOgzrhs yM5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=d3izBNHy7SoLZWdP4cIdQb4vcoAyXBrM9xepFYVrApY=; b=ZS4dluPP00pINLVEj5Jc8kPraTJrL2tHFYkpFZS0ibRi1MB8dyTnqdJPalZ4wTe4+d j5+V3B1WBHGsu4S3Hs3+JeMyC3M1vpLtpXUcNNy+8T9jy//ZikpQGdHGdQQyB/W4Px/2 bxskzWqqY6cqKkVK8fAYDOD4o2IIzoKIpHhn+xNc3Bu+D2P8Ayoa8FIHGMEd3v+SlPkl vF/KadFDclb9AUT0Mmu0P9BYRR4t33BavFw8nHKpqUfUn+N5qoPTg5+hE+RzCeIGGE9n iQdq9079NTzwa3KeTnGjHXublF4St7XLHzUa81TH2F6ThkyYZsKDRVvear6zLD1liFY9 w6IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Cq9r3Q4W; 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=fail (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 a15si17255298pls.47.2022.02.01.22.53.15; Tue, 01 Feb 2022 22:53:26 -0800 (PST) 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.net header.s=badeba3b8450 header.b=Cq9r3Q4W; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239474AbiBAOxB (ORCPT + 99 others); Tue, 1 Feb 2022 09:53:01 -0500 Received: from mout.gmx.net ([212.227.17.21]:59689 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239488AbiBAOxA (ORCPT ); Tue, 1 Feb 2022 09:53:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643727136; bh=Ppu2fe2SknRqCjzPrLpnrgoT74PeIL15x7uU295nYeg=; h=X-UI-Sender-Class:Date:To:Cc:References:From:Subject:In-Reply-To; b=Cq9r3Q4WKKEjm0CRulBWduKgYFnnGfjEnR24ea08TpxOKDjosBoMReQJ/NyFwigSj rrHMv+Gp3Cf9/kotxTSRunQHc/8eKn16gVdS00P0VyCvWdgriZBkqrXGHUVd4UzPEm gyHdYyoNFw6u352SzovoETa3Hubsvagmuuxa+dNY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.146.124]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MbRfl-1mdMlq3VsH-00bq89; Tue, 01 Feb 2022 15:52:15 +0100 Message-ID: <313c4c72-364b-1d61-09c1-e4a83cbefe6a@gmx.de> Date: Tue, 1 Feb 2022 15:52:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Content-Language: en-US To: Daniel Vetter Cc: DRI Development , Intel Graphics Development , linux-fbdev@vger.kernel.org, LKML , stable@vger.kernel.org, Claudio Suarez , Dave Airlie , Jani Nikula , Linus Torvalds , Pavel Machek , Sam Ravnborg , Greg Kroah-Hartman , Javier Martinez Canillas , Tomi Valkeinen , Geert Uytterhoeven , Thomas Zimmermann , Daniel Vetter , Sven Schnelle , Gerd Hoffmann References: <20220131210552.482606-1-daniel.vetter@ffwll.ch> <20220131210552.482606-4-daniel.vetter@ffwll.ch> <9c22b709-cbcf-6a29-a45e-5a57ba0b9c14@gmx.de> <63018892-68e8-01b6-1e8f-853892e15c97@gmx.de> From: Helge Deller Subject: Re: [PATCH 03/21] fbcon: Restore fbcon scrolling acceleration In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:IRy4dUpPRyC6JoVz6eDbg44ZsDZq9HRZagPV8o8rpwmU0AsYWE9 O62wvVZyQ6f0IcW5rn//EpW1cS0UG8iiJjLCEv6ptvqJ/fr6EtQTvPenfxV/0MwO8r9nIDS RJi5Y3cXjWc77t/8CDdpQUsA72tqfymYqezS8MevmF/Qk5zwLfmip0iPhAdNN3QMDPsBN8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JzzgkX3apBgXQHXaFx+mzPQ9mgLuFLJpNPa4udUTLTW2fD5cj1yrYle D1kEVtnQI4SQ5wKHh5u+7Ce/IfqU++pt6JpPd53cuy+qWBt3D0hjwexqcBdqnBn80XEW6Ykdm dDut2SJwCGi2D4= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/1/22 14:45, Daniel Vetter wrote: > On Tue, Feb 1, 2022 at 12:01 PM Helge Deller wrote: >> On 2/1/22 11:36, Daniel Vetter wrote: >>> On Tue, Feb 1, 2022 at 11:16 AM Helge Deller wrote: >>>> >>>> On 1/31/22 22:05, Daniel Vetter wrote: >>>>> This functionally undoes 39aead8373b3 ("fbcon: Disable accelerated >>>>> scrolling"), but behind the FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION >>>>> option. >>>> >>>> you have two trivial copy-n-paste errors in this patch which still pr= event the >>>> console acceleration. >>> >>> Duh :-( >>> >>> But before we dig into details I think the big picture would be >>> better. I honestly don't like the #ifdef pile here that much. >> >> Me neither. >> The ifdefs give a better separation, but prevents that the compiler >> checks the various paths when building. >> >>> I wonder whether your approach, also with GETVX/YRES adjusted >>> somehow, wouldn't look cleaner? >> I think so. >> You wouldn't even need to touch GETVX/YRES because the compiler >> will optimize/reduce it from >> >> #define GETVYRES(s,i) ({ \ >> (s =3D=3D SCROLL_REDRAW || s =3D=3D SCROLL_MOVE) ? \ >> (i)->var.yres : (i)->var.yres_virtual; }) >> >> to just become: >> >> #define GETVYRES(s,i) ((i)->var.yres) > > Yeah, but you need to roll out your helper to all the callsites. But > since you #ifdef out info->scrollmode we should catch them all I > guess. Right. That was the only reason why I ifdef'ed it out. Technically we don't need that ifdef. >>> Like I said in the cover letter I got mostly distracted with fbcon >>> locking last week, not really with this one here at all, so maybe >>> going with your 4 (or 2 if we squash them like I did here) patches is >>> neater? >> >> The benefit of my patch series was, that it could be easily backported = first, >> and then cleaned up afterwards. Even a small additional backport patch = to disable >> the fbcon acceleration for DRM in the old releases would be easy. >> But I'm not insisting on backporting the patches, if we find good way f= orward. >> >> So, either with the 4 (or 2) patches would be OK for me (or even your a= pproach). > > The idea behind the squash was that it's then impossible to backport > without the Kconfig, Yes, my proposal was to simply revert the 2 patches and immediatly send the Kconfig patch to disable it again. > and so we'll only enable this code when people > intentionally want it. Maybe I'm too paranoid? I think you are too paranoid :-) If all patches incl. the Kconfig patch are backported then people shouldn'= t do it wrong. > Anyway, you feel like finishing off your approach? Or should I send > out v2 of this with the issues fixed you spotted? Like I said either > is fine with me. Ok, then let me try to finish my approach until tomorrow, and then you check if you can and want to add your locking and other patches on top of = it. In the end I leave the decision which approach to take to you. Ok? Helge