From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Slaby Subject: Re: [PATCH] fbcon: Disable accelerated scrolling Date: Thu, 29 Oct 2020 06:42:39 +0100 Message-ID: <997267e5-40c1-2aaf-235a-ff14f2d101e6@kernel.org> References: <20201028160600.3752105-1-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20201028160600.3752105-1-daniel.vetter-/w4YWyX8dFk@public.gmane.org> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: Daniel Vetter , DRI Development Cc: Bartlomiej Zolnierkiewicz , Tetsuo Handa , nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, "Gustavo A. R. Silva" , Peter Rosin , George Kennedy , Tomi Valkeinen , Ben Skeggs , Greg Kroah-Hartman , Daniel Vetter , Nathan Chancellor , Linus Torvalds , Peilin Ye List-Id: nouveau.vger.kernel.org On 28. 10. 20, 17:06, Daniel Vetter wrote: > So ever since syzbot discovered fbcon, we have solid proof that it's > full of bugs. And often the solution is to just delete code and remove > features, e.g. 50145474f6ef ("fbcon: remove soft scrollback code"). ... > --- a/drivers/video/fbdev/core/fbcon.c > +++ b/drivers/video/fbdev/core/fbcon.c > @@ -1147,11 +1147,13 @@ static void fbcon_init(struct vc_data *vc, int init) > > ops->graphics = 0; > > - if ((cap & FBINFO_HWACCEL_COPYAREA) && > - !(cap & FBINFO_HWACCEL_DISABLED)) > - p->scrollmode = SCROLL_MOVE; > - else /* default to something safe */ > - p->scrollmode = SCROLL_REDRAW; > + /* > + * No more hw acceleration for fbcon. > + * > + * FIXME: Garabge collect all the now dead code after sufficient time If you go this non-invasive path, then only a nit here: "Garbage" thanks, -- js suse labs