Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp636583lqt; Fri, 19 Apr 2024 06:23:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLdZ8TLrq1yex1wbdc+R+1TiqV3qcI2OsbXtBv/XY8Q/aQd+QKV6ceGnADn5ER9LDZ4mOs11f+2gp0AGakNJmFfx9bDVhV11O1XQBm8A== X-Google-Smtp-Source: AGHT+IHsN+Vsqvg80/1y5EGDlVdoeOkXyvp8w6oy5jDPYXo85Sl/NfeXc8hQtwhd0Kut2CdyNoRq X-Received: by 2002:a50:a419:0:b0:570:601d:507f with SMTP id u25-20020a50a419000000b00570601d507fmr1348884edb.32.1713533007057; Fri, 19 Apr 2024 06:23:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713533007; cv=pass; d=google.com; s=arc-20160816; b=qhH+/0BLt14qJmoOhYCLjNJiaFCK5z4BZMyoF6OlG4FSPteIshlpbgVqkmAsWwFxjf AyPOdtV48R0r0dCYbl4xZg6dJ3Wd/3v0+6AKgxgyKo5OcuwAE+WqhI0etuK4VXDky1jw HC7RoX9cMR1AzQSMmka1ilB/gbplF4EICNmd5BbaFT3RmVQ6o088HNSpmt/71XsaMt7Z 5o4lXregnWJhG7hSOoESUabS0hJSiCHMbzNULxWBIdwYVD7T2pzwSnZjT/Xl+qfcbYOx zXunXQFP3uI15Iom0rgT3ZWcNZ7HoTNxhX+jk18emMjyJAtvWD3pgp6cuVQsqEVtKKFg 8mug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=4w2okfnWt4A2mGL+WlGEy1UeRfHqnVgV2LwGrY3KH3E=; fh=T5XIDhRmaW9K/u6xsk7CiOnvnJV/BCzJuVD5zHDBITs=; b=ZxFCBlmiy70b1Wxu7fH1I9AVFYi0XryLyaPI62e9xwlnC2IKAlfPZg3u5UpYbN+Nrv A1dJxvWyMr2VSuBKx9OdyOEPDkbwbRbZNYuSw3siiG526vCim4aTt9DXrpMN8kEg+1/z QKY3JOCMniXUFbwdFso7RY52EyXkprPbeRwQHcpsYO9wbsfdJA0D9FPYktFCuQ3HHvXA jXO+PPNADa/kztGWIEB7m2e0UAo9oEj7nhisFHhR6nVa79stDqBMTUSiC2874yltY1Kn G+n7OR25B98qXXbVl/TVBGnMb0oSCAq44y8CG/4sfPzmFzmRJIbyr1nqxOMsnbfw4NMY Ks2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RGXeBv0a; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-151462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151462-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v3-20020aa7cd43000000b0056e546f541dsi2249927edw.150.2024.04.19.06.23.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 06:23:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RGXeBv0a; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-151462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151462-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C543A1F23103 for ; Fri, 19 Apr 2024 13:23:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 18E671272C4; Fri, 19 Apr 2024 13:23:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="RGXeBv0a" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC49141C66 for ; Fri, 19 Apr 2024 13:23:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713532999; cv=none; b=N5sqQ3VSYJL14maMNG8rpt9deBoL201yLtCj+xqOUdFqZ5ss+O+Hp8/j86Y85OftytVyN52p4qnqSM11w9aVpCmmaZvcQWs2LdmHCLlV2yz2o82r1jxthqwOZ9MkesE/AHrJEu/jsUyPjjXJtyGbwBbFD08dZa3pUWkmJ0ogcPI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713532999; c=relaxed/simple; bh=Yh/VzI6bJ0PpqzxXSNXkZNBaUQhZGU3NC/Phch10SaY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M39UUV/YYqRWn53lK9xHLQsQycO6lzDwm986x7pWmiti5zIsHGdwDdzwgWwq/0tuuQiOpNYswA5ha3P9R00nIQvb0zFxVSa2k6Cbe952uN7U1u4XR+vwlBNwgJZxEo1IPwO00x1lO/AOaVegkY44HjFSi2WhZy/tgvOyMh+pWoA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=RGXeBv0a; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713532996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4w2okfnWt4A2mGL+WlGEy1UeRfHqnVgV2LwGrY3KH3E=; b=RGXeBv0a1MYFnTOkYPEN6BiyR2Y8iQp5ojeNdERj/PtOVViz4Tx04JuwJfx31yknHAHexM ciR4S3lnuwWu93ssn8INB0KMf6BQblpmzAIWGnT/84jt/QOQpnQG+eYy/A1npc6P6piGII Zb66h7ocjTHFAo7rr+6+j/fXYUkp4Lc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-611-7cupQ4r_OkOp8N44e634KQ-1; Fri, 19 Apr 2024 09:23:13 -0400 X-MC-Unique: 7cupQ4r_OkOp8N44e634KQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id ED68D810602; Fri, 19 Apr 2024 13:23:12 +0000 (UTC) Received: from hydra.redhat.com (unknown [10.39.194.47]) by smtp.corp.redhat.com (Postfix) with ESMTP id EEF4A400059; Fri, 19 Apr 2024 13:23:10 +0000 (UTC) From: Jocelyn Falempe To: daniel@ffwll.ch, tzimmermann@suse.de, airlied@redhat.com, deller@gmx.de, geert@linux-m68k.org Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jocelyn Falempe Subject: [PATCH] lib/fonts: Allow to select fonts for drm_panic Date: Fri, 19 Apr 2024 15:20:19 +0200 Message-ID: <20240419132243.154466-1-jfalempe@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 drm_panic has been introduced recently, and uses the same fonts as FRAMEBUFFER_CONSOLE. Signed-off-by: Jocelyn Falempe --- lib/fonts/Kconfig | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/fonts/Kconfig b/lib/fonts/Kconfig index 7e945fdcbf11..befcb463f738 100644 --- a/lib/fonts/Kconfig +++ b/lib/fonts/Kconfig @@ -10,7 +10,7 @@ if FONT_SUPPORT config FONTS bool "Select compiled-in fonts" - depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE + depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE || DRM_PANIC help Say Y here if you would like to use fonts other than the default your frame buffer console usually use. @@ -23,7 +23,7 @@ config FONTS config FONT_8x8 bool "VGA 8x8 font" if FONTS - depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE + depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE || DRM_PANIC default y if !SPARC && !FONTS help This is the "high resolution" font for the VGA frame buffer (the one @@ -46,7 +46,7 @@ config FONT_8x16 config FONT_6x11 bool "Mac console 6x11 font (not supported by all drivers)" if FONTS - depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE + depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE || DRM_PANIC default y if !SPARC && !FONTS && MAC help Small console font with Macintosh-style high-half glyphs. Some Mac @@ -54,7 +54,7 @@ config FONT_6x11 config FONT_7x14 bool "console 7x14 font (not supported by all drivers)" if FONTS - depends on FRAMEBUFFER_CONSOLE + depends on FRAMEBUFFER_CONSOLE || DRM_PANIC help Console font with characters just a bit smaller than the default. If the standard 8x16 font is a little too big for you, say Y. @@ -62,7 +62,7 @@ config FONT_7x14 config FONT_PEARL_8x8 bool "Pearl (old m68k) console 8x8 font" if FONTS - depends on FRAMEBUFFER_CONSOLE + depends on FRAMEBUFFER_CONSOLE || DRM_PANIC default y if !SPARC && !FONTS && AMIGA help Small console font with PC-style control-character and high-half @@ -70,7 +70,7 @@ config FONT_PEARL_8x8 config FONT_ACORN_8x8 bool "Acorn console 8x8 font" if FONTS - depends on FRAMEBUFFER_CONSOLE + depends on FRAMEBUFFER_CONSOLE || DRM_PANIC default y if !SPARC && !FONTS && ARM && ARCH_ACORN help Small console font with PC-style control characters and high-half @@ -90,7 +90,7 @@ config FONT_6x10 config FONT_10x18 bool "console 10x18 font (not supported by all drivers)" if FONTS - depends on FRAMEBUFFER_CONSOLE + depends on FRAMEBUFFER_CONSOLE || DRM_PANIC help This is a high resolution console font for machines with very big letters. It fits between the sun 12x22 and the normal 8x16 font. @@ -105,7 +105,7 @@ config FONT_SUN8x16 config FONT_SUN12x22 bool "Sparc console 12x22 font (not supported by all drivers)" - depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC) + depends on (FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)) || DRM_PANIC help This is the high resolution console font for Sun machines with very big letters (like the letters used in the SPARC PROM). If the @@ -113,7 +113,7 @@ config FONT_SUN12x22 config FONT_TER16x32 bool "Terminus 16x32 font (not supported by all drivers)" - depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC) + depends on (FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)) || DRM_PANIC help Terminus Font is a clean, fixed width bitmap font, designed for long (8 and more hours per day) work with computers. @@ -122,7 +122,7 @@ config FONT_TER16x32 config FONT_6x8 bool "OLED 6x8 font" if FONTS - depends on FRAMEBUFFER_CONSOLE + depends on FRAMEBUFFER_CONSOLE || DRM_PANIC help This font is useful for small displays (OLED). base-commit: a35e92ef04c07bd473404b9b73d489aea19a60a8 -- 2.44.0