Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1543607pxb; Mon, 12 Apr 2021 00:02:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRNBaIcI1CigpIkTQOw30lCiNVtBg688kAIbBQy6qcWd3Hgwiv58jPuLb+wHmgmCqBELBD X-Received: by 2002:a05:6a00:1344:b029:22b:948b:a548 with SMTP id k4-20020a056a001344b029022b948ba548mr22854246pfu.33.1618210950779; Mon, 12 Apr 2021 00:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618210950; cv=none; d=google.com; s=arc-20160816; b=0FZJgMMDBBD0i81ba+2Qwa9gRJeiaYHo6WT6Y36f5HwB485itLu03zuG6Bf0T6dvhY OCHeWAwYZdRv0rf99XborG98ncNdWvpWmjDUaKFS4n0gTe2UX8Ou5b44iQnrxvel7UVp p817JufdQfeiB69Rz5CQm1dlmK3WzLqo3mQgPA1RVV8rRusm91zAj5xWXhp/lJONVvtN WRwC4jfFGkt062hJlZalyhwaEzSkxmnwxG3D4Pyu305aEfyvDxMMSfC72MID5w2YsGz3 JE2SfK2gsCxsAXdwsML9k8OYhqKlDIt4x4B+gn5TkiFuJWuyqiGa8jm+8TDxU7P5bldr mDIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9eoMDF/wQXgBqcptxwajgyfKHfls18wSno0OgI96W1M=; b=tAhNKoDHGWzNIIflCbjikNe8w0KhL5ZyZYTQjyG+7hk2dMIXNI4Ko3DR7++Z2Nklxn lrn+74A50RmdMJYZQr73OFx1lNqPm177R+Eq8SWDJT/Z4ZYDM0GKwvZP1oCidWI3Lt67 waHv+fMVwT2J3m7HenaK7j2BXmFpJzmPGwtZuN/hAEkkUC+J3/USAlDEj3SbufEnFbQm HS84MHfarST+aN6XHZVI+aXe7utVRsvzH+PKdPq0dTkR7miDJOZE0KbChS1n3hgslry6 lKhtxm1Zum+s1ZZunnMokvhi1YU4QP5WOnRla7tJ+G9h6JHxUQ5OwvfYtTviwkyYUYMR S0pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Z8VViXsU; 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 f13si13092569pgm.27.2021.04.12.00.02.18; Mon, 12 Apr 2021 00:02:30 -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; dkim=pass header.i=@ffwll.ch header.s=google header.b=Z8VViXsU; 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 S236569AbhDLHCC (ORCPT + 99 others); Mon, 12 Apr 2021 03:02:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236677AbhDLHCC (ORCPT ); Mon, 12 Apr 2021 03:02:02 -0400 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5FD6C06138C for ; Mon, 12 Apr 2021 00:01:44 -0700 (PDT) Received: by mail-oi1-x235.google.com with SMTP id x77so3100921oix.8 for ; Mon, 12 Apr 2021 00:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9eoMDF/wQXgBqcptxwajgyfKHfls18wSno0OgI96W1M=; b=Z8VViXsU+J+0t/NeghxVqUCLlf+iJt7KQWTk4fn7J0Nqu3GKiTU3uJNBi11dErZRwT qnV047UmDkOKJgZ2nIQStIbrlGb9jB10Xmbj7Mejny8Wh9w7qeKQqkHolxPkpkHbbbBD aiS9/TWhgdvEiE4xcNmO7YFTO+uBl46QmeBMs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9eoMDF/wQXgBqcptxwajgyfKHfls18wSno0OgI96W1M=; b=Cd1lo8GDsJgf+m8gc3+DnKDIxM5Vxxn8qIWP0yOwHm3TXCjuH00cxb6oGuEqiCIZSB it99KKve8qcMrOQoQvksF/jdp1HU/6UnQm1N2mC0TNDosiCjJufIuZ58q2ZOjegeL+nK n3Ey3JUCjBRMqNPGqklm7Yz+ykr7TX7dbuFdXIqi2wUdr4tasg49TI+Z9lWcH1t2COeV 84vJAYoLw3wG6dtA8h7h7vguxQpDdCL47OzGvyJpa57JeqJmVW+1KKYGG02GT+36D2aq wPyun6DyBufir28xSUFWzsh4fz07sI6U5pNVQlERCf+BVzuUK8dMfv54LODFJBpUihpv meRw== X-Gm-Message-State: AOAM5326pN9BWYQ4/TA6Z57yitvo74qV3nwbvcVfYepvjMgLfHAsESKd V4IxETA2h+3ky00mjI5AuDiZMUVbOH9lCQzISlVOww== X-Received: by 2002:aca:b646:: with SMTP id g67mr17522124oif.14.1618210904061; Mon, 12 Apr 2021 00:01:44 -0700 (PDT) MIME-Version: 1.0 References: <000000000000226d3f05b02dd607@google.com> <47907f77-b14b-b433-45c6-a315193f0c1a@i-love.sakura.ne.jp> <494395bc-a7dd-fdb1-8196-a236a266ef54@i-love.sakura.ne.jp> <20200927092701.GA1037755@PWN> <4933b81b-9b1a-355b-df0e-9b31e8280ab9@i-love.sakura.ne.jp> <20200928175956.GF24673@neutronstar.dyndns.org> <100dfd3f-3415-80ae-a6cf-30d15f7ca49f@i-love.sakura.ne.jp> <20200929105203.GG24673@neutronstar.dyndns.org> <20200929165657.GS438822@phenom.ffwll.local> <20200929171040.GB1351851@kroah.com> In-Reply-To: From: Daniel Vetter Date: Mon, 12 Apr 2021 09:01:32 +0200 Message-ID: Subject: Re: [PATCH] vt_ioctl: make VT_RESIZEX behave like VT_RESIZE To: Linus Torvalds Cc: "Maciej W. Rozycki" , syzbot , Linux Fbdev development list , Bartlomiej Zolnierkiewicz , Tetsuo Handa , Greg KH , Helge Deller , syzkaller-bugs , Linux Kernel Mailing List , dri-devel , Martin Hostettler , George Kennedy , Jiri Slaby , Peilin Ye Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 12, 2021 at 12:15 AM Linus Torvalds wrote: > > On Sun, Apr 11, 2021 at 2:43 PM Maciej W. Rozycki wrote: > > > > So it does trigger with vgacon and my old server, which I have started > > experimenting with and for a start I have switched to a new kernel for an > > unrelated purpose (now that I have relieved it from all its usual tasks > > except for the last remaining one for which I haven't got the required > > user software ported to the new system yet): > > > > "struct vt_consize"->v_vlin is ignored. Please report if you need this. > > "struct vt_consize"->v_clin is ignored. Please report if you need this. > > Note that it's entirely possible that things continue to work well > despite this warning. It's unclear to me from your email if you > actually see any difference (and apparently you're not able to see it > right now due to not being close to the machine). Original search didn't turn up any users of VT_RESIZEX, this is the first. And looking at the source code I think we could outright remove support for VT_RESIZEX (but make it silent) and everything should keep working: /* * ALWAYS do a VT_RESIZE, even if we already did a VT_RESIZEX on a 1.3.3 or higher kernel, * until those kernel programmers make this unambiguous */ if (do_VT_RESIZE(curr_textmode->cols, curr_textmode->rows, resize1x1)) sresize=TRUE; if (check_kernel_version(1,3,3, "VT_RESIZEX")) { /* * VDisplay must de divided by 2 for DoubleScan modes, * or VT_RESIZEX will fail -- until someone fixes the kernel * so it understands about doublescan modes. */ if (do_VT_RESIZEX(curr_textmode->cols, curr_textmode->rows, curr_textmode->VDisplay / (MOFLG_ISSET(curr_textmode, ATTR_DOUBLESCAN) ? 2 : 1), curr_textmode->FontHeight, curr_textmode->HDisplay/8*curr_textmode->FontWidth, curr_textmode->FontWidth, resize1x1)) sresize=TRUE; } The functions are just straightforward wrappers. There's also no cvs repo, changelog or old releases before 2000 that would shed some light on why this code even exists. I think we can just tune down the pr_info_once to pr_debug and done. Maybe a comment about where the single user we're aware of is. -Daniel > > The fact that v_vlin/v_clin are ignored doesn't necessarily mean that > they are different from what they were before, so the warning may be a > non-issue. > > > It continues using svgatextmode with its glass (CRT) VT to set my usual > > 80x37 text mode (720x576 pixel resolution) by manipulating the VGA clock > > chip and the CRT controller appropriately for a nice refresh rate of 85Hz: > > > > Chipset = `TVGA8900', Textmode clock = 44.90 MHz, 80x37 chars, CharCell = 9x16. Refresh = 52.51kHz/84.7Hz. > > That doesn't seem necessarily wrong to me. > > > So what's the supposed impact of this change that prompted the inclusion > > of the messages? > > There _may_ be no impact at all apart from the messages. > > The code _used_ to set the scan lines (v_vlin) and font height > (v_clin) from those numbers if they were non-zero, and now it just > ignores them and warns instead. > > The code now just sets the font height from the actual font size when > the font is set. Which is honestly the only thing that ever made > sense. Trying to set it with v_clin is ignored, but it's entirely > possible - maybe even likely - that your user of VT_RESIZEX sets it to > the same values it already has. > > Exactly because setting a font line number to anything else than the > font size isn't exactly sensible. > > But if your screen looks different than it used to, that is obviously > interesting and says something actually changed (outside of the > message itself). > > Linus > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch