The NetBSD Project

CVS log for src/sys/arch/hppa/hppa/pmap.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / hppa / hppa

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.100.20.2 / (download) - annotate - [select for diffs], Thu Jun 16 14:22:02 2022 UTC (7 months, 2 weeks ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.100.20.1: +8 -5 lines
Diff to previous 1.100.20.1 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored)

Pull up following revision(s) (requested by skrll in ticket #1474):

	sys/arch/hppa/hppa/pmap.c: revision 1.120

Re-reading the PA2.0 Cache Move-In rules tells me we do indeed need to
purge the translations from the TLBs in pmap_procwr.

PR/56867: hppa: intermittent SIGSEGV reports in t_ptrace_wait's stepN
and setstepN test cases

Revision 1.120 / (download) - annotate - [select for diffs], Thu Jun 16 06:25:42 2022 UTC (7 months, 2 weeks ago) by skrll
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.119: +8 -5 lines
Diff to previous 1.119 (colored)

Re-reading the PA2.0 Cache Move-In rules tells me we do indeed need to
purge the translations from the TLBs in pmap_procwr.

PR/56867: hppa: intermittent SIGSEGV reports in t_ptrace_wait's stepN and setstepN test cases

Revision 1.100.20.1 / (download) - annotate - [select for diffs], Fri Jun 10 17:16:54 2022 UTC (7 months, 3 weeks ago) by martin
Branch: netbsd-9
Changes since 1.100: +11 -5 lines
Diff to previous 1.100 (colored)

Pull up following revision(s) (requested by skrll in ticket #1467):

	sys/arch/hppa/include/pmap.h: revision 1.41
	sys/arch/hppa/hppa/pmap.c: revision 1.117

port-hppa/56849: Wacko kernel memory accounting in current/hppa

Two fixes:
- Don't include direct mapped memory in pmap statistics
- Decrement pmap statistics counts in pmap_kremove

Revision 1.119 / (download) - annotate - [select for diffs], Thu Jun 9 16:41:25 2022 UTC (7 months, 3 weeks ago) by skrll
Branch: MAIN
Changes since 1.118: +2 -5 lines
Diff to previous 1.118 (colored)

Oops... revert commit mistake

Revision 1.118 / (download) - annotate - [select for diffs], Thu Jun 9 16:38:23 2022 UTC (7 months, 3 weeks ago) by skrll
Branch: MAIN
Changes since 1.117: +5 -2 lines
Diff to previous 1.117 (colored)

Handle 'NA' (non-access) traps for the lpa and probe instructions.  The
change is inspired by OpenBSD with a bunch of my own, mainly stylistic,
changes.

Thanks to Tom Lane for the analysis.

PR/56118: sporadic app crashes in HPPA -current

Revision 1.117 / (download) - annotate - [select for diffs], Thu May 26 05:34:04 2022 UTC (8 months, 1 week ago) by skrll
Branch: MAIN
Changes since 1.116: +11 -5 lines
Diff to previous 1.116 (colored)

port-hppa/56849: Wacko kernel memory accounting in current/hppa

Two fixes:
- Don't include direct mapped memory in pmap statistics
- Decrement pmap statistics counts in pmap_kremove

Revision 1.116 / (download) - annotate - [select for diffs], Sat Apr 9 23:38:32 2022 UTC (9 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.115: +4 -4 lines
Diff to previous 1.115 (colored)

sys: Use membar_release/acquire around reference drop.

This just goes through my recent reference count membar audit and
changes membar_exit to membar_release and membar_enter to
membar_acquire -- this should make everything cheaper on most CPUs
without hurting correctness, because membar_acquire is generally
cheaper than membar_enter.

Revision 1.115 / (download) - annotate - [select for diffs], Sat Mar 12 15:32:31 2022 UTC (10 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.114: +4 -2 lines
Diff to previous 1.114 (colored)

sys: Membar audit around reference count releases.

If two threads are using an object that is freed when the reference
count goes to zero, we need to ensure that all memory operations
related to the object happen before freeing the object.

Using an atomic_dec_uint_nv(&refcnt) == 0 ensures that only one
thread takes responsibility for freeing, but it's not enough to
ensure that the other thread's memory operations happen before the
freeing.

Consider:

	  Thread A			  Thread B
	obj->foo = 42;			obj->baz = 73;
	mumble(&obj->bar);		grumble(&obj->quux);
	/* membar_exit(); */		/* membar_exit(); */
	atomic_dec -- not last		atomic_dec -- last
					/* membar_enter(); */
					KASSERT(invariant(obj->foo,
					    obj->bar));
					free_stuff(obj);

The memory barriers ensure that

	obj->foo = 42;
	mumble(&obj->bar);

in thread A happens before

	KASSERT(invariant(obj->foo, obj->bar));
	free_stuff(obj);

in thread B.  Without them, this ordering is not guaranteed.

So in general it is necessary to do

	membar_exit();
	if (atomic_dec_uint_nv(&obj->refcnt) != 0)
		return;
	membar_enter();

to release a reference, for the `last one out hit the lights' style
of reference counting.  (This is in contrast to the style where one
thread blocks new references and then waits under a lock for existing
ones to drain with a condvar -- no membar needed thanks to mutex(9).)

I searched for atomic_dec to find all these.  Obviously we ought to
have a better abstraction for this because there's so much copypasta.
This is a stop-gap measure to fix actual bugs until we have that.  It
would be nice if an abstraction could gracefully handle the different
styles of reference counting in use -- some years ago I drafted an
API for this, but making it cover everything got a little out of hand
(particularly with struct vnode::v_usecount) and I ended up setting
it aside to work on psref/localcount instead for better scalability.

I got bored of adding #ifdef __HAVE_ATOMIC_AS_MEMBAR everywhere, so I
only put it on things that look performance-critical on 5sec review.
We should really adopt membar_enter_preatomic/membar_exit_postatomic
or something (except they are applicable only to atomic r/m/w, not to
atomic_load/store_*, making the naming annoying) and get rid of all
the ifdefs.

Revision 1.114 / (download) - annotate - [select for diffs], Wed Aug 19 07:29:00 2020 UTC (2 years, 5 months ago) by simonb
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored)

Remove trailing \n from UVMHIST_LOG() format strings.

Revision 1.113 / (download) - annotate - [select for diffs], Mon May 25 21:15:10 2020 UTC (2 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.112: +4 -5 lines
Diff to previous 1.112 (colored)

- Alter the convention for uvm_page_array slightly, so the basic search
  parameters can't change part way through a search: move the "uobj" and
  "flags" arguments over to uvm_page_array_init() and store those with the
  array.

- With that, detect when it's not possible to find any more pages in the
  tree with the given search parameters, and avoid repeated tree lookups if
  the caller loops over uvm_page_array_fill_and_peek().

Revision 1.112 / (download) - annotate - [select for diffs], Thu Apr 30 06:16:47 2020 UTC (2 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.111: +129 -16 lines
Diff to previous 1.111 (colored)

Convert pmap_check_alias into a function that resolves any aliases issues
to deal with the locking around entering a mapping of the same page with
and alias issue in the same pmap (pmap lock already held in pmap_enter)

This has the added benefit of only flushing the troublesome mappings.

The locking could be simplified further here and an PV list iterator
function with callback is probably useful.

Revision 1.100.16.2 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:08 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.100.16.1: +347 -269 lines
Diff to previous 1.100.16.1 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored)

Sync with HEAD

Revision 1.105.4.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:28:57 2020 UTC (2 years, 9 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.105: +349 -271 lines
Diff to previous 1.105 (colored) next main 1.106 (colored)

Sync with HEAD

Revision 1.111 / (download) - annotate - [select for diffs], Thu Apr 16 09:51:56 2020 UTC (2 years, 9 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.110: +172 -53 lines
Diff to previous 1.110 (colored)

To allow concurrent page faults on the same set of pages lock the PV
lists.  From ad@ and fixed up by me.

Remove __HAVE_UNLOCKED_PMAP

Revision 1.110 / (download) - annotate - [select for diffs], Thu Apr 16 05:22:59 2020 UTC (2 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored)

More KNF

Revision 1.109 / (download) - annotate - [select for diffs], Wed Apr 15 15:50:15 2020 UTC (2 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.108: +173 -213 lines
Diff to previous 1.108 (colored)

Convert PMAPDEBUG to UVMHIST

Revision 1.108 / (download) - annotate - [select for diffs], Wed Apr 15 15:22:37 2020 UTC (2 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.107: +6 -6 lines
Diff to previous 1.107 (colored)

Spaces to tabs

Revision 1.107 / (download) - annotate - [select for diffs], Wed Apr 15 09:41:09 2020 UTC (2 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.106: +8 -8 lines
Diff to previous 1.106 (colored)

KNF

Revision 1.106 / (download) - annotate - [select for diffs], Wed Apr 15 08:14:22 2020 UTC (2 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.105: +2 -3 lines
Diff to previous 1.105 (colored)

G/C a #include

Revision 1.100.16.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:39 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.100: +42 -26 lines
Diff to previous 1.100 (colored)

Merge changes from current as of 20200406

Revision 1.105 / (download) - annotate - [select for diffs], Sun Mar 1 21:40:45 2020 UTC (2 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Changes since 1.104: +8 -4 lines
Diff to previous 1.104 (colored)

Give pmap uvm_objects an empty pagerops to avoid special casing in UVM.
(This use of uvm_object causes a disproportionate amount of work.)

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:18:24 2020 UTC (2 years, 11 months ago) by ad
Branch: ad-namecache
Changes since 1.102: +25 -24 lines
Diff to previous 1.102 (colored) next main 1.103 (colored)

Sync with head.

Revision 1.104 / (download) - annotate - [select for diffs], Mon Feb 24 20:42:18 2020 UTC (2 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: ad-namecache-base3
Changes since 1.103: +23 -22 lines
Diff to previous 1.103 (colored)

Adjust for UVM locking changes.

Revision 1.103 / (download) - annotate - [select for diffs], Sun Feb 23 15:46:39 2020 UTC (2 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.102: +4 -4 lines
Diff to previous 1.102 (colored)

UVM locking changes, proposed on tech-kern:

- Change the lock on uvm_object, vm_amap and vm_anon to be a RW lock.
- Break v_interlock and vmobjlock apart.  v_interlock remains a mutex.
- Do partial PV list locking in the x86 pmap.  Others to follow later.

Revision 1.102 / (download) - annotate - [select for diffs], Tue Dec 31 12:40:27 2019 UTC (3 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.101: +4 -4 lines
Diff to previous 1.101 (colored)

Rename uvm_page_locked_p() -> uvm_page_owner_locked_p()

Revision 1.101 / (download) - annotate - [select for diffs], Sun Dec 15 21:11:34 2019 UTC (3 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.100: +15 -4 lines
Diff to previous 1.100 (colored)

Merge from yamt-pagecache:

- do gang lookup of pages using radixtree.
- remove now unused uvm_object::uo_memq and vm_page::listq.queue.

Revision 1.98.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:16 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.98.2.1: +1 -1 lines
Diff to previous 1.98.2.1 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored)

update from HEAD

Revision 1.99.4.1 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:12 2017 UTC (5 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored) next main 1.100 (colored)

Sync with HEAD

Revision 1.99.8.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:18 2017 UTC (6 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored) next main 1.100 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.100 / (download) - annotate - [select for diffs], Thu Dec 22 14:47:57 2016 UTC (6 years, 1 month ago) by cherry
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, netbsd-9
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored)

switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.

Revision 1.98.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:04 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.98: +12 -12 lines
Diff to previous 1.98 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.98.12.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:53:59 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.98: +12 -12 lines
Diff to previous 1.98 (colored) next main 1.99 (colored)

Rebase.

Revision 1.99 / (download) - annotate - [select for diffs], Fri Aug 8 07:30:51 2014 UTC (8 years, 5 months ago) by skrll
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, localcount-20160914
Branch point for: pgoyette-localcount, nick-nhusb
Changes since 1.98: +12 -12 lines
Diff to previous 1.98 (colored)

Trailing whitespace.

Revision 1.81.2.2 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:26 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.81.2.1: +148 -78 lines
Diff to previous 1.81.2.1 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored)

sync with head

Revision 1.81.6.4 / (download) - annotate - [select for diffs], Tue Mar 6 18:26:36 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.81.6.3: +3 -3 lines
Diff to previous 1.81.6.3 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored)

sync to -current

Revision 1.81.6.3 / (download) - annotate - [select for diffs], Tue Mar 6 09:56:07 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.81.6.2: +3 -3 lines
Diff to previous 1.81.6.2 (colored) to branchpoint 1.81 (colored)

sync to -current

Revision 1.81.6.2 / (download) - annotate - [select for diffs], Sun Mar 4 00:46:08 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.81.6.1: +3 -3 lines
Diff to previous 1.81.6.1 (colored) to branchpoint 1.81 (colored)

sync to latest -current.

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Fri Mar 2 16:29:29 2012 UTC (10 years, 11 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

Pull up following revision(s) (requested by skrll in ticket #62):
	sys/arch/hppa/hppa/pmap.c: revision 1.98
Fix PMAPDEBUG build

Revision 1.98 / (download) - annotate - [select for diffs], Tue Feb 28 07:30:30 2012 UTC (10 years, 11 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base4, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored)

Fix PMAPDEBUG build

Revision 1.81.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:32:14 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.81: +148 -78 lines
Diff to previous 1.81 (colored)

merge to -current.

Revision 1.97 / (download) - annotate - [select for diffs], Fri Jan 6 20:55:28 2012 UTC (11 years ago) by skrll
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base5, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.96: +59 -6 lines
Diff to previous 1.96 (colored)

Track if a page has an executable mapping and flush the icache (and
dcache) appropriately.

Fixes the lang/python26 build on my C3700 (PA8700) and chuq's J6700 with
PA8500.

Thanks to chuq for ideas and help with this.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Jan 6 08:54:05 2012 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.95: +4 -3 lines
Diff to previous 1.95 (colored)

Wrap a long line.

Revision 1.95 / (download) - annotate - [select for diffs], Fri Jan 6 08:48:43 2012 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.94: +3 -2 lines
Diff to previous 1.94 (colored)

Add a KASSERT.

Revision 1.94 / (download) - annotate - [select for diffs], Fri Jan 6 08:38:11 2012 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.93: +8 -8 lines
Diff to previous 1.93 (colored)

More whitespace.

Revision 1.93 / (download) - annotate - [select for diffs], Fri Jan 6 08:36:10 2012 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.92: +4 -5 lines
Diff to previous 1.92 (colored)

Whitespace. hi perry.

Revision 1.92 / (download) - annotate - [select for diffs], Fri Jan 6 08:33:26 2012 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.91: +5 -6 lines
Diff to previous 1.91 (colored)

Group the prototypes.

Revision 1.91 / (download) - annotate - [select for diffs], Fri Jan 6 08:32:08 2012 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.90: +20 -22 lines
Diff to previous 1.90 (colored)

Simplify code a little.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Jan 6 08:03:16 2012 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.89: +5 -3 lines
Diff to previous 1.89 (colored)

Style.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Jan 6 07:59:07 2012 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.88: +4 -4 lines
Diff to previous 1.88 (colored)

Make pmap_check_alias static

Revision 1.88 / (download) - annotate - [select for diffs], Fri Dec 30 07:41:58 2011 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.87: +2 -3 lines
Diff to previous 1.87 (colored)

G/C pmap_page_remove_locked prototype.

Revision 1.87 / (download) - annotate - [select for diffs], Fri Dec 30 07:25:00 2011 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.86: +55 -40 lines
Diff to previous 1.86 (colored)

Cope with userland mappings of unmanaged pages (i.e. device memory being
mmap'ed), by properly making these mappings uncached, and correctly accounting
their removal to not get stuck with leftover pte pages.

From OpenBSD.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Dec 29 22:13:23 2011 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.85: +2 -4 lines
Diff to previous 1.85 (colored)

No need for sync_caches - f[di]cache already issue the sync instruction.

Revision 1.85 / (download) - annotate - [select for diffs], Fri Dec 23 16:38:50 2011 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.84: +2 -3 lines
Diff to previous 1.84 (colored)

Whitespace.

Revision 1.84 / (download) - annotate - [select for diffs], Fri Dec 23 16:35:00 2011 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.83: +14 -2 lines
Diff to previous 1.83 (colored)

Define PMAP_NEED_PROCWR and provide pmap_procwr so that the i-cache is
synchronised with the d-cache appropriately.

Revision 1.83 / (download) - annotate - [select for diffs], Fri Dec 16 12:45:04 2011 UTC (11 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.82: +3 -4 lines
Diff to previous 1.82 (colored)

G/C pvh_aliases

Revision 1.82 / (download) - annotate - [select for diffs], Mon Dec 5 07:34:50 2011 UTC (11 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.81: +2 -7 lines
Diff to previous 1.81 (colored)

Whitespace.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Fri Dec 2 16:33:59 2011 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.81: +13 -2 lines
Diff to previous 1.81 (colored)

adapt hp700.  compile tested.

Revision 1.80.6.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:13 2011 UTC (11 years, 7 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.80: +28 -59 lines
Diff to previous 1.80 (colored) next main 1.81 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:41 2011 UTC (11 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.80: +28 -59 lines
Diff to previous 1.80 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.71.2.6 / (download) - annotate - [select for diffs], Thu May 19 03:42:59 2011 UTC (11 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.71.2.5: +11 -6 lines
Diff to previous 1.71.2.5 (colored) next main 1.72 (colored)

Implement sharing of vnode_t::v_interlock amongst vnodes:
- Lock is shared amongst UVM objects using uvm_obj_setlock() or getnewvnode().
- Adjust vnode cache to handle unsharing, add VI_LOCKSHARE flag for that.
- Use sharing in tmpfs and layerfs for underlying object.
- Simplify locking in ubc_fault().
- Sprinkle some asserts.

Discussed with ad@.

Revision 1.71.2.5 / (download) - annotate - [select for diffs], Wed Mar 9 19:13:18 2011 UTC (11 years, 10 months ago) by skrll
Branch: rmind-uvmplock
Changes since 1.71.2.4: +9 -46 lines
Diff to previous 1.71.2.4 (colored)

Drop per-page locking i.e. pvh_lock and rely on locking provided by
upper layer, UVM.  Sprinkle asserts.

Revision 1.71.2.4 / (download) - annotate - [select for diffs], Sat Mar 5 20:50:36 2011 UTC (11 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.71.2.3: +72 -51 lines
Diff to previous 1.71.2.3 (colored)

sync with head

Revision 1.80 / (download) - annotate - [select for diffs], Fri Jan 14 02:06:26 2011 UTC (12 years ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base7, rmind-uvmplock-nbase, rmind-uvmplock-base, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.79: +3 -2 lines
Diff to previous 1.79 (colored)

Retire struct user, remove sys/user.h inclusions.  Note sys/user.h header
as obsolete.  Remove USER_TO_UAREA/UAREA_TO_USER macros.

Various #include fixes and review by matt@.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Nov 14 03:16:03 2010 UTC (12 years, 2 months ago) by uebayasi
Branch: MAIN
CVS Tags: uebayasi-xip-base6, matt-mips64-premerge-20101231
Changes since 1.78: +1 -0 lines
Diff to previous 1.78 (colored)

Don't rely on global APIs from internal.

Revision 1.78 / (download) - annotate - [select for diffs], Fri Nov 12 07:59:26 2010 UTC (12 years, 2 months ago) by uebayasi
Branch: MAIN
Changes since 1.77: +0 -2 lines
Diff to previous 1.77 (colored)

Put VM_PAGE_TO_MD() definition in one place.  No functional changes.

Revision 1.63.2.10 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:17 2010 UTC (12 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63.2.9: +3 -1 lines
Diff to previous 1.63.2.9 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)

Sync with HEAD.

Revision 1.63.2.9 / (download) - annotate - [select for diffs], Sun Oct 31 03:46:17 2010 UTC (12 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63.2.8: +1 -1 lines
Diff to previous 1.63.2.8 (colored) to branchpoint 1.63 (colored)

We already have a flag PMAP_NOCACHE.  s/PMAP_UNMANAGED/PMAN_NOCACHE/.
Pointed out by Chuck Silvers, thanks.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Oct 30 17:20:43 2010 UTC (12 years, 3 months ago) by uebayasi
Branch: MAIN
CVS Tags: uebayasi-xip-base5, uebayasi-xip-base4
Changes since 1.76: +72 -51 lines
Diff to previous 1.76 (colored)

Use VM_PAGE_TO_MD() to locate struct vm_page_md.  No functional
changes.

Revision 1.63.2.8 / (download) - annotate - [select for diffs], Sat Oct 30 08:41:07 2010 UTC (12 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63.2.7: +12 -0 lines
Diff to previous 1.63.2.7 (colored) to branchpoint 1.63 (colored)

Implement pmap_physload_device(9) to replace xmd(4) MD backend.
Implement pmap_mmap(9) and use it from mem(4) and xmd(4).

Revision 1.63.2.7 / (download) - annotate - [select for diffs], Tue Aug 17 06:44:32 2010 UTC (12 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63.2.6: +2 -2 lines
Diff to previous 1.63.2.6 (colored) to branchpoint 1.63 (colored)

Sync with HEAD.

Revision 1.42.10.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:52:09 2010 UTC (12 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.42.10.4: +71 -181 lines
Diff to previous 1.42.10.4 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

sync with head.

Revision 1.63.2.6 / (download) - annotate - [select for diffs], Wed Jul 7 16:35:25 2010 UTC (12 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63.2.5: +0 -1 lines
Diff to previous 1.63.2.5 (colored) to branchpoint 1.63 (colored)

Clean up; merge options DIRECT_PAGE into options XIP.

Revision 1.71.2.3 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:19 2010 UTC (12 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.71.2.2: +4 -4 lines
Diff to previous 1.71.2.2 (colored)

sync with head

Revision 1.76 / (download) - annotate - [select for diffs], Mon Jun 21 14:43:34 2010 UTC (12 years, 7 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.75: +4 -4 lines
Diff to previous 1.75 (colored)

Allow PVF_UNCACHEABLE in set/clear of pmap_changebit call (for now).

Revision 1.63.2.5 / (download) - annotate - [select for diffs], Mon May 31 13:26:37 2010 UTC (12 years, 8 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63.2.4: +1 -1 lines
Diff to previous 1.63.2.4 (colored) to branchpoint 1.63 (colored)

Re-define the definition of "device page"; device pages are pages of
device memory.  Pages which don't have vm_page (== can't be used for
generic use), but whose PV are tracked, are called "direct pages" from
now.

Revision 1.71.2.2 / (download) - annotate - [select for diffs], Sun May 30 05:16:52 2010 UTC (12 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.71.2.1: +70 -181 lines
Diff to previous 1.71.2.1 (colored)

sync with head

Revision 1.63.2.4 / (download) - annotate - [select for diffs], Fri May 28 08:32:20 2010 UTC (12 years, 8 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63.2.3: +1 -1 lines
Diff to previous 1.63.2.3 (colored) to branchpoint 1.63 (colored)

Fix a typo; pointed out by Chuck Silvers.

Revision 1.63.2.3 / (download) - annotate - [select for diffs], Fri Apr 30 14:39:27 2010 UTC (12 years, 9 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63.2.2: +142 -220 lines
Diff to previous 1.63.2.2 (colored) to branchpoint 1.63 (colored)

Sync with HEAD.

Revision 1.63.2.2 / (download) - annotate - [select for diffs], Tue Apr 27 07:19:28 2010 UTC (12 years, 9 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63.2.1: +2 -1 lines
Diff to previous 1.63.2.1 (colored) to branchpoint 1.63 (colored)

Support PMAP_UNMANAGED in some pmaps.

(Others should be converted eventually, but no problem while managed
device page is not used.)

Revision 1.75 / (download) - annotate - [select for diffs], Fri Apr 2 15:25:51 2010 UTC (12 years, 10 months ago) by skrll
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.74: +8 -10 lines
Diff to previous 1.74 (colored)

Pull across pmap_remove fix from OpenBSD.

Fix user-after-free bug in pmap_remove().  Page table pages are freed as soon
as the last page table entry that was actually used is cleared.  So make sure
we check the page table page is still there for every page we remove.
Otherwise we will bring back the tlb entry and cache lines when we touch the
freed page, and we will create an illegal alias (non-equivalent mapping)
as soon as the page gets re-used.

Revision 1.74 / (download) - annotate - [select for diffs], Fri Mar 19 07:35:29 2010 UTC (12 years, 10 months ago) by skrll
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

Fix PMAPDEBUG build for previous.

Revision 1.73 / (download) - annotate - [select for diffs], Fri Mar 19 07:29:44 2010 UTC (12 years, 10 months ago) by skrll
Branch: MAIN
Changes since 1.72: +64 -171 lines
Diff to previous 1.72 (colored)

Not all PA CPUs have the U-bit (uncacheable) for non-IO memory.  In fact
most don't.  Deal with non-equivalent aliases by removing and flushing the
managed mappings, and flushing the unmanaged mappings.

When flushing caches/TLB flush the cache before purging the TLB just in
case the flush enters the mapping into the TLB.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Mar 16 16:20:19 2010 UTC (12 years, 10 months ago) by skrll
Branch: MAIN
Changes since 1.71: +2 -4 lines
Diff to previous 1.71 (colored)

The FP regs are accessed in both physical and virtual modes.  Make sure
they're allocated in directly mapped memory to avoid aliasing problems
and unnecessary cache flushing.

Fix various names and references. If we ever directly map the uarea and
pcb we can change things at that point.

Significantly helps my J210 (PA7200).

Mostly from OpenBSD.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:03 2010 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.71: +15 -14 lines
Diff to previous 1.71 (colored)

Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc().  It allows us to share the locks among UVM objects.

Revision 1.71 / (download) - annotate - [select for diffs], Sat Mar 13 16:17:59 2010 UTC (12 years, 10 months ago) by skrll
Branch: MAIN
Branch point for: rmind-uvmplock
Changes since 1.70: +3 -2 lines
Diff to previous 1.70 (colored)

Add a comment.

Revision 1.42.10.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:02:26 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.42.10.3: +168 -154 lines
Diff to previous 1.42.10.3 (colored) to branchpoint 1.42 (colored)

sync with head

Revision 1.70 / (download) - annotate - [select for diffs], Sat Mar 6 21:22:42 2010 UTC (12 years, 11 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Changes since 1.69: +4 -2 lines
Diff to previous 1.69 (colored)

Add #include "opt_cputype.h" where necessary.

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Thu Feb 25 04:11:29 2010 UTC (12 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63: +87 -66 lines
Diff to previous 1.63 (colored)

Use VM_PAGE_TO_MD().  Only compile tested.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Feb 24 06:38:53 2010 UTC (12 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.68: +6 -6 lines
Diff to previous 1.68 (colored)

s/printf/db_printf/ in a few places.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Feb 22 21:32:55 2010 UTC (12 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.67: +36 -9 lines
Diff to previous 1.67 (colored)

Deal with PA2.0 cache move-in rules by purging the TLB as well as
flushing/purging the cache.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Feb 17 14:16:53 2010 UTC (12 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

Fix typo in previous. It's not a good idea to let uvm mess with kernel
text pages.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Feb 17 11:31:39 2010 UTC (12 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Semi-colons help.

Revision 1.65 / (download) - annotate - [select for diffs], Wed Feb 17 10:03:30 2010 UTC (12 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.64: +4 -2 lines
Diff to previous 1.64 (colored)

Add a prototype for pmap_page_physload.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Feb 16 16:56:30 2010 UTC (12 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.63: +38 -38 lines
Diff to previous 1.63 (colored)

Remove the dma24_ex method of dealing with BUS_DMA_24BIT and replace
with a uvm managed freelist of pages in the right range.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Dec 18 19:20:35 2009 UTC (13 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

Remove unnecessary part of conditional.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Dec 18 19:17:08 2009 UTC (13 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.61: +54 -60 lines
Diff to previous 1.61 (colored)

DPRINTF format fixes.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Dec 18 15:20:15 2009 UTC (13 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.60: +25 -24 lines
Diff to previous 1.60 (colored)

Fix pmap_dump_table so that it doesn't loop indefinitely for a space that
doesn't map anything in the last PDE.

Also, don't loop unnecessarily through the spaces.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Nov 28 13:53:28 2009 UTC (13 years, 2 months ago) by skrll
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

Flush only as much as is required. Pointed out by rmind.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Nov 27 03:23:09 2009 UTC (13 years, 2 months ago) by rmind
Branch: MAIN
Changes since 1.58: +8 -8 lines
Diff to previous 1.58 (colored)

- Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places.  Reduce sys/user.h inclusions.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Nov 26 00:19:17 2009 UTC (13 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.57: +3 -6 lines
Diff to previous 1.57 (colored)

Kill proc0paddr.  Use lwp0.l_addr instead.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Nov 21 15:36:33 2009 UTC (13 years, 2 months ago) by rmind
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored)

Use lwp_getpcb() on hppa and ia64, clean from struct user usage.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Nov 14 13:31:44 2009 UTC (13 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (colored)

Update a couple of comments.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Nov 11 16:08:31 2009 UTC (13 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.54: +4 -4 lines
Diff to previous 1.54 (colored)

Use the new flags argument to pmap_kenter_pa for PMAP_NOCACHE.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Nov 7 07:27:44 2009 UTC (13 years, 2 months ago) by cegger
Branch: MAIN
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored)

Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:00 2009 UTC (13 years, 3 months ago) by rmind
Branch: MAIN
Changes since 1.52: +2 -11 lines
Diff to previous 1.52 (colored)

Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.

Revision 1.42.10.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:46:17 2009 UTC (13 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.42.10.2: +9 -13 lines
Diff to previous 1.42.10.2 (colored) to branchpoint 1.42 (colored)

sync with head.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Aug 12 10:03:30 2009 UTC (13 years, 5 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Changes since 1.51: +4 -6 lines
Diff to previous 1.51 (colored)

Fix non-DEBUG builds.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Aug 12 07:46:36 2009 UTC (13 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.50: +2 -4 lines
Diff to previous 1.50 (colored)

Remove NOP flushes. pvh_list == NULL.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Aug 12 07:42:36 2009 UTC (13 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.49: +7 -7 lines
Diff to previous 1.49 (colored)

Pull across a fix from OpenBSD, but use PDE_SIZE instead of ~PDE_MASK + 1.

Make sure that if a PDE isn't there, we skip to the start of the address
range covered by the next PDE and not somewhere in the middle.  The old could
have skipped over some valid PTE's causing them to stay behind in the pmap.
Since we would not flush the cache for those pages either this could also
cause memory corruption when dirty cache lines would be written back to
memory at a later stage.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:17:47 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.47: +1376 -1393 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.42.10.2 / (download) - annotate - [select for diffs], Mon May 4 08:11:13 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.42.10.1: +1379 -1399 lines
Diff to previous 1.42.10.1 (colored) to branchpoint 1.42 (colored)

sync with head.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Apr 30 07:01:27 2009 UTC (13 years, 9 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, jymxensuspend-base
Changes since 1.48: +1373 -1390 lines
Diff to previous 1.48 (colored)

Merge nick-hppapmap.

This is a port of the OpenBSD pmap and trap handling code to get us

        - Performance boost on some/all machines.
        - Well on the way to PA2.0 (in 32bit mode) support. Several
          machines probe hardware, but fail sometime after interrupts
          are enabled.

Other things changed / fixed on the branch are

        - update autoconf to use the OpenBSD code.
        - com @ dino is very close to being supported.
        - HPPA_REDZONE has been replaced with a working redzone which
          is enabled with DIAGNOSTIC.
        - UPAGES has been halved in size.
        - power(4) from OpenBSD to fix a few bugs.
        - updated list of modules from OpenBSD.
	- initial ports of uturn(4), astro(4) and elroy(4).
	- update some copyrights (remove advertising clause, etc.)

Thanks to mjf for some of the above, testing and listening.

Revision 1.43.8.58 / (download) - annotate - [select for diffs], Tue Apr 28 08:03:46 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.57: +74 -33 lines
Diff to previous 1.43.8.57 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored)

Track unmanaged mappings to deal with loaning and non-equivalient aliases.

Revision 1.43.8.57 / (download) - annotate - [select for diffs], Tue Apr 28 07:34:06 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.56: +3 -3 lines
Diff to previous 1.43.8.56 (colored) to branchpoint 1.43 (colored)

Sync with HEAD.

Revision 1.43.8.56 / (download) - annotate - [select for diffs], Mon Apr 27 09:27:28 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.55: +5 -3 lines
Diff to previous 1.43.8.55 (colored) to branchpoint 1.43 (colored)

For correctness test pvh_attrs with lock held.

Revision 1.43.8.55 / (download) - annotate - [select for diffs], Mon Apr 27 08:56:06 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.54: +2 -4 lines
Diff to previous 1.43.8.54 (colored) to branchpoint 1.43 (colored)

Enable a DPRINT

Revision 1.43.8.54 / (download) - annotate - [select for diffs], Mon Apr 27 08:25:30 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.53: +3 -3 lines
Diff to previous 1.43.8.53 (colored) to branchpoint 1.43 (colored)

Oops, typo in previous.

Revision 1.43.8.53 / (download) - annotate - [select for diffs], Mon Apr 27 08:21:51 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.52: +3 -3 lines
Diff to previous 1.43.8.52 (colored) to branchpoint 1.43 (colored)

Another comment update.

Revision 1.43.8.52 / (download) - annotate - [select for diffs], Mon Apr 27 08:19:59 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.51: +23 -25 lines
Diff to previous 1.43.8.51 (colored) to branchpoint 1.43 (colored)

Update some comments.

Revision 1.43.8.51 / (download) - annotate - [select for diffs], Mon Apr 27 08:11:19 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.50: +4 -3 lines
Diff to previous 1.43.8.50 (colored) to branchpoint 1.43 (colored)

Add a reference.

Revision 1.43.8.50 / (download) - annotate - [select for diffs], Sat Apr 25 15:28:16 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.49: +3 -3 lines
Diff to previous 1.43.8.49 (colored) to branchpoint 1.43 (colored)

Whitespace.

Revision 1.43.8.49 / (download) - annotate - [select for diffs], Sat Apr 25 15:26:28 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.48: +4 -4 lines
Diff to previous 1.43.8.48 (colored) to branchpoint 1.43 (colored)

Add a KASSERT to pmap_activate

Revision 1.43.8.48 / (download) - annotate - [select for diffs], Sat Apr 25 14:45:06 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.47: +9 -8 lines
Diff to previous 1.43.8.47 (colored) to branchpoint 1.43 (colored)

Wrap long lines. KNF.

Revision 1.43.8.47 / (download) - annotate - [select for diffs], Sat Apr 25 13:54:07 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.46: +8 -8 lines
Diff to previous 1.43.8.46 (colored) to branchpoint 1.43 (colored)

Put KASSERTs after DPRINTFs.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Apr 21 21:29:59 2009 UTC (13 years, 9 months ago) by cegger
Branch: MAIN
CVS Tags: nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

change pmap flags argument from int to u_int.
discussed with christos@ on source-changes-d@

Revision 1.43.8.46 / (download) - annotate - [select for diffs], Tue Apr 21 13:48:21 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.45: +2 -3 lines
Diff to previous 1.43.8.45 (colored) to branchpoint 1.43 (colored)

Remove incorrect KASSERT.

XXX PVF_KENTER needs work.

Revision 1.43.8.45 / (download) - annotate - [select for diffs], Fri Apr 10 09:18:36 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.44: +2 -4 lines
Diff to previous 1.43.8.44 (colored) to branchpoint 1.43 (colored)

Remove PMAPDEBUG define that crept in.

Revision 1.43.8.44 / (download) - annotate - [select for diffs], Fri Apr 3 14:07:26 2009 UTC (13 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.43: +38 -21 lines
Diff to previous 1.43.8.43 (colored) to branchpoint 1.43 (colored)

Track referrenced and modified attributes of pages correct, i.e. as
described in pmap(9).

Inherit uncacheable attribute if the page already has non-equiv aliases.

Tidy-up a comment while I'm here.

Revision 1.43.8.43 / (download) - annotate - [select for diffs], Sat Mar 28 11:00:47 2009 UTC (13 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.42: +56 -54 lines
Diff to previous 1.43.8.42 (colored) to branchpoint 1.43 (colored)

Use __func__ everywhere.

Fix-up a message while here.

Revision 1.43.8.42 / (download) - annotate - [select for diffs], Sat Mar 28 10:47:21 2009 UTC (13 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.41: +4 -4 lines
Diff to previous 1.43.8.41 (colored) to branchpoint 1.43 (colored)

Whitespace.

Revision 1.43.8.41 / (download) - annotate - [select for diffs], Fri Mar 27 08:23:17 2009 UTC (13 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.40: +2 -6 lines
Diff to previous 1.43.8.40 (colored) to branchpoint 1.43 (colored)

Simplify locking while UP only.

Revision 1.43.8.40 / (download) - annotate - [select for diffs], Fri Mar 27 08:14:04 2009 UTC (13 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.39: +3 -3 lines
Diff to previous 1.43.8.39 (colored) to branchpoint 1.43 (colored)

Make pmap_hptdump compile.

Revision 1.43.8.39 / (download) - annotate - [select for diffs], Sat Mar 21 10:48:29 2009 UTC (13 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.38: +3 -3 lines
Diff to previous 1.43.8.38 (colored) to branchpoint 1.43 (colored)

No need to apply PTE_PAGE to pa. It's already page aligned.

Revision 1.43.8.38 / (download) - annotate - [select for diffs], Sat Mar 14 12:23:28 2009 UTC (13 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.37: +8 -2 lines
Diff to previous 1.43.8.37 (colored) to branchpoint 1.43 (colored)

Add a comment.

Revision 1.43.8.37 / (download) - annotate - [select for diffs], Sat Mar 14 10:59:13 2009 UTC (13 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.36: +3 -3 lines
Diff to previous 1.43.8.36 (colored) to branchpoint 1.43 (colored)

Remove redundant part of a KASSERT

Revision 1.43.8.36 / (download) - annotate - [select for diffs], Fri Mar 13 12:07:45 2009 UTC (13 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.35: +2 -6 lines
Diff to previous 1.43.8.35 (colored) to branchpoint 1.43 (colored)

Remove some debug code.

Revision 1.43.8.35 / (download) - annotate - [select for diffs], Fri Mar 13 12:05:27 2009 UTC (13 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.34: +8 -5 lines
Diff to previous 1.43.8.34 (colored) to branchpoint 1.43 (colored)

Wrap a line. KNF.

Revision 1.43.8.34 / (download) - annotate - [select for diffs], Fri Mar 13 12:02:57 2009 UTC (13 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.33: +6 -2 lines
Diff to previous 1.43.8.33 (colored) to branchpoint 1.43 (colored)

Add a couple of KASSERTs.

Revision 1.43.8.33 / (download) - annotate - [select for diffs], Sun Mar 8 11:33:09 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.32: +5 -3 lines
Diff to previous 1.43.8.32 (colored) to branchpoint 1.43 (colored)

bcopy -> memcpy

Revision 1.43.8.32 / (download) - annotate - [select for diffs], Sun Mar 1 23:25:09 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.31: +3 -3 lines
Diff to previous 1.43.8.31 (colored) to branchpoint 1.43 (colored)

Fix previous - I forgot a ;

Revision 1.43.8.31 / (download) - annotate - [select for diffs], Sun Mar 1 23:23:50 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.30: +7 -11 lines
Diff to previous 1.43.8.30 (colored) to branchpoint 1.43 (colored)

More DIAGNOSTIC changed to KASSERT.

Revision 1.43.8.30 / (download) - annotate - [select for diffs], Wed Feb 25 20:43:30 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.29: +4 -4 lines
Diff to previous 1.43.8.29 (colored) to branchpoint 1.43 (colored)

s/u_int32_t/uint32_t/

Revision 1.43.8.29 / (download) - annotate - [select for diffs], Tue Feb 24 23:27:27 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.28: +3 -3 lines
Diff to previous 1.43.8.28 (colored) to branchpoint 1.43 (colored)

Re-enable hp700_pagezero_{,un}map

Revision 1.43.8.28 / (download) - annotate - [select for diffs], Tue Feb 24 15:38:51 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.27: +4 -2 lines
Diff to previous 1.43.8.27 (colored) to branchpoint 1.43 (colored)

Fix non-DIAGNOSTIC compiles.

Revision 1.43.8.27 / (download) - annotate - [select for diffs], Mon Feb 23 14:25:50 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.26: +2 -6 lines
Diff to previous 1.43.8.26 (colored) to branchpoint 1.43 (colored)

Remove debug code so that a kernel compiles with clean sources from the
branch.

Revision 1.43.8.26 / (download) - annotate - [select for diffs], Thu Feb 19 18:23:35 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.25: +8 -40 lines
Diff to previous 1.43.8.25 (colored) to branchpoint 1.43 (colored)

Fixup redzone stuff and enable it if DIAGNOSTIC.

Revision 1.43.8.25 / (download) - annotate - [select for diffs], Wed Feb 11 12:08:12 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.24: +147 -41 lines
Diff to previous 1.43.8.24 (colored) to branchpoint 1.43 (colored)

Handle non-equivalent aliases.

Thanks to mjf for help with this.

Revision 1.43.8.24 / (download) - annotate - [select for diffs], Sun Feb 8 11:25:26 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.23: +5 -5 lines
Diff to previous 1.43.8.23 (colored) to branchpoint 1.43 (colored)

Whitespace.

Revision 1.43.8.23 / (download) - annotate - [select for diffs], Tue Feb 3 09:18:15 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.22: +4 -6 lines
Diff to previous 1.43.8.22 (colored) to branchpoint 1.43 (colored)

Make LOCKDEBUG kernels boot.

Revision 1.43.8.22 / (download) - annotate - [select for diffs], Thu Jan 29 23:29:23 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.21: +6 -6 lines
Diff to previous 1.43.8.21 (colored) to branchpoint 1.43 (colored)

Rename a variable to better reflect what it's used for.

Revision 1.43.8.21 / (download) - annotate - [select for diffs], Sun Jan 25 10:29:27 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.20: +10 -17 lines
Diff to previous 1.43.8.20 (colored) to branchpoint 1.43 (colored)

Convert some #ifdef PMAPDEBUG checks to KASSERTs.

Revision 1.43.8.20 / (download) - annotate - [select for diffs], Mon Jan 19 13:16:14 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.19: +11 -9 lines
Diff to previous 1.43.8.19 (colored) to branchpoint 1.43 (colored)

Sync with HEAD.

Revision 1.43.8.19 / (download) - annotate - [select for diffs], Sun Jan 18 18:50:45 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.18: +4 -4 lines
Diff to previous 1.43.8.18 (colored) to branchpoint 1.43 (colored)

Update a comment to make sense to >1 person.

Revision 1.43.8.18 / (download) - annotate - [select for diffs], Sun Jan 18 18:46:37 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.17: +3 -3 lines
Diff to previous 1.43.8.17 (colored) to branchpoint 1.43 (colored)

It's VM_PAGE_TO_PHYS you muppet.

Revision 1.43.8.17 / (download) - annotate - [select for diffs], Sun Jan 18 18:45:16 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.16: +12 -4 lines
Diff to previous 1.43.8.16 (colored) to branchpoint 1.43 (colored)

Before returning a page to UVM flush the cache to avoid aliasing problems.

Revision 1.43.8.16 / (download) - annotate - [select for diffs], Sun Jan 18 18:39:38 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.15: +7 -7 lines
Diff to previous 1.43.8.15 (colored) to branchpoint 1.43 (colored)

Convert pmap_flush_page's 2nd arg from int to bool.

Revision 1.43.8.15 / (download) - annotate - [select for diffs], Sun Jan 18 18:36:07 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.14: +2 -5 lines
Diff to previous 1.43.8.14 (colored) to branchpoint 1.43 (colored)

G/C #if 0 code

Revision 1.43.8.14 / (download) - annotate - [select for diffs], Sun Jan 18 18:32:17 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.13: +3 -3 lines
Diff to previous 1.43.8.13 (colored) to branchpoint 1.43 (colored)

Typo.

Revision 1.42.6.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:02 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.42.6.1: +23 -26 lines
Diff to previous 1.42.6.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Sync with HEAD.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Dec 17 20:51:32 2008 UTC (14 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.46: +3 -4 lines
Diff to previous 1.46 (colored)

kill MALLOC and FREE macros.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Dec 16 22:35:23 2008 UTC (14 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.45: +15 -16 lines
Diff to previous 1.45 (colored)

replace bitmask_snprintf(9) with snprintb(3)

Revision 1.43.8.13 / (download) - annotate - [select for diffs], Mon Dec 15 19:41:58 2008 UTC (14 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.12: +3 -56 lines
Diff to previous 1.43.8.12 (colored) to branchpoint 1.43 (colored)

No need for pmap_bootstrap_pv_page* with PMAP_{,UN}MAP_POOLPAGE.

Revision 1.43.6.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:13:12 2008 UTC (14 years, 1 month ago) by haad
Branch: haad-dm
Changes since 1.43: +11 -12 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Dec 10 11:10:18 2008 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

Make kernel_pmap_ptr a const.  Requested by steve_martin.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Dec 9 20:45:44 2008 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.43: +11 -12 lines
Diff to previous 1.43 (colored)

Make pmap_kernel() a MI macro for struct pmap *kernel_pmap_ptr,
which is now the "API" provided by the pmap module.  pmap_kernel()
remains as the syntactic sugar.

Bonus cosmetics round: move all the pmap_t pointer typedefs into
uvm_pmap.h.

Thanks to Greg Oster for providing cpu muscle for doing test builds.

Revision 1.43.8.12 / (download) - annotate - [select for diffs], Thu Dec 4 20:57:15 2008 UTC (14 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.11: +10 -7 lines
Diff to previous 1.43.8.11 (colored) to branchpoint 1.43 (colored)

Improve debug output.

Revision 1.43.8.11 / (download) - annotate - [select for diffs], Thu Dec 4 20:37:37 2008 UTC (14 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.10: +61 -57 lines
Diff to previous 1.43.8.10 (colored) to branchpoint 1.43 (colored)

Improve locking.

Revision 1.43.8.10 / (download) - annotate - [select for diffs], Thu Dec 4 20:26:34 2008 UTC (14 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.9: +19 -8 lines
Diff to previous 1.43.8.9 (colored) to branchpoint 1.43 (colored)

Whitespace.

Revision 1.43.8.9 / (download) - annotate - [select for diffs], Sat Nov 22 19:45:36 2008 UTC (14 years, 2 months ago) by mjf
Branch: nick-hppapmap
Changes since 1.43.8.8: +3 -3 lines
Diff to previous 1.43.8.8 (colored) to branchpoint 1.43 (colored)

Bah! Fix my previous commit that broke the build. I should have converted
the cast I just removed to uint32_t.

Revision 1.43.8.8 / (download) - annotate - [select for diffs], Sat Nov 22 19:28:18 2008 UTC (14 years, 2 months ago) by mjf
Branch: nick-hppapmap
Changes since 1.43.8.7: +3 -3 lines
Diff to previous 1.43.8.7 (colored) to branchpoint 1.43 (colored)

Don't cast 'pve->pv_va' to int, seeing as its type is vaddr_t (uint32_t).

Revision 1.43.8.7 / (download) - annotate - [select for diffs], Mon Nov 17 11:06:21 2008 UTC (14 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.6: +4 -4 lines
Diff to previous 1.43.8.6 (colored) to branchpoint 1.43 (colored)

Restore PMAP_NC

Revision 1.43.8.6 / (download) - annotate - [select for diffs], Mon Nov 17 07:18:32 2008 UTC (14 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.5: +3 -3 lines
Diff to previous 1.43.8.5 (colored) to branchpoint 1.43 (colored)

Typo in comment.

Revision 1.43.8.5 / (download) - annotate - [select for diffs], Mon Nov 10 13:46:05 2008 UTC (14 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.4: +123 -130 lines
Diff to previous 1.43.8.4 (colored) to branchpoint 1.43 (colored)

Improve BTLB handing.

Revision 1.43.8.4 / (download) - annotate - [select for diffs], Sun Nov 9 15:04:14 2008 UTC (14 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.3: +2 -26 lines
Diff to previous 1.43.8.3 (colored) to branchpoint 1.43 (colored)

G/C some old stuff.

Revision 1.43.8.3 / (download) - annotate - [select for diffs], Sat Nov 1 12:16:53 2008 UTC (14 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.2: +41 -21 lines
Diff to previous 1.43.8.2 (colored) to branchpoint 1.43 (colored)

Pre-allocate pdes for all of KVA.

Correctly pmap_kenter_pa the various memory areas.

Revision 1.43.8.2 / (download) - annotate - [select for diffs], Thu Oct 30 10:20:23 2008 UTC (14 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43.8.1: +12 -15 lines
Diff to previous 1.43.8.1 (colored) to branchpoint 1.43 (colored)

Fix up memory counts and reporting.

Revision 1.43.8.1 / (download) - annotate - [select for diffs], Mon Oct 27 08:02:41 2008 UTC (14 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.43: +1154 -1255 lines
Diff to previous 1.43 (colored)

Commit work in progress.

Revision 1.42.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:12 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.42: +2 -9 lines
Diff to previous 1.42 (colored)

Sync with HEAD.

Revision 1.42.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:32:07 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.42: +2 -9 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

sync with head.

Revision 1.42.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:22:32 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.42: +2 -9 lines
Diff to previous 1.42 (colored)

sync with head.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:23 2008 UTC (14 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, haad-dm
Changes since 1.42: +2 -9 lines
Diff to previous 1.42 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.38.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:04:36 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.38.2.2: +3 -3 lines
Diff to previous 1.38.2.2 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

Sync with HEAD.

Revision 1.16.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:36:43 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.5: +5 -5 lines
Diff to previous 1.16.2.5 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

sync with head

Revision 1.37.10.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:46:22 2008 UTC (15 years ago) by matt
Branch: matt-armv6
Changes since 1.37.10.1: +6 -6 lines
Diff to previous 1.37.10.1 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

sync with HEAD

Revision 1.39.6.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:09:50 2008 UTC (15 years ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.39.6.1: +1 -1 lines
Diff to previous 1.39.6.1 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

Sync with HEAD

Revision 1.42 / (download) - annotate - [select for diffs], Sat Jan 5 00:23:36 2008 UTC (15 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Fix includes

Revision 1.39.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:48:05 2008 UTC (15 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

Sync with HEAD

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:42:57 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.38.2.1: +4 -4 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored)

Sync with HEAD.

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:42:10 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.39: +4 -4 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Sync with head.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Dec 20 08:11:31 2007 UTC (15 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

typo in comment.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Dec 15 00:39:20 2007 UTC (15 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

__FUNCTION__ -> __func__

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:17:05 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Sync with HEAD.

Revision 1.16.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:24:52 2007 UTC (15 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.4: +3 -3 lines
Diff to previous 1.16.2.4 (colored) to branchpoint 1.16 (colored)

sync with head

Revision 1.35.2.3 / (download) - annotate - [select for diffs], Mon Dec 3 18:36:15 2007 UTC (15 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.35.2.2: +3 -3 lines
Diff to previous 1.35.2.2 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

Sync with HEAD.

Revision 1.37.8.1 / (download) - annotate - [select for diffs], Tue Nov 27 19:35:37 2007 UTC (15 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Nov 26 08:33:11 2007 UTC (15 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

pmap_create: M_VMMAP -> M_VMPMAP for pmap.

Revision 1.37.10.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:17:03 2007 UTC (15 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

sync with HEAD

Revision 1.38 / (download) - annotate - [select for diffs], Wed Oct 17 19:54:31 2007 UTC (15 years, 3 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.

Revision 1.35.10.2 / (download) - annotate - [select for diffs], Wed Oct 3 19:23:30 2007 UTC (15 years, 4 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.35.10.1: +2 -17 lines
Diff to previous 1.35.10.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

Sync with HEAD

Revision 1.16.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:26:23 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.3: +44 -56 lines
Diff to previous 1.16.2.3 (colored) to branchpoint 1.16 (colored)

sync with head.

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Sun Jul 15 13:16:06 2007 UTC (15 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.35.2.1: +2 -17 lines
Diff to previous 1.35.2.1 (colored) to branchpoint 1.35 (colored)

Sync with head.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jul 12 14:15:37 2007 UTC (15 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, matt-mips64-base, matt-mips64, hpcarm-cleanup, bouyer-xenamd64
Branch point for: matt-armv6, jmcneill-pm
Changes since 1.36: +2 -17 lines
Diff to previous 1.36 (colored)

Like I said - don't futz with the trapframe in pmap_activate. Instead
update the trapframe space and protection register in cpu_lwp_fork and
setregs.

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 19:59:32 2007 UTC (15 years, 6 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.35: +19 -16 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Sync with head.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Sun May 27 12:27:24 2007 UTC (15 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.35: +19 -16 lines
Diff to previous 1.35 (colored)

Sync with head.

Revision 1.35.10.1 / (download) - annotate - [select for diffs], Tue May 22 17:26:53 2007 UTC (15 years, 8 months ago) by matt
Branch: ppcoea-renovation
Changes since 1.35: +19 -16 lines
Diff to previous 1.35 (colored)

Update to HEAD.

Revision 1.36 / (download) - annotate - [select for diffs], Fri May 18 09:10:50 2007 UTC (15 years, 8 months ago) by skrll
Branch: MAIN
CVS Tags: mjf-ufs-trans-base
Changes since 1.35: +19 -16 lines
Diff to previous 1.35 (colored)

pmap_activate shouldn't play with the trap frame - especially not now it's
called by the MI code.

Implement a way of tracking the vmspace allocated to a process and its
LWPs so that if it changes underneath us we can correct the space id in
the trapframe in pmap_activate for now.

An example of when this happens is vfork/exec.

An exec hook is probably the way to go.

Revision 1.30.4.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:48:17 2007 UTC (15 years, 10 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.30.4.1: +41 -41 lines
Diff to previous 1.30.4.1 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored)

Sync with HEAD.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Mar 4 05:59:55 2007 UTC (15 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, ppcoea-renovation, mjf-ufs-trans
Changes since 1.34: +25 -25 lines
Diff to previous 1.34 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Mar 3 14:37:54 2007 UTC (15 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.33: +18 -18 lines
Diff to previous 1.33 (colored)

Remove hppa_{round,trunc}_page.

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:51:07 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.30: +37 -37 lines
Diff to previous 1.30 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.16.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:06:42 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.2: +37 -37 lines
Diff to previous 1.16.2.2 (colored) to branchpoint 1.16 (colored)

sync with head.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Feb 22 05:46:28 2007 UTC (15 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.32: +14 -14 lines
Diff to previous 1.32 (colored)

TRUE -> true, FALSE -> false

Revision 1.32 / (download) - annotate - [select for diffs], Wed Feb 21 22:59:43 2007 UTC (15 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.31: +20 -20 lines
Diff to previous 1.31 (colored)

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Feb 19 13:19:20 2007 UTC (15 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.30: +8 -8 lines
Diff to previous 1.30 (colored)

Whitespace.

Revision 1.24.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:00:49 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.24.2.1: +5 -5 lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

Sync with head.

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:46:04 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.1: +93 -65 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored)

sync with head.

Revision 1.24.4.1 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:01 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.24: +55 -36 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

sync with head.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Nov 24 22:04:23 2006 UTC (16 years, 2 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Branch point for: yamt-idlelwp
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

s/independant/independent/, from Zafer.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:29:17 2006 UTC (16 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.24: +52 -33 lines
Diff to previous 1.24 (colored)

Sync with head.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Oct 30 16:04:10 2006 UTC (16 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.28: +19 -10 lines
Diff to previous 1.28 (colored)

pmap_kenter_pa the kernel and it's data structures including the kernel
stack.

Fixes the "booting from disk memory corruption bug" which was a result
of pmap_extract silently failing against a scsipi_xfer data area allocat-
ed on kernel stack in _bus_dmamap_load_buffer

Revision 1.28 / (download) - annotate - [select for diffs], Mon Oct 30 08:41:27 2006 UTC (16 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.27: +15 -2 lines
Diff to previous 1.27 (colored)

Add some debug code.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Oct 30 08:39:04 2006 UTC (16 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.26: +7 -7 lines
Diff to previous 1.26 (colored)

Whitespace fixes.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Oct 30 08:30:01 2006 UTC (16 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.25: +2 -5 lines
Diff to previous 1.25 (colored)

G/C pages_per_vm_page

Revision 1.25 / (download) - annotate - [select for diffs], Mon Oct 23 14:15:09 2006 UTC (16 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.24: +17 -17 lines
Diff to previous 1.24 (colored)

KNF and comment update.

Revision 1.18.8.2 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:10 2006 UTC (16 years, 4 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.18.8.1: +5 -5 lines
Diff to previous 1.18.8.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

sync with head.

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:39:52 2006 UTC (16 years, 4 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.18: +50 -41 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

sync with head

Revision 1.18.18.1 / (download) - annotate - [select for diffs], Thu Sep 7 18:09:42 2006 UTC (16 years, 5 months ago) by riz
Branch: abandoned-netbsd-4
Changes since 1.18: +50 -41 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Pull up following revision(s) (requested by skrll in ticket #116):
	sys/arch/hppa/hppa/pmap.c: revision 1.19
	sys/arch/hppa/hppa/pmap.c: revision 1.20
	sys/arch/hppa/hppa/pmap.c: revision 1.21
	sys/arch/hppa/hppa/pmap.c: revision 1.22
	sys/arch/hppa/hppa/pmap.c: revision 1.23
	sys/arch/hppa/hppa/pmap.c: revision 1.24
	sys/arch/hp700/conf/ld.script: revision 1.9
Fix PMAPDEBUG compile by sorting the printf format problems.
KNF a comment.
Use PMAP_PRINTF(PDB_INIT, ...) instead of various #ifdefs and add some
more debug code.
KNF a comment
Fix PR 33702.
Modernise the linker script and make sure we have a symbol after the
link_sets.
Make sure that pmap_bootstrap doesn't tell uvm that some of the kernel
phys pages are free. Previously uvm would very likely allocate the phys
pages used for the link_sets to a MALLOC and they'd get overwritten.
Thanks to David H. Gutteridge for testing various things.
Don't lose a page at the end of the 3 segments we uvm_page_physload.
(end/avail_end are excluive page numbers - as dicussed on tech-kern)

Revision 1.18.8.1 / (download) - annotate - [select for diffs], Sun Sep 3 15:22:57 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.18: +52 -43 lines
Diff to previous 1.18 (colored)

sync with head.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Sep 3 13:40:08 2006 UTC (16 years, 5 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored)

Don't lose a page at the end of the 3 segments we uvm_page_physload.
(end/avail_end are excluive page numbers - as dicussed on tech-kern)

Revision 1.23 / (download) - annotate - [select for diffs], Fri Aug 25 06:49:15 2006 UTC (16 years, 5 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8
Changes since 1.22: +13 -13 lines
Diff to previous 1.22 (colored)

Fix PR 33702.

Modernise the linker script and make sure we have a symbol after the
link_sets.

Make sure that pmap_bootstrap doesn't tell uvm that some of the kernel
phys pages are free. Previously uvm would very likely allocate the phys
pages used for the link_sets to a MALLOC and they'd get overwritten.

Thanks to David H. Gutteridge for testing various things.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Aug 25 06:23:54 2006 UTC (16 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.21: +9 -9 lines
Diff to previous 1.21 (colored)

KNF a comment

Revision 1.21 / (download) - annotate - [select for diffs], Thu Aug 24 07:00:46 2006 UTC (16 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.20: +16 -15 lines
Diff to previous 1.20 (colored)

Use PMAP_PRINTF(PDB_INIT, ...) instead of various #ifdefs and add some
more debug code.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Aug 24 06:54:11 2006 UTC (16 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.19: +6 -4 lines
Diff to previous 1.19 (colored)

KNF a comment.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Aug 24 06:50:48 2006 UTC (16 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.18: +16 -10 lines
Diff to previous 1.18 (colored)

Fix PMAPDEBUG compile by sorting the printf format problems.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:52:02 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16: +30 -30 lines
Diff to previous 1.16 (colored)

sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Dec 24 20:07:04 2005 UTC (17 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb, abandoned-netbsd-4
Changes since 1.17: +30 -30 lines
Diff to previous 1.17 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Dec 11 12:17:37 2005 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

merge ktrace-lwp.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Thu Nov 10 13:56:31 2005 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.1: +9 -4 lines
Diff to previous 1.8.2.1 (colored) next main 1.9 (colored)

Sync with HEAD. Here we go again...

Revision 1.12.4.1 / (download) - annotate - [select for diffs], Wed Jun 8 11:33:54 2005 UTC (17 years, 8 months ago) by tron
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.12: +7 -2 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Pull up revision 1.16 (requested by chs in ticket #1980):
in pmap_enter(), preset the mod/ref bits based on the flags argument.
fixes 25640.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Wed Jun 8 11:31:58 2005 UTC (17 years, 8 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-0-3-RELEASE
Changes since 1.12: +7 -2 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Pull up revision 1.16 (requested by chs in ticket #1980):
in pmap_enter(), preset the mod/ref bits based on the flags argument.
fixes 25640.

Revision 1.14.10.1 / (download) - annotate - [select for diffs], Mon Jun 6 12:16:19 2005 UTC (17 years, 8 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.14: +7 -2 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Pull up revision 1.16 (requested by chs in ticket #424):
in pmap_enter(), preset the mod/ref bits based on the flags argument.
fixes 25640.

Revision 1.16 / (download) - annotate - [select for diffs], Sun May 29 15:56:59 2005 UTC (17 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.15: +7 -2 lines
Diff to previous 1.15 (colored)

in pmap_enter(), preset the mod/ref bits based on the flags argument.
fixes 25640.

Revision 1.15 / (download) - annotate - [select for diffs], Sat May 7 15:54:46 2005 UTC (17 years, 9 months ago) by chs
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

in pmap_protect(), remove the assertion that any entries modified must be
managed.  after the yamt-km changes, the sti driver needs to add execute
permission to the (now unmanaged) mapping for its copy of the card firmware,
and this appears to work fine already.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:35:29 2004 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8: +79 -115 lines
Diff to previous 1.8 (colored)

Sync with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 18 23:21:35 2004 UTC (18 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: netbsd-3
Changes since 1.13: +2 -5 lines
Diff to previous 1.13 (colored)

add hppa support for RAS, context stuff, siginfo and scheduler activations:
 - add a RAS hook in cpu_switch().
 - fill in the definition of struct mcontext.
 - implement cpu_upcall(), cpu_getmcontext(), cpu_getmcontext() and
   cpu_switchto().
 - for now, force the right priviledge bits and space regs in setcontext().
 - use correct values for __SIMPLELOCK_*.
 - move the user stack to start at a multiple of the pthread stack size
   so that libpthread can use the sp-masking trick.

Revision 1.13 / (download) - annotate - [select for diffs], Sun May 16 17:07:07 2004 UTC (18 years, 8 months ago) by chs
Branch: MAIN
Changes since 1.12: +2 -4 lines
Diff to previous 1.12 (colored)

in pmap_protect(), don't just return if the desired permissions include write.
we could be removing execute permission.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 5 02:25:32 2004 UTC (19 years, 1 month ago) by chs
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2-0, netbsd-2
Changes since 1.11: +8 -5 lines
Diff to previous 1.11 (colored)

add a PMAP_NC flag for pmap_kenter_pa() to specific a non-cached mapping.
use this in mbus_dmamem_map() to fix corruption of DMA memory.
note that this TLB bit is ignored on some CPUs (PA7100 and probably
others of that era), so this doesn't fix the problem in general,
but it does work on newer models and will make things easier later.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Nov 28 19:02:25 2003 UTC (19 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.10: +46 -84 lines
Diff to previous 1.10 (colored)

de-__P, remove register, ansify.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Aug 31 01:26:35 2003 UTC (19 years, 5 months ago) by chs
Branch: MAIN
Changes since 1.9: +30 -29 lines
Diff to previous 1.9 (colored)

update for LWPs, and some lite cleanup.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jul 15 02:29:39 2003 UTC (19 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.8: +4 -1 lines
Diff to previous 1.8 (colored)

__KERNEL_RCSID()

Revision 1.8 / (download) - annotate - [select for diffs], Sat May 10 21:10:30 2003 UTC (19 years, 8 months ago) by thorpej
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.7: +23 -4 lines
Diff to previous 1.7 (colored)

Back out the following chagne:
    http://mail-index.netbsd.org/source-changes/2003/05/08/0068.html

There were some side-effects that I didn't anticipate, and fixing them
is proving to be more difficult than I thought, do just eject for now.
Maybe one day we can look at this again.

Fixes PR kern/21517.

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 8 18:13:16 2003 UTC (19 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +5 -24 lines
Diff to previous 1.6 (colored)

Simplify the way the bounds of the managed kernel virtual address
space is advertised to UVM by making virtual_avail and virtual_end
first-class exported variables by UVM.  Machine-dependent code is
responsible for initializing them before main() is called.  Anything
that steals KVA must adjust these variables accordingly.

This reduces the number of instances of this info from 3 to 1, and
simplifies the pmap(9) interface by removing the pmap_virtual_space()
function call, and removing two arguments from pmap_steal_memory().

This also eliminates some kludges such as having to burn kernel_map
entries on space used by the kernel and stolen KVA.

This also eliminates use of VM_{MIN,MAX}_KERNEL_ADDRESS from MI code,
this giving MD code greater flexibility over the bounds of the managed
kernel virtual address space if a given port's specific platforms can
vary in this regard (this is especially true of the evb* ports).

Revision 1.6 / (download) - annotate - [select for diffs], Tue Apr 1 20:50:12 2003 UTC (19 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.5: +2 -6 lines
Diff to previous 1.5 (colored)

Use PAGE_SIZE rather than NBPG.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:35:47 2002 UTC (20 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.1.2.2: +535 -405 lines
Diff to previous 1.1.2.2 (colored) next main 1.2 (colored)

sync kqueue branch with HEAD

Revision 1.1.4.3 / (download) - annotate - [select for diffs], Sat Aug 31 13:44:46 2002 UTC (20 years, 5 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.1.4.2: +535 -405 lines
Diff to previous 1.1.4.2 (colored) next main 1.2 (colored)

catch up with -current.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Aug 25 20:19:59 2002 UTC (20 years, 5 months ago) by fredette
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, fvdl_fs64_base
Changes since 1.4: +75 -43 lines
Diff to previous 1.4 (colored)

No longer use BTLB entries to map the entire address spaces of I/O subsystems,
since BTLB entries can be scarce and very little of an I/O subsystem normally
needs to be mapped.

Instead, the pmap now allows mappings of I/O space to be entered with
pmap_kenter_pa.  bus_space mappings for small amounts of I/O space (as for
virtually all devices) are made this way, with BTLB entries still used for
large mappings for things like framebuffers.

This has led to more and cleaned-up uses of bus_space(9) and has caused
some autoconf cleanup.  Also, kgdb is now attached and connected before
autoconfiguration, which is much earlier than before.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 19 18:58:26 2002 UTC (20 years, 5 months ago) by fredette
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Cleaned up BTLB support.  There are no longer BTLB function pointers
in struct hppa_cpu_info or anywhere else, now there are just hppa_btlb_*
functions.  Added support for machines with split I/D and variable-range
BTLBs.  Added support for purging BTLB entries.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Aug 11 22:29:08 2002 UTC (20 years, 5 months ago) by fredette
Branch: MAIN
Changes since 1.2: +255 -243 lines
Diff to previous 1.2 (colored)

Significant pmap changes to no longer rely on the "U-bit" (TLB_UNCACHEABLE)
to deal with aliasing of regular memory pages, because many processors don't
support it.

Now, the pmap marks all mappings of a page that has any non-equivalent
aliasing and any writable mapping, and the fault handlers watch for this
and flush other mappings out of the TLB and cache before (re)entering a
conflicting mapping.

When a page has non-equivalent aliasing, only one writable mapping at
a time may be in the TLB and cache.  If no writable mapping is in the
TLB and cache, any number of read-only mappings may be.

The PA7100LC/PA7300LC fault handlers have not been converted yet.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 5 20:58:35 2002 UTC (20 years, 6 months ago) by fredette
Branch: MAIN
Changes since 1.1: +256 -170 lines
Diff to previous 1.1 (colored)

Made changes in where/how the kernel is linked, and how the pmap
maps it with BTLB entries, to minimize the number of BTLB entries
needed.

Because the CPU type was often guessed incorrectly, the mapping of
HP board number to system name now includes information about the
expected CPU type.

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Sun Jul 14 17:47:12 2002 UTC (20 years, 6 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.1.4.1: +1865 -0 lines
Diff to previous 1.1.4.1 (colored)

catch up with -current.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:37:05 2002 UTC (20 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.1.2.1: +1865 -0 lines
Diff to previous 1.1.2.1 (colored)

catch up with -current on kqueue branch

Revision 1.1.4.1, Wed Jun 5 01:04:20 2002 UTC (20 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.1: +0 -1865 lines
FILE REMOVED

file pmap.c was added on branch gehenna-devsw on 2002-07-14 17:47:12 +0000

Revision 1.1.2.1, Wed Jun 5 01:04:20 2002 UTC (20 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.1: +0 -1865 lines
FILE REMOVED

file pmap.c was added on branch kqueue on 2002-06-23 17:37:05 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 5 01:04:20 2002 UTC (20 years, 8 months ago) by fredette
Branch: MAIN
Branch point for: kqueue, gehenna-devsw

Added files to support generic HP PA-RISC based machines.  hp700-specific
files to follow.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>