NetBSD Problem Report #54342

From leot@netbsd.org  Thu Jul  4 09:02:26 2019
Return-Path: <leot@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-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 AF6527A0D9
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  4 Jul 2019 09:02:26 +0000 (UTC)
Message-Id: <20190704090225.DCA5884DE8@mail.netbsd.org>
Date: Thu,  4 Jul 2019 09:02:25 +0000 (UTC)
From: leot@NetBSD.org
Reply-To: leot@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: Pinebook screen glitches/offsets on top and extreme right of the screen with modeset enabled
X-Send-Pr-Version: 3.95

>Number:         54342
>Category:       port-arm
>Synopsis:       Pinebook screen glitches/offsets on top and extreme right of the screen with modeset enabled
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 04 09:05:00 +0000 2019
>Closed-Date:    Sat Jul 06 10:57:04 +0000 2019
>Last-Modified:  Sun Jul 07 08:35:00 +0000 2019
>Originator:     Leonardo Taccari
>Release:        NetBSD 8.99.49
>Organization:
Università Politecnica delle Marche
>Environment:
System: GENERIC64 NetBSD 8.99.49 of 12:00 UTC Jul 2 2019
Architecture: aarch64
Machine: evbarm
>Description:
	On 14" Pinebook model when booting with `modeset' (default) enabled
	there are screen glitches/wrong offsets on the top of the screen and
	extreme right.  ASCII art trying to illustrate the problem:

	 +---------------------------------------+
	 |=======================================|<- unexpected "violet" bar
	 |[                                     ||\
	 |[                                     || \
	 |[                                     ||  | the first `[' character
	 |[                                     ||  | of dmesg timestamp can
	 |[                                     ||  | be seen on the extreme
	 |[                                     ||  | right too
	 |[                                     || /
	 |[                                     ||/
	 |_                                     _|<- part of the input cursor
	 +---------------------------------------+   can be seen on the
						     extreme right

	...and here the corresponding photograph of the problem:

	 <https://www.NetBSD.org/~leot/tmp/pinebook-modeset-screen_problems.jpg>
>How-To-Repeat:
	Boot a GENERIC64 kernel on a 14" Pinebook.
>Fix:
	No idea, sorry!

	A possible workaround to that problem is to boot the kernel with
	`nomodeset', e.g. on the EFI prompt:

	 > boot netbsd nomodeset

>Release-Note:

>Audit-Trail:
From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-arm/54342: Pinebook screen glitches/offsets on top and extreme right of the screen with modeset enabled
Date: Fri, 05 Jul 2019 15:41:18 +0200

 Initial further analysis - thanks a lot to <jmcneill>!:

 Under X11, running xrandr(1):

  | % xrandr --verbose
  | Screen 0: minimum 320 x 200, current 1366 x 768, maximum 3840 x 2160
  | eDP-1 connected primary 1366x768+0+0 (0x43) normal (normal left inverted right x axis y axis) 309mm x 173mm
  | 	Identifier: 0x41
  | 	Timestamp:  463306
  | 	Subpixel:   unknown
  | 	Gamma:      1.0:1.1:1.2
  | 	Brightness: 1.0
  | 	Clones:    
  | 	CRTC:       0
  | 	CRTCs:      0
  | 	Transform:  1.000000 0.000000 0.000000
  | 	            0.000000 1.000000 0.000000
  | 	            0.000000 0.000000 1.000000
  | 	           filter: 
  | 	EDID: 
  | 		00ffffffffffff0009e5f30500000000
  | 		01170104951f1178025820925b579629
  | 		19505400000001010101010101010101
  | 		010101010101641b5677500013303020
  | 		360035ad1000001a7017568c50003e30
  | 		3020360035ad1000001a000000fe0056
  | 		34385431804842313436303100000000
  | 		00004101940010000009010a202000cd
  | 	CONNECTOR_ID: 22 
  | 		supported: 22
  | 	non-desktop: 0 
  | 		supported: 0, 1
  |   1366x768 (0x43) 70.120MHz +HSync -VSync *current +preferred
  |         h: width  1366 start 1414 end 1446 total 1485 skew    0 clock  47.22KHz
  |         v: height  768 start  771 end  777 total  787           clock  60.00Hz
  |   1366x768 (0x44) 60.000MHz +HSync -VSync
  |         h: width  1366 start 1414 end 1446 total 1506 skew    0 clock  39.84KHz
  |         v: height  768 start  771 end  777 total  830           clock  48.00Hz

 We can see that there are two modes and if we select the second one
 with:

  | % xrandr --output eDP-1 --mode 1366x768 --refresh 48

 In X11 there are no more offset problem or screen glitches!
 (if we set it back to the first one via `xrandr --output eDP-1 --mode
 1366x768 --refresh 60' the offset problems and screen glitches come
 back).

State-Changed-From-To: open->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Sat, 06 Jul 2019 10:57:04 +0000
State-Changed-Why:
Fixed by <jmcneill> via:

 cvs rdiff -u -r1.5 -r1.6 src/sys/arch/arm/sunxi/sunxi_lcdc.c

Thank you Jared!


From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-arm/54342 (Pinebook screen glitches/offsets on top and
 extreme right of the screen with modeset enabled)
Date: Sun, 7 Jul 2019 10:30:35 +0200

 This fixed the issue on my machine as well.

 Thanks!

 Martin

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.