Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7049056rwb; Mon, 5 Dec 2022 23:51:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf6mYVWHl/AMD402f3Zqzb1Athf2ScqgNBuADZejf4EOpGz7XBKw4g55I0TA+VEuiExI4IPV X-Received: by 2002:a17:90a:f104:b0:218:bd1d:37ad with SMTP id cc4-20020a17090af10400b00218bd1d37admr74308277pjb.39.1670313104848; Mon, 05 Dec 2022 23:51:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670313104; cv=none; d=google.com; s=arc-20160816; b=wZB+9iA43ne+oeE5RaP73a6BM5kYUt3g+frXxeqlQQf6LePDANI+VRpqkpQTpumkX2 6EZjzAm+j8vdWpg3Hvs6jGjHqFJKmwopk6723uH55DOiboxZCiW7l5tLnZ06r3Ha7nlh 61vKOitj2hkZ6K5yB6odmreVgoI1ICH7snUeydRR34NsPTw271Lr9quJtxvga0oV8vwq n9xrLr5VULKoGt/6RD3pxVN00YMVSF88KXOome4d0+vFotN4P+Y7jPJ7TPSDRjku+QRy 2tQwkjIVfeOMc5bumY3U7I4VoHAf6UKYbaKxtTIs5KemxNwoatS1GXb+mgyLhTkZaf8j WnFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=JV4BRkcw7J2X95dDZsQQ3oLBuX11q5eUftbrluM0Dh0=; b=aOzpGbA/7lqPS675QDxfrMEVywOKW7r/brPDohI2/TQg3V61Njx6GTAMSZ6bIe8oqK b36AYQvLUNwoXn/XCmCJK2suQT4rvMR9w3gDeKaEu1+8TtmoUUBQuGnw/1JlhpDZEtgd gpnaChlkm4f27mw1Tkvl2zUi+1R4piClfl2NWDC2Pa3s1ABgIwGkda1yAR+bNNf43NXc VMkT0TWI4l42fKSPcvoNW0dqlzh9iyELGfwpnYsJJ9WA7xC1lL9EodIYAhIl1GGvHCq9 Ik5LjCx/IKeMqY/NDyLfbvNNF+pqmgo61TgURio2TtjaGBrbGCf61LUoU6gPN0hk0CvU Uz/Q== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pi15-20020a17090b1e4f00b0020d4dc7fa97si17726119pjb.110.2022.12.05.23.51.35; Mon, 05 Dec 2022 23:51:44 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233551AbiLFGsp (ORCPT + 79 others); Tue, 6 Dec 2022 01:48:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231694AbiLFGsl (ORCPT ); Tue, 6 Dec 2022 01:48:41 -0500 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B78C1F00A for ; Mon, 5 Dec 2022 22:48:40 -0800 (PST) Received: by mail-ed1-f54.google.com with SMTP id a16so18924084edb.9 for ; Mon, 05 Dec 2022 22:48:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JV4BRkcw7J2X95dDZsQQ3oLBuX11q5eUftbrluM0Dh0=; b=UCYj+J6vNMejYyu5GL5Vwr1CItxelqAJ2FIVwxYukksMh/VFZh+1u3XZYE8CCvT3l/ wc9QjEpOksQnL7A5AkbTISOWo2buj52geY982eNonhLM32K+r6K81oNsCtPSDwSJPoL7 rCNcrSEWh/7M5ZtEVxWmteWjXUXypezhkmgNdviw5ScSCFiVfH207t/tSf7fDqfnwfJ8 Ftmd2o5sVtk5NlK/QV/7uaRzhJnLO0idzx3mTQkVodUcJvQMy2FgVh2OEJwTiIB5FGXW 024ESBIx/c8w+1+VE7O8DWJ+TuZ45OUp5F9+aLnQYPSPNPAPuKYarTg6r1IF3PFK/43f x5RQ== X-Gm-Message-State: ANoB5pm/Ryqp4dlbHqwvrLZtdTdm0GiGdmIYpfWxOiSDGcrfd297vIXk 45jlTDjYf8QLkmkflQeD2y4= X-Received: by 2002:a05:6402:2912:b0:46a:c132:8a25 with SMTP id ee18-20020a056402291200b0046ac1328a25mr44300824edb.205.1670309319238; Mon, 05 Dec 2022 22:48:39 -0800 (PST) Received: from ?IPV6:2a0b:e7c0:0:107::aaaa:49? ([2a0b:e7c0:0:107::aaaa:49]) by smtp.gmail.com with ESMTPSA id m12-20020a50cc0c000000b00461c6e8453dsm625806edi.23.2022.12.05.22.48.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Dec 2022 22:48:38 -0800 (PST) Message-ID: <45c09e48-9e69-2371-70d2-8a0b1e9f4899@kernel.org> Date: Tue, 6 Dec 2022 07:48:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [patch 3/3] VT: Bump font size limitation to 64x128 pixels Content-Language: en-US To: Samuel Thibault , Greg Kroah-Hartman , kbd@lists.altlinux.org Cc: linux-kernel@vger.kernel.org References: <20221205000739.583233140@ens-lyon.org> <20221205000807.896278194@ens-lyon.org> From: Jiri Slaby In-Reply-To: <20221205000807.896278194@ens-lyon.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no 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 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. regards, -- js suse labs