Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1449939pxj; Sat, 15 May 2021 15:31:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSeqm3oq4Y9Jc5r73CCtQntypEw+GtJ3WD+XL8q4ttcn6wK89e2n7B6qbV8MpUHadvS7Kl X-Received: by 2002:a02:7348:: with SMTP id a8mr49149265jae.116.1621117881865; Sat, 15 May 2021 15:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621117881; cv=none; d=google.com; s=arc-20160816; b=UFLol2g2ExIUKVJfRkQnptiivCyIbO3dU2PNYeXPNqej0BBCzQe4UmUhiYK5eBqa7d tHpEw5fBrklnEiUQba9+Zqzbh9pm2PO2QB4ktmdzmWAKL/EtrC3l32em18tc50lgOvUM eMTz1WwhXtPJlywGap/MuAAJL3X7TXNGYzUWve4nikL2wlOOzP67n5N5tWuXrTpxq4wT tsOvB7NdFN1eWvku3t1pu9ffDNG4okznQaL++C7tC9xvrREfE2V7yzTkC0he02Oe0O8f s7r6UlBAcdZQAEUNuCWH+JLEYBnXbfEY4cwrYK5/AZKgLs0dd5YJtKVqsY+G5eqz9nIK jBgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=0ztcH7Wm3cIAYxXvAhRlDr7xWkDZNzpp7qtKo9Xnbr0=; b=udgNpCrFNMIDD93PrAoE6AQIzdzyp6INO9Kh6d9KkFLQ3lkUH+lwxqigRb2fSxBri1 CJ9lN2wZKM3kZYsBFIO3RUmhPmBAHQGVq/L2xOvsTyus1zhD4J8n4VDTzPeRLAQNUBzG AuHRpu/4/NVzqyKTVQMM1Yvy7VtBUR0GqmX8HYSxszumBA7qsvaI0cBcbcBfbwovXQ5s KAc/Ky8egA3+8RXBvgnwsy4bwPZloj+DdwwFVpWLzor7uGN2ajThYd5JpwNx630Dpp3t VCxAWP41JrbX1u1pCSjLJqFvpzYnTAg2rx4MkfNSvP820vLdcEAEbQsFZjavG2Zt4wXl LJhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u12si11673565jak.73.2021.05.15.15.31.08; Sat, 15 May 2021 15:31:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229455AbhEOQeZ (ORCPT + 99 others); Sat, 15 May 2021 12:34:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233777AbhEOQeN (ORCPT ); Sat, 15 May 2021 12:34:13 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B4CB3C061573; Sat, 15 May 2021 09:32:59 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 93FDE92009C; Sat, 15 May 2021 18:32:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 8C64692009B; Sat, 15 May 2021 18:32:58 +0200 (CEST) Date: Sat, 15 May 2021 18:32:58 +0200 (CEST) From: "Maciej W. Rozycki" To: Tetsuo Handa cc: Linus Torvalds , dri-devel , Linux Fbdev development list , Linux Kernel Mailing List , Daniel Vetter , syzbot , Bartlomiej Zolnierkiewicz , Colin King , Greg Kroah-Hartman , Jani Nikula , Jiri Slaby , syzkaller-bugs , "Antonino A. Daplas" Subject: Re: [PATCH v2] tty: vt: always invoke vc->vc_sw->con_resize callback In-Reply-To: Message-ID: References: <0000000000006bbd0c05c14f1b09@google.com> <6e21483c-06f6-404b-4018-e00ee85c456c@i-love.sakura.ne.jp> <87d928e4-b2b9-ad30-f3f0-1dfb8e4e03ed@i-love.sakura.ne.jp> <05acdda8-dc1c-5119-4326-96eed24bea0c@i-love.sakura.ne.jp> <97f1d292-c3a8-f4d6-0651-b4f5571ecb72@i-love.sakura.ne.jp> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 15 May 2021, Maciej W. Rozycki wrote: > On Sat, 15 May 2021, Tetsuo Handa wrote: > > > diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c > > index 3406067985b1..22bb3892f6bd 100644 > > --- a/drivers/video/fbdev/core/fbcon.c > > +++ b/drivers/video/fbdev/core/fbcon.c > > @@ -2019,7 +2019,7 @@ static int fbcon_resize(struct vc_data *vc, unsigned int width, > > return -EINVAL; > > > > pr_debug("resize now %ix%i\n", var.xres, var.yres); > > - if (con_is_visible(vc)) { > > + if (con_is_visible(vc) && vc->vc_mode == KD_TEXT) { > > var.activate = FB_ACTIVATE_NOW | > > FB_ACTIVATE_FORCE; > > fb_set_var(info, &var); > > LGTM, although I'll yet try to verify it with hardware. But it'll have > to wait another week or so as I'm currently away from my lab and this > requires physical presence. NB I suggest that you request your change to be backported, i.e. post v3 with: Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable@vger.kernel.org # v2.6.12+ Maciej