NetBSD Problem Report #56650

From www@netbsd.org  Fri Jan 21 18:56:34 2022
Return-Path: <www@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 A7F9A1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 21 Jan 2022 18:56:34 +0000 (UTC)
Message-Id: <20220121185633.222C81A923A@mollari.NetBSD.org>
Date: Fri, 21 Jan 2022 18:56:33 +0000 (UTC)
From: macallan1888@gmail.org
Reply-To: macallan1888@gmail.org
To: gnats-bugs@NetBSD.org
Subject: sunxidrm fails to attach a console on pinebook
X-Send-Pr-Version: www-1.0

>Number:         56650
>Category:       port-evbarm
>Synopsis:       sunxidrm fails to attach a console on pinebook
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-evbarm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 21 19:00:00 +0000 2022
>Closed-Date:    Sun Mar 27 16:06:25 +0000 2022
>Last-Modified:  Sun Mar 27 16:06:25 +0000 2022
>Originator:     Michael Lorenz
>Release:        9.99.93
>Organization:
TNF
>Environment:
NetBSD pinebook 9.99.93 NetBSD 9.99.93 (GENERIC64) #4: Thu Jan 20 22:39:15 EST 2022  ml@paddy:/disk/build/obj_earm64/sys/arch/evbarm/compile/GENERIC64 evbarm

>Description:
after updating kernel and dtbs sunxidrm errors out and leaves a blank screen on pinebook, the machine boots otherwise and can be talked to via ssh. New kernel and older dtbs work.
Relevant dmesg snippets:
[     1.000003] sunxilcdc0 at simplebus1: TCON0
[     1.000003] sunxilcdc0: autoconfiguration error: endpoint: missing reg propertysunxilcdc0: interrupting on GIC irq 118
[     1.000003] sunxilcdc1 at simplebus1: TCON1
...
[     1.000003] /soc/timer@1c20c00 at simplebus1 not configured
[     1.000003] sunxidrm0: autoconfiguration error: failed to activate endpoint: 19
[     1.000003] sunxidrm0: autoconfiguration error: failed to activate endpoint: 19
[     1.000003] sunxidrm0: info: [drm] Cannot find any crtc or sizes
[     1.000003] kern info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[     1.000003] kern info: [drm] No driver support for vblank timestamp query.
[     1.000003] kern info: [drm] Initialized sunxi 1.0.0 20190123 for sunxidrm0 on minor 0
[     1.000003] sunxidrm0: initialized sunxi 1.0.0 20190123 on minor 0

Jun Ebihara seems to have encountered the same problem ( see port-arm@, 'pinebook status update (20220119)' ):
Problems:
- pinebook: 
  need backout dts.tgz to 202111060010Z.due to display issue.

>How-To-Repeat:
boot -current with recent dtbs on a pinebook
>Fix:
put old dtbs back as a workaround

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: macallan@NetBSD.org
State-Changed-When: Sun, 27 Mar 2022 16:06:25 +0000
State-Changed-Why:
committed a fix a while ago
Module Name:	src
Committed By:	macallan
Date:		Fri Jan 21 21:00:26 UTC 2022

Modified Files:
	src/sys/dev/fdt: fdt_port.c

Log Message:
when enumerating ports and endpoints treat missing 'reg' properties as zero
ok jmcneill:
Looking at Linux. If port or endpoint are missing a 'reg' property it defaults to 0.
Please make our code do the same.

see https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/graph.yaml

with this my pinebook has a usable console again


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/fdt/fdt_port.c


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.