Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3023559rwb; Mon, 15 Aug 2022 16:21:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ItOpitPAR2UW7cG1Zhkc7z/dUk3cduiApqwWrv/6emxBMHlOOf301N0XN3g3tkHOZzMdm X-Received: by 2002:a17:907:2c4a:b0:730:87fe:2a88 with SMTP id hf10-20020a1709072c4a00b0073087fe2a88mr11348202ejc.313.1660605668605; Mon, 15 Aug 2022 16:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605668; cv=none; d=google.com; s=arc-20160816; b=DMWdQvHBkO7BHOiN78z5ahJCbk5i+AHyxn4W4VzzEByk7B+/P8BEJ4pENGtLYUqeT8 RWAgH34r7YaybKIbadcuDj+ITDeyK6mKMlgTaJbDISyI2scE7uiuHSFZEPuMypw1kdSK r48A/G82W89tN4t3FF2l+a931B9O6QDLPGr3m3qDwjRLQAfe/I2bzGmQZhtMoPGNEXV/ yMwes0Yaj9MRZDexe6+JpIHX1oNFJHd/rynkgMh7JfG92qYUsHKdJl08pCXQ5f5pC3Hg 6w+WtvPzlAsz/1Cou0Ycdu6P926WkE2SYXm5nlmhovizKyH1hV7vTO/cfv7Zr9ZcIblH OdIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+6Zsf3URVd931tim9KkbamXfrKwfh1Ln2qluHd1kSik=; b=t1yT0l2rd/xxdSC2VV5+Zm8B8PTWc1wYTSbQY/nXuqnmzoWpO0el4sV9aQ1kfc/+7n I7Du5Xt3Mm7qRIbNB0mEUBcGKCTns+E2w4VrEm5V3G59JX/RDbMrcsm65Rp+zKTPzak0 k/RkFsoXBqrWw+UBOq/8dPw/KvYi6OV9oBtGiNckCVBuIKJDz0o4tAzgMLWnip000J64 /T/Txu+1LlVMq6/m9gFsFLgVmWQp+vnR5//4VXHiBS/rzF4yrF7uod8Zqm5J0pIhAsUe b+8mW9u3Qfnt608k3YOz7cCXbSOPoj0XmmWhJU3RwFazHSt3iwhwzeZPZcqt9kXHKDet kMHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sMoct8Em; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v28-20020a50d09c000000b0043574c5a72fsi9359315edd.360.2022.08.15.16.20.43; Mon, 15 Aug 2022 16:21:08 -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=@linuxfoundation.org header.s=korg header.b=sMoct8Em; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347565AbiHOWFP (ORCPT + 99 others); Mon, 15 Aug 2022 18:05:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245296AbiHOV75 (ORCPT ); Mon, 15 Aug 2022 17:59:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97F65DDF; Mon, 15 Aug 2022 12:35:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A586361187; Mon, 15 Aug 2022 19:34:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9981EC433D6; Mon, 15 Aug 2022 19:34:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592091; bh=t3iB/2Yj1yWIBXjHaQU4ieYA3xkYdMWZDE4hvUfw3Kw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sMoct8EmhT4CaxHoVDumzZOfO9DdicQ5EZEQP2nXgZ8XzjacGcxnqtV5IyjkVTfJP /4IPrPynUJWv/7gFYqflOmkgOcyp/9ni9kePd9o7rPCHqIu9rSlfyT+88fjk9Z6w9n dpkA96shdGtMig+Gf63S+sD13oPed1K2GAbtYfrw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Vetter , Helge Deller Subject: [PATCH 5.19 0057/1157] fbcon: Fix accelerated fbdev scrolling while logo is still shown Date: Mon, 15 Aug 2022 19:50:13 +0200 Message-Id: <20220815180441.754835347@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Helge Deller commit 3866cba87dcd0162fb41e9b3b653d0af68fad5ec upstream. There is no need to directly skip over to the SCROLL_REDRAW case while the logo is still shown. When using DRM, this change has no effect because the code will reach the SCROLL_REDRAW case immediately anyway. But if you run an accelerated fbdev driver and have FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION enabled, console scrolling is slowed down by factors so that it feels as if you use a 9600 baud terminal. So, drop those unnecessary checks and speed up fbdev console acceleration during bootup. Cc: stable@vger.kernel.org # v5.10+ Acked-by: Daniel Vetter Signed-off-by: Helge Deller Link: https://patchwork.freedesktop.org/patch/msgid/YpkYxk7wsBPx3po+@p100 Signed-off-by: Greg Kroah-Hartman --- drivers/video/fbdev/core/fbcon.c | 4 ---- 1 file changed, 4 deletions(-) --- a/drivers/video/fbdev/core/fbcon.c +++ b/drivers/video/fbdev/core/fbcon.c @@ -1760,8 +1760,6 @@ static bool fbcon_scroll(struct vc_data case SM_UP: if (count > vc->vc_rows) /* Maximum realistic size */ count = vc->vc_rows; - if (logo_shown >= 0) - goto redraw_up; switch (fb_scrollmode(p)) { case SCROLL_MOVE: fbcon_redraw_blit(vc, info, p, t, b - t - count, @@ -1850,8 +1848,6 @@ static bool fbcon_scroll(struct vc_data case SM_DOWN: if (count > vc->vc_rows) /* Maximum realistic size */ count = vc->vc_rows; - if (logo_shown >= 0) - goto redraw_down; switch (fb_scrollmode(p)) { case SCROLL_MOVE: fbcon_redraw_blit(vc, info, p, b - 1, b - t - count,