Received: by 2002:ac8:4602:0:b0:405:464a:c27a with SMTP id p2csp2529298qtn; Tue, 25 Jul 2023 11:20:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlErpx74pCs2/SbLobksC9Jqqi8a4/dps6VG2W+76Td5bTOciULizVxowT8pNCwkbgfwKXp0 X-Received: by 2002:a05:6a00:2e2a:b0:678:5629:fd43 with SMTP id fc42-20020a056a002e2a00b006785629fd43mr75555pfb.9.1690309212258; Tue, 25 Jul 2023 11:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690309212; cv=none; d=google.com; s=arc-20160816; b=WJ4CfTf2HChCq4oYiG0CR0RJ5fNfq3NZ+C9LdlQr4TpXpLWJAN8TLEecwa7Jv1rm4n 8VGgLNwZKM5MCwXLftGxUEB8WTEFbMFZG//ZF4/YEsNqp7gZoM9amvZ+CqFbLg62t4JX 1bZxJTS22KqWRyU+ChorgGVZYcitzaNHiQI0n6WjMnbJrqOB8RwSUe/iUPvkx1VmyGbe podcsglkzUjY1EtJd0qEnr8AOPaFXE9HH/0i/xDPnAA/EwCLZz+XjLvWhreFGlFvv5k/ biyZkctecKTUBQHg0XX9Ha/RVyXdFjiT2GPpA8UulV2U4V8jNq5uJv9Fvv3OrZagm1yx czXw== 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 :dkim-signature; bh=sduBUGWe44xQWwq5ehD9FZfNDPxgCDY8mIHiqy0iMz0=; fh=i1J4vhybJZ18M8iHOdEx5yB3QFVnz4fyGsXn5kHlX0c=; b=jAG6SDliUAInKCRAZUBhsz5gGqh1w4oWFxendP9lrT6yFKNatzgbQdSJecZrUbNDJc 4fDDdpM1EgvNSfX+cOrGDLZcUzXWY5LM4Dd6ayCZMIHlvKAyMQ+88Tx3IjpO4qY9vduO dPcPdvAD2ai/SUYEHryj9XKFaqWLh2tt2b7oEkSoym+Dtl3NxAKPI/CN+gjNjHMNa4Pw H0iL5B6DLd8Buhk9Cms8vLgiazytw+AOLWr6Mw1bmrPf/ChwZyGc4tES4TzyMkEaj5ga c9Axw91T+vzLf0EyfBxfeNR7wPAbRh1MXB+rnUgx+Ph1RR+I0NXD90zJlJMUHxhrCeJa iH3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=ajkMW1Pb; dkim=neutral (no key) header.i=@ravnborg.org; 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 bs64-20020a632843000000b0055c96379d01si11418530pgb.705.2023.07.25.11.19.59; Tue, 25 Jul 2023 11:20:12 -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=pass header.i=@ravnborg.org header.s=rsa1 header.b=ajkMW1Pb; dkim=neutral (no key) header.i=@ravnborg.org; 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 S231251AbjGYRBM (ORCPT + 99 others); Tue, 25 Jul 2023 13:01:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231646AbjGYRBK (ORCPT ); Tue, 25 Jul 2023 13:01:10 -0400 Received: from mailrelay2-1.pub.mailoutpod2-cph3.one.com (mailrelay2-1.pub.mailoutpod2-cph3.one.com [IPv6:2a02:2350:5:401::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0778E1988 for ; Tue, 25 Jul 2023 10:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=sduBUGWe44xQWwq5ehD9FZfNDPxgCDY8mIHiqy0iMz0=; b=ajkMW1PbXV5ZNeCv6fGQDs8eCTKwm7tceSP+u4iKBg3fNgHNE5tV7E89uNWKbRZqpuCxzKkrJawHl yZU3If0GP8ob2d0p3XB9VXvIVdrDkRxKoyhDrBpdtFTi2zket7AWCHMsbEuLLBJi/9yY2Ms/6kaMSb iIi3sHzlOuMqcdRacGOcZ+YQvG7FbiE4V3usqsPR+psnzErUFIVQ3mKBQQytHSMsCIerdLp87Ap4Td Vja0V543JkCFspeWF/652AuyFvyEPdg4xrxTvwa7zXia8h2N/jKULJp2EGJnNzeCPQWNt63WGu6VO2 OXhW0cGJGqGY4httMvwl2WXUcaj7i9A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=sduBUGWe44xQWwq5ehD9FZfNDPxgCDY8mIHiqy0iMz0=; b=ZO9RvjKMywyAQZYeVC+Ms4lsmJ/5kmXCirU8i8gP9NL5789egvdahQABh7frEO38MtS2NdXXsBrUx QTBqrcmBA== X-HalOne-ID: d70c573f-2b0c-11ee-880d-5ba399456a4a Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay2 (Halon) with ESMTPSA id d70c573f-2b0c-11ee-880d-5ba399456a4a; Tue, 25 Jul 2023 17:01:05 +0000 (UTC) Date: Tue, 25 Jul 2023 19:01:04 +0200 From: Sam Ravnborg To: linux@treblig.org 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: <20230725170104.GA838289@ravnborg.org> References: <20230725000141.165985-1-linux@treblig.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230725000141.165985-1-linux@treblig.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 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