On Tue, 4 Jan 2022, Matthias Petermann wrote:
RVP's tip was good and I can also confirm on my side that the problem is not
fundamentally caused by the actual UEFI boot process, but that only the
enabling/disabling of the CSM affects it. Also, the problem did not exist in
NetBSD 9.2 at all.
Can you check something else as well?
Compile a kernel with:
-
# Give us a choice of fonts based on monitor size
#optionsFONT_BOLD8x16
#optionsFONT_BOLD16x32
options FONT_SPLEEN12x24
-
ie. with a non-standard font. On my Asus X202E laptop (in CSM mode) the
system comes up OK, but, X hangs as soon as you start it with this
message being repeated every 3 secs. in the logs. (Power-off using the
power button works correctly and the system does an orderly shutdown
which is why I could collect these logs.)
-
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat rcs0 heartbeat
{prio:-2147483645} not ticking
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat Awake? 4
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat Barriers?: no
Dec 27 09:04:51 x202e /netbsd: [ 34.6986941] heartbeat Latency: 27us
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat Heartbeat: 3000
ms ago
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat Reset count: 0
(global 0)
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat Requests:
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat active
3:4*- @ 6000ms: X[2108]
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat
ring->start: 0x7fffa000
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat
ring->head: 0x0248
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat
ring->tail: 0x04a8
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat
ring->emit: 0x04a8
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat
ring->space: 0x3d60
Dec 27 09:04:51 x202e /netbsd: [ 34.6986941] heartbeat
ring->hwsp: 0x7fffe100
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat [head 0248, postfix
0300, tail 0318, batch 0x_5000]:
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] warning:
/usr/src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_engine_cs.c:1234:
WARN_ON_ONCE(hex_dump_to_buffer(buf + pos, len - pos, rowsize, sizeof(u32), line,
sizeof(line), 0) >= sizeof(line))heartbeat [] 027a 02001000
027a 1c4c1501 80f0ff7f
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] 027a a1501001 80f0ff7f
0111 2022 f
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat [0020] 027a
a1501001 80f0ff7f 0111 2022 0111
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] 2822 bf7f 01004012
2822 00f0ff7f 0111 c
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat [0040] 2822
bf7f 01004012 2822 00f0ff7f 0111 c020 00020002
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] 027a a1501001 80f0ff7f
027a 02001000 0
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] 2822 60] 027a
a1501001 80f0ff7f 027a 02001000
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] 027a 1c4c1501 80f0ff7f
0004 0
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat [0080] 027a
1c4c1501 80f0ff7f 0004 000c 0c01ff7f
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat [0080] 027a
1c4c1501 80f0ff7f 0 0
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat [0080]
0104 8018 0050 00018018 a010 027a a1501001
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] 00e1ff7f 0400 0001
Dec 27 09:04:51 x202e /netbsd:
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat On hold?: 0
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat MMIO base:
0x2000
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat CCID: 0x7fff010d
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat RING_START:
0x7fffa000
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat RING_HEAD:
0x02e8
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat RING_TAIL:
0x04a8
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat RING_CTL:
0x3001
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat RING_MODE:
0x4000
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat RING_IMR:
ffde
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat ACTHD:
0x_02e8
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat BBADDR:
0x_7fff1230
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat DMA_FADDR:
0x_7fffa2e8
Dec 27 09:04:51 x202e /netbsd: [ 234.6986941] heartbeat