NetBSD Problem Report #48628

From john@andromeda.ziaspace.com  Sun Mar  2 02:21:21 2014
Return-Path: <john@andromeda.ziaspace.com>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 01C33A5864
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  2 Mar 2014 02:21:21 +0000 (UTC)
Message-Id: <201403020221.s222LG4l016075@andromeda.ziaspace.com>
Date: Sun, 2 Mar 2014 02:21:16 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@gnats.NetBSD.org
Subject: cobalt and hpcmips ports are dead
X-Send-Pr-Version: 3.95

>Number:         48628
>Category:       port-mips
>Synopsis:       cobalt and hpcmips ports are dead
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    matt
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 02 02:25:00 +0000 2014
>Closed-Date:    Mon Jun 02 07:41:03 +0000 2014
>Last-Modified:  Wed Nov 08 21:25:03 +0000 2017
>Originator:     John Klos
>Release:        NetBSD > 5
>Organization:

>Environment:
Any NetBSD after NetBSD 5


System: cobalt and hpcmips
Architecture: mips
Machine: cobalt and hpcmips
>Description:

Try to run any version of NetBSD newer than 5 for more than ten minutes. Segfaults and sometimes 
disk corruption occur.
>How-To-Repeat:
See description.
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-mips-maintainer->matt
Responsible-Changed-By: tsutsui@NetBSD.org
Responsible-Changed-When: Sun, 02 Mar 2014 02:43:45 +0000
Responsible-Changed-Why:
broken after mips64 merge


From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48628 CVS commit: src/sys/arch/mips/mips
Date: Wed, 23 Apr 2014 20:57:16 +0000

 Module Name:	src
 Committed By:	skrll
 Date:		Wed Apr 23 20:57:15 UTC 2014

 Modified Files:
 	src/sys/arch/mips/mips: pmap.c vm_machdep.c

 Log Message:
 Fix a logic inversion introduced with the matt-nb5-mips64 for
 pmap_{zero,copy}_page cache alias handing. The check previously used
 PG_MD_UNCACHED_P, where it now uses PG_MD_CACHED_P, when considering if
 a cache invalidation is required.

 Additionally flush the cache for the uarea va to avoid potential (future)
 cache aliases in cpu_uarea_free when handing pages back to uvm for later
 use.

 ok matt@

 Hopefully this addresses the instability reported in the following PRs:

 PR/44900 - R5000/Rm5200 mips ports are broken
 PR/46170 - NetBSD/cobalt 6.0_BETA does not boot
 PR/46890 - upcoming NetBSD 6.0 release is very unstable / unusable on cobalt qube 2
 PR/48628 - cobalt and hpcmips ports are dead


 To generate a diff of this commit:
 cvs rdiff -u -r1.209 -r1.210 src/sys/arch/mips/mips/pmap.c
 cvs rdiff -u -r1.142 -r1.143 src/sys/arch/mips/mips/vm_machdep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Wed, 23 Apr 2014 21:02:31 +0000
State-Changed-Why:
Please try -current (or netbsd-6 with 

cvs rdiff -u -r1.209 -r1.210 src/sys/arch/mips/mips/pmap.c
cvs rdiff -u -r1.142 -r1.143 src/sys/arch/mips/mips/vm_machdep.c

applied)


From: John Klos <john@ziaspace.com>
To: gnats-bugs@NetBSD.org
Cc: matt@NetBSD.org, netbsd-bugs@netbsd.org, gnats-admin@netbsd.org,
        skrll@NetBSD.org
Subject: Re: port-mips/48628 (cobalt and hpcmips ports are dead)
Date: Sat, 26 Apr 2014 05:18:28 +0000 (UTC)

 > Please try -current (or netbsd-6 with
 > cvs rdiff -u -r1.209 -r1.210 src/sys/arch/mips/mips/pmap.c
 > cvs rdiff -u -r1.142 -r1.143 src/sys/arch/mips/mips/vm_machdep.c

 On a 256 meg Cobalt machine, netbsd-6 is fine for an hour or so of 
 compiling from pkgsrc, then code generation starts to fail:

 libtool: compile:  gcc -DHAVE_CONFIG_H -I. "-DLT_CONFIG_H=<config.h>" 
 -DLTDL -I. -I. -Ilibltdl -I./libltdl -I./libltdl/libltdl -I/usr/include 
 -O2 -I/usr/include -MT libltdl/loaders/dlopen.lo -MD -MP -MF 
 libltdl/loaders/.deps/dlopen.Tpo -c libltdl/loaders/dlopen.c  -fPIC -DPIC 
 -o libltdl/loaders/.libs/dlopen.o
 /var/tmp//ccM3UIrz.s: Assembler messages:
 /var/tmp//ccM3UIrz.s: Warning: end of file not at end of a line; newline 
 inserted
 /var/tmp//ccM3UIrz.s:67: Error: bad expression
 /var/tmp//ccM3UIrz.s:67: Error: bad expression
 /var/tmp//ccM3UIrz.s:67: Error: illegal operands `lw $25,%call1'
 /var/tmp//ccM3UIrz.s:69: Error: illegal operands `move $4,$'
 /var/tmp//ccM3UIrz.s:71: Error: illegal operands `addiu $s'
 /var/tmp//ccM3UIrz.s:71: Error: unrecognized opcode `der'


 On an NEC MobilePro 790, netbsd-6 panics on boot:

 root file system type: ffs
 pid 1(init): ABI set to O32 (e_flags=0x1007)
 pid 2(init): trap: cpu0, reserved instruction in kernel mode
 status 0x3, cause 0x28, epc=0x8013bf1c, vaddr=0xc23c5248
 tf=0xc2c0ba78 ksp=0xc2c0bb18 ra=0x801e0050 ppl=0x801c1664
 kernel: reserved instruction trap
 Stopped in pid 2.1 (init) at   netbsd:softint_schedule+0x18:   lw    v0,16(s0)

 Current boots, but I haven't tested it much yet.

 Thanks,
 John

From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48628 CVS commit: src/sys/arch/mips
Date: Sun, 11 May 2014 07:53:28 +0000

 Module Name:	src
 Committed By:	skrll
 Date:		Sun May 11 07:53:28 UTC 2014

 Modified Files:
 	src/sys/arch/mips/include: pmap.h
 	src/sys/arch/mips/mips: pmap.c pmap_segtab.c

 Log Message:
 Deal with incompatible cache aliases. Specifically,

 - always flush an ephemeral page on unmap
 - track unmanaged mappings (mappings entered via pmap_kenter_pa) for
   aliases where required and handle appropriately (via pmap_enter_pv)

 Hopefully this (finally) addresses the instability reported in the
 following PRs:

 PR/44900 - R5000/Rm5200 mips ports are broken
 PR/46890 - upcoming NetBSD 6.0 release is very unstable / unusable on cobalt qube 2
 PR/48628 - cobalt and hpcmips ports are dead


 To generate a diff of this commit:
 cvs rdiff -u -r1.62 -r1.63 src/sys/arch/mips/include/pmap.h
 cvs rdiff -u -r1.213 -r1.214 src/sys/arch/mips/mips/pmap.c
 cvs rdiff -u -r1.7 -r1.8 src/sys/arch/mips/mips/pmap_segtab.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Manuel Bouyer" <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48628 CVS commit: [netbsd-6] src/sys/arch/mips/mips
Date: Wed, 21 May 2014 20:39:17 +0000

 Module Name:	src
 Committed By:	bouyer
 Date:		Wed May 21 20:39:17 UTC 2014

 Modified Files:
 	src/sys/arch/mips/mips [netbsd-6]: pmap.c vm_machdep.c

 Log Message:
 Pull up following revision(s) (requested by skrll in ticket #1056):
 	sys/arch/mips/mips/pmap.c: revision 1.211
 	sys/arch/mips/mips/pmap.c: revision 1.212
 	sys/arch/mips/mips/pmap.c: revision 1.213
 	sys/arch/mips/mips/vm_machdep.c: revision 1.143
 	sys/arch/mips/mips/pmap.c: revision 1.210
 Fix a logic inversion introduced with the matt-nb5-mips64 for
 pmap_{zero,copy}_page cache alias handing. The check previously used
 PG_MD_UNCACHED_P, where it now uses PG_MD_CACHED_P, when considering if
 a cache invalidation is required.
 Additionally flush the cache for the uarea va to avoid potential (future)
 cache aliases in cpu_uarea_free when handing pages back to uvm for later
 use.
 ok matt@
 Hopefully this addresses the instability reported in the following PRs:
 PR/44900 - R5000/Rm5200 mips ports are broken
 PR/46170 - NetBSD/cobalt 6.0_BETA does not boot
 PR/46890 - upcoming NetBSD 6.0 release is very unstable / unusable on cobalt qube 2
 PR/48628 - cobalt and hpcmips ports are dead
 Grab pv_list lock in pmap_unmap_ephemeral_page only when needed.
 Make PARANOIADIAG compile.
 Use pmap_tlb_asid_check to reduce code c&p.


 To generate a diff of this commit:
 cvs rdiff -u -r1.207.2.1 -r1.207.2.2 src/sys/arch/mips/mips/pmap.c
 cvs rdiff -u -r1.141 -r1.141.8.1 src/sys/arch/mips/mips/vm_machdep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 02 Jun 2014 01:57:42 +0000
State-Changed-Why:
Feedback received - still problems, maybe different ones


State-Changed-From-To: open->closed
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Mon, 02 Jun 2014 07:41:03 +0000
State-Changed-Why:
Close as duplicate of  PR/44900 - R5000/Rm5200 mips ports are broken


From: "SAITOH Masanobu" <msaitoh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48628 CVS commit: [netbsd-6] src/sys/arch/mips
Date: Wed, 11 Jun 2014 15:38:05 +0000

 Module Name:	src
 Committed By:	msaitoh
 Date:		Wed Jun 11 15:38:05 UTC 2014

 Modified Files:
 	src/sys/arch/mips/include [netbsd-6]: pmap.h
 	src/sys/arch/mips/mips [netbsd-6]: pmap.c pmap_segtab.c

 Log Message:
 Pull up following revision(s) (requested by skrll in ticket #1068):
 	sys/arch/mips/mips/pmap.c: revision 1.214
 	sys/arch/mips/include/pmap.h: revision 1.63
 	sys/arch/mips/mips/pmap_segtab.c: revision 1.8
 Deal with incompatible cache aliases. Specifically,
 - always flush an ephemeral page on unmap
 - track unmanaged mappings (mappings entered via pmap_kenter_pa) for
     aliases where required and handle appropriately (via pmap_enter_pv)
 Hopefully this (finally) addresses the instability reported in the
 following PRs:
 PR/44900 - R5000/Rm5200 mips ports are broken
 PR/46890 - upcoming NetBSD 6.0 release is very unstable/unusable on cobalt qube2
 PR/48628 - cobalt and hpcmips ports are dead


 To generate a diff of this commit:
 cvs rdiff -u -r1.61.8.1 -r1.61.8.2 src/sys/arch/mips/include/pmap.h
 cvs rdiff -u -r1.207.2.2 -r1.207.2.3 src/sys/arch/mips/mips/pmap.c
 cvs rdiff -u -r1.4.2.1 -r1.4.2.2 src/sys/arch/mips/mips/pmap_segtab.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Soren Jacobsen" <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48628 CVS commit: [netbsd-6-0] src/sys/arch/mips
Date: Wed, 8 Nov 2017 21:22:48 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Wed Nov  8 21:22:48 UTC 2017

 Modified Files:
 	src/sys/arch/mips/include [netbsd-6-0]: pmap.h
 	src/sys/arch/mips/mips [netbsd-6-0]: pmap.c pmap_segtab.c

 Log Message:
 Pull up following revision(s) (requested by skrll in ticket #1068):
 	sys/arch/mips/include/pmap.h: revision 1.63
 	sys/arch/mips/mips/pmap.c: revision 1.214
 	sys/arch/mips/mips/pmap_segtab.c: revision 1.8
 Deal with incompatible cache aliases. Specifically,
 - always flush an ephemeral page on unmap
 - track unmanaged mappings (mappings entered via pmap_kenter_pa) for
     aliases where required and handle appropriately (via pmap_enter_pv)
 Hopefully this (finally) addresses the instability reported in the
 following PRs:
 PR/44900 - R5000/Rm5200 mips ports are broken
 PR/46890 - upcoming NetBSD 6.0 release is very unstable / unusable on cobalt qube 2
 PR/48628 - cobalt and hpcmips ports are dead


 To generate a diff of this commit:
 cvs rdiff -u -r1.61.8.1 -r1.61.8.1.4.1 src/sys/arch/mips/include/pmap.h
 cvs rdiff -u -r1.207.2.1.4.1 -r1.207.2.1.4.2 src/sys/arch/mips/mips/pmap.c
 cvs rdiff -u -r1.4.2.1 -r1.4.2.1.4.1 src/sys/arch/mips/mips/pmap_segtab.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Soren Jacobsen" <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48628 CVS commit: [netbsd-6-1] src/sys/arch/mips
Date: Wed, 8 Nov 2017 21:22:58 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Wed Nov  8 21:22:58 UTC 2017

 Modified Files:
 	src/sys/arch/mips/include [netbsd-6-1]: pmap.h
 	src/sys/arch/mips/mips [netbsd-6-1]: pmap.c pmap_segtab.c

 Log Message:
 Pull up following revision(s) (requested by skrll in ticket #1068):
 	sys/arch/mips/include/pmap.h: revision 1.63
 	sys/arch/mips/mips/pmap.c: revision 1.214
 	sys/arch/mips/mips/pmap_segtab.c: revision 1.8
 Deal with incompatible cache aliases. Specifically,
 - always flush an ephemeral page on unmap
 - track unmanaged mappings (mappings entered via pmap_kenter_pa) for
     aliases where required and handle appropriately (via pmap_enter_pv)
 Hopefully this (finally) addresses the instability reported in the
 following PRs:
 PR/44900 - R5000/Rm5200 mips ports are broken
 PR/46890 - upcoming NetBSD 6.0 release is very unstable / unusable on cobalt qube 2
 PR/48628 - cobalt and hpcmips ports are dead


 To generate a diff of this commit:
 cvs rdiff -u -r1.61.8.1 -r1.61.8.1.6.1 src/sys/arch/mips/include/pmap.h
 cvs rdiff -u -r1.207.2.1.6.1 -r1.207.2.1.6.2 src/sys/arch/mips/mips/pmap.c
 cvs rdiff -u -r1.4.2.1 -r1.4.2.1.6.1 src/sys/arch/mips/mips/pmap_segtab.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.