Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp938326rdb; Thu, 15 Feb 2024 23:22:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXB2is2HYjxLZlR5kWJprXnLVYWqVCRDifJEsS9cTfK5HJ2T8cgrvCznedtHSMfTpJf1R7YtKh+2du/Teekai/K4f1aPpjUmtASz+uZWQ== X-Google-Smtp-Source: AGHT+IGomkftMX+Tp4oL8dZFKmT/QkJETD2uifmAbXUkox++RcvGfAGc1v2tYDZE/S32/ZM7I3x2 X-Received: by 2002:a05:6402:6c5:b0:563:d64c:2ea5 with SMTP id n5-20020a05640206c500b00563d64c2ea5mr1288658edy.12.1708068122713; Thu, 15 Feb 2024 23:22:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708068122; cv=pass; d=google.com; s=arc-20160816; b=yCKN7p7iiQbmOb6fJFHghQvfEKiYEPmNL5SYMqMHvf6hX8AaWXMugnbtqqNWeUPUw7 S3UupgJ7bsVTynP7iao1xEePzx+PysAolz3uX1cZnMDbjEKwKh8d7IkHvNm0PYt2tjEQ u4ZUY98/rNqLxYEjw4wcehhGAqv4QCUYFq89Q3jmNeE+ccw8FVTyhXpQyP9zwJy4/GIm 0/bKJLpLqJN9jK5bWZh8g590L/51V5+hwh94N2C0DdmUSXkKrqHvlOb8r18wc/H/B6JV poO7LeDN8MNelscPY7SXUv0pa1TmtGUHHNO8BGVrF4b49qVfXRmQWFL4mC02cVtZuFcn 8WtQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=z64nGsp/rAMsyvZoNvBnG9fsc/X11YU9xalIeEY0Tig=; fh=uRBKP1pBfZlsj9Ycj2yBKPnz0lHmL+eqVvALK1c4JPQ=; b=m11tlQpl7J1hQdBzq5CqJxDXfpIWZ5/4b1/1Wc8AIRjdMVa9iW3lQfeGjHbazvWgaE g6cKrMKdNDe9NtHyXu15UHRu9ImNxH0uzaDtqv0S+esO4ippMPjq0a7GSBRidaz2qufb oVbr0XvGv4Q9+H96Q8M354bkZhrkLdSF/TiGhb+F3ZqHs0pYjgTnxCJc7slOtnKVX3ap tdLIjv0UVwWQNz+BQA4WYbyFN5jumVkudSl/ByJ+/porY/ybkXYlMyPuy4kEB0TuiBFg +2tnIZk4Ot93GEnSwVItd857eMwxbw9fai5y/8Flzp2zu8ZI0gk5Idfx2JNvgPR2Lnyn xbLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-68168-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n3-20020a056402060300b00563891bd392si1355151edv.88.2024.02.15.23.22.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 23:22:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68168-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; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-68168-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 628451F2285A for ; Fri, 16 Feb 2024 07:21:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E95E8179B2; Fri, 16 Feb 2024 07:21:43 +0000 (UTC) Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94E6717997 for ; Fri, 16 Feb 2024 07:21:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708068103; cv=none; b=sIZuAIYTyR0EvXO++cqo43g6TM7v4bscfhGk3pv4Zh4K9gJV3KUp7acSrM/f+Q0WIJ3z30DJeO3HSHVxboE1GgTMQCK4K6C6CE6lxzXuGdO9022fgxBk1xduvp/gnWIrAHbQH96UwiFjfvzWvVovLSRTpvLDRhwI4J8LJryRy9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708068103; c=relaxed/simple; bh=t5qe8+Zhs9ljzhxQTm37IafJwX1YNqurFe+Pb82VJzs=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=iWo1j96NObIr83k9sPpymTLrraDpFtwotDVFoZA/PEEWVzsc4zhkW4odnxURvzSrW7CIM4JvNzdA/BCSfAy8oyJRvAXeNkH20lFIyN3j6bcrpv7Lmq6UWvLbIlBlFpwGEb/hEFSApC4yG6x6v8vCf04EQ+OOBeAJ266/t/HxUA4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-563e6131140so497029a12.2 for ; Thu, 15 Feb 2024 23:21:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708068100; x=1708672900; h=content-transfer-encoding:in-reply-to:autocrypt:from:references: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=z64nGsp/rAMsyvZoNvBnG9fsc/X11YU9xalIeEY0Tig=; b=q4KJUyqdwPGaP5ceinY2a9tNHL+euagMDec4LAWd8am2RNzFCDL9D+FYGbugMsLFlU zEmnXcNb0seqRVr0a1gcqxewHOUZGSq1jz5jkc2qvIS922Q+gSVatGsa4z2ABERD6FgT YM4iWWNAiW3Tf1zN5OVm+NVUgOAjXQTiMzlG4slhhb1wrkd9IkVuaZohWMuUyeApRvRu ommgP6U4wJZIOjcJXOs8rC8tZMQgkeimwfx5eDbZchS9MyndrVGbELtz4/trtPR/bjZ1 SRVV31eBb4G/XTBkpY2l5cGgvzU1cctEhuEF7vLYoidZGmVUTNsLc4kBZzaDzrdmZIlv SjKg== X-Forwarded-Encrypted: i=1; AJvYcCXVaSIRXKC8QtgdycIGzxapVRO0e3HpviJpQUtnpeaynNiXYbhXvm3DA58ceLlIgJI53diB6OpRp+ByAbA5bAzvf6Z9GKaKyElC9cYm X-Gm-Message-State: AOJu0YyPglzpIaEmXMUJzkha52yVCrER63/DKqUpyDwdXvavNkFd5uom VzJFSRCIn4Hk9+KKca91n1gMMA3Ggq19EhpZaAiVaYvWPXxHQ3CXC/AeehAd X-Received: by 2002:a17:906:c309:b0:a3c:aef1:e01c with SMTP id s9-20020a170906c30900b00a3caef1e01cmr2584601ejz.14.1708068099437; Thu, 15 Feb 2024 23:21:39 -0800 (PST) Received: from ?IPV6:2a0b:e7c0:0:107::aaaa:59? ([2a0b:e7c0:0:107::aaaa:59]) by smtp.gmail.com with ESMTPSA id vh2-20020a170907d38200b00a3de6cf49ebsm163571ejc.6.2024.02.15.23.21.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Feb 2024 23:21:39 -0800 (PST) Message-ID: Date: Fri, 16 Feb 2024 08:21:38 +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: [RFC PATCH v1 0/5] VT: Add ability to get font requirements Content-Language: en-US To: Alexey Gladkov , LKML , Greg Kroah-Hartman References: From: Jiri Slaby Autocrypt: addr=jirislaby@kernel.org; keydata= xsFNBE6S54YBEACzzjLwDUbU5elY4GTg/NdotjA0jyyJtYI86wdKraekbNE0bC4zV+ryvH4j rrcDwGs6tFVrAHvdHeIdI07s1iIx5R/ndcHwt4fvI8CL5PzPmn5J+h0WERR5rFprRh6axhOk rSD5CwQl19fm4AJCS6A9GJtOoiLpWn2/IbogPc71jQVrupZYYx51rAaHZ0D2KYK/uhfc6neJ i0WqPlbtIlIrpvWxckucNu6ZwXjFY0f3qIRg3Vqh5QxPkojGsq9tXVFVLEkSVz6FoqCHrUTx wr+aw6qqQVgvT/McQtsI0S66uIkQjzPUrgAEtWUv76rM4ekqL9stHyvTGw0Fjsualwb0Gwdx ReTZzMgheAyoy/umIOKrSEpWouVoBt5FFSZUyjuDdlPPYyPav+hpI6ggmCTld3u2hyiHji2H cDpcLM2LMhlHBipu80s9anNeZhCANDhbC5E+NZmuwgzHBcan8WC7xsPXPaiZSIm7TKaVoOcL 9tE5aN3jQmIlrT7ZUX52Ff/hSdx/JKDP3YMNtt4B0cH6ejIjtqTd+Ge8sSttsnNM0CQUkXps w98jwz+Lxw/bKMr3NSnnFpUZaxwji3BC9vYyxKMAwN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IWIr0cqQmqQ33FgRhrG1+Xml6UXyJ2jExmlO8JljuOGeXYh6ZkIEyzqzffzBLXZCujlYQ DFXpyMNVJ2ZwPmX2mWEoYuaBU0JN7wM+/zWgOf2zRwhEuD3A2cO2PxoiIfyUEfB9SSmffaK/ S4xXoB6wvGENZ85Hg37C7WDNdaAt6Xh2uQIly5grkgvWppkNy4ZHxE+jeNsU7tg= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 15. 02. 24, 16:37, Alexey Gladkov wrote: > We now have KD_FONT_OP_SET_TALL, but in fact such large fonts cannot be > loaded. No console driver supports tall fonts. I thought fbcon can, no? If not, we should likely remove all the KD_FONT_OP_SET_TALL checks here and there. > Unfortunately, userspace > cannot distinguish the lack of support in the driver from errors in the > font itself. In all cases, EINVAL will be returned. Yeah, AFAIR userspace just tries many possibilities and sees what trial worked. > How about adding another operator to get the supported font size so that > userspace can handle this situation correctly? The whole font interface is horrid (and we got rid of v1 interface only recently). Like (ab)using height = vpitch in KD_FONT_OP_SET_TALL :(. So perhaps, as a band-aid, this might be fine (note you give no opportunity to find out supported vpitch for example). Eventually, we need to invent a v3 interface with some better font_op struct with reserved fields for future use and so on. > I mean something like this proof-of-concept. > > --- > > Alexey Gladkov (5): > VT: Add KD_FONT_OP_GET_INFO operation > newport_con: Allow to get max font width and height > sticon: Allow to get max font width and height > vgacon: Allow to get max font width and height > fbcon: Allow to get max font width and height > > drivers/tty/vt/vt.c | 27 +++++++++++++++++++++++++++ > drivers/tty/vt/vt_ioctl.c | 2 +- > drivers/video/console/newport_con.c | 21 +++++++++++++++++---- > drivers/video/console/sticon.c | 21 +++++++++++++++++++-- > drivers/video/console/vgacon.c | 17 ++++++++++++++++- > drivers/video/fbdev/core/fbcon.c | 18 +++++++++++++++++- > include/linux/console.h | 1 + > include/uapi/linux/kd.h | 1 + > 8 files changed, 99 insertions(+), 9 deletions(-) > -- js suse labs