NetBSD Problem Report #53359

From root@kilbi.de  Tue Jun 12 20:49:04 2018
Return-Path: <root@kilbi.de>
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 E49AD7A1D0
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 12 Jun 2018 20:49:04 +0000 (UTC)
Message-Id: <20180612192653.914242CA384@geronimo.kilbi.de>
Date: Tue, 12 Jun 2018 21:26:53 +0200 (CEST)
From: kilbi@kilbi.de
Reply-To: mk@kilbi.de
To: gnats-bugs@NetBSD.org
Subject: cvs rdiff -u -r1.24 -r1.25 src/sys/arch/arm/sunxi/sunxi_mmc.c breaks ld at sdmmc0 on BananaPro
X-Send-Pr-Version: 3.95

>Number:         53359
>Category:       port-evbarm
>Synopsis:       cvs rdiff -u -r1.24 -r1.25 src/sys/arch/arm/sunxi/sunxi_mmc.c
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-evbarm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 12 20:50:00 +0000 2018
>Closed-Date:    Wed Jun 13 23:53:48 +0000 2018
>Last-Modified:  Wed Jun 13 23:53:48 +0000 2018
>Originator:     Markus Kilbinger
>Release:        NetBSD 8.99.19
>Organization:

>Environment:


System: NetBSD gero 8.99.19 NetBSD 8.99.19 (GE) #20: Tue Jun 12 17:27:09 CEST 2018 root@co:/usr/NetBSD/HEAD/src/sys/arch/evbarm/compile/GE evbarm
Architecture: earmv7hf
Machine: evbarm
>Description:
	cvs rdiff -u -r1.24 -r1.25 src/sys/arch/arm/sunxi/sunxi_mmc.c /
	http://mail-index.netbsd.org/source-changes/2018/06/07/msg095817.html
	leads to permanent read / access errors with my BananaPro's sd-card.
	The sd-card still seems to be correctly detected in dmesg though:

	  [   1.6381882] sdmmc0 at sunximmc0
	  [   1.6507690] sdmmc1 at sunximmc1
	  [   1.7696395] uhub0 at usb1: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
	  [   1.8796423] uhub1 at usb0: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
	  [   1.8996494] uhub2 at usb2: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
	  [   1.9196470] uhub3 at usb3: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
	  [   1.9596540] sdmmc0: SD card status: 4-bit, C10, U3
	  [   1.9703403] ld0 at sdmmc0: <0x03:0x5344:SE32G:0x80:0x03543eb0:0x0e9>
	  [   1.9703403] ld0: 30436 MB, 7729 cyl, 128 head, 63 sec, 512 bytes/sect x 62333952 sectors
	  [   1.9896622] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
	  [   2.0096591] (manufacturer 0x2d0, product 0xa962) at sdmmc1 function 1 not configured
	  [   2.0196598] (manufacturer 0x2d0, product 0xa962) at sdmmc1 function 2 not configured
	  [   2.9696826] boot device: ld0
	  [   2.9796912] root on ld0f dumps on ld0b
	  [  12.9799436] ld0f: error reading fsbn 128 of 128-143 (ld0 bn 133248; cn 16 tn 67 sn 3), retrying
	  [  23.4802129] ld0f: error reading fsbn 128 of 128-143 (ld0 bn 133248; cn 16 tn 67 sn 3), retrying
	  [  33.9804827] ld0f: error reading fsbn 128 of 128-143 (ld0 bn 133248; cn 16 tn 67 sn 3), retrying

>How-To-Repeat:
	Compile an actual SUNXI kernel for evbarm and boot it from (micro) sd-card.
	Accessing the sd-card (ld0) under netbsd (eg. as root partition) fails.
>Fix:
	None provided.
	Reverting sunxi_mmc.c to v1.24 as a workaround makes accessing 'ld0 at sdmmc0' work again.




>Release-Note:

>Audit-Trail:
From: Markus Kilbinger <mk@kilbi.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-evbarm/53359: cvs rdiff -u -r1.24 -r1.25 src/sys/arch/arm/sunxi/sunxi_mmc.c
 breaks ld at sdmmc0 on BananaPro
Date: Wed, 13 Jun 2018 19:44:16 +0200

 Am Di., 12. Juni 2018 um 22:52 Uhr schrieb <gnats-admin@netbsd.org>:
 >
 > Thank you very much for your problem report.
 > It has the internal identification `port-evbarm/53359'.
 > The individual assigned to look at your
 > report is: port-evbarm-maintainer.
 >
 > >Category:       port-evbarm
 > >Responsible:    port-evbarm-maintainer
 > >Synopsis:       cvs rdiff -u -r1.24 -r1.25 src/sys/arch/arm/sunxi/sunxi_mmc.c
 > >Arrival-Date:   Tue Jun 12 20:50:00 +0000 2018

 Problem is fixed for me / my BananaPro after recent commit:

   http://mail-index.netbsd.org/source-changes/2018/06/13/msg095971.html

 Regards, Markus

State-Changed-From-To: open->closed
State-Changed-By: jmcneill@NetBSD.org
State-Changed-When: Wed, 13 Jun 2018 23:53:48 +0000
State-Changed-Why:
Fixed. Thanks for the report!


>Unformatted:
 		breaks ld0 at sdmmc0 on BananaPro leading to permanent read / access errors

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.