The NetBSD Project

CVS log for src/sys/arch/hppa/include/cpu.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.3.10.1 / (download) - annotate - [select for diffs], Mon Jul 31 13:56:14 2023 UTC (7 months, 3 weeks ago) by martin
Branch: netbsd-8
Changes since 1.3: +21 -2 lines
Diff to previous 1.3 (colored) next main 1.4 (colored) to selected 1.2.10.2 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1859):

	sys/arch/ia64/ia64/vm_machdep.c: revision 1.18
	sys/arch/powerpc/powerpc/locore_subr.S: revision 1.67
	sys/arch/aarch64/aarch64/locore.S: revision 1.91
	sys/arch/mips/include/asm.h: revision 1.74
	sys/arch/hppa/include/cpu.h: revision 1.13
	sys/arch/arm/arm/armv6_start.S: revision 1.38
	 (applied also to sys/arch/arm/cortex/a9_mpsubr.S,
	 sys/arch/arm/cortex/a9_mpsubr.S,
	 sys/arch/arm/cortex/cortex_init.S)
	sys/arch/evbmips/ingenic/cpu_startup.S: revision 1.2
	sys/arch/mips/mips/locore.S: revision 1.229
	sys/arch/alpha/include/asm.h: revision 1.45
	 (applied to sys/arch/alpha/alpha/multiproc.s)
	sys/arch/sparc64/sparc64/locore.s: revision 1.432
	sys/arch/vax/vax/subr.S: revision 1.42
	sys/arch/mips/mips/locore_mips3.S: revision 1.116
	sys/arch/ia64/ia64/machdep.c: revision 1.44
	sys/arch/arm/arm32/cpuswitch.S: revision 1.106
	sys/arch/sparc/sparc/locore.s: revision 1.284
	(all via patch)

aarch64: Add missing barriers in cpu_switchto.
Details in comments.

Note: This is a conservative change that inserts a barrier where
there was a comment saying none is needed, which is probably correct.
The goal of this change is to systematically add barriers to be
confident in correctness; subsequent changes may remove some bariers,
as an optimization, with an explanation of why each barrier is not
needed.

PR kern/57240

alpha: Add missing barriers in cpu_switchto.
Details in comments.

arm32: Add missing barriers in cpu_switchto.
Details in comments.

hppa: Add missing barriers in cpu_switchto.
Not sure hppa has ever had working MULTIPROCESSOR, so maybe no
pullups needed?

ia64: Add missing barriers in cpu_switchto.
(ia64 has never really worked, so no pullups needed, right?)

mips: Add missing barriers in cpu_switchto.
Details in comments.

powerpc: Add missing barriers in cpu_switchto.
Details in comments.

sparc: Add missing barriers in cpu_switchto.

sparc64: Add missing barriers in cpu_switchto.
Details in comments.

vax: Note where cpu_switchto needs barriers.

Not sure vax has ever had working MULTIPROCESSOR, though, and I'm not
even sure how to spell store-before-load barriers on VAX, so no
functional change for now.

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Mon Jul 31 13:44:16 2023 UTC (7 months, 3 weeks ago) by martin
Branch: netbsd-9
Changes since 1.5: +21 -2 lines
Diff to previous 1.5 (colored) next main 1.6 (colored) to selected 1.2.10.2 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1676):

	sys/arch/ia64/ia64/vm_machdep.c: revision 1.18
	sys/arch/powerpc/powerpc/locore_subr.S: revision 1.67
	sys/arch/aarch64/aarch64/locore.S: revision 1.91
	sys/arch/mips/include/asm.h: revision 1.74
	sys/arch/hppa/include/cpu.h: revision 1.13
	sys/arch/arm/arm/armv6_start.S: revision 1.38
	sys/arch/evbmips/ingenic/cpu_startup.S: revision 1.2
	sys/arch/mips/mips/locore.S: revision 1.229
	sys/arch/aarch64/aarch64/cpuswitch.S: revision 1.40
	sys/arch/alpha/include/asm.h: revision 1.45
	sys/arch/sparc64/sparc64/locore.s: revision 1.432
	sys/arch/vax/vax/subr.S: revision 1.42
	sys/arch/mips/mips/locore_mips3.S: revision 1.116
	sys/arch/ia64/ia64/machdep.c: revision 1.44
	sys/arch/arm/arm32/cpuswitch.S: revision 1.106
	sys/arch/sparc/sparc/locore.s: revision 1.284
	(all via patch)

aarch64: Add missing barriers in cpu_switchto.
Details in comments.

Note: This is a conservative change that inserts a barrier where
there was a comment saying none is needed, which is probably correct.
The goal of this change is to systematically add barriers to be
confident in correctness; subsequent changes may remove some bariers,
as an optimization, with an explanation of why each barrier is not
needed.

PR kern/57240

alpha: Add missing barriers in cpu_switchto.
Details in comments.

arm32: Add missing barriers in cpu_switchto.
Details in comments.

hppa: Add missing barriers in cpu_switchto.
Not sure hppa has ever had working MULTIPROCESSOR, so maybe no
pullups needed?

ia64: Add missing barriers in cpu_switchto.
(ia64 has never really worked, so no pullups needed, right?)

mips: Add missing barriers in cpu_switchto.
Details in comments.

powerpc: Add missing barriers in cpu_switchto.
Details in comments.

sparc: Add missing barriers in cpu_switchto.

sparc64: Add missing barriers in cpu_switchto.
Details in comments.

vax: Note where cpu_switchto needs barriers.

Not sure vax has ever had working MULTIPROCESSOR, though, and I'm not
even sure how to spell store-before-load barriers on VAX, so no
functional change for now.

Revision 1.12.4.1 / (download) - annotate - [select for diffs], Mon Jul 31 13:36:31 2023 UTC (7 months, 3 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.12: +21 -2 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.2.10.2 (colored)

Pull up following revision(s) (requested by riastradh in ticket #264):

	sys/arch/ia64/ia64/vm_machdep.c: revision 1.18
	sys/arch/powerpc/powerpc/locore_subr.S: revision 1.67
	sys/arch/aarch64/aarch64/locore.S: revision 1.91
	sys/arch/mips/include/asm.h: revision 1.74
	sys/arch/hppa/include/cpu.h: revision 1.13
	sys/arch/arm/arm/armv6_start.S: revision 1.38
	sys/arch/evbmips/ingenic/cpu_startup.S: revision 1.2
	sys/arch/mips/mips/locore.S: revision 1.229
	sys/arch/aarch64/aarch64/cpuswitch.S: revision 1.40
	sys/arch/alpha/include/asm.h: revision 1.45
	sys/arch/sparc64/sparc64/locore.s: revision 1.432
	sys/arch/vax/vax/subr.S: revision 1.42
	sys/arch/mips/mips/locore_mips3.S: revision 1.116
	sys/arch/riscv/riscv/cpu_switch.S: revision 1.3
	sys/arch/ia64/ia64/machdep.c: revision 1.44
	sys/arch/arm/arm32/cpuswitch.S: revision 1.106
	sys/arch/sparc/sparc/locore.s: revision 1.284

aarch64: Add missing barriers in cpu_switchto.
Details in comments.

Note: This is a conservative change that inserts a barrier where
there was a comment saying none is needed, which is probably correct.
The goal of this change is to systematically add barriers to be
confident in correctness; subsequent changes may remove some bariers,
as an optimization, with an explanation of why each barrier is not
needed.

PR kern/57240

alpha: Add missing barriers in cpu_switchto.
Details in comments.

arm32: Add missing barriers in cpu_switchto.
Details in comments.

hppa: Add missing barriers in cpu_switchto.
Not sure hppa has ever had working MULTIPROCESSOR, so maybe no
pullups needed?

ia64: Add missing barriers in cpu_switchto.
(ia64 has never really worked, so no pullups needed, right?)

mips: Add missing barriers in cpu_switchto.
Details in comments.

powerpc: Add missing barriers in cpu_switchto.
Details in comments.

riscv: Add missing barriers in cpu_switchto.
Details in comments.

sparc: Add missing barriers in cpu_switchto.

sparc64: Add missing barriers in cpu_switchto.
Details in comments.

vax: Note where cpu_switchto needs barriers.

Not sure vax has ever had working MULTIPROCESSOR, though, and I'm not
even sure how to spell store-before-load barriers on VAX, so no
functional change for now.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Feb 23 14:55:36 2023 UTC (13 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.12: +21 -2 lines
Diff to previous 1.12 (colored) to selected 1.2.10.2 (colored)

hppa: Add missing barriers in cpu_switchto.

PR kern/57240

Not sure hppa has ever had working MULTIPROCESSOR, so maybe no
pullups needed?

Revision 1.12 / (download) - annotate - [select for diffs], Tue Nov 2 11:26:04 2021 UTC (2 years, 4 months ago) by ryo
Branch: MAIN
CVS Tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.2.10.2 (colored)

In order to prevent _mcount() from being recursively called when built with COPTS=-O0,
sprinkle `__always_inline' to make _mcount() be generated as a single function.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Aug 14 17:51:19 2021 UTC (2 years, 7 months ago) by ryo
Branch: MAIN
Changes since 1.10: +5 -2 lines
Diff to previous 1.10 (colored) to selected 1.2.10.2 (colored)

Improved the performance of kernel profiling on MULTIPROCESSOR, and possible to get profiling data for each CPU.

In the current implementation, locks are acquired at the entrance of the mcount
internal function, so the higher the number of cores, the more lock conflict
occurs, making profiling performance in a MULTIPROCESSOR environment unusable
and slow. Profiling buffers has been changed to be reserved for each CPU,
improving profiling performance in MP by several to several dozen times.

- Eliminated cpu_simple_lock in mcount internal function, using per-CPU buffers.
- Add ci_gmon member to struct cpu_info of each MP arch.
- Add kern.profiling.percpu node in sysctl tree.
- Add new -c <cpuid> option to kgmon(8) to specify the cpuid, like openbsd.
  For compatibility, if the -c option is not specified, the entire system can be
  operated as before, and the -p option will get the total profiling data for
  all CPUs.

Revision 1.3.18.3 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:08 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.3.18.2: +15 -5 lines
Diff to previous 1.3.18.2 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.2.10.2 (colored)

Sync with HEAD

Revision 1.9.6.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:28:57 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.9: +16 -6 lines
Diff to previous 1.9 (colored) next main 1.10 (colored) to selected 1.2.10.2 (colored)

Sync with HEAD

Revision 1.10 / (download) - annotate - [select for diffs], Thu Apr 16 09:28:52 2020 UTC (3 years, 11 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, phil-wifi-20200421, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.9: +16 -6 lines
Diff to previous 1.9 (colored) to selected 1.2.10.2 (colored)

Fix cur{lwp,cpu} and other bits for MODULES

Revision 1.3.18.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:39 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.3.18.1: +2 -1 lines
Diff to previous 1.3.18.1 (colored) to branchpoint 1.3 (colored) to selected 1.2.10.2 (colored)

Merge changes from current as of 20200406

Revision 1.9 / (download) - annotate - [select for diffs], Thu Dec 5 08:00:05 2019 UTC (4 years, 3 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: bouyer-xenpvh
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.2.10.2 (colored)

Attempt to restore Utah $Hdr$

Revision 1.8 / (download) - annotate - [select for diffs], Thu Dec 5 03:59:39 2019 UTC (4 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.7: +2 -3 lines
Diff to previous 1.7 (colored) to selected 1.2.10.2 (colored)

Only need one ci_onproc member.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Dec 4 07:49:39 2019 UTC (4 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored) to selected 1.2.10.2 (colored)

+ci_onproc

Revision 1.6 / (download) - annotate - [select for diffs], Sun Dec 1 15:34:44 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored) to selected 1.2.10.2 (colored)

Fix false sharing problems with cpu_info.  Identified with tprof(8).
This was a very nice win in my tests on a 48 CPU box.

- Reorganise cpu_data slightly according to usage.
- Put cpu_onproc into struct cpu_info alongside ci_curlwp (now is ci_onproc).
- On x86, put some items in their own cache lines according to usage, like
  the IPI bitmask and ci_want_resched.

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

Sync with HEAD

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 16 12:25:17 2019 UTC (4 years, 11 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, 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, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored) to selected 1.2.10.2 (colored)

Trailing whitespace

Revision 1.3.16.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:34 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.3: +1 -2 lines
Diff to previous 1.3 (colored) next main 1.4 (colored) to selected 1.2.10.2 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.4 / (download) - annotate - [select for diffs], Wed Aug 22 01:05:22 2018 UTC (5 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.3: +1 -2 lines
Diff to previous 1.3 (colored) to selected 1.2.10.2 (colored)

- Cleanup for dynamic sysctl:
  - Remove unused *_NAMES macros for sysctl.
  - Remove unused *_MAXID for sysctls.
- Move CTL_MACHDEP sysctl definitions for m68k into m68k/include/cpu.h and
  use them on all m68k machines.

Revision 1.2.10.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:16 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.2.10.2: +1 -1 lines
Diff to previous 1.2.10.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

update from HEAD

Revision 1.2.12.1 / (download) - annotate - [select for diffs], Sat Mar 19 11:29:59 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) next main 1.3 (colored) to selected 1.2.10.2 (colored)

Sync with HEAD

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jan 25 18:14:40 2016 UTC (8 years, 2 months ago) by christos
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, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat, netbsd-8
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.2.10.2 (colored)

Don't expose kernel structs to userland.

Revision 1.2.10.2 / (download) - annotate - [selected], Wed Aug 20 00:03:05 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.2.10.1: +440 -0 lines
Diff to previous 1.2.10.1 (colored) to branchpoint 1.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.2.6.2 / (download) - annotate - [select for diffs], Thu May 22 11:39:50 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.2.6.1: +440 -0 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored) to selected 1.2.10.2 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:45:11 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.2.4.1: +440 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored) to selected 1.2.10.2 (colored)

sync with head

Revision 1.2.10.1, Thu Mar 6 19:02:58 2014 UTC (10 years ago) by tls
Branch: tls-maxphys
Changes since 1.2: +0 -440 lines
FILE REMOVED

file cpu.h was added on branch tls-maxphys on 2014-08-20 00:03:05 +0000

Revision 1.2.6.1, Thu Mar 6 19:02:58 2014 UTC (10 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.2: +0 -440 lines
FILE REMOVED

file cpu.h was added on branch yamt-pagecache on 2014-05-22 11:39:50 +0000

Revision 1.2.4.1, Thu Mar 6 19:02:58 2014 UTC (10 years ago) by rmind
Branch: rmind-smpnet
Changes since 1.2: +0 -440 lines
FILE REMOVED

file cpu.h was added on branch rmind-smpnet on 2014-05-18 17:45:11 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 6 19:02:58 2014 UTC (10 years ago) by skrll
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, 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
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet, nick-nhusb
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored) to selected 1.2.10.2 (colored)

Move to a flat space register convention. %sr[4-7] are all now the space
number allocated to the process.  gcc produces (slightly) better code
with this convention.

Retain backwards compatiblity.

Welcome to 6.99.36

Revision 1.1 / (download) - annotate - [select for diffs], Mon Feb 24 07:23:43 2014 UTC (10 years, 1 month ago) by skrll
Branch: MAIN
Diff to selected 1.2.10.2 (colored)

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.

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>