Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1102062lql; Tue, 12 Mar 2024 07:24:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhUETqe46hRDgrxKkBmOEWCGtzFjZX3Hao9ddmYqCr4edGxBtF1NADXeYEPRIPMSjeERf9nAteX8eEGTu5zw1nTfBHqHxD46ndbzHW+A== X-Google-Smtp-Source: AGHT+IHt6VTAIPh7eN0zxEXaUUymaNOmhA0NR0BHEF21/QEbfxfIXATRrpgoZcIgKOZ4gRnnuhkb X-Received: by 2002:a05:6214:247:b0:690:db88:9eb with SMTP id k7-20020a056214024700b00690db8809ebmr4209035qvt.50.1710253460932; Tue, 12 Mar 2024 07:24:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710253460; cv=pass; d=google.com; s=arc-20160816; b=GTD++q+LKbOSQfY/+RQ/HY0e1p5tO2aRWgqCea0hYrOgjfoN7CbA1HYEdxb/Loi29l d1P5KdMl0JMOpN/QQ1/JImmDBGc8buGfUmihLjWFwzVxX+AanCC5R7evNd4GcBBhVNGO cah2moxQ8haebv4i97uHpKgh77/NiFqYb6TEHmB5u0JWhnWNCkDvCyGH3QaydO/SNxRE UDlf9maEjgB3gbAA6tPkQg99RzqN4Nj+tlC9zKWnKxPMAO4PPaTut27WTsEXkJVONRPG l49mHF87VAxWSEWMBWGn736iN0nEh9VVD0oLOSQklldfezH7g4ggRcEu9o+cF1VukOc/ w3Kw== 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=33IiehIaScASNpg6NhqiQVyunrxFfhafw64OVI7jvM0=; fh=BoHYFgCQcu78cQIBuZWVqwVKVUwawROCkCaPrgKHkJo=; b=wbmjptqk9g3NTmMeE6ij+3hRcdFnEkWsW51uJ5+s+LGIY2XziP9rBCDbOn3hWrJDLs Ja+zGyhdt7d12b9Mjvm7DXmPLAIC5L011UXlEqsllTQ21yXUytUFMjyugSot26WF/pRf DTen3RKboHbt4w/x/dFFUQh4Ad7V7Fh9A3OXsORtG/Z6OS2yu9TuVQyqHzHR9Sr1ekda 5ZAPYcd1apg+T8zaCR1OC6L43yfy9CsUNEqMcQAiryyoX87/mdAoOBaqnbRYp0663Fkw SSozuTDWgOxQZ2ZLoNNAiCVZmxZlH9gN3jOPwN7gayGRyzrwCvvyk963uCKnAKR12MA/ XkIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gG4TwGYy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u10-20020a0562141c0a00b00690b84b755fsi7504022qvc.469.2024.03.12.07.24.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 07:24:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gG4TwGYy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100345-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A57511C21ACC for ; Tue, 12 Mar 2024 14:24:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDE2B7AE6D; Tue, 12 Mar 2024 14:24:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gG4TwGYy" 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 0F03678286; Tue, 12 Mar 2024 14:24:11 +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=1710253452; cv=none; b=DcuJkG6SgXYI13YRmN4YKja8o1tHpKeplgp7WIkWLuw1vROADVYL9XeukdLlVvG0mgY6LAYvAFsUoYNJu/nhGQSLKtIxufI/vvW1Pr21dKwE8Z+Q9Esotj7ThFcNq3C4awQJcsy8+vWQp6yiCN8Wk8CCbheC8R2YorB+trDKBvk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710253452; c=relaxed/simple; bh=qpr3oDr5denGURn+3TLpW0eVsEAWpGD6RfS4albEsBY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ooAEr5gvcUhLnodgSc08Q9aN1pR+vXrLb4fTCq63iAJQw+tx4cjantRwgOp0cbHKcfiJFsF80XzVpTMvzk9V7oY4kNaybeTGfM+xZDgZm4fYWZjivKPe7/SbIp/sNo27mQR9RkS5cemMKkTHJ2i/iyjKU5pXNojLRthnj3RPM0I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gG4TwGYy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B519EC433F1; Tue, 12 Mar 2024 14:24:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710253451; bh=qpr3oDr5denGURn+3TLpW0eVsEAWpGD6RfS4albEsBY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gG4TwGYyOAJNWY3JrsgJRCsHgbB4CJ7VnI46zq3sEoMoeXjtYfna6hEM67zCPXI4Z UZeaOaU2zyGISvFxdri98/FssO/Vu4v52BaYLlLf6oKttIeolEUDvNFxinvvkN1dAu Nqm3wgKMvEIiMVp1YIWaZk5k+kPFYOn2k7tG2EwCXSAXoPtC9EQD0onVSfKJNk/O4j gocIj5rJzoE0z/xXMA7PAYnfkpnY1JiNBAoirLlrjERtizhn93REUYYpcmf8mrvbfg tsVhkEkz/Ff05dQoKH4nokHVQabLDcyNdYaUUqtreFWAa/Naykn7e+zEgVvVtpX0+U uq2l1H0Z3ihUg== From: legion@kernel.org To: Greg Kroah-Hartman , Jiri Slaby Cc: Alexey Gladkov , LKML , kbd@lists.linux.dev, linux-api@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v3 0/2] VT: Add ability to get font requirements Date: Tue, 12 Mar 2024 15:23:56 +0100 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 From: Alexey Gladkov 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