Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1210002rwo; Wed, 2 Aug 2023 10:14:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJkZ37P2Fg4U2d7n3zxi7uzzp0rVFxhLYYWaOEeRAmxr3PJm/f0vG+F9YxlsLXfi70+/yM X-Received: by 2002:a17:902:ec89:b0:1b3:8862:9823 with SMTP id x9-20020a170902ec8900b001b388629823mr16183028plg.28.1690996479652; Wed, 02 Aug 2023 10:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690996479; cv=none; d=google.com; s=arc-20160816; b=e0G7N/GbnSYwVmEsPl45jlW9Cxjfpv1POak2jF0aCYTOk6QEdhAc4ExEhDm8gww7qa 95wLG4xWJdDeKR29w6nUGauD6LV2r1k/kpIbWF9FD8BzTN9zWGBdmRNjBipGWIAqYLHX 1Orj+QYUfUBRHtoihRhFbbfIop38pafEnaklSUUtTuE4LHv8QzgcqhnPMzIBLSoz0rJY +nmVYoa/n9zgO/WjEbwd9MheJKR5zKzwcPCtFOtL4h0x50lR22HVH6PbdVbOcG7wumh5 wXkPbo94IUHvC6UXFAd38RlkrNKttjBgY5aHevfJSBCaxLnHwB5/cr79knSqt0oDf66Q IRIA== 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=031AZhyLVAnvSrG5EfAXCSNcm362d8NHJ28zLnLxYmc=; fh=XN3BHFTxnfWIbA8iqr+c5VqmSQ8+SXxoM99TMMiQgcs=; b=hmfbslHrrG1MNF7hyKh+v4lxFX3DMCqUTMpRCKAhSqfhw7SaQ2Ji+xcnuU7nDQ1sAT xYNH03BXEjJd//FTDvWRmv+zzet2Wy3+C/ljjAV70rGYwTAzySUJi87TgP69Uq7164sT AKnIgBObX0vNoh8DDxhyP6xfncRhQJTBm70apYIrq2Yvq8wyy2bupzKXTr7lwQQ5LrIU dimriGD5eP9BtMbjIRZiIFe7ww9Uq7J+z50KaV2CGdJKn+1chcnm2JmjO/FFSLYDU0Bz joVmTZuMltQBHONaFx64k4fiwzBGvuSBfB01243dr8dDWXOMJ1C7dQtLL1xZoTftkrZe nCdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@treblig.org header.s=bytemarkmx header.b="mtLrXd/J"; 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 c2-20020a170903234200b001b530ede2besi4215882plh.614.2023.08.02.10.14.26; Wed, 02 Aug 2023 10:14:39 -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="mtLrXd/J"; 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 S229606AbjHBQoL (ORCPT + 99 others); Wed, 2 Aug 2023 12:44:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229923AbjHBQoI (ORCPT ); Wed, 2 Aug 2023 12:44:08 -0400 Received: from mx.treblig.org (unknown [IPv6:2a00:1098:5b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5063F269A for ; Wed, 2 Aug 2023 09:44:05 -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=031AZhyLVAnvSrG5EfAXCSNcm362d8NHJ28zLnLxYmc=; b=mtLrXd/JAIp176o8Ohuxx8WcsW CxmFnVk4u/FFudPnt/vFTbsxFGGckpr8P3ZRXY0tjldKqOvwlzyqA1Hy3gkWRMi0NR/dgQFWUyeGU +tpJmOLGSaC4XVSe7yQTczif0hg52oCybE+3qlr6ZWcIlTCRwZp28cQoRAhbcTskQh2Lllht3EIBX PQBcjcivt1eZGQdRpsyvbR2zgoYBSt5GXncG4J0N+IOg74k4D6WVfNHPYnufGJvRTDBbJBvaW80VM ulomkks44Tt+xFKB5j54KJePEH5DDUMdjSxhltyT/PCTX/pXXSh01bsoVqYreJ7WgBfbyloP/qUul JIv5hMxg==; Received: from dg by mx.treblig.org with local (Exim 4.94.2) (envelope-from ) id 1qREwy-004sNq-9g; Wed, 02 Aug 2023 16:43:52 +0000 Date: Wed, 2 Aug 2023 16:43:52 +0000 From: "Dr. David Alan Gilbert" To: Randy Dunlap Cc: Michael Ellerman , npiggin@gmail.com, christophe.leroy@csgroup.eu, sam@ravnborg.org, 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> <878rb0em3s.fsf@mail.lhotse> <871qgl1vs2.fsf@mail.lhotse> <182b08ea-04f3-3282-e3c3-9448bab6568a@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <182b08ea-04f3-3282-e3c3-9448bab6568a@infradead.org> X-Chocolate: 70 percent or better cocoa solids preferably X-Operating-System: Linux/5.10.0-23-amd64 (x86_64) X-Uptime: 16:37:41 up 27 days, 2:09, 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 * Randy Dunlap (rdunlap@infradead.org) wrote: > > > On 8/2/23 05:19, Michael Ellerman wrote: > > "Dr. David Alan Gilbert" writes: > >> * Michael Ellerman (mpe@ellerman.id.au) wrote: > >>> linux@treblig.org writes: > >>>> 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 > >>> > >>> PMD means "Page Middle Directory" to most Linux folks, I assume that's > >>> not what you meant :) > >> > >> Ah, any good TLA is ripe for reuse: > >> https://pmd.github.io/pmd/pmd_userdocs_cpd.html > > > > Thanks. > > > > Unfortunately this patch causes a warning: > > > > WARNING: unmet direct dependencies detected for FONT_SUN8x16 > > Depends on [n]: FONT_SUPPORT [=y] && FRAMEBUFFER_CONSOLE [=y] && (!SPARC && FONTS [=n] || SPARC) > > Selected by [y]: > > - BOOTX_TEXT [=y] && PPC_BOOK3S [=y] > > > > And breaks allmodconfig with: > > > > ld: arch/powerpc/kernel/btext.o:(.toc+0x0): undefined reference to `font_sun_8x16' > > make[3]: *** [../scripts/Makefile.vmlinux:36: vmlinux] Error 1 > > > > I guess the Kconfig logic needs some more work. > > Also please see: > https://lore.kernel.org/all/dd29e5f5-d9f7-0103-e602-b98f26c88fb1@infradead.org/ > for a similar problem on UML. Thanks Michael, Randy. Does anyone understand why the font_sun8x16 has any of those 'Depends on' ? It's just a font structure definition. Dave > -- > ~Randy -- -----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 |_______/