The NetBSD Project

CVS log for src/sys/arch/mips/mips/cpu_subr.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.64 / (download) - annotate - [select for diffs], Wed Oct 4 20:28:05 2023 UTC (5 months, 3 weeks ago) by ad
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.63: +6 -8 lines
Diff to previous 1.63 (colored) to selected 1.4 (colored)

Eliminate l->l_ncsw and l->l_nivcsw.  From memory think they were added
before we had per-LWP struct rusage; the same is now tracked there.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Feb 26 07:13:54 2023 UTC (13 months ago) by skrll
Branch: MAIN
Changes since 1.62: +8 -8 lines
Diff to previous 1.62 (colored) to selected 1.4 (colored)

ci_data.cpu_kcpuset -> ci_kcpuset

NFCI.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jul 20 10:07:49 2022 UTC (20 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.61: +6 -4 lines
Diff to previous 1.61 (colored) to selected 1.4 (colored)

mips: Fix cpuids synchronization at boot.

Revision 1.61 / (download) - annotate - [select for diffs], Mon Mar 28 12:38:58 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.60: +3 -2 lines
Diff to previous 1.60 (colored) to selected 1.4 (colored)

sys: Split struct device into a private device_impl.h.

Include this only inside autoconf itself, and a few files that abuse
autoconf in ways I can't confidently make easy fixes for.

XXX kernel ABI change requires bump -- no more use of struct device
internals allowed, previously done by some drivers

Revision 1.60 / (download) - annotate - [select for diffs], Thu Mar 3 06:27:41 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.59: +7 -2 lines
Diff to previous 1.59 (colored) to selected 1.4 (colored)

mips: Carefully use device_set_private for cpuN.

But don't do it in cpu_attach_common because the callers aren't set
up right -- instead leave a comment about what's wrong, to be dealt
with later.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Nov 16 06:11:52 2021 UTC (2 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) to selected 1.4 (colored)

Use the architecture documented name ULR for the RDHWR user local
register.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Aug 17 15:22:51 2020 UTC (3 years, 7 months ago) by skrll
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.57: +3 -4 lines
Diff to previous 1.57 (colored) to selected 1.4 (colored)

Give a hint to what the IPI numbers are, i.e. "(A/R)" meaning active and
requested respectively

Revision 1.57 / (download) - annotate - [select for diffs], Sun Aug 9 06:26:49 2020 UTC (3 years, 7 months ago) by skrll
Branch: MAIN
Changes since 1.56: +3 -2 lines
Diff to previous 1.56 (colored) to selected 1.4 (colored)

Don't kcpuset_clone every pmap_tlb_shootdown_bystanders.  Instead allocate
a kcpuset_t per cpu_info and use that.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Jul 21 06:01:10 2020 UTC (3 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.55: +13 -9 lines
Diff to previous 1.55 (colored) to selected 1.4 (colored)

Support "boot -1" to start an MP kernel in uniprocessor mode.
Sort sys/* includes while here.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jul 20 14:59:57 2020 UTC (3 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.54: +2 -8 lines
Diff to previous 1.54 (colored) to selected 1.4 (colored)

No need for cpu_hatch_lock after all since we hatch secondaries one at a time

Revision 1.54 / (download) - annotate - [select for diffs], Mon Jul 20 14:38:38 2020 UTC (3 years, 8 months ago) by skrll
Branch: MAIN
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored) to selected 1.4 (colored)

Fix non-MULTIPROCESSOR build

Revision 1.53 / (download) - annotate - [select for diffs], Mon Jul 20 14:19:41 2020 UTC (3 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.52: +10 -4 lines
Diff to previous 1.52 (colored) to selected 1.4 (colored)

Serialize CPU hatch annoucement printfs and wait for CPUs to start before
returning from cpu_boot_secondary_processors.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Jul 20 10:53:47 2020 UTC (3 years, 8 months ago) by skrll
Branch: MAIN
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored) to selected 1.4 (colored)

Move exc_step definition under MIPS64_OCTEON and use it in the zeroising
memset as length for correctness.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Jul 20 03:26:07 2020 UTC (3 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.50: +7 -5 lines
Diff to previous 1.50 (colored) to selected 1.4 (colored)

Less magic numbers.

Revision 1.50 / (download) - annotate - [select for diffs], Sun Jul 19 09:30:08 2020 UTC (3 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.49: +20 -2 lines
Diff to previous 1.49 (colored) to selected 1.4 (colored)

A little KNF.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Jul 17 21:59:30 2020 UTC (3 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.48: +5 -4 lines
Diff to previous 1.48 (colored) to selected 1.4 (colored)

Remove 2 CPU limit in OCTEON interrupt controller driver.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Jun 14 06:50:31 2020 UTC (3 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.47: +10 -11 lines
Diff to previous 1.47 (colored) to selected 1.4 (colored)

Retire MIPS_CP0FL_USERLOCAL and MIPS_CP0FL_HWRENA and the flawed
logic that tried to deal with a MIPS processor that supports the ULR
CP0 register.  Probe correctly and save probed info somewhere we can
actually use it.  Avoids problems where libc expects ULR set to a
value but the CPU definition in the CPU table didn't have the right
combination of magic flags and thus never set ULR in the first place.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Jun 11 19:20:44 2020 UTC (3 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored) to selected 1.4 (colored)

uvm_availmem(): give it a boolean argument to specify whether a recent
cached value will do, or if the very latest total must be fetched.  It can
be called thousands of times a second and fetching the totals impacts not
only the calling LWP but other CPUs doing unrelated activity in the VM
system.

Revision 1.33.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:45 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.33.4.1: +36 -68 lines
Diff to previous 1.33.4.1 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored) to selected 1.4 (colored)

Merge changes from current as of 20200406

Revision 1.44.2.2 / (download) - annotate - [select for diffs], Sat Feb 29 20:18:27 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.44.2.1: +3 -3 lines
Diff to previous 1.44.2.1 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored) to selected 1.4 (colored)

Sync with head.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Feb 15 07:20:41 2020 UTC (4 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) to selected 1.4 (colored)

Remove the 'slow' argument from cpu_topology_set and create a new
function cpu_topology_setspeed which sets the relative speed of the
cpu.

This allows cpu_topology_set is be used at cpu hatch time.  The relative
speed is only known once all cpus have hatched/attached

OK ad@

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:27 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored) to selected 1.4 (colored)

Sync with head.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jan 9 16:35:03 2020 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored) to selected 1.4 (colored)

- Many small tweaks to the SMT awareness in the scheduler.  It does a much
  better job now at keeping all physical CPUs busy, while using the extra
  threads to help out.  In particular, during preempt() if we're using SMT,
  try to find a better CPU to run on and teleport curlwp there.

- Change the CPU topology stuff so it can work on asymmetric systems.  This
  mainly entails rearranging one of the CPU lists so it makes sense in all
  configurations.

- Add a parameter to cpu_topology_set() to note that a CPU is "slow", for
  where there are fast CPUs and slow CPUs, like with the Rockwell RK3399.
  Extend the SMT awareness to try and handle that situation too (keep fast
  CPUs busy, use slow CPUs as helpers).

Revision 1.44 / (download) - annotate - [select for diffs], Tue Dec 31 13:07:11 2019 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: ad-namecache-base
Branch point for: ad-namecache
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored) to selected 1.4 (colored)

Rename uvm_free() -> uvm_availmem().

Revision 1.43 / (download) - annotate - [select for diffs], Fri Dec 27 09:45:26 2019 UTC (4 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored) to selected 1.4 (colored)

s/sucess/success/ in comment.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Dec 21 13:00:22 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) to selected 1.4 (colored)

uvmexp.free -> uvm_free()

Revision 1.41 / (download) - annotate - [select for diffs], Fri Dec 20 21:05:33 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored) to selected 1.4 (colored)

Some more CPU topology stuff:

- Use cegger@'s ACPI SRAT parsing code to figure out NUMA node ID for each
  CPU as it is attached.

- For scheduler experiments with SMT, flag CPUs with the lowest numbered SMT
  IDs as "primaries", link back to the primaries from secondaries, and build
  a circular list of CPUs in each package with identical SMT IDs.

- No need for package/core/smt/numa IDs to be anything other than a u_int.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Dec 3 15:20:59 2019 UTC (4 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.39: +4 -2 lines
Diff to previous 1.39 (colored) to selected 1.4 (colored)

Use __insn_barrier to enforce ordering in l_ncsw loops.

(Only need ordering observable by interruption, not by other CPUs.)

Revision 1.39 / (download) - annotate - [select for diffs], Mon Dec 2 23:22:43 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.38: +4 -5 lines
Diff to previous 1.38 (colored) to selected 1.4 (colored)

Take the basic CPU topology information we already collect, and use it
to make circular lists of CPU siblings in the same core, and in the
same package.  Nothing fancy, just enough to have a bit of fun in the
scheduler trying out different tactics.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Dec 1 14:52:13 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.37: +13 -7 lines
Diff to previous 1.37 (colored) to selected 1.4 (colored)

Make cpu_intr_p() safe to use anywhere, i.e. outside assertions:

Don't call kpreempt_disable() / kpreempt_enable() to make sure we're not
preempted while using the value of curcpu().  Instead, observe the value of
l_ncsw before and after the check to see if we have been preempted.  If
we have been preempted, then we need to retry the read.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Nov 24 15:37:39 2019 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) to selected 1.4 (colored)

Typo.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Nov 23 19:40:35 2019 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.35: +19 -49 lines
Diff to previous 1.35 (colored) to selected 1.4 (colored)

cpu_need_resched():

- Remove all code that should be MI, leaving the bare minimum under arch/.
- Make the required actions very explicit.
- Pass in LWP pointer for convenience.
- When a trap is required on another CPU, have the IPI set it locally.
- Expunge cpu_did_resched().

Revision 1.35 / (download) - annotate - [select for diffs], Thu Nov 21 19:57:23 2019 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.34: +2 -11 lines
Diff to previous 1.34 (colored) to selected 1.4 (colored)

mi_userret(): take care of calling preempt(), set spc_curpriority directly,
and remove MD code that does the same.

Revision 1.33.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:30 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.33: +5 -5 lines
Diff to previous 1.33 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Sat Jan 26 22:00:04 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.33: +5 -5 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jan 21 08:04:26 2019 UTC (5 years, 2 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.33: +5 -5 lines
Diff to previous 1.33 (colored) to selected 1.4 (colored)

Use ci_{package,core,smt}_id instead of ci_data.cpu_{package,core,smt}_id

NFC

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 13:29:01 2018 UTC (5 years, 11 months ago) by bouyer
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.32: +5 -3 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.4 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #722):
	sys/arch/mips/mips/cpu_subr.c: revision 1.33
spl leak, found by mootja

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:28 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.16.2.1: +236 -148 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored) to selected 1.4 (colored)

update from HEAD

Revision 1.17.4.5 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:45 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.17.4.4: +9 -7 lines
Diff to previous 1.17.4.4 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.33 / (download) - annotate - [select for diffs], Sun Aug 20 11:06:35 2017 UTC (6 years, 7 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, 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, nick-nhusb-base-20170825
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.32: +5 -3 lines
Diff to previous 1.32 (colored) to selected 1.4 (colored)

spl leak, found by mootja

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Thu May 11 02:58:35 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored) next main 1.32 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.32 / (download) - annotate - [select for diffs], Sun May 7 04:14:20 2017 UTC (6 years, 10 months ago) by skrll
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored) to selected 1.4 (colored)

KNF

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:31 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.27.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:17 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.27.2.1: +5 -5 lines
Diff to previous 1.27.2.1 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.31 / (download) - annotate - [select for diffs], Thu Mar 16 16:13:20 2017 UTC (7 years ago) by chs
Branch: MAIN
CVS Tags: prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: prg-localcount2
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (colored) to selected 1.4 (colored)

allow pcu_save() and pcu_discard() to be called on other threads,
ptrace needs to use it that way.

Revision 1.17.4.4 / (download) - annotate - [select for diffs], Mon Dec 5 10:54:55 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.17.4.3: +20 -24 lines
Diff to previous 1.17.4.3 (colored) to branchpoint 1.17 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:02 2016 UTC (7 years, 4 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.27: +21 -25 lines
Diff to previous 1.27 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.30 / (download) - annotate - [select for diffs], Mon Oct 31 12:49:04 2016 UTC (7 years, 4 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.29: +20 -24 lines
Diff to previous 1.29 (colored) to selected 1.4 (colored)

Pre-allocate some kcpuset_ts so that we don't try and allocate in the
wrong context.

Revision 1.17.4.3 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:32 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.17.4.2: +40 -28 lines
Diff to previous 1.17.4.2 (colored) to branchpoint 1.17 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.29 / (download) - annotate - [select for diffs], Tue Aug 23 07:29:46 2016 UTC (7 years, 7 months ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20161004, localcount-20160914
Changes since 1.28: +15 -15 lines
Diff to previous 1.28 (colored) to selected 1.4 (colored)

Whitespcae

Revision 1.28 / (download) - annotate - [select for diffs], Thu Aug 18 14:39:04 2016 UTC (7 years, 7 months ago) by skrll
Branch: MAIN
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored) to selected 1.4 (colored)

Initialise ci_pmap_kern_segtab in cpu_info_alloc

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jul 11 16:15:36 2016 UTC (7 years, 8 months ago) by matt
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726
Branch point for: pgoyette-localcount
Changes since 1.26: +32 -21 lines
Diff to previous 1.26 (colored) to selected 1.4 (colored)

Change MIPS to use the common pmap code.
Switch to 8KB pages on CPUs with a R4K MMU.
Simplify cache code.
Merge in most of changes from matt-mips64 branch

Revision 1.17.4.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:47 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.17.4.1: +157 -112 lines
Diff to previous 1.17.4.1 (colored) to branchpoint 1.17 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jun 11 15:50:17 2015 UTC (8 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored) to selected 1.4 (colored)

Define (but not use) separate kernel and user pagetables.
Move to the new names.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jun 11 08:22:09 2015 UTC (8 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.4 (colored)

Add struct pmap_limits and pm_{min,max}addr from uvm/pmap/map.h and use it to
store avail_start, avail_end, virtual_start, and virtual_end.
Remove iospace and let emips just bump pmap_limits.virtual_start to get the
VA space it needs.
pmap_segtab.c is almost identical to uvm/pmap/pmap_segtab.c now.  It won't
be long until we switch to the uvm/pmap one.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jun 10 22:31:00 2015 UTC (8 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.23: +140 -97 lines
Diff to previous 1.23 (colored) to selected 1.4 (colored)

Transition from __cpuset_t to kcpuset_t *.  This brings the local pmap one
step closer to uvm/pmap, its eventual replacement.  Tested on ERLITE MP kernel.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jun 6 21:03:45 2015 UTC (8 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.22: +14 -12 lines
Diff to previous 1.22 (colored) to selected 1.4 (colored)

Add more KASSERTs
After each CPU is marked running, wait a small of time or until it shows
up in kcpuset_running.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jun 6 17:46:47 2015 UTC (8 years, 9 months ago) by macallan
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored) to selected 1.4 (colored)

use PRIxCPUSET
now this builds again on o32

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:02 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.17: +59 -26 lines
Diff to previous 1.17 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jun 4 05:32:05 2015 UTC (8 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.20: +17 -11 lines
Diff to previous 1.20 (colored) to selected 1.4 (colored)

Add a verbose message when booting secondary cpus.
Fix octeon cpu_info_alloc

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jun 1 22:55:13 2015 UTC (8 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.19: +52 -23 lines
Diff to previous 1.19 (colored) to selected 1.4 (colored)

Rework cavium support in preparation for MULTIPROCESSOR support

Revision 1.19 / (download) - annotate - [select for diffs], Tue May 26 02:09:34 2015 UTC (8 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.18: +2 -5 lines
Diff to previous 1.18 (colored) to selected 1.4 (colored)

Call cpu_attach_common to attach the per-cpu counters.

Revision 1.18 / (download) - annotate - [select for diffs], Mon May 18 01:32:52 2015 UTC (8 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored) to selected 1.4 (colored)

Print cpu_model after copyright.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:12 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.16: +10 -2 lines
Diff to previous 1.16 (colored) to selected 1.4 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.16.12.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:02 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.16: +10 -2 lines
Diff to previous 1.16 (colored) next main 1.17 (colored) to selected 1.4 (colored)

Rebase.

Revision 1.17 / (download) - annotate - [select for diffs], Mon May 19 22:47:53 2014 UTC (9 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, 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
Branch point for: nick-nhusb
Changes since 1.16: +10 -2 lines
Diff to previous 1.16 (colored) to selected 1.4 (colored)

Implement MI IPI interface with cross-call support.

Revision 1.1.2.26 / (download) - annotate - [select for diffs], Sat Aug 4 07:20:31 2012 UTC (11 years, 7 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.25: +11 -2 lines
Diff to previous 1.1.2.25 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.4 (colored)

Make MIPS use a multi-level page table for the kernel address space.
(just like the user address does).   XXX fix mips1

Revision 1.14.6.2 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:05 2012 UTC (11 years, 9 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.14.6.1: +15 -3 lines
Diff to previous 1.14.6.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored) to selected 1.4 (colored)

sync to latest -current.

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Wed May 23 10:07:45 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.14.2.1: +15 -3 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored) to selected 1.4 (colored)

sync with head.

Revision 1.14.8.1 / (download) - annotate - [select for diffs], Mon May 21 15:25:56 2012 UTC (11 years, 10 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.14: +15 -3 lines
Diff to previous 1.14 (colored) next main 1.15 (colored) to selected 1.4 (colored)

Pull up following revision(s) (requested by martin in ticket #274):
	sys/arch/amd64/amd64/process_machdep.c: revision 1.20
	sys/kern/sys_lwp.c: revision 1.54
	sys/arch/sparc64/sparc64/machdep.c: revision 1.267
	sys/arch/mips/mips/cpu_subr.c: revision 1.16
	sys/arch/vax/vax/machdep.c: revision 1.188
	sys/sys/lwp.h: revision 1.161
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.98
	sys/arch/alpha/alpha/machdep.c: revision 1.339
	sys/compat/sys/ucontext.h: revision 1.6
	sys/arch/hppa/hppa/hppa_machdep.c: revision 1.28
	distrib/sets/lists/tests/mi: revision 1.469
	sys/arch/powerpc/powerpc/sig_machdep.c: revision 1.42
	tests/lib/libc/sys/t_lwp_create.c: revision 1.1
	tests/lib/libc/sys/Makefile: revision 1.23
	sys/arch/arm/arm/sig_machdep.c: revision 1.42
	sys/arch/amd64/include/mcontext.h: revision 1.15
	sys/arch/amd64/amd64/machdep.c: revision 1.183
	sys/arch/sh3/sh3/sh3_machdep.c: revision 1.99
	sys/arch/i386/i386/machdep.c: revision 1.727
	sys/compat/netbsd32/netbsd32_lwp.c: revision 1.13
	sys/arch/sparc/sparc/machdep.c: revision 1.319
	sys/arch/amd64/amd64/netbsd32_machdep.c: revision 1.76
	sys/arch/m68k/m68k/sig_machdep.c: revision 1.49
	sys/sys/ucontext.h: revision 1.16
	sys/arch/mips/mips/netbsd32_machdep.c: revision 1.9
	lib/libc/sys/_lwp_create.2: revision 1.5
Calling _lwp_create() with a bogus ucontext could trigger a kernel
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.
To avoid this, introduce a cpu_mcontext_validate() function and move all
sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
compat mess slightly and add a cpu_mcontext32_validate() cousin there.
Add an exhaustive atf test case, based partly on code from Joel Sing.
Should finally fix the remaining open part of PR kern/43903.

Revision 1.16 / (download) - annotate - [select for diffs], Mon May 21 14:15:18 2012 UTC (11 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, 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-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy
Changes since 1.15: +15 -3 lines
Diff to previous 1.15 (colored) to selected 1.4 (colored)

Calling _lwp_create() with a bogus ucontext could trigger a kernel
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.

To avoid this, introduce a cpu_mcontext_validate() function and move all
sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
compat mess slightly and add a cpu_mcontext32_validate() cousin there.

Add an exhaustive atf test case, based partly on code from Joel Sing.

Should finally fix the remaining open part of PR kern/43903.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:39 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.14: +2 -76 lines
Diff to previous 1.14 (colored) to selected 1.4 (colored)

sync with head

Revision 1.1.2.25 / (download) - annotate - [select for diffs], Mon Feb 27 17:04:39 2012 UTC (12 years, 1 month ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.24: +57 -13 lines
Diff to previous 1.1.2.24 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

Count all traps types.

Revision 1.14.6.1 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:31 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.14: +2 -76 lines
Diff to previous 1.14 (colored) to selected 1.4 (colored)

sync to -current.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:16 2012 UTC (12 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3
Changes since 1.14: +2 -76 lines
Diff to previous 1.14 (colored) to selected 1.4 (colored)

Remove COMPAT_SA / KERN_SA.  Welcome to 6.99.3!
Approved by core@.

Revision 1.1.2.24 / (download) - annotate - [select for diffs], Thu Feb 16 10:47:06 2012 UTC (12 years, 1 month ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.23: +5 -1 lines
Diff to previous 1.1.2.23 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

When booting a N32 MP kernel, make sure to setup the ksegx mapping.

Revision 1.1.2.23 / (download) - annotate - [select for diffs], Thu Jan 19 08:28:49 2012 UTC (12 years, 2 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.22: +0 -12 lines
Diff to previous 1.1.2.22 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

When running an N32 kernel, run it with 64-bit addresses even though the
kernel itself will only use 32-bit addresses.  There are exceptions.
bus_space_handles are now register_t instead of intptr_t.  This allows them
to contain XKPHYS addresses.  Now bus_space can use XKPHYS addresses and
not required non-KSEG1 devices to be mapped in KSEG2 thereby leaving more
KSEG2 space for the kernel to use.

The cache range routines (but not index routines) now take a register_t
instead of vaddr_t so they can too take a XKPHYS address.  This allows the
pmap to use a page's XKPHYS address to clean sync the icache thereby avoiding
massive icache invalidations.

Since "cache" instruction effects are global to all CPUs and their caches, we
can use the above to greatly simplify MP page isyncs.  If using an O32 kernel
with pages outside KSEG0, index ops still need to be performed since there
isn't an a quick way of mapping the page.

Revision 1.1.2.22 / (download) - annotate - [select for diffs], Tue Dec 6 17:49:34 2011 UTC (12 years, 3 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.21: +13 -5 lines
Diff to previous 1.1.2.21 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

Allocate the locks from the same page we allocate the cpu_info and
pmap_tlb_info structure.  This assures they will be in KSEG0.

Revision 1.1.2.21 / (download) - annotate - [select for diffs], Sat Dec 3 01:56:55 2011 UTC (12 years, 3 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.20: +8 -2 lines
Diff to previous 1.1.2.20 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

Rework things a bit for the XLR/XLS/XLP TLB.  Before dealing with the TLB when
MP on the XL?, disable interrupts and take out a lock to prevent concurrent
updates to the TLB.  In the TLB miss and invalid exception handlers, if the
lock is already owned by another CPU, simply return from the exception and
let it continue or restart as appropriate.  This prevents concurrent TLB
exceptions in multiple threads from possibly updating the TLB multiple times
for a single address.

Revision 1.1.2.20 / (download) - annotate - [select for diffs], Tue Nov 29 07:48:31 2011 UTC (12 years, 4 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.19: +20 -0 lines
Diff to previous 1.1.2.19 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

Take part of the KSEG2 space and use it to "almost" direct another 256MB
of memory so that N32 kernels can make use of ram outside of KSEG0.  This
allows N32 kernels to be useful on systems with 4GB of RAM or more.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Aug 16 06:58:15 2011 UTC (12 years, 7 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.13: +15 -2 lines
Diff to previous 1.13 (colored) to selected 1.4 (colored)

Add support for the MIPS DSP ASE (as a second PCU).

Revision 1.1.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:06:05 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.1: +1152 -0 lines
Diff to previous 1.1 (colored) next main 1.2 (colored) to selected 1.4 (colored)

Sync with HEAD.

Revision 1.1.4.3 / (download) - annotate - [select for diffs], Tue May 31 03:04:09 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.1.4.2: +4 -3 lines
Diff to previous 1.1.4.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.4 (colored)

sync with head

Revision 1.1.2.19 / (download) - annotate - [select for diffs], Sat May 28 02:24:47 2011 UTC (12 years, 10 months ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.1.2.18: +2 -2 lines
Diff to previous 1.1.2.18 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

use "intr" instead of "int" for clock evcnt names

Revision 1.1.2.18 / (download) - annotate - [select for diffs], Thu May 26 19:21:56 2011 UTC (12 years, 10 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.17: +5 -5 lines
Diff to previous 1.1.2.17 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

Add MIPS64_RMIXL (XLR/XLS) and MIPS64R2_RMIXL (XLP).  This allows the kernel
to treat this special which is needed for MP support. When accessing the TLB,
always lock the TLB before hand.  If in the miss handlers, the TLB is already
locked let trap deal with the exeception.

Revision 1.13 / (download) - annotate - [select for diffs], Mon May 2 00:29:54 2011 UTC (12 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.12: +4 -3 lines
Diff to previous 1.12 (colored) to selected 1.4 (colored)

Extend PCU:
- Add pcu_ops_t::pcu_state_release() operation for PCU_RELEASE case.
- Add pcu_switchpoint() to perform release operation on context switch.
- Sprinkle const, misc.  Also, sync MIPS with changes.

Per discussions with matt@.

Revision 1.12 / (download) - annotate - [select for diffs], Mon May 2 00:17:35 2011 UTC (12 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.4 (colored)

Add an IPI for xcalls.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Apr 29 22:13:49 2011 UTC (12 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored) to selected 1.4 (colored)

whitespace cleanup

Revision 1.1.2.17 / (download) - annotate - [select for diffs], Fri Apr 29 08:26:24 2011 UTC (12 years, 11 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.16: +288 -64 lines
Diff to previous 1.1.2.16 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

Major merge to/from current.
Adds MIPS32/MIPS64 R2 support (24k, 74k, etc.) including COP0_USERLOCAL
Adds support for emulation of rdhwr $3,$29 instruction.
Major cleanup of SMP code.  (stable on multi-core / single thread per core)
llsc locking code only used in MP capable kernels.

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Thu Apr 21 01:41:11 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.1.4.1: +210 -26 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

sync with head

Revision 1.10 / (download) - annotate - [select for diffs], Thu Apr 14 15:44:39 2011 UTC (12 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.9: +4 -3 lines
Diff to previous 1.9 (colored) to selected 1.4 (colored)

Only set userlocal register if l == curlwp in cpu_set_lwpprivate.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Apr 14 06:54:57 2011 UTC (12 years, 11 months ago) by cliff
Branch: MAIN
Changes since 1.8: +5 -2 lines
Diff to previous 1.8 (colored) to selected 1.4 (colored)

cpuwatch_* stuff is #if (MIPS32 + MIPS32R2 + MIPS64 + MIPS64R2) > 0
now cobalt can build

Revision 1.8 / (download) - annotate - [select for diffs], Thu Apr 14 05:54:24 2011 UTC (12 years, 11 months ago) by cliff
Branch: MAIN
Changes since 1.7: +3 -4 lines
Diff to previous 1.7 (colored) to selected 1.4 (colored)

- no need to check lsw_cpu_run != NULL before calling, nullop is default

Revision 1.7 / (download) - annotate - [select for diffs], Thu Apr 14 05:08:51 2011 UTC (12 years, 11 months ago) by cliff
Branch: MAIN
Changes since 1.6: +145 -6 lines
Diff to previous 1.6 (colored) to selected 1.4 (colored)

- MIPS CPU (COP0) watchpoint support moved from db_interface.c to cpu_subr.c
see the cpuwatch_* functions
- ci_cpuwatch_count in allocated cpu_info is inherited from cpu_info_store
- cpu_hatch() calls lsw_cpu_run (if not NULL)
to optionally allow running MIPS chip-specific code
after subordinate cpus have been set running
- #ifdef DDB cpu_debug_dump() to allow compile when DDB not defined

Revision 1.6 / (download) - annotate - [select for diffs], Wed Apr 6 05:53:27 2011 UTC (12 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.5: +26 -24 lines
Diff to previous 1.5 (colored) to selected 1.4 (colored)

minor cleanups.  foo -> foo_p.  add some whitespace.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Mar 15 07:39:22 2011 UTC (13 years ago) by matt
Branch: MAIN
Changes since 1.4: +42 -2 lines
Diff to previous 1.4 (colored)

Add separate support for MIPS32R2 and MIPS64R2.
Use EHB/SSNOP and jr.hb ra as appropriate (COP0_SYNC now uses them).
Add support for COP_0_HWRENA and COP_0_USERLOCAL (use by rdhwr $3,$29
instruction for TLS support).
Add mips3+ reserved instruction handler to emulate rdhwr is many fewer
instructions.

Revision 1.1.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:51:05 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.1: +967 -0 lines
Diff to previous 1.1 (colored) to selected 1.4 (colored)

sync with head

Revision 1.1.8.1 / (download) - annotate - [select for diffs], Sat Mar 5 15:09:49 2011 UTC (13 years ago) by bouyer
Branch: bouyer-quota2
Changes since 1.1: +967 -0 lines
Diff to previous 1.1 (colored) next main 1.2 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.4 / (download) - annotate - [selected], Thu Feb 24 04:28:47 2011 UTC (13 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.3: +8 -2 lines
Diff to previous 1.3 (colored)

Allow storing and receiving the LWP private pointer via ucontext_t
on all platforms except VAX and IA64. Add fast access via register for
AMD64, i386 and SH3 ports. Use this fast access in libpthread to replace
the stack based pthread_self(). Implement skeleton support for Alpha,
HPPA, PowerPC, SPARC and SPARC64, but leave it disabled.

Ports that support this feature provide __HAVE____LWP_GETPRIVATE_FAST in
machine/types.h and a corresponding __lwp_getprivate_fast in
machine/mcontext.h.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Feb 20 16:38:13 2011 UTC (13 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored) to selected 1.4 (colored)

Sprinkle some RCS IDs.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Feb 20 07:45:47 2011 UTC (13 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.1: +960 -0 lines
Diff to previous 1.1 (colored) to selected 1.4 (colored)

Major merge forward from matt-nb5-mips64.
New fixup code.
New common SPL code.
New common interrupt code.
Move related variables into structures.
Cleanup locore (move MD variable into it).
Kill StudlyCaps
Use PCU for FPU

Revision 1.1.2.16 / (download) - annotate - [select for diffs], Tue Feb 8 19:18:22 2011 UTC (13 years, 1 month ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.1.2.15: +2 -2 lines
Diff to previous 1.1.2.15 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

- rename ddb_running_on_this_cpu to ddb_running_on_this_cpu_p
according to pedicate unction naming style convention

Revision 1.1.2.15 / (download) - annotate - [select for diffs], Tue Feb 8 06:01:47 2011 UTC (13 years, 1 month ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.1.2.14: +4 -4 lines
Diff to previous 1.1.2.14 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

- add cpuid column to table displayed by cpu_debug_dump()

Revision 1.1.2.14 / (download) - annotate - [select for diffs], Sat Feb 5 06:06:11 2011 UTC (13 years, 1 month ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.1.2.13: +232 -10 lines
Diff to previous 1.1.2.13 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

- add ddb related includes
- convert 'cpus_running' et. al. to mips_cpuset_t, and use CPUSET_* macros
- add IPI broadcast, multicast functions
- add IPI halt, pause, resume, functions and related, useful for MP ddb

Revision 1.1.2.13 / (download) - annotate - [select for diffs], Wed Dec 22 05:53:38 2010 UTC (13 years, 3 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231
Changes since 1.1.2.12: +5 -3 lines
Diff to previous 1.1.2.12 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

Allocate page from anywhere in KSEG0, not just the first 256MB.

Revision 1.1.2.12 / (download) - annotate - [select for diffs], Wed Sep 1 00:59:42 2010 UTC (13 years, 7 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.11: +6 -2 lines
Diff to previous 1.1.2.11 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

Fill cpu_data cpu_{node,core,smt}_id for RMI.

Revision 1.1.2.11 / (download) - annotate - [select for diffs], Thu Aug 19 07:20:19 2010 UTC (13 years, 7 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-k15
Changes since 1.1.2.10: +2 -2 lines
Diff to previous 1.1.2.10 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

cpu_signotify can be if the lwp is in LSSTOP too.

Revision 1.1.2.10 / (download) - annotate - [select for diffs], Wed Aug 18 17:01:21 2010 UTC (13 years, 7 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.9: +18 -1 lines
Diff to previous 1.1.2.9 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

*** empty log message ***

Revision 1.1.2.9 / (download) - annotate - [select for diffs], Mon Aug 16 18:01:13 2010 UTC (13 years, 7 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.8: +5 -2 lines
Diff to previous 1.1.2.8 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

Support user VAs > 4GB (but less than 1TB for now) using a 3 level page table.
Add debug code to help find redundant faults (PMAP_FAULTINFO).

Revision 1.1.2.8 / (download) - annotate - [select for diffs], Fri Apr 30 16:10:42 2010 UTC (13 years, 11 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.7: +11 -1 lines
Diff to previous 1.1.2.7 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

In N32 kernel, cpu_setmcontext needs to deal O32 mcontext

Revision 1.1.2.7 / (download) - annotate - [select for diffs], Wed Mar 24 19:23:24 2010 UTC (14 years ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.1.2.6: +2 -5 lines
Diff to previous 1.1.2.6 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

- use IPI_AST instead of IPI_NOP when forcing ast
- remove residual debug ipi from cpu_boot_secondary_processors()

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Sun Mar 21 18:43:28 2010 UTC (14 years ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.1.2.5: +21 -3 lines
Diff to previous 1.1.2.5 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

- in cpu_info_alloc, move calling pmap_tlb_info_attach() to
after called mi_cpu_attach(), so we dont trigger assert on
(ci->ci_data.cpu_idlelwp != NULL) in pmap_tlb_info_attach()

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Fri Mar 19 23:16:47 2010 UTC (14 years ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.4: +5 -1 lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

When booting the secondary processors, try to make the cpu_counter is
close to cpu0's counter.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Thu Mar 11 08:19:01 2010 UTC (14 years ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.3: +14 -2 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

Add MP-aware icache support.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Mon Mar 1 23:54:49 2010 UTC (14 years, 1 month ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.2: +7 -1 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

Add a chip-dependent hook to locorew which cpu_hatch will call to do some
initialization that can only be done while running on the local CPU.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Mar 1 19:29:41 2010 UTC (14 years, 1 month ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1.2.1: +121 -13 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) to selected 1.4 (colored)

Add secondary processor spinup support (cpu_trampoline is in locore_mips3.S).
Nuke lse_boot_secondary_processors (not needed).
Move cpu_info_store to cpu_subr.C

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Sun Feb 28 23:45:06 2010 UTC (14 years, 1 month ago) by matt
Branch: matt-nb5-mips64
Changes since 1.1: +544 -0 lines
Diff to previous 1.1 (colored) to selected 1.4 (colored)

Split FPU support into separate file and keep internals private to that file.
Make it MPSAFE.  Change interface to be very similar to what's used on other
architectures.
Add l_md.md_fpcpu to mdlwp (needed for MPSAFE)
Move pridtab from <mips/cpu.h> to <mips/locore.h>
Add initial common IPI dispatcher.
Split cpu_* routines from mips_machdep.c into cpu_subr.c
Add cpu_startup_common which has the code replicated in half-dozen
plus machdep.c files.

Revision 1.1, Sun Feb 28 23:45:06 2010 UTC (14 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base2, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: rmind-uvmplock, matt-nb5-mips64, jruoho-x86intr, bouyer-quota2
FILE REMOVED

file cpu_subr.c was initially added on branch matt-nb5-mips64.

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>