Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8277912rwp; Wed, 19 Jul 2023 07:43:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlEvAHVK1SHWCHgbIY+ZvjgOUUzHX4JRt8INIt5BVnnY9J6xc7PWqtUBCCiFe9yll9ftcS02 X-Received: by 2002:a17:906:6a17:b0:992:ef60:ab0d with SMTP id qw23-20020a1709066a1700b00992ef60ab0dmr2708763ejc.69.1689777813458; Wed, 19 Jul 2023 07:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689777813; cv=none; d=google.com; s=arc-20160816; b=vTQWGcE1xp5cK7jI84UA6SIikq+ad0Tg3A7/tMH23u4DXasoJe8yb/iF2hSH8yZuk/ VDOa8muLTaOkZpzDmGNbCAbrL1KZLCY/RqAuk7/ysQ4IirQ9jJgtBh1exQSRQbvqnCFp Je7tddHc5AgOF7iZfXW1BuvtFb8SK6GAAN1fg+H5D04O2Wwb5R/ZC7m0d+4Ap3qWFYBF 9611LG6glZp8/Pa64xV4ll5JFkvoQZmUAbUuNotLEyiBvMG4/bZUw6qJPRsH5IZov5vF jqOYgLZOxXcm9wKmhwhwC1+AHFYQeImO7doSC01SCz8/4v7xLoR36Kjhg0so4dFvhirX jAJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=nZU6p3n7fickF5wKWXmSN8Sc6/MSvsFTYGP0irgDDx8=; fh=kJ/shc+Xpjvl9eFo3nD5PgHV01V1voOHdgOsQnzVaDg=; b=uSDv65d9U3wQ/E9OinY0++F86By06VFKpFi0KGmMV0RZ2i8+2URYceIXRwxi38UHwS cj6jQY9niTe1YWGYl2jySy3hoEdeQGms0k0HgTWbxfWG0IrG26o8HPMm/b9KI9d5b6YN lNDuD73R1QvAFyCmOaMTEzckWGEEUKs2+P+67vceuwM97fpnn+/6PW3AWpRnh3/TdjMB 0NF8X/5I/ya9RkWoAc/B+UMSVGlYMSQ1N/hCN/6YFSZJL2y6MZxPLCnzT5Ihbg3cwBdZ zyuoW/qKEQDDEahVUS3PzJnv/W2wWGEuO6hng9XMrIkrDR9+UfJ1wqU56SZ3VaAmmBkK jqBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=F6uhOe0x; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=RT3ufktF; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i20-20020a1709064ed400b00992a9b22b7fsi2957383ejv.668.2023.07.19.07.43.08; Wed, 19 Jul 2023 07:43:33 -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=@arndb.de header.s=fm2 header.b=F6uhOe0x; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=RT3ufktF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbjGSOkH (ORCPT + 99 others); Wed, 19 Jul 2023 10:40:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjGSOkE (ORCPT ); Wed, 19 Jul 2023 10:40:04 -0400 Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79B0F10FE; Wed, 19 Jul 2023 07:39:57 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id C6F93580210; Wed, 19 Jul 2023 10:39:55 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 19 Jul 2023 10:39:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1689777595; x=1689784795; bh=nZU6p3n7fickF5wKWXmSN8Sc6/MSvsFTYGP 0irgDDx8=; b=F6uhOe0xlOcUS4dDy1oq5df2GK1xAMcbSu8LZgoyXmvhlUzRu78 bGWxTgJiJi6zrRqVfawYfkrNgFxRyoDY1fhSxgqhl2HFLNsxG4oCXLOUvtc1H1J9 yKpHN5YOXPSGucUUa4WBBwirLFW7BcNoa9nEJIN8VY/wxM9DZRnEh0QMcm0tWtCR dKTHuIxJjhaZFzLsV9DTjnLCbGrttI4s9sB6wKBYnGTTcqvQf0+2gn/VHNspuTtL UCPm3ZVAMHyA6sMFGbrinOOlTU5JT8hRDtp3UUk+cM86plnrvFOW8ztaQcBfW6T8 F6uE/5iwV3Pzt0P1Egm7uCnyHKH+4DwB/7g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1689777595; x=1689784795; bh=nZU6p3n7fickF5wKWXmSN8Sc6/MSvsFTYGP 0irgDDx8=; b=RT3ufktFiEmOaEJtwn2kNPwX1CxJHO84CaryEahSFHfcxzKAOKP GbsmwKdkij2/wPBd7ZceYMaF8fRakoZMD4mqWlf0Zxmc3G8CDJFEJnfyubpj4GpK BTGeK/U7hKm6Xv3VxJI6XGVSS5z+dkFKgATEYbUSs/PzvBavnLdZpIWHdDX7DPwN 15x30i+ixySDP0gi6hrqw9TjDxXFUe4m0DoLzGSNryLWDKksDFvYLsm8ExaZoHgl VF+nPTLS/vCYm/jinaZDPIrkGemb4sE71T5g0dm8v0j1hZVFJOBDNUTynb37Cocc llP48wfwjZ64vJQYBWEmvFIXuwbXcmFTjiw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrgeekgdeivdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepgeefjeehvdelvdffieejieejiedvvdfhleeivdelveehjeelteegudektdfg jeevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8026EB60086; Wed, 19 Jul 2023 10:39:53 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-531-gfdfa13a06d-fm-20230703.001-gfdfa13a0 Mime-Version: 1.0 Message-Id: <3b047cd4-a61f-44b6-830b-b4e35bfccd72@app.fastmail.com> In-Reply-To: <32595080-dd79-5cf0-46e7-b82d0df8f067@linaro.org> References: <20230719123944.3438363-1-arnd@kernel.org> <20230719123944.3438363-6-arnd@kernel.org> <32595080-dd79-5cf0-46e7-b82d0df8f067@linaro.org> Date: Wed, 19 Jul 2023 16:38:57 +0200 From: "Arnd Bergmann" To: =?UTF-8?Q?Phil_Mathieu-Daud=C3=A9?= , "Arnd Bergmann" , linux-fbdev@vger.kernel.org, "Thomas Zimmermann" , "Helge Deller" , "Javier Martinez Canillas" Cc: linux-hyperv@vger.kernel.org, x86@kernel.org, linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, "Catalin Marinas" , "Linus Walleij" , "Dave Hansen" , dri-devel@lists.freedesktop.org, linux-mips@vger.kernel.org, "Max Filippov" , "Will Deacon" , linux-efi@vger.kernel.org, guoren , "linux-csky@vger.kernel.org" , sparclinux@vger.kernel.org, linux-hexagon@vger.kernel.org, "WANG Xuerui" , "K. Y. Srinivasan" , "Dave Airlie" , "Ard Biesheuvel" , "Wei Liu" , "Huacai Chen" , "Dexuan Cui" , "Russell King" , "Deepak Rawat" , "Ingo Molnar" , "Matt Turner" , "Haiyang Zhang" , "Nicholas Piggin" , "Borislav Petkov" , loongarch@lists.linux.dev, "John Paul Adrian Glaubitz" , "Thomas Gleixner" , linux-arm-kernel@lists.infradead.org, "Khalid Aziz" , "Brian Cain" , "Thomas Bogendoerfer" , "Greg Kroah-Hartman" , linux-kernel@vger.kernel.org, "Dinh Nguyen" , linux-riscv@lists.infradead.org, "Palmer Dabbelt" , "Daniel Vetter" , linux-alpha@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "David S . Miller" Subject: Re: [PATCH v2 5/9] vgacon: remove screen_info dependency Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR,URIBL_BLOCKED autolearn=unavailable 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 On Wed, Jul 19, 2023, at 15:49, Philippe Mathieu-Daud=C3=A9 wrote: > On 19/7/23 14:39, Arnd Bergmann wrote: >> @@ -1074,13 +1077,13 @@ static int vgacon_resize(struct vc_data *c, u= nsigned int width, >> * Ho ho! Someone (svgatextmode, eh?) may have reprogrammed >> * the video mode! Set the new defaults then and go away. >> */ >> - screen_info.orig_video_cols =3D width; >> - screen_info.orig_video_lines =3D height; >> + vga_si->orig_video_cols =3D width; >> + vga_si->orig_video_lines =3D height; >> vga_default_font_height =3D c->vc_cell_height; >> return 0; >> } >> - if (width % 2 || width > screen_info.orig_video_cols || >> - height > (screen_info.orig_video_lines * vga_default_font_heigh= t)/ >> + if (width % 2 || width > vga_si->orig_video_cols || >> + height > (vga_si->orig_video_lines * vga_default_font_height)/ >> c->vc_cell_height) >> return -EINVAL; >> =20 >> @@ -1110,8 +1113,8 @@ static void vgacon_save_screen(struct vc_data *= c) >> * console initialization routines. >> */ >> vga_bootup_console =3D 1; >> - c->state.x =3D screen_info.orig_x; >> - c->state.y =3D screen_info.orig_y; >> + c->state.x =3D vga_si->orig_x; >> + c->state.y =3D vga_si->orig_y; > > Not really my area, so bare with me if this is obviously not > possible :) If using DUMMY_CONSOLE, can we trigger a save_screen > / resize? If so, we'd reach here with vga_si=3DNULL. > I think it cannot happen because the only way that anything calls into vgacon.c is through the "conswitchp =3D &vga_con;" that now happens at the same time as the "vga_si =3D &screen_info;". It's definitely possible that I'm missing something as well here. Arnd