Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp653869lqb; Fri, 15 Mar 2024 02:36:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwZ6MnELoDQmx3BLmcB1XgpTnBdB/LARtkPA4BJX5+/fQyYuzXEVWtU5qoBq/IAPV/pTKu9A85TAX29IAdzGjqqwZ02sZrHocPHtT0CA== X-Google-Smtp-Source: AGHT+IHzRoUwrD+EmYojYJQ5JEzkFBfc9MxUQJK4ehWa2hjiFFAQd7hgz7X567q1FsrSAYAd22oD X-Received: by 2002:a50:d489:0:b0:568:335d:1192 with SMTP id s9-20020a50d489000000b00568335d1192mr7728628edi.13.1710495364546; Fri, 15 Mar 2024 02:36:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710495364; cv=pass; d=google.com; s=arc-20160816; b=VawEIDGLdYQ15RhdPxk/kxKAQxH933eCJFyaPSU/5a2rSZfJSdNSoLXMYkmATdQfsC Y6E7cWiUU4oHYIvdYhtpA8sEMq/lJm51l92qjANy9eU3kkUtj6i0NF5fDq150/ET1gmR b3Wq77T6c0+8px+L/QbhCIwguc2rwWXJnijHa50ITVJYp4DsAItMoqLu6AguEhCxQoO/ UfZ9hYjUN6ieWwI4NR/h7WcF5eiTtuDX1HbOT6LcnxVqajNgq/QFcdvyrjh5IKN7tXlx lEtwyyFKdb2ukq9H2sjyJaKbzbQmHlQTvTUQ7/PcfJ7gbkc0g3cBPIeGfDN1XIN74Edz Pggw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=BSFsXVVkqiqnk4vcRljvGoO6ApkWxhy8vwfugbN2UFI=; fh=Dq8oEg1DzYXcKNmqpjoYGVxCRsripGhb7vGXwIB3aj4=; b=ZHhvYGgLm8VQUMYnlij0K0dNPHQhhSumPt/CNHKz0/Zmbl2GuswCukV+Vns8kM3SEo +lCvYTlWl+TtRy0ojWyf4Y/nhGmL5s0uUGI12uIZD1JI8cat3pvPAgYUas80raiEilRi qEAPHT0MZ070M3EwEOvtBIYdmAzhFsUTKoaj979bNBb4BBMrqnD4SPIdDImwiDGcAXTc sfeNmLOD2FsTqWcqB5E5ru7LeJbxYsimllsKn2UKx4IL1mzKBbfocYrZdoyd42+q+POo 473QBYHpyY2VaEDTlf4Udi+OxFYQhUC3yqMrRBEgxQd8ywDYoIrWA/Q4AELRQSA+EfGD TcdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=l6xpHM69; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-104213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h21-20020a0564020e9500b005683bc72b0csi1657299eda.241.2024.03.15.02.36.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 02:36:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=l6xpHM69; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-104213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2227E1F21A6E for ; Fri, 15 Mar 2024 09:36:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2485917C6D; Fri, 15 Mar 2024 09:35:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=deller@gmx.de header.b="l6xpHM69" Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F84317C61; Fri, 15 Mar 2024 09:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.22 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710495355; cv=none; b=JY41meN/Lh1RXt3SaKEfwXW++xfd+7rLkEJ4nWlBg4oTEsRjye0MXMdDgL2208Fgd/nKV+/khBVrnS8NioU3HJwH2FLNEq4UPbUfpMKwyK/43IiEb3K6LQw9lNKZLLhV5J4qeuKT1Bki5ZJv1BqMNNnZXv44t8r3bZT090K4KIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710495355; c=relaxed/simple; bh=IGZj8niLOUD7teMx4iptS+sQpMGkLSgrcwjHOtgFJi4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=terdfMjaoiBveQl/eJlAtTzQT5JIeNe4iLso4qurdKO2Z5nqNdao/c+fsR4H+cYHZzuDB+zw3roBPV5u5sloKuwCtKy9RUPlHU9me60LhSR/73TuB26/p/wQXue8l+4eVSIFIFQ/J00FVlQH83/Os0o0sPaTc9ZbwcBqvUvhUKg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=deller@gmx.de header.b=l6xpHM69; arc=none smtp.client-ip=212.227.17.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1710495341; x=1711100141; i=deller@gmx.de; bh=BSFsXVVkqiqnk4vcRljvGoO6ApkWxhy8vwfugbN2UFI=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=l6xpHM69sgOJ3NMGz+1AeZ6EDKi8VKkaLzcmWFu3bmeooMI3wPwGmUxUb/sKECfb bfzUyDGBmCMa4JwFJHH0Fa82oEEV9UKCXdoWC7xHxeFEP79GRdhiptPTkbcFLq+OT 0K+eU3uuWCtKCU22NHmENBVqC7H0KVRRB0qvBnyQ5guc1YY/8XONeftz/LM6/pG/E TN7AWEAgiUWGEWNH6zTHkVdhGce0dQJp2CVoJFJFKhh1TlpPaK2F/igEo7GGAN2Wk JQSqfBdARbouansM/G1RUhh+/ID0tx5rTfI6UFMjARUBhVA7V6Txg/uTSRR8Zc0Vw /NnsKBLTJTFCMpZj+w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.55] ([94.134.155.107]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MVeMG-1rJfBZ24pA-00RcVT; Fri, 15 Mar 2024 10:35:41 +0100 Message-ID: Date: Fri, 15 Mar 2024 10:35:40 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] fbcon: Increase maximum font width x height to 64 x 64 Content-Language: en-US To: Samuel Thibault , linux-kernel@vger.kernel.org, Daniel Vetter , Alexey Gladkov , Jiry Slaby Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20240313165934.557879-1-samuel.thibault@ens-lyon.org> From: Helge Deller Autocrypt: addr=deller@gmx.de; keydata= xsFNBF3Ia3MBEAD3nmWzMgQByYAWnb9cNqspnkb2GLVKzhoH2QD4eRpyDLA/3smlClbeKkWT HLnjgkbPFDmcmCz5V0Wv1mKYRClAHPCIBIJgyICqqUZo2qGmKstUx3pFAiztlXBANpRECgwJ r+8w6mkccOM9GhoPU0vMaD/UVJcJQzvrxVHO8EHS36aUkjKd6cOpdVbCt3qx8cEhCmaFEO6u CL+k5AZQoABbFQEBocZE1/lSYzaHkcHrjn4cQjc3CffXnUVYwlo8EYOtAHgMDC39s9a7S90L 69l6G73lYBD/Br5lnDPlG6dKfGFZZpQ1h8/x+Qz366Ojfq9MuuRJg7ZQpe6foiOtqwKym/zV dVvSdOOc5sHSpfwu5+BVAAyBd6hw4NddlAQUjHSRs3zJ9OfrEx2d3mIfXZ7+pMhZ7qX0Axlq Lq+B5cfLpzkPAgKn11tfXFxP+hcPHIts0bnDz4EEp+HraW+oRCH2m57Y9zhcJTOJaLw4YpTY GRUlF076vZ2Hz/xMEvIJddRGId7UXZgH9a32NDf+BUjWEZvFt1wFSW1r7zb7oGCwZMy2LI/G aHQv/N0NeFMd28z+deyxd0k1CGefHJuJcOJDVtcE1rGQ43aDhWSpXvXKDj42vFD2We6uIo9D 1VNre2+uAxFzqqf026H6cH8hin9Vnx7p3uq3Dka/Y/qmRFnKVQARAQABzRxIZWxnZSBE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OOcGZWtq2hNC6cRtsRdDx 4TAGMCz4j238m+2mdbdhRh3iBnWT5yPFfnv/2IjFAk+sdix1Mrr+LIDF++kiekeq0yUpDdc4 ExBy2xf6dd+tuFFBp3/VDN4U0UfG4QJ2fg19zE5Z8dS4jGIbLg== In-Reply-To: <20240313165934.557879-1-samuel.thibault@ens-lyon.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:9UMPx34FgMJDlkPgsGQqOWFYUXv9F1RzGoD84LbFXOmKCsKvuyb PeZLiSW13Fi5JJsSxr4c7t4DxwRJ6/QpMadAm6yNweRAqxQe4/FDh1QtN/Zqht1RTZmCc77 ud9Z7tkrxg3pttaYbqf7RzE55SpBJGu9ankVAgFHTKjQSf2bD+JLXV3hVCPoKMfqA03GNQO whewmeZOOp6Yep/5TB7BQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:dTj5WPzDIcY=;rgvcHdFwjjFrSgt8O3IefyhYJZA RqfQbdHr8o/Rc01HBCidMByK+xCJxUYn62E6C1wUxFD6BcELdwc4bCq2dXkKmvDdfqKPQ2gh6 bwVKiNcuHfAx7RY3Z9l13G9YgD05giyeESNM9msHO3JurypxiYyGPd46my7EMte+zAtt4lHk9 F4Bz5d7wGbH89lS961gYJ7MTMwHg7F44OmivKsLqMHBevMvruCEz/nToYHj4HhBjAlm4DaygF Tb/1CIsBgmo9r6MOlXs4QH/kSHfqckP9dwadfdn3swciK8jrXHDRmpQCylChB7TREXG5kgcs0 2oiR2g4IVeA4lb9chd4Gu9rq43j/8qtkW3r0VUT0sYq3NDxnYNDBJaZA3/XqEzqBcKwsXuD7S lejLorf3eZqkXqBy3c7Ds2wLoOH9UEJ8GY4VWjf2fJ9wB77gusIbrESYEgLYNUutJdLKKIb5M KZbxP4f3ax7cCOKw7fx0aCLVMr7yT9CasCr2ckMUoKyJL6s+Ek+Anr4Q01zMN4xIzzsR54aAf UDGk/GiN38A+B4bF6d8m8Ibj4dpDoP7uPa16ADotszBVIHk3fk+BmoJOfxJPlB/PMbeGuwyIe RU2CZj94f6FKfi41YTR4frpmLExQzk793Vu+HGISxF5UOa91UJ/2E/v6oouuCp8MwIYeUQjIc 6lPBvpSPxm2Spf4bYsIk+BMRKHC5HAr5gzUnqG35AqApM44cyWTAgZEP58OerxOUwe+HbiIVV DuB4Ya6WLcV6Bc7ym/qQvKPoM7zRuRzRuo1u1lZiLFFwz4RwXs0gT7XHIC5XXZvDtSSaynMLr 4QRdZk++Q7f/FvplOQAraU5LPVQQOzkSVbMmNIRJerFOc= You should have marked this patch with "v2"... On 3/13/24 17:59, Samuel Thibault wrote: > This remains relatively simple by just enlarging integers. I like the patch, but I still see some u32... drivers/video/fbdev/vt8623fb.c: info->pixmap.blit_x =3D (bpp =3D= =3D 4) ? (1 << (8 - 1)) : (~(u32)0); drivers/video/fbdev/arkfb.c: info->pixmap.blit_x =3D (bpp =3D= =3D 4) ? (1 << (8 - 1)) : (~(u32)0); drivers/video/fbdev/core/fbmem.c: fb_info->pixmap.blit_x =3D= ~(u32)0; drivers/video/fbdev/s3fb.c: info->pixmap.blit_x =3D (bpp =3D= =3D 4) ? (1 << (8 - 1)) : (~(u32)0); And please check blit_y too. > It wouldn't be that simple to get to the console's 64x128 maximum, as it= would > require 128b integers. How realistic are fonts > 64x64 pixels ? If they are, using the bitmap_xx functions (include/linux/bitmap.h) now instead would be better. Helge > Signed-off-by: Samuel Thibault > --- > drivers/video/fbdev/core/fbcon.c | 17 ++++++++++------- > include/linux/fb.h | 10 +++++----- > 2 files changed, 15 insertions(+), 12 deletions(-) > > diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core= /fbcon.c > index 46823c2e2ba1..849562f92bd5 100644 > --- a/drivers/video/fbdev/core/fbcon.c > +++ b/drivers/video/fbdev/core/fbcon.c > @@ -101,6 +101,9 @@ enum { > FBCON_LOGO_DONTSHOW =3D -3 /* do not show the logo */ > }; > > +#define FBCON_MAX_FONT_WIDTH (sizeof(((struct fb_pixmap *) 0)->blit_x) = * 8) > +#define FBCON_MAX_FONT_HEIGHT (sizeof(((struct fb_pixmap *) 0)->blit_y)= * 8) > + > static struct fbcon_display fb_display[MAX_NR_CONSOLES]; > > static struct fb_info *fbcon_registered_fb[FB_MAX]; > @@ -2483,12 +2486,12 @@ static int fbcon_set_font(struct vc_data *vc, st= ruct console_font *font, > h > FBCON_SWAP(info->var.rotate, info->var.yres, info->var.xres)) > return -EINVAL; > > - if (font->width > 32 || font->height > 32) > + if (font->width > FBCON_MAX_FONT_WIDTH || font->height > FBCON_MAX_FON= T_HEIGHT) > return -EINVAL; > > /* Make sure drawing engine can handle the font */ > - if (!(info->pixmap.blit_x & BIT(font->width - 1)) || > - !(info->pixmap.blit_y & BIT(font->height - 1))) > + if (!(info->pixmap.blit_x & BIT_ULL(font->width - 1)) || > + !(info->pixmap.blit_y & BIT_ULL(font->height - 1))) > return -EINVAL; > > /* Make sure driver can handle the font length */ > @@ -3082,8 +3085,8 @@ void fbcon_get_requirement(struct fb_info *info, > vc =3D vc_cons[i].d; > if (vc && vc->vc_mode =3D=3D KD_TEXT && > info->node =3D=3D con2fb_map[i]) { > - caps->x |=3D 1 << (vc->vc_font.width - 1); > - caps->y |=3D 1 << (vc->vc_font.height - 1); > + caps->x |=3D 1ULL << (vc->vc_font.width - 1); > + caps->y |=3D 1ULL << (vc->vc_font.height - 1); > charcnt =3D vc->vc_font.charcount; > if (caps->len < charcnt) > caps->len =3D charcnt; > @@ -3094,8 +3097,8 @@ void fbcon_get_requirement(struct fb_info *info, > > if (vc && vc->vc_mode =3D=3D KD_TEXT && > info->node =3D=3D con2fb_map[fg_console]) { > - caps->x =3D 1 << (vc->vc_font.width - 1); > - caps->y =3D 1 << (vc->vc_font.height - 1); > + caps->x =3D 1ULL << (vc->vc_font.width - 1); > + caps->y =3D 1ULL << (vc->vc_font.height - 1); > caps->len =3D vc->vc_font.charcount; > } > } > diff --git a/include/linux/fb.h b/include/linux/fb.h > index 05dc9624897d..2bac166cd3f2 100644 > --- a/include/linux/fb.h > +++ b/include/linux/fb.h > @@ -144,8 +144,8 @@ struct fb_event { > }; > > struct fb_blit_caps { > - u32 x; > - u32 y; > + u64 x; > + u64 y; > u32 len; > u32 flags; > }; > @@ -192,10 +192,10 @@ struct fb_pixmap { > u32 scan_align; /* alignment per scanline */ > u32 access_align; /* alignment per read/write (bits) */ > u32 flags; /* see FB_PIXMAP_* */ > - u32 blit_x; /* supported bit block dimensions (1-32)*/ > - u32 blit_y; /* Format: blit_x =3D 1 << (width - 1) */ > + u64 blit_x; /* supported bit block dimensions (1-64)*/ > + u64 blit_y; /* Format: blit_x =3D 1 << (width - 1) */ > /* blit_y =3D 1 << (height - 1) */ > - /* if 0, will be set to 0xffffffff (all)*/ > + /* if 0, will be set to ~0ull (all) */ > /* access methods */ > void (*writeio)(struct fb_info *info, void __iomem *dst, void *src, u= nsigned int size); > void (*readio) (struct fb_info *info, void *dst, void __iomem *src, u= nsigned int size);