Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8018212rwb; Tue, 6 Dec 2022 12:53:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf4nSfgeTgCVvP6PZVisL0wxH3gCjGEdpnEDsjPLrcRBu5GAGE+ll1zLjt2IsCB2cKvuwSRw X-Received: by 2002:a63:5d55:0:b0:46e:fd0a:fe7a with SMTP id o21-20020a635d55000000b0046efd0afe7amr64034294pgm.59.1670360037813; Tue, 06 Dec 2022 12:53:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670360037; cv=none; d=google.com; s=arc-20160816; b=UyP4ikdFncEEj4l+ddGtdQZzbXUvtBvDP5PZbJVUJocjo+lwOOCAIZIXaJo8YgsY/I QtC+iB5UGllop0VNj2OAb8opZNYyhIJJInXGWsfxixvHnBgOL0P2ozUNmbh4Vr7H/Nye eRvzNx/rwFnqSPsO0wntFhYZtxWzlQkhxpwwZvKiQxJ1QHCSRacZFFE+I1bEYvQiIBuj lGDBW+8pZrbOq+3Q8Nf+ScRK13n4dxVLZs5yARAvrZyqriNzTOHC34nFwPyaEc4qoaRB 1cr/TnnxAR/6e55VAHDJ3LsdqYr1A2kXtGxAxZ0+V6U0oWcxEvk+1zSxkwABKGevh21M 0vUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=QSRaNS6zs+JMtB4EgI+skuw/oOsZjzSQd9uEqZ6a9m0=; b=wHp4ju2cuX0iJj5WoOwTB/hlIuPTaYkwMHMjg8FdTfm+YCvqJnoE54OOnFkm5k9i7h 9J/VHF6Zc5BohqwtcW7qSZR44YcH7lJGMA7iSh0sxMRSc6bStzL73f84rasS4V/z3Rhr 8uAtnM09PYED6Q9OBDh+B/yEvLKyqCBqb9v2eqVQ0xb24eh29m9VYz0J76kpR7Cz3wPv DdutuJMpaN+cMxVU+GN00L0009RRG8MjN+dyDWGseAQUp1MmvSGRZLWdyrbvb2o1PVNc K8CVJSpo3hF6vL7vJAFmRK0K2FyZdMBUJxgf/6WC6WIctTa8xvhXIMCedPhGTh7RK38V cJAA== ARC-Authentication-Results: i=1; mx.google.com; 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 c6-20020a170902d48600b0016db0d4f4c9si20181620plg.65.2022.12.06.12.53.46; Tue, 06 Dec 2022 12:53:57 -0800 (PST) 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; 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 S229623AbiLFUr5 (ORCPT + 78 others); Tue, 6 Dec 2022 15:47:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbiLFUrw (ORCPT ); Tue, 6 Dec 2022 15:47:52 -0500 Received: from sonata.ens-lyon.org (domu-toccata.ens-lyon.fr [140.77.166.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADB2417E3F for ; Tue, 6 Dec 2022 12:47:50 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 7F6A320107; Tue, 6 Dec 2022 21:47:49 +0100 (CET) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WX83d12NAk93; Tue, 6 Dec 2022 21:47:49 +0100 (CET) Received: from begin (unknown [46.231.241.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 5B44120101; Tue, 6 Dec 2022 21:47:49 +0100 (CET) Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1p2eqy-009HsG-1g; Tue, 06 Dec 2022 21:47:48 +0100 Date: Tue, 6 Dec 2022 21:47:48 +0100 From: Samuel Thibault To: Jiri Slaby Cc: Greg Kroah-Hartman , kbd@lists.altlinux.org, linux-kernel@vger.kernel.org Subject: Re: [patch 3/3] VT: Bump font size limitation to 64x128 pixels Message-ID: <20221206204748.jvwr4jgtukkutrmb@begin> Mail-Followup-To: Samuel Thibault , Jiri Slaby , Greg Kroah-Hartman , kbd@lists.altlinux.org, linux-kernel@vger.kernel.org References: <20221205000739.583233140@ens-lyon.org> <20221205000807.896278194@ens-lyon.org> <45c09e48-9e69-2371-70d2-8a0b1e9f4899@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <45c09e48-9e69-2371-70d2-8a0b1e9f4899@kernel.org> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS 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 Jiri Slaby, le mar. 06 déc. 2022 07:48:37 +0100, a ecrit: > On 05. 12. 22, 1:07, Samuel Thibault wrote: > > This moves 32x32 font size limitation checking down to drivers, so that > > fbcon can allow large fonts. > > > > We still keep a limitation to 64x128 pixels so as to have a simple bounded > > allocation for con_font_get and in the userland kbd tool. That glyph size > > will however be enough to have 128x36 characters on a "16/9 8K display". > > > > Signed-off-by: Samuel Thibault > > > > Index: linux-6.0/drivers/tty/vt/vt.c > > =================================================================== > > --- linux-6.0.orig/drivers/tty/vt/vt.c > > +++ linux-6.0/drivers/tty/vt/vt.c > > @@ -4575,17 +4575,20 @@ void reset_palette(struct vc_data *vc) > ... > > -#define max_font_size 65536 > > +#define max_font_width 64 > > +#define max_font_height 128 > > +#define max_font_glyphs 512 > > +#define max_font_size (max_font_glyphs*max_font_width*max_font_height) > > So this is 64K -> 4M switch. We should likely convert to kvmalloc() too. Oh, indeed, I'll fix that as well. Thanks, Samuel