Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3468358pxu; Mon, 19 Oct 2020 12:53:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRPnjS3peyaavS98hGAB4nDE38SNMqhauRZojlNh1fPn5kMAzumiXjk+WeYexDwpeXK7Zj X-Received: by 2002:a05:6402:28e:: with SMTP id l14mr1451631edv.157.1603137232490; Mon, 19 Oct 2020 12:53:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603137232; cv=none; d=google.com; s=arc-20160816; b=CRtRTm0XO0PZuO7SBN84QPtsB8Ff0mr1yspJw2jzn8pMpDm9hLTK2+4g8Q4oFDXTIp HyrKWRcCOrveoBkRScQo6BadOWqqvHh6uYErncG4fxMeIgbqBly4tIV+J208DbTuBZLt bjg5QktYCWdZDnqsbyQ2WAZ8fHdUdVxjEpiS7aUf5vPBJT1q9a5SrJm+jHme5hZCNMkE j9+JSv91jAtb9t/fDBdnBazoY2wagOXLjPZ2A0E9GGu9rKTZshyrAsgaH0JUQzGXqxRh NPcHTIROKsyWhJY8LJ4zcCKIEAtG3qAx9bnXhKPxkvkSCijQZtXxaSH7EgQYY6OIRwzR amRQ== 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=4EwdmieLopr730fBT092jGmCV6jWxaZo5R8egPxRxBo=; b=K8HsP4JNYyNSa3m9HHrfJIUgD/QObhXbgA8mA3EiLeUfQ0gDc5lESU05X5oLRs8XzV 4gbu6z/bdABNkDhqiBZczPBnAjunf53/DbHeV6eOf+/xwhivCuA92y3PRCYXIVtL7pC/ RKNYTVYyrWUVvFgnAxAWG8ELedUAHaWncE4LjJiFanH985JoyqJuAr/nxJJC1+Hdtp8y 6ku/X0ahXIqHzVZ3SjV4rncGPKiCFn+fH4cD5lnJFajLw/SkEdhR2VlKuGkdpyyGi1yu JcV4X/7v+qxDgh5s4wSCephE1YpMxEbGSon6bjjfefp6Nn4ktrKohc3m24b3Mkv6Dd93 7cew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bEdLOYq0; 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 p35si499403edb.425.2020.10.19.12.53.30; Mon, 19 Oct 2020 12:53:52 -0700 (PDT) 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=bEdLOYq0; 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 S1727148AbgJRUST (ORCPT + 99 others); Sun, 18 Oct 2020 16:18:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbgJRUST (ORCPT ); Sun, 18 Oct 2020 16:18:19 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 754F9C061755; Sun, 18 Oct 2020 13:18:19 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id e15so1529650pfh.6; Sun, 18 Oct 2020 13:18:19 -0700 (PDT) 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=4EwdmieLopr730fBT092jGmCV6jWxaZo5R8egPxRxBo=; b=bEdLOYq0uwT93zPsTlYzcu7NYL6GQWq6YgXjrhZkf9QNU0jlqSEVF6ssnhdafsSTs6 IuIJQ0arVKhAiHFMXk3TrN3YvGlkVWWizd5gDHZ6rIJZfLx7VHQVIAEPxVwKpqZjx/nm ze6W3bHse4Xx7rxiG9pYTKEez22Q/GTz3+Z7Riz117jy9CDBBoIYGVEIE9/rq2y76UBk SBQYpQQI97ZAYtPfH9NINxiJTIZT662CnAyXvoWN8juPzh0nArXfILe2MS2kbX+GO9RD 5r3epRL3Tg643LU7AV5dM7y/r5IyWwY+EIDGe8k5rPd1VjP186t6CJJTWbisOLX5nBwL QahQ== 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=4EwdmieLopr730fBT092jGmCV6jWxaZo5R8egPxRxBo=; b=Jb68pUNCyuSWh8HNmWqhZ7Q3uION4TH/ByE3fyGh974Fm6misrTOyw57367xf3spKr RkRP7DztZJwPCkCambGdVEZcR6U5vC5aayBDQhgniOLJhGO+y0EfiU45Ygso4XiwIBh0 hnsWxAuRuJAFL0zSRV5j5fjxspMP5w3TZbeODc4s5NtbjlDtwwsx6K1dbx8B4KBHqIe7 KgxHd1ZIea0Xmu60I6lClb7rRHTggmPWAxRpRhnX1Ede6XY6eRYSNPSbJ7bWci3Ni5vC x0UBPq8xkcX0lDA8JReYI+ZaEYtOysU5x8SaBhfz56A/uvtw1cYjz/uGibyor79zqBeZ RegQ== X-Gm-Message-State: AOAM5315ehbS/tyjpt/MBOMGETkJHcXqrFFJnHofI39QKvEvXl76F3qS Ss75T0tMdiQ5G7gnKckf9b5koPXRA2MY9uM= X-Received: by 2002:aa7:911a:0:b029:155:8521:ba6c with SMTP id 26-20020aa7911a0000b02901558521ba6cmr13117544pfh.8.1603052298968; Sun, 18 Oct 2020 13:18:18 -0700 (PDT) Received: from PWN ([161.117.41.183]) by smtp.gmail.com with ESMTPSA id e4sm9568856pjt.31.2020.10.18.13.18.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Oct 2020 13:18:18 -0700 (PDT) Date: Sun, 18 Oct 2020 16:18:11 -0400 From: Peilin Ye To: Daniel Vetter Cc: dri-devel , Greg Kroah-Hartman , Bartlomiej Zolnierkiewicz , Sascha Hauer , Sven Schneider , Pengutronix Kernel Team , Linux Fbdev development list , Linux Kernel Mailing List Subject: Re: [PATCH 1/2] Fonts: Support FONT_EXTRA_WORDS macros for font_6x8 Message-ID: <20201018201811.GA697615@PWN> References: <20200820082137.5907-1-s.hauer@pengutronix.de> <926453876c92caac34cba8545716a491754d04d5.1603037079.git.yepeilin.cs@gmail.com> 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 Sun, Oct 18, 2020 at 10:09:06PM +0200, Daniel Vetter wrote: > Adding dri-devel too, not sure anyone is still listening on linux-fbdev. I see, thanks! > On Sun, Oct 18, 2020 at 8:13 PM Peilin Ye wrote: > > > > Recently, in commit 6735b4632def ("Fonts: Support FONT_EXTRA_WORDS macros > > for built-in fonts"), we wrapped each of our built-in data buffers in a > > `font_data` structure, in order to use the following macros on them, see > > include/linux/font.h: > > > > #define REFCOUNT(fd) (((int *)(fd))[-1]) > > #define FNTSIZE(fd) (((int *)(fd))[-2]) > > #define FNTCHARCNT(fd) (((int *)(fd))[-3]) > > #define FNTSUM(fd) (((int *)(fd))[-4]) > > > > #define FONT_EXTRA_WORDS 4 > > > > Do the same thing to our new 6x8 font. For built-in fonts, currently we > > only use FNTSIZE(). Since this is only a temporary solution for an > > out-of-bounds issue in the framebuffer layer (see commit 5af08640795b > > ("fbcon: Fix global-out-of-bounds read in fbcon_get_font()")), all the > > three other fields are intentionally set to zero in order to discourage > > using these negative-indexing macros. > > > > Signed-off-by: Peilin Ye > > Patch looks good to me, but it says 1/2 and I can't find 2/2 anywhere, > not even on lore. Did that get lost? 2/2 is just updating the fb documentation: [PATCH 2/2] docs: fb: Add font_6x8 to available built-in fonts https://lore.kernel.org/lkml/717bb41dda8e2ed615f3faadfbc3e215de726d38.1603037079.git.yepeilin.cs@gmail.com/ I did `git format-patch -2 --thread=deep`, did I do something wrong when sending it? Thank you, Peilin Ye