Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1975962lqz; Tue, 2 Apr 2024 03:42:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7BpSAxJrEh8ZJlZT97rz0sQ2mqvc3iWVGUiKj3P6ekSp2WTfrkAoIIlhHpIvjloUqNyddQtnawkcy48iPF09Ln751iC7A27GQi/xyxg== X-Google-Smtp-Source: AGHT+IHwoVCaJKtHzQggrvQFxRCeo5NcDCmvmvlN/8VSCxXWW6VPRf7OOm3UGcrYRnPebl7IewkJ X-Received: by 2002:a05:6a20:d04f:b0:1a7:a3e:56c5 with SMTP id hv15-20020a056a20d04f00b001a70a3e56c5mr11068319pzb.27.1712054528592; Tue, 02 Apr 2024 03:42:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712054528; cv=pass; d=google.com; s=arc-20160816; b=CFR1z5mD3ev3da7l4BJsxB1zt2jY3nyLdvjSqkS35YoTL6/jNPXSC8qCn9pi6KkRay ZNoyFpqSPRRVN+bsl1VLv5FjIgAXjbT0KwqXPfekKUSyGEozv2KEa4Cz5YOuhgemxHb7 cf+8mEKL695U4tO5W9CNHeOqeSLA+gIMebqcArBs8x/XnegTMIQ7McJhJ/wm2ccVlFej GOsS9nd8jOEVB61vm4dkz6tq7MnaeudEz8wJ02SnE28575GEs2vmEhOjxVtiCdCaszLD REbD5qXAG8+ZhXkoYY9N+PCMK7mF79CDKlIgk1X32s6MWxUFXotIdMaKHoUkNJ1MvPdP iDzA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=hb7IH8i07Y8wn/ljdheCkyUxKlssOdRRmNFdkRtCoQI=; fh=rAq2CjR46VSIAUbJnoKIDGXdHsZcE/kTLnlAtwBToa8=; b=NWOuoqqRco21pRMHYYZr6GvtRAQiVBjHAQeGCFnLYYm4FfxYzgeYniXJTLLntqpwmT wrdeTC4rEYA+YuTh8p0J1o8mN/3IAUKaBMJGE7PnqmY9YyeOXz7nj3+FcAWxpDYG5pOi QEpXaiSDdCjLf6u2BDvxlVJItH9dBjhwQKf84CIRGZpwvouuYY2cBlBemVTJMu1x0dfQ I/lmrd9g6nUCNmVRWRN7U8OwoCAZe64zOqm5gKvsuDQzPBXVPfEXr/FFCJoo9C0HK9wl ti7TY1OJBREbXSr6tZOIASYxhNnl1XGRZ6HhJbKAYSkqPLs7d2LUWh8qd3v0diDvKHy8 WAvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sqqrE//5"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-127734-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127734-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c14-20020a631c4e000000b005d29ed61d61si10669646pgm.78.2024.04.02.03.42.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 03:42:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127734-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sqqrE//5"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-127734-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127734-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E5A3CB244C0 for ; Tue, 2 Apr 2024 10:34:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC91A5F547; Tue, 2 Apr 2024 10:33:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sqqrE//5" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 F2D8640876; Tue, 2 Apr 2024 10:33:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712054038; cv=none; b=M3++QXcxqVacBZ/Wk6/q7EzQ/h/ERILiY0HAPJH60Q7U21Q63TIIBbRxDflieGS4co5NDyytfjELUcpFiVyWKdKFx7qadySOzCipmDn98dX4cG13yJFo2JsTgMvH2nccZZiuuM7KEhrgT216gU3wtW1Ed/8KS0szweyYoT33FKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712054038; c=relaxed/simple; bh=yQyyvLBf6qblD2zMLzpTiUQ5VLhVLtMWd/58b3xOqH8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dnMsOcgK79h4Iu8zNdboNoL6YLAFYQ3yEfXNvw+LCaiLIU7nn7O/lPDSe7udE7/7OMtXu6SG1PSrqtB7d1fbQ9j5lAxXn3Ibmn4KjH5ajEVgjVJF7R4LJ10oVwZhdhM1rYrKD6AQ8v5imaSf/IXgGcwNVBMFq3hAZyCdF9ECTV8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sqqrE//5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D805AC433F1; Tue, 2 Apr 2024 10:33:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712054037; bh=yQyyvLBf6qblD2zMLzpTiUQ5VLhVLtMWd/58b3xOqH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sqqrE//5SJDwMvCp7dcysivY9PxZ3BLYjLA0F7XvCFrOolIJn+W5qpGVdVeLCm5BD 0dkdtB/G7edTOEdRoG595l19Q1F6CAt/oysQowWnyoApE0RalMaglp4GEhd6pKPeHX Pcb0hOpU07Hn8Od0a8Uv6CFnS8p67uwJ0yusCVlgVzCyocrxxoW+P9QDJecLeXkJSf GzzZTfHhMfZfwgOd86LXptC4U3zM3qEQbSSYyUCN9b56CBpnz7adFvYwzqykDzuXC1 c3VopP4P4Dzw/5W95ot/HH2Zxf7TKmbVuhNplVbr8Nr5SLEDYBEewa6d7hdVL37ReE sMysE3HSW3/Ew== From: Alexey Gladkov To: Greg Kroah-Hartman , Jiri Slaby Cc: LKML , kbd@lists.linux.dev, linux-api@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-serial@vger.kernel.org Subject: [RESEND PATCH v3 0/2] VT: Add ability to get font requirements Date: Tue, 2 Apr 2024 12:32:55 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit We now have KD_FONT_OP_SET_TALL, but in fact such large fonts cannot be loaded. No console driver supports tall fonts. Unfortunately, userspace cannot distinguish the lack of support in the driver from errors in the font itself. In all cases, EINVAL will be returned. This patchset adds a separate ioctl to obtain the font parameters supported by the console driver. v3: * Added the use of the in_range macro. * Squashed the commits that add ioctl to console divers. v2: * Instead of the KDFONTOP extension, a new ioctl has been added to obtain font information. Alexey Gladkov (2): VT: Add KDFONTINFO ioctl VT: Allow to get max font width and height drivers/tty/vt/vt.c | 24 ++++++++++++++++++++++++ drivers/tty/vt/vt_ioctl.c | 13 +++++++++++++ drivers/video/console/newport_con.c | 21 +++++++++++++++++---- drivers/video/console/sticon.c | 25 +++++++++++++++++++++++-- drivers/video/console/vgacon.c | 21 ++++++++++++++++++++- drivers/video/fbdev/core/fbcon.c | 22 +++++++++++++++++++++- include/linux/console.h | 2 ++ include/linux/vt_kern.h | 1 + include/uapi/linux/kd.h | 13 ++++++++++++- 9 files changed, 133 insertions(+), 9 deletions(-) -- 2.44.0