NetBSD Problem Report #57747

From jeandre@netbsd.org  Sun Dec  3 23:44:21 2023
Return-Path: <jeandre@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 4F99E1A9238
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  3 Dec 2023 23:44:21 +0000 (UTC)
Message-Id: <20231203234421.31D4D84D31@mail.netbsd.org>
Date: Sun,  3 Dec 2023 23:44:21 +0000 (UTC)
From: jeandre@NetBSD.org
Reply-To: jeandre@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: console far too small with i915 in NetBSD 10
X-Send-Pr-Version: 3.95

>Number:         57747
>Category:       port-amd64
>Synopsis:       console far too small with i915 in NetBSD 10
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 03 23:45:00 +0000 2023
>Last-Modified:  Mon Dec 04 08:40:01 +0000 2023
>Originator:     Jeandre Kruger
>Release:        NetBSD 10.99.10
>Organization:
>Environment:
System: NetBSD 10.99.10 NetBSD 10.99.10 (GENERIC) #0: Sun Dec 3 02:50:09 UTC 2023 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	When using NetBSD-current or 10.0 RC1 on an amd64 netbook I have, the
	console is far too small -- less than 80 columns.  (Thus the installer
	refuses to run, but it affects the system after installation too.)

	This differs from NetBSD/i386 or NetBSD 9.3 on the same netbook (only
	affecting NetBSD/amd64), where there is no problem and the console is
	much more reasonably sized.  Disabling i915drmkms works around it.  A
	different i386 netbook with i915 also doesn't have this problem.  I
	don't know if there's a way to change from this default size, except by
	disabling i915drmkms, in which case wsconscfg/wscons.conf let you
	choose between 80x25 and 80x50.

	From the dmesg:

	[     1.038193] agp0 at pchb0: Pineview chipset
	[     1.038193] agp0: detected 7164k stolen memory
	[     1.038193] agp0: aperture at 0x40000000, size 0x10000000
	[     1.038193] i915drmkms0 at pci0 dev 2 function 0: Intel Pineview Integrated Graphics Device (rev. 0x02)
	[     1.038193] Intel Pineview Integrated Graphics Device (miscellaneous display, revision 0x02) at pci0 dev 2 function 1 not configured
	...
	[     3.197030] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
	[     3.197030] [drm] Driver supports precise vblank timestamp query.
	[     3.197030] i915drmkms0: interrupting at ioapic0 pin 16 (i915drmkms0)
	[     3.237021] [drm] Initialized overlay support.
	[     3.237021] [drm] Initialized i915 1.6.0 20200114 for i915drmkms0 on minor 0
	[     3.257024] intelfb0 at i915drmkms0
	[     3.257024] [drm] DRM_I915_DEBUG enabled
	[     3.257024] [drm] DRM_I915_DEBUG_GEM enabled
	[     3.257024] intelfb0: framebuffer at 0x40009000, size 1024x600, depth 32, stride 4096
	[     4.137021] wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
	[     4.187021] wsmux1: connecting to wsdisplay0
	[     9.197021] wsdisplay0: screen 1 added (default, vt100 emulation)
	[     9.207023] wsdisplay0: screen 2 added (default, vt100 emulation)
	[     9.207023] wsdisplay0: screen 3 added (default, vt100 emulation)
	[     9.217022] wsdisplay0: screen 4 added (default, vt100 emulation)
>How-To-Repeat:
	Boot NetBSD 10.0 RC1 or NetBSD-current on affected netbook.
>Fix:
	Can be worked around by disabling i915drmkms, or using NetBSD/i386, or
	using xterm instead.

>Audit-Trail:
From: mlelstv@serpens.de (Michael van Elst)
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-amd64/57747: console far too small with i915 in NetBSD 10
Date: Mon, 4 Dec 2023 08:27:52 -0000 (UTC)

 jeandre@NetBSD.org writes:

 >	[     3.257024] intelfb0: framebuffer at 0x40009000, size 1024x600, depth 32, stride 4096

 Builtin fonts for amd64 are:

 FONT_BOLD8x16
 FONT_BOLD16x32

 The 8x16 font would yield 128x37 characters.
 The 16x32 font would yield 64x18 characters.

 While wscons searches for a font of int(1024/80) = 12 pixel width
 (so both fonts are equally good), the genfb driver searches with
 WSFONT_PREFER_WIDE which changes the score to use only bigger fonts.

 The WSFONT_PREFER_WIDE flag is nonsense, as it either tilts the
 scoring to use only bigger fonts (when set) or to use only smaller
 fonts (when clear).

 The font search should return the font that comes closest to the
 wanted size. If anything it should be tilted to smaller fonts to
 prefer fonts that allow at least an 80 column display.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.