Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp281199pxb; Thu, 19 Nov 2020 00:35:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyv426LrNnsIDkb1/+1OcwOp2FucJEAvdPFTGwLWwvUd4WpNEP0FTFfw7LGLaWxyElJrsJe X-Received: by 2002:a50:9d04:: with SMTP id v4mr29916878ede.363.1605774926643; Thu, 19 Nov 2020 00:35:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605774926; cv=none; d=google.com; s=arc-20160816; b=xmMFnlfYYctQi02JF+equWS165LzFKdFaXG3lp3n4gmrLV9NE4EDamEtS2OInZCyBu mU+kEhCN3mgR2SpT22och3bfysKxBnZFzJRFKtaQ+VHl4o6zJh5iRe5k7NdT3x10oL9M tLZkEMXDGdZ0egi3mgltkivdCN3hIeAtjK9QryW8b6NUcnDkL77BEFSqQpvHWRYLv3qH mGyzowr4WPlNDKhoCIPD38wUWzNobAM8UWY6/C04I6hXXopOEfSMKCl/2CmaMZBJAqZt eOWIYXLltdF6Wh5zH3wmq2MefnJiQFlqXi/CXTpYFrNogilxwPBGT34bUfGuQGoeWB7V yjCw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AWtaE3tXlX6KkF6SbACxjxmzIgZO2jw7wJIis4kxiFE=; b=E2Uk01u3LHb7txp+K0L39Ollm/0fTRu4DlmBIw63scoO58Jgqveh0jZSbuV1TyvR2n t3XYy1ydcOpL77IAA3cvqRZ5hcSTyWtSwOVloxx0bT34uTBRtlYz+ok4JVRLTA19yfv+ 6edlqDb4XeBLvB/Gi5A+j80DXJ1n369CvSVWAbmPt1KRZo9kuM83k8OC5dTwyFLv2PpG PuZWbGZq4M3IOStFRuhbKK7gEWWb9kgs7nMSpgdW2QW7euSUIU6RQ+4Q5eyiSqWzAs0/ mJwplYXy0WZdqNET4dvxA83qzCVXVktx244bZpnafGBurnwYcYTOdxJq19cs2x8VWTTr 4jAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=erzuebpF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u26si18385255edb.100.2020.11.19.00.35.04; Thu, 19 Nov 2020 00:35:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=erzuebpF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726761AbgKSIdK (ORCPT + 99 others); Thu, 19 Nov 2020 03:33:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbgKSIdJ (ORCPT ); Thu, 19 Nov 2020 03:33:09 -0500 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 752A8C0613CF; Thu, 19 Nov 2020 00:33:08 -0800 (PST) Received: by mail-pg1-x541.google.com with SMTP id i13so3566460pgm.9; Thu, 19 Nov 2020 00:33:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=AWtaE3tXlX6KkF6SbACxjxmzIgZO2jw7wJIis4kxiFE=; b=erzuebpFnP6Gt2cVg+ear4rCVwZ7bV1TMmBphb8RKyD3jrIiAaNEYF/RsgesHqObP0 He6fyxoxyGGmeUZVMu55DzEB7jcra6cRQnvkfN30U6IDH2AVMoZ3r4zz+yw4phczW/Jg 5DjouAw+3mtdOjcmUn00gTai5TFmLOOALsNQjAMBdj0hv+RDsdHAH6LIu1vdCvwZuRvk ABxoG8DSqgG6cKZwCREawmItYpU4ofbFmo8XNIFaxMPJZ2Bz3RTZj4T3PbEz2A4i54tL vDc5j2p+cebrIwdKl0TAv9l5C1jvtPY8WU0arSK9KRm8+cU0n/85YEKbOOyC1USDLDGC ff+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AWtaE3tXlX6KkF6SbACxjxmzIgZO2jw7wJIis4kxiFE=; b=UTru85PJ+51NhWm+g+7vyk5yu7eP+C22Y/WKbxYhFSYvl2aJpVGXC61FryXM/byrP6 tqQBAwItWE+nbuoiW7yn92uxIMFm1jRsAM1Y+QMl5AYFY8huFsT6mB49gIe+U/EZGPAa Doo1Ly1kH1zHVXMAp7/kXdKUGaqiXXhZQp4P2ECVxeh5OGloapHiXGRIV3H7KeUM7HGO /Vf4Jp0+d7bBIgLez3AjND0ltD05dujlZdb/b3s53KcGb3ih2o83BA+4087JhGYUWoEU NNgTd9BYrzzl/Y0Z4mXhegHpGfSuac+PgJvJH3TJ9doPJqRETOUP+ySUYWik1ml6bFlE u/Xw== X-Gm-Message-State: AOAM533nYzIQIKsYDKDuLWDqrGZET8MwDJSrcKDmPILr9voEPOHQbOpM XGF0RdpSTFlGOGJXu4Uj3zcoy8UyixunGPg= X-Received: by 2002:a63:c745:: with SMTP id v5mr11584885pgg.389.1605774787959; Thu, 19 Nov 2020 00:33:07 -0800 (PST) Received: from PWN (59-125-13-244.HINET-IP.hinet.net. [59.125.13.244]) by smtp.gmail.com with ESMTPSA id z5sm1626030pgi.27.2020.11.19.00.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 00:33:07 -0800 (PST) Date: Thu, 19 Nov 2020 03:32:57 -0500 From: Peilin Ye To: Greg Kroah-Hartman , Daniel Vetter Cc: Jiri Slaby , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH v3 0/5] console: Miscellaneous clean-ups, do not use FNTCHARCNT() in fbcon.c Message-ID: <20201119083257.GA9468@PWN> References: <20201113211633.GY401619@phenom.ffwll.local> <20201114081021.GA11811@PWN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 14, 2020 at 01:22:22PM +0100, Greg Kroah-Hartman wrote: > Ah, here's a hint: > https://wiki.archlinux.org/index.php/Linux_console#Fonts > > The setfont tool should help you out here. setfont seems to work fine, I tried Georgian-Fixed16 (256 chars) and Uni2-VGA16 (512 chars) under /usr/share/consolefonts/ in my Ubuntu box, including setting all consoles to the same font: for i in {1..6}; do sudo setfont -C /dev/tty${i} /usr/share/consolefonts/Georgian-Fixed16.psf.gz done Font rotation also seems to work fine: for i in {1..4}; do echo $i | sudo tee /sys/class/graphics/fbcon/rotate sleep 1 done One last thing I can think of is tile blitting, but I don't have the hardware (e.g. a Matrox G400 card, see FB_TILEBLITTING in drivers/video/fbdev/Kconfig) at hand, nor did I figure out how to simulate it after searching for a while. However based on the other tests above I believe vc->vc_font.charcount is set properly. Thanks, Peilin Ye