Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1459960pxb; Fri, 13 Nov 2020 13:18:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzt80HBt3ci9AVUo8LF6Zip12q1q+G55dCt/tztQHhhm4zQiNCsyiVYGBR71mfbV7c5UJEl X-Received: by 2002:a05:6402:a53:: with SMTP id bt19mr4684103edb.26.1605302323780; Fri, 13 Nov 2020 13:18:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605302323; cv=none; d=google.com; s=arc-20160816; b=xjMlgyGhvKTRnOF5MqH6Zjs5c8SJtX6CIWcvVx7gyUeTDzF7DRbIjyUpZBdNJK9is2 rPiyBqo3RDhM8Ig1s8lS1Jw8qMiTK3jQr33RLIdc4MilRfvY8ZLpmRHs3MdP3DIB1LZc 61ZcE76izpTfdoG6UiogtXBhVi1Qssgky2VTuRgDemxAc2bSZYqYpH2fxJaKOZVN4w71 6rwnnHuTUqouqLTGKlEbUbojmqMr3xEotzmEuZiVzDbIOjHm6DcjsP1+Ps5cR5c+Nutg EeBzwr0OHXF4mXK3I494bE/33EVK/u8KVcKvXSQrcwz2zulXtqznzBmuG5LYPli6QtyL LAvA== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Q6kjYbgKJcp03AAAsASkHgYE4dtYS5rkSqZBjH66POE=; b=uEq4Yb7KpaYLlz0ZM86cL/RKcXLtG8B9f7XIcDCVCIiFwxaiYizpgh57t5VF/lgWZy hRPKJ+zzoVoZVP6PbwZcZMAMupjcy0KxoETshmGE/AIGACL90qMOSeUSg/5RcN6Dc6yO vV62jya026y/PI8aCOZeuvKwNBODYSQGNPmohb0iY24i1J+ehULJsqITi50jUUzhSJ5S XVdBYJ/lLjYnfMDryl7DQ7l8HjcvdYNfcESyl5Y2D1dLGE20UaESUKZO6yNDOhqyCnwN l5jZvENmpS4TrV1co54hXfqQNjqHtPVfQGVZVsjg7YWr5r6u+O+7/cGDVoq82dhcQGlv XnNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="Hs2/WAl/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f13si5883847ejb.560.2020.11.13.13.18.20; Fri, 13 Nov 2020 13:18:43 -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=@ffwll.ch header.s=google header.b="Hs2/WAl/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726156AbgKMVQo (ORCPT + 99 others); Fri, 13 Nov 2020 16:16:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbgKMVQi (ORCPT ); Fri, 13 Nov 2020 16:16:38 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 899D9C0613D1 for ; Fri, 13 Nov 2020 13:16:37 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id 10so11050807wml.2 for ; Fri, 13 Nov 2020 13:16:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=Q6kjYbgKJcp03AAAsASkHgYE4dtYS5rkSqZBjH66POE=; b=Hs2/WAl/6nZID7yAvDh2H4mY+z2Lmu3VAdpuIoceIWU5YRZM95mUCkWugom5d2eZ8+ fWCgab7nhig+gnERUVjIseX8uZ4AfFZp2Fl2gdUR+N6kRTOBrUPZd1fWJuoFAC88c0Ry wEVgLwijyjFrPMUP/lQCi7HFT/V1KaOVX0Ai4= 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 :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=Q6kjYbgKJcp03AAAsASkHgYE4dtYS5rkSqZBjH66POE=; b=r7abLZa+GDIKq2/j1BoRVnmKUjUEj0uuVMoMero9NaBJVmuNpp1QsT3k0vVW2PUgeq R21JbTOtsf32BYXPHpmIeuEw3jxJmmIluqCOvQ2JVImVgnWrMDPNj6Wjc4puDrtMgy26 5zIpmla4iUwrxjzTTCcLCG5+DgV8xtGjDRNk++AGpNxItvJ2ZTnT5VWcnxYkbGeR4pub noeh59IAdsuDQb17J9btGCTcAekjwNasf8E6wJjDSatsR5EZ7CEd/iKReuUYXhPchkkW pW9jd3ozliJvgqdtjIDRtxXDnsfm/O77vlKecsVBnarykLEuxF6w44Y7FWbQhQuFJBU2 kgYA== X-Gm-Message-State: AOAM531+AFuIG7XFy/xITS2I3gHIvblpZjHZSlhXeN2Yl7mxVF7NzQ6s MitgNzV1O25vd4xjwR2e2INHow== X-Received: by 2002:a1c:bc08:: with SMTP id m8mr4603342wmf.137.1605302196203; Fri, 13 Nov 2020 13:16:36 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id l3sm12960816wmf.0.2020.11.13.13.16.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 13:16:35 -0800 (PST) Date: Fri, 13 Nov 2020 22:16:33 +0100 From: Daniel Vetter To: Peilin Ye Cc: Daniel Vetter , Greg Kroah-Hartman , 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: <20201113211633.GY401619@phenom.ffwll.local> Mail-Followup-To: Peilin Ye , Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.7.0-1-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 12, 2020 at 07:02:21AM -0500, Peilin Ye wrote: > Hi all, > > This is a collection of some miscellaneous clean-ups for fbcon and some > console drivers. Since v2, I rebased them on linux-next, added some > Reviewed-by: tags from Daniel and Greg, and rewrote the commit messages as > suggested by Jiri. See [1] for v2 links. > > It does the following: > > - Garbage collect KD_FONT_OP_COPY callbacks since we disabled it > recently. Mark it as obsolete. > - Delete dummy con_font_op() callbacks. (Reviewed by Greg) > > - Add a charcount field to our new font descriptor, `struct font_desc`. > (Reviewed by Daniel) > - Do not use a hard-coded 256 for built-in font charcount in > console/sticore.c, use the new charcount field of `struct font_desc` > instead. (Reviewed by Daniel) > - Similarly, in fbcon.c, avoid using the magic negative-indexing macro, > FNTCHARCNT(). Set `vc->vc_font.charcount` properly and always use that > instead. > > Daniel, hopefully [5/5] removes FNTCHARCNT() for ever, but I have not > tested it sufficiently yet. I remember you mentioned elsewhere that > "fbtest.c" is insufficient for framebuffer testing, then how should we > test it? The first 4 patches should be fine. > > Please reference commit messages for more information. Thank you! > > [1] v2 links: > > 2/5: https://lore.kernel.org/lkml/c5563eeea36aae7bd72ea2e985bc610d585ece40.1604306433.git.yepeilin.cs@gmail.com/ > 3/5: https://lore.kernel.org/lkml/20201028060533.1206307-1-yepeilin.cs@gmail.com/ > 4/5: https://lore.kernel.org/lkml/c38042bbf5c9777c84900d56c09f3c156b32af48.1603788512.git.yepeilin.cs@gmail.com/ > 5/5: https://lore.kernel.org/lkml/20201028155139.1220549-1-yepeilin.cs@gmail.com/ > > Peilin Ye (5): > console: Delete unused con_font_copy() callback implementations > console: Delete dummy con_font_set() and con_font_default() callback implementations > Fonts: Add charcount field to font_desc > parisc/sticore: Avoid hard-coding built-in font charcount > fbcon: Avoid using FNTCHARCNT() and hard-coded built-in font charcount Patches all look good to me, if Greg is ok with me applying the entire pile to drm-misc-next I'll do that next week. Thanks, Daniel > > drivers/usb/misc/sisusbvga/sisusb_con.c | 21 -------- > drivers/video/console/dummycon.c | 20 -------- > drivers/video/console/sticore.c | 8 +-- > drivers/video/fbdev/core/fbcon.c | 68 ++++++++----------------- > drivers/video/fbdev/core/fbcon_rotate.c | 3 +- > drivers/video/fbdev/core/tileblit.c | 4 +- > include/linux/console.h | 1 - > include/linux/font.h | 1 + > include/uapi/linux/kd.h | 2 +- > lib/fonts/font_10x18.c | 1 + > lib/fonts/font_6x10.c | 1 + > lib/fonts/font_6x11.c | 1 + > lib/fonts/font_6x8.c | 1 + > lib/fonts/font_7x14.c | 1 + > lib/fonts/font_8x16.c | 1 + > lib/fonts/font_8x8.c | 1 + > lib/fonts/font_acorn_8x8.c | 1 + > lib/fonts/font_mini_4x6.c | 1 + > lib/fonts/font_pearl_8x8.c | 1 + > lib/fonts/font_sun12x22.c | 1 + > lib/fonts/font_sun8x16.c | 1 + > lib/fonts/font_ter16x32.c | 1 + > 22 files changed, 42 insertions(+), 99 deletions(-) > > -- > 2.25.1 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch