Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1427407rwj; Sun, 18 Dec 2022 08:02:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf5tNseW4LmMa6Lxytlmr6jloAyxv1qdPNXhCQJ10joxutkwqQ8Iy35aW1TyLy1BMsucGXZs X-Received: by 2002:a05:6402:548c:b0:461:6f87:20be with SMTP id fg12-20020a056402548c00b004616f8720bemr29887845edb.41.1671379357306; Sun, 18 Dec 2022 08:02:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671379357; cv=none; d=google.com; s=arc-20160816; b=FROCSwB9t+MVeapzNWo2CDdbbZRgpg3fpy/7uiMmWvfRl5Nbwma8Gn6kVAWpuTiQOU Vh1UOk8NdJqgdY+nHHV40lTtU0lcnc/bHAZYNEdizAZKxDK+DQl7O1RcQEG/xCnNZVun 2cOgUriW015Mvh93lb3pcrvm95F7/mmbaX+zjv/QFTDI2r1FYpzEPID7875kz4kSH9Li UAY5rGLOHV5kNh7GBMiAGincW0geMzXKRZtxQRGRwowG2UUYwPIOLsaH9cy/CMl1JKhK dqYtGKAUnMHG6Tc8aVSyhUZ38Pv2FGNrnXBhY6KdiYRYjWo7cAMDc9tQCSWzYWILKIDC 7R7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:to :from:date:dkim-signature; bh=9cSzqQVXmuJseCpGW72XU/mHgryiivhr1sVcydirhJM=; b=Wo9OvhO2zz+viNL9/62+VSIMgmoMU/TGmCEQs9sUsBEaO/q8kfeyMxQhP7W9Bb7ap8 e4ftrSDaisB2yZ4L3nlGXNMFzNAXuE659UCGhRpy/ajONl9l7lt5MrVklEm+7VtGlYbP mECd8wNjIIwXqV4HVeo1Bkpa3EIlG1oGgRzd/BLjVsdKNxNJ+ISMOgegCgAZ61s4SNPl JeSFoLy9wN28e3mpEJlxp0T/Mvmeb1UV3PHNEsmUDXdnq20lfjSZEd+tL8OPB8jhuu2w biTnbrK4Yhm07D1tTjvdywihKH0azleFkE1Iy4LPOJsh2yoNpUXQv3gHhhvFIWX6dR+p iEVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aqxMCpAi; 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 h9-20020a0564020e8900b0046ca3d56ff5si5978791eda.571.2022.12.18.08.02.19; Sun, 18 Dec 2022 08:02:37 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aqxMCpAi; 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 S230254AbiLRPin (ORCPT + 71 others); Sun, 18 Dec 2022 10:38:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbiLRPil (ORCPT ); Sun, 18 Dec 2022 10:38:41 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D046564E5 for ; Sun, 18 Dec 2022 07:38:39 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2B41A60D2D for ; Sun, 18 Dec 2022 15:38:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CC2AC433EF; Sun, 18 Dec 2022 15:38:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671377918; bh=/45chhHZN7LvW7tG0SV0uxRS7NQX9LMWO7egMZomOmU=; h=Date:From:To:Subject:References:In-Reply-To:From; b=aqxMCpAiKkDTglWgrKmthVHVpTHzR5pQwpkLuLkFzlM7UXXmrGEi6FMqzBOpTEGqp vwG44azOjE3y+XYDA2IhWxUI1+j1s7G0e8Kuh2j9uwb/bP3l/Loo9pHAwf2g2L5lVk QSCkN342h8pV+5MXWqXWYDhJAH4iCqd9L6FTFuDhtkDIPy/bTpXIT57/QGdBjKqjOB jJ6flShfP6QVQMIrGAKUDjhpSgenHM7TDaSZI1QzE1geb3HPYCrUw4LuYU84Qf9Oyu FCjBtQbbs8qd0elbR0u9djoH5iRPPxDV7uZp/XPXQI1bqWeYjGycPrjFAUcE8eCH5A YfMsMQHaO0hsw== Date: Sun, 18 Dec 2022 16:38:33 +0100 From: Alexey Gladkov To: Samuel Thibault , Greg Kroah-Hartman , Jiri Slaby , kbd@lists.altlinux.org, linux-kernel@vger.kernel.org Subject: Re: [kbd] [patchv2 3/3] VT: Bump font size limitation to 64x128 pixels Message-ID: References: <20221218003209.503539532@ens-lyon.org> <20221218003237.503424466@ens-lyon.org> <20221218145532.syqzu76q23rz4tx6@begin> <20221218152857.qle75c6lhexkdoym@begin> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221218152857.qle75c6lhexkdoym@begin> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 On Sun, Dec 18, 2022 at 04:28:57PM +0100, Samuel Thibault wrote: > Alexey Gladkov, le dim. 18 d?c. 2022 16:25:01 +0100, a ecrit: > > On Sun, Dec 18, 2022 at 03:55:32PM +0100, Samuel Thibault wrote: > > > Alexey Gladkov, le dim. 18 d?c. 2022 15:39:38 +0100, a ecrit: > > > > On Sun, Dec 18, 2022 at 01:32:12AM +0100, Samuel Thibault wrote: > > > > > -#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) > > > > > > > > As a suggestion that you can safely ignore. Maybe make max_font_glyphs a > > > > sysctl parameter to be able to use larger fonts ? > > > > > > > > I get requests from time to time in kbd that it is not possible to load a > > > > larger font. > > > > > > 64KiB was really low, while the theoretically possible max was > > > 32*32*512 = 512KB, so I understand there used to be such requests :) > > > > > > Here, by setting the max to 64x128*512, I don't think we'll need more. > > > > I was not talking about the size of one glyph, but about the number of > > glyphs in the font. Right now the font cannot have more than 512 glyphs. > > That one is unfortunately *very* hardcoded in the VT code, since it's > the very representation of the console text in vc_screenbuf which is set > to the VGA-based 16bits per glyph, with a 8+8 or 9+7 separation between > glyph number and color number. Lifting that would be way more involved. Yeah, but I thought that since someone decided to touch this old code, then this someone will improve this old limit :) -- Rgrds, legion