Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2891858rwb; Mon, 15 Aug 2022 13:26:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR69jt2595WDs/zmrc7KgyhsDzjkPrNROI8i2hPWUndjclYnlQDn+NftGIgsUNw0Kp2uBjhS X-Received: by 2002:a17:906:9b14:b0:730:984e:a51c with SMTP id eo20-20020a1709069b1400b00730984ea51cmr11095800ejc.435.1660595192361; Mon, 15 Aug 2022 13:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660595192; cv=none; d=google.com; s=arc-20160816; b=qmz2UOEURy03KG58eIjXDk4U3xmG+JQYZ5jCcvVPUMt1DNzJL+AE5UZY3LoDPkMap4 jg7GZno7vuh48sW/B7BWXNR8yoixggJVr8K+YOFlsfqjktag/tCrWNPQwzJbw1wsTadM Gu+Ka5aILvPhEQztUrVBkF7ljkiMehcSxSWpvdblEib/6Xt7HQlT6FJYFhOxOEiAWdRM 6pFQnrGel48SqpApVrFKBJ5SlTV9FCkX9z76xDU6XY7z/Zc4MuYJVCrnvf88NM+DAkkF DOdnQuWtByiZfQ4dqfkLQNC437keA9mYXXbrXDBdBiX0LppnU1uxVwpVrnY4/J7WeiSV M6xA== 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=bDK7Hrkfo7BzFOwBAl99PC14uWQwzmaNVzRQYRe0UNQ=; b=XAZaON42eGAHWVRVXmAgqWWHEE9Hsx9cpqlQNKlfdXdHV6EKU24eukUwJxbbTt27rF +NKG/vQt+d1C8xXQA1PGH0OlIUTvsZa6yvzc8d5UjX/5RACuz5tGS6hZuppsZsoimACK Y+yX1PDblJG6qZRR2nI4EyCdX1Onma40ZSUKsRHxlIvYEvcJqFzUjuDOmZpL2aV4kgNJ KLjUS/avkivlKm5A0IJ/clpKahaNDKGpzKOwapACCpG26r1BtXavff1WAIZqVwjpbDc7 JUIp7BLN8jsAk3Zz7C2Ez9zW6455tMQQuzPF32JkKrCUM3QO5d0HUsfMc2hj97CHElBR 9/Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XoLjRUXA; 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 qb42-20020a1709077eaa00b00711988b5919si7678669ejc.810.2022.08.15.13.26.01; Mon, 15 Aug 2022 13:26:32 -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=XoLjRUXA; 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 S231347AbiHOURL (ORCPT + 99 others); Mon, 15 Aug 2022 16:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346093AbiHOUKr (ORCPT ); Mon, 15 Aug 2022 16:10:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0A9D6447; Mon, 15 Aug 2022 11:56:40 -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 ams.source.kernel.org (Postfix) with ESMTPS id 9BCF3B81082; Mon, 15 Aug 2022 18:56:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFACEC433C1; Mon, 15 Aug 2022 18:56:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660589798; bh=d0+uaXnzk2ajdnldlX+pjv1VYjPMK/590gVPt1rVsX0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XoLjRUXAxQjNDyxEBuy6lR4PV6DrwjmK9NmRPtcCNn/gg3pawfxE6LjQVSxI4RbcV UD4xkJeqcOfjAQNg2Cgkp/2Mcza+45SfzIIeIJVUCp6+sJytucDgEIisRRrBx2qszo fhp+uBfmcV2O2UXHL/f9UaxnDOBwEexRft+mHYy0= 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.18 0051/1095] fbcon: Fix accelerated fbdev scrolling while logo is still shown Date: Mon, 15 Aug 2022 19:50:50 +0200 Message-Id: <20220815180431.588084175@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 @@ -1706,8 +1706,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, @@ -1796,8 +1794,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,