Received: by 2002:ac8:4602:0:b0:405:464a:c27a with SMTP id p2csp2536099qtn; Tue, 25 Jul 2023 11:33:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlEWSvU/L3RLq3kdahPqijoVVU30yXYp/Tq3i3Ly6fHCI3v0DNH8K6KX7Wucao/hmSY6JH00 X-Received: by 2002:a05:6a00:808:b0:686:bd4f:3a6c with SMTP id m8-20020a056a00080800b00686bd4f3a6cmr18408pfk.13.1690309993422; Tue, 25 Jul 2023 11:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690309993; cv=none; d=google.com; s=arc-20160816; b=JsWC0v6aEqjPCpnY7A/EMDzXS2QpnN4n/OirRYO9kJRnZ9op+p+PWW24URTqD50AOc Qzsy0rBn+tPQorp6V/20QbUAPObzBYVWRwXdiJRFUVQ/z3SxKbJCJcsMnjeFYjHD4Se9 D7k9LHaNYfFe28mqcCcOtvmDSPiPeP1yedaKOT1cxdPWVu+LO2f2uH7P0P1grWTeFdaQ MbWbu/9n9S2k9IJv1Yu01fBNmMC4Q+s/ISy9hPa9taZISDpQS8/8M8X9zmofCEMP1nhM S4NaRac/UZR6x8ANlwo3/D+dLUnZ7i4rGZFQBAOgQ7dTAhGr0hCUMTryjmn3qO4fNK6g lI2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=yRbVjFfsSAWk2qgPNLV4SL8PYOAzyHPJa8qojV/qbTU=; fh=CVi5LsYbdUZ6nqR1GbhUfus4dfb0HRNCUWj8kE6d4hc=; b=fTddtmNw2X+Q1U7/CW9q96xOqA8uKiP6TsX7E6sS9e439ee+nAeoDxAonX6ogpbKQg fE/GP1O/wJ317I5hYRVT8XGlNCE8DntA1ekmu9REtUdFSM2+qsOAEPPbcnuJxQrC9+qd LjYeVNkU5MqlFFJTNtznG8DPBL6i4MwgpyI9t///tEgHEMqqi3ngKZHUdumTO6MtMSDg l7t9EvM0u5DVCmnvTFcOSP7skSej2PNIsntSsXF8eYf1c1i6p09rAnawq7Do6qnY/TNt jHKQ1f8Rv+G2BOlbSYBhjBNgQmTVEFz5oWKWHxf8AVHoMqqY4WDEZ/DV0x9z6MsNeso0 mbBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@treblig.org header.s=bytemarkmx header.b=Tc94ByYH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd7-20020a056a00278700b006686d07f4b6si11541806pfb.327.2023.07.25.11.32.59; Tue, 25 Jul 2023 11:33:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@treblig.org header.s=bytemarkmx header.b=Tc94ByYH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231990AbjGYRIp (ORCPT + 99 others); Tue, 25 Jul 2023 13:08:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231852AbjGYRIo (ORCPT ); Tue, 25 Jul 2023 13:08:44 -0400 Received: from mx.treblig.org (unknown [IPv6:2a00:1098:5b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D69B41BDA for ; Tue, 25 Jul 2023 10:08:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID :Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=yRbVjFfsSAWk2qgPNLV4SL8PYOAzyHPJa8qojV/qbTU=; b=Tc94ByYH0orSeNXKGUiuuOjWTS ATnRhfKj2TfUyt+WICB9rlgeFHnc2qULhs+lSzd2663ZUtjIuViBkKDl4v9cvfQE70uhdxfi2OfVo hXzlkILmigafv1+Mb2ZmSuUm/1rAt3+M2VTcN2pV5oS87RL5bwgli0k7APUKsnTUyG5xB87fE64nj UsihBZudUopiFXmotkuW68RBPAkmvd2mPZLaOpBn08IskQJN3VjNqNORXfrhdudlMgRbt8H4MCBj3 rQwkK6s27v528DgBSbJsVmgjKbcvzVO2mqAZyIeHKxpY+YodZ55LfPQQ1PPlA/YFHlx0ZeRMiC52L nUy4XK8Q==; Received: from dg by mx.treblig.org with local (Exim 4.94.2) (envelope-from ) id 1qOLWR-003Grm-3b; Tue, 25 Jul 2023 17:08:31 +0000 Date: Tue, 25 Jul 2023 17:08:31 +0000 From: "Dr. David Alan Gilbert" To: Sam Ravnborg Cc: mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, benh@kernel.crashing.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: Use shared font data Message-ID: References: <20230725000141.165985-1-linux@treblig.org> <20230725170104.GA838289@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20230725170104.GA838289@ravnborg.org> X-Chocolate: 70 percent or better cocoa solids preferably X-Operating-System: Linux/5.10.0-23-amd64 (x86_64) X-Uptime: 17:08:19 up 19 days, 2:39, 1 user, load average: 0.00, 0.01, 0.00 User-Agent: Mutt/2.0.5 (2021-01-21) X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Sam Ravnborg (sam@ravnborg.org) wrote: > Hi David, > > On Tue, Jul 25, 2023 at 01:01:41AM +0100, linux@treblig.org wrote: > > From: "Dr. David Alan Gilbert" > > > > PowerPC has a 'btext' font used for the console which is almost identical > > to the shared font_sun8x16, so use it rather than duplicating the data. > > > > They were actually identical until about a decade ago when > > commit bcfbeecea11c ("drivers: console: font_: Change a glyph from > > "broken bar" to "vertical line"") > > > > which changed the | in the shared font to be a solid > > bar rather than a broken bar. That's the only difference. > > > > This was originally spotted by PMD which noticed that sparc does > > the same thing with the same data, and they also share a bunch > > of functions to manipulate the data. I've previously posted a near > > identical patch for sparc. > > > > One difference I notice in PowerPC is that there are a bunch of compile > > options for the .c files for the early code to avoid a bunch of security > > compilation features; it's not clear to me if this is a problem for > > this font data. > > > > Tested very lightly with a boot without FS in qemu. > > > > Signed-off-by: Dr. David Alan Gilbert > > Yep, looks very similar to sparc, so > > Reviewed-by: Sam Ravnborg Thanks! Dave -- -----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/