NetBSD Problem Report #46890

From kilbi@kilbi.de  Sun Sep  2 16:35:19 2012
Return-Path: <kilbi@kilbi.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 4FC8F63DF99
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  2 Sep 2012 16:35:19 +0000 (UTC)
Message-Id: <20120902163450.53A6A391FE@mail.kilbi.de>
Date: Sun,  2 Sep 2012 18:34:49 +0200 (MEST)
From: mk@kilbi.de
Reply-To: mk@kilbi.de
To: gnats-bugs@gnats.NetBSD.org
Subject: netbsd-6 / 6.0_RC1 very unstable / unusable on (my) cobalt qube 2
X-Send-Pr-Version: 3.95

>Number:         46890
>Category:       port-cobalt
>Synopsis:       upcoming NetBSD 6.0 release is very unstable / unusable on cobalt qube 2
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-cobalt-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 02 16:40:01 +0000 2012
>Closed-Date:    Sat Jul 12 20:08:31 +0000 2014
>Last-Modified:  Wed Nov 08 21:25:02 +0000 2017
>Originator:     Markus W Kilbinger
>Release:        NetBSD 6.0_RC1 (GENERIC)
>Organization:
and those who don't.
>Environment:


System: NetBSD q2 6.0_RC1 NetBSD 6.0_RC1 (GENERIC) cobalt
Architecture: mipsel
Machine: cobalt
>Description:
	My cobalt qube 2 happily runs netbsd-5 (kernel and userland)
	many month now.

	Every now and then I've tried to run an actual netbsd-6 kernel
	with / on its netbsd-5 userland what failed with a complete
	unstable system where at the end all binaries dumped core
	(some incompatibilities I thought and waited).

	Now, with 6.0_RC1 I've setup up a fresh / clean cobalt netbsd
	system based on kern-GENERIC.tgz, base.tgz and etc.tgz from
	http://nyftp.netbsd.org/pub/NetBSD-daily/netbsd-6/201209010830Z/cobalt/binary/sets/
	and booted my replacement qube 2 via NFS:

	  [...]
	  13.Ethernet Test...........................PASS
	  16.RTC Test................................PASS

	  Cobalt: bfd /boot.gz nfsroot=/usr/u/export/q2/root
	  Decompressing done
	  Executing bootloader kernel...
	  Decompressing -- done.

	  >> NetBSD/cobalt 6.0_RC1 Bootloader, Revision 1.0 [@0x80f00000]
	  >> Model:               Cobalt Qube 2
	  >> Memory:              65536 k
	  >> PROM boot string:    root=/dev/hda1 ro nfsroot=/usr/u/export/q2/root 
	  Boot [nfs:netbsd]: 
	  Loading: nfs:netbsd
	  4086352+130680 [225824+224538]=0x473d94
	  Starting at 0x80001000

	  pmap_steal_memory: seg 0: 0x474 0x474 0x3ffe 0x3ffe
	  pmap_steal_memory: seg 0: 0x497 0x497 0x3ffe 0x3ffe
	  pmap_steal_memory: seg 0: 0x499 0x499 0x3ffe 0x3ffe
	  Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
	      2006, 2007, 2008, 2009, 2010, 2011, 2012
	      The NetBSD Foundation, Inc.  All rights reserved.
	  Copyright (c) 1982, 1986, 1989, 1991, 1993
	      The Regents of the University of California.  All rights reserved.

	  NetBSD 6.0_RC1 (GENERIC)
	  Cobalt Qube 2
	  total memory = 65536 KB
	  avail memory = 59596 KB
	  mainbus0 (root)
	  com0 at mainbus0 addr 0x1c800000 level 3: st16650a, working fifo
	  [...]
	  wd0 at atabus0 drive 0
	  wd0: <IBM-DTLA-307045>
	  wd0: 43979 MB, 89355 cyl, 16 head, 63 sec, 512 bytes/sect x 90069840 sectors
	  boot device: tlp0
	  root on tlp0
	  nfs_boot: trying DHCP/BOOTP
	  nfs_boot: DHCP next-server: 172.27.64.183
	  nfs_boot: my_name=q2
	  nfs_boot: my_domain=kilbi.de
	  nfs_boot: my_addr=172.27.64.137
	  nfs_boot: my_mask=255.255.0.0
	  nfs_boot: gateway=172.27.64.107
	  root on 172.27.64.183:/usr/u/export/q2/root
	  root file system type: nfs
	  pid 1(init): ABI set to O32 (e_flags=0x1007)
	  /etc/rc.conf is not configured.  Multiuser boot aborted.
	  Enter pathname of shell or RETURN for /bin/sh: 

	... what looked quite normal.

        Then I've mounted its local harddisk:

	  mount -o log /dev/wd0f /mnt

        ... and started a simple test run by unpacking a tar-archive on it:

	  # cd /mnt/tmp/
	  # pax -zrpe -f perl-5.14.2.tar.gz

	... which lead to some unexpected messages / errors after some
	time:

	  pax: Unable to store mode and times for directory: perl-5.14.2/t/re
	  pax: Cannot malloc 29 bytes (Cannot allocate memory)
	  pax: Cannot malloc 32 bytes (Cannot allocate memory)
	  pax: Cannot malloc 30 bytes (Cannot allocate memory)
	  pax: Cannot malloc 32 bytes (Cannot allocate memory)
	  pax: Unable to store mode and times for directory: perl-5.14.2/t/uni
	  pax: Cannot malloc 31 bytes (Cannot allocate memory)
	  pax: Cannot malloc 32 bytes (Cannot allocate memory)
	  pax: Cannot malloc 31 bytes (Cannot allocate memory)
	  pax: Unable to store mode and times for directory: perl-5.14.2/t/op
	  pax: Cannot malloc 32 bytes (Cannot allocate memory)
	  pax: Cannot malloc 32 bytes (Cannot allocate memory)
	  pax: Cannot malloc 32 bytes (Cannot allocate memory)
	  pax: Cannot malloc 29 bytes (Cannot allocate memory)
	  pax: Cannot malloc 31 bytes (Cannot allocate memory)
	  [...]
	  pax: Cannot set permissions on  (No such file or directory)
	  pax: Access/modification time set failed on:  (No such file or directory)
	  pax: Cannot set permissions on  (No such file or directory)
	  pax: Access/modification time set failed on:  (No such file or directory)
	  Memory fault (core dumped) 

	At that point (at least I have a prompt) nearly all binaries
	dump core, e.g.:

	  # ls -la
	  Memory fault (core dumped)

	All running services (telnet, ftp, sshd et al.) first respond
	to some stage, later become unresponsive. Finally the whole
	machine hangs...

	I can enter ddb at this stage (, but do not know what to
	investigate; maybe, someone tells me ...).

	How do other mips machines behave (cobalt specific?)?
>How-To-Repeat:
	Try to run (at least a) netbsd-6 (kernel) on a cobalt qube
	(2), produce some (i/o) activity (e. g. unpacking a larger
	tar-archive) and see how above mentioned errors appear and the
	whole system becomes more and more unstable / unresponsive.
>Fix:
	Unknown.

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-cobalt/46890: netbsd-6 / 6.0_RC1 very unstable / unusable
 on (my) cobalt qube 2
Date: Sun, 2 Sep 2012 20:13:08 +0000

 On Sun, Sep 02, 2012 at 04:40:01PM +0000, mk@kilbi.de wrote:
  > 	  # cd /mnt/tmp/
  > 	  # pax -zrpe -f perl-5.14.2.tar.gz
  > 
  > 	... which lead to some unexpected messages / errors after some
  > 	time:
  > 
  > 	  pax: Unable to store mode and times for directory: perl-5.14.2/t/re
  > 	  pax: Cannot malloc 29 bytes (Cannot allocate memory)
  > 	  pax: Cannot malloc 32 bytes (Cannot allocate memory)
  > 	  pax: Cannot malloc 30 bytes (Cannot allocate memory)
  > 	  pax: Cannot malloc 32 bytes (Cannot allocate memory)

 Sounds like something very bad in pmap-land, or maybe something wrong
 with cache flushing.

 Does it go down the drain if there's no (or nearly no) disk I/O?

 -- 
 David A. Holland
 dholland@netbsd.org

From: =?iso-8859-1?Q?R=E9mi_Zara?= <remi_zara@mac.com>
To: gnats-bugs@NetBSD.org
Cc: dholland-bugs@netbsd.org
Subject: Re: port-cobalt/46890: netbsd-6 / 6.0_RC1 very unstable / unusable  on (my) cobalt qube 2
Date: Wed, 20 Feb 2013 09:55:55 +0100

 --Apple-Mail=_D6E01D88-9651-42AC-A2A4-860B873B90ED
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/plain;
 	charset=iso-8859-1

 Hi,

 I would say that disk I/O seems to be a factor in instability. Could you =
 recommend a test to run to confirm this ?

 Regards,

 R=E9mi Zara=

 --Apple-Mail=_D6E01D88-9651-42AC-A2A4-860B873B90ED
 Content-Disposition: attachment;
 	filename=smime.p7s
 Content-Type: application/pkcs7-signature;
 	name=smime.p7s
 Content-Transfer-Encoding: base64

 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMZjCCBQUw
 ggLtoA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yQAA
 AAAAAA==

 --Apple-Mail=_D6E01D88-9651-42AC-A2A4-860B873B90ED--

From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46890 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:53 +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: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46890 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: Markus Kilbinger <mk@kilbi.de>
To: gnats-bugs@NetBSD.org,Nick Hudson <skrll@netbsd.org>,port-cobalt-maintainer@netbsd.org,gnats-admin@netbsd.org,netbsd-bugs@netbsd.org
Cc: 
Subject: Re: PR/46890 CVS commit: src/sys/arch/mips
Date: Mon, 12 May 2014 20:49:44 +0200

 ------B87C9IG923TRIYK1MVTTTJU2PDS07V
 Content-Transfer-Encoding: 8bit
 Content-Type: text/plain;
  charset=UTF-8

 On 11. Mai 2014 09:55:00 MESZ, Nick Hudson <skrll@netbsd.org> wrote:
 >The following reply was made to PR port-cobalt/46890; it has been noted
 >by GNATS.
 >
 >From: "Nick Hudson" <skrll@netbsd.org>
 >To: gnats-bugs@gnats.NetBSD.org
 >Cc: 
 >Subject: PR/46890 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.
 > 

 A current kernel and userland (6.99.41) with these changes seem to run fine again on my cobalt qube 2.
 Thanks!

 BTW: What about the GENERIC64 kernel and cobalt64 userland? It seem to compile für, but the kernel panics quite early during Boot up. -> send-pr?

 Regards, Markus.
 -- 
 Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
 ------B87C9IG923TRIYK1MVTTTJU2PDS07V
 Content-Type: text/html;
  charset=utf-8
 Content-Transfer-Encoding: 8bit

 On 11. Mai 2014 09:55:00 MESZ, Nick Hudson &lt;skrll@netbsd.org&gt; wrote:<br>
 &gt;The following reply was made to PR port-cobalt/46890; it has been noted<br>
 &gt;by GNATS.<br>
 &gt;<br>
 &gt;From: &quot;Nick Hudson&quot; &lt;skrll@netbsd.org&gt;<br>
 &gt;To: gnats-bugs@gnats.NetBSD.org<br>
 &gt;Cc: <br>
 &gt;Subject: PR/46890 CVS commit: src/sys/arch/mips<br>
 &gt;Date: Sun, 11 May 2014 07:53:28 +0000<br>
 &gt;<br>
 &gt; Module Name:	src<br>
 &gt; Committed By:	skrll<br>
 &gt; Date:		Sun May 11 07:53:28 UTC 2014<br>
 &gt; <br>
 &gt; Modified Files:<br>
 &gt; 	src/sys/arch/mips/include: pmap.h<br>
 &gt; 	src/sys/arch/mips/mips: pmap.c pmap_segtab.c<br>
 &gt; <br>
 &gt; Log Message:<br>
 &gt; Deal with incompatible cache aliases. Specifically,<br>
 &gt; <br>
 &gt; - always flush an ephemeral page on unmap<br>
 &gt; - track unmanaged mappings (mappings entered via pmap_kenter_pa) for<br>
 &gt;   aliases where required and handle appropriately (via pmap_enter_pv)<br>
 &gt; <br>
 &gt; Hopefully this (finally) addresses the instability reported in the<br>
 &gt; following PRs:<br>
 &gt; <br>
 &gt; PR/44900 - R5000/Rm5200 mips ports are broken<br>
 &gt;PR/46890 - upcoming NetBSD 6.0 release is very unstable / unusable on<br>
 &gt;cobalt qube 2<br>
 &gt; PR/48628 - cobalt and hpcmips ports are dead<br>
 &gt; <br>
 &gt; <br>
 &gt; To generate a diff of this commit:<br>
 &gt; cvs rdiff -u -r1.62 -r1.63 src/sys/arch/mips/include/pmap.h<br>
 &gt; cvs rdiff -u -r1.213 -r1.214 src/sys/arch/mips/mips/pmap.c<br>
 &gt; cvs rdiff -u -r1.7 -r1.8 src/sys/arch/mips/mips/pmap_segtab.c<br>
 &gt; <br>
 &gt; Please note that diffs are not public domain; they are subject to the<br>
 &gt; copyright notices on the relevant files.<br>
 &gt; <br>
 <br>
 A current kernel and userland (6.99.41) with these changes seem to run fine again on my cobalt qube 2.<br>
 Thanks!<br>
 <br>
 BTW: What about the GENERIC64 kernel and cobalt64 userland? It seem to compile für, but the kernel panics quite early during Boot up. -&gt; send-pr?<br>
 <br>
 Regards, Markus.<br>
 -- <br>
 Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
 ------B87C9IG923TRIYK1MVTTTJU2PDS07V--

From: Markus Kilbinger <mk@kilbi.de>
To: gnats-bugs@NetBSD.org,Nick Hudson <skrll@netbsd.org>,port-cobalt-maintainer@netbsd.org,gnats-admin@netbsd.org,netbsd-bugs@netbsd.org
Cc: 
Subject: Re: PR/46890 CVS commit: src/sys/arch/mips
Date: Mon, 12 May 2014 20:46:13 +0200

 On 11. Mai 2014 09:55:00 MESZ, Nick Hudson <skrll@netbsd.org> wrote:
 >The following reply was made to PR port-cobalt/46890; it has been noted
 >by GNATS.
 >
 >From: "Nick Hudson" <skrll@netbsd.org>
 >To: gnats-bugs@gnats.NetBSD.org
 >Cc: 
 >Subject: PR/46890 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.
 > 

 A current kernel and userland (6.99.41) with these changes seem to run fine again on my cobalt qube 2.
 Thanks!

 BTW: What about the GENERIC64 kernel and cobalt64 userland? It seem to compile für, but the kernel panics quite early during Boot up. -> send-pr?

 Regards, Markus.

From: "Manuel Bouyer" <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46890 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->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 02 Jun 2014 01:22:32 +0000
State-Changed-Why:
Fixed (and pulled up) finally, thanks.


From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/46890 CVS commit: src/sys/arch/mips
Date: Mon, 2 Jun 2014 01:21:59 +0000

 On Mon, May 12, 2014 at 09:05:00PM +0000, Markus Kilbinger wrote:
  >  BTW: What about the GENERIC64 kernel and cobalt64 userland? It
  > seem to compile für, but the kernel panics quite early during Boot
  > up. -> send-pr?

 Yes please...

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: closed->pending-pullups
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Mon, 02 Jun 2014 07:42:19 +0000
State-Changed-Why:
Need ticket #1068


From: "SAITOH Masanobu" <msaitoh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46890 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.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 12 Jul 2014 20:08:31 +0000
State-Changed-Why:
pullup was done a month ago


From: "Soren Jacobsen" <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46890 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/46890 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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.