The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15 / (download) - annotate - [select for diffs], Mon Dec 25 13:21:30 2023 UTC (2 months ago) by skrll
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

Count interrupts across harts and their local interrupt controllers
correctly.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Sep 3 08:48:20 2023 UTC (5 months, 3 weeks ago) by skrll
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.13: +10 -13 lines
Diff to previous 1.13 (colored)

Fix and enable MULTIPROCESSOR

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jul 29 06:59:47 2023 UTC (7 months ago) by skrll
Branch: MAIN
Changes since 1.12: +10 -10 lines
Diff to previous 1.12 (colored)

Slight reformatting. NFCI.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jun 12 19:04:14 2023 UTC (8 months, 2 weeks ago) by skrll
Branch: MAIN
Changes since 1.11: +93 -7 lines
Diff to previous 1.11 (colored)

risc-v: MULTIPROCESSOR support

Add MULTIPROCESSOR support for RISC-V, but leave disabled for the moment
as it's not 100% stable.

Some other improvements to spl and cpu identification / reporting.

Revision 1.11 / (download) - annotate - [select for diffs], Thu May 25 06:17:18 2023 UTC (9 months ago) by skrll
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Fix CLKF_INTR so that not all time is shown as being spent in interrupts.

Revision 1.10 / (download) - annotate - [select for diffs], Sun May 7 12:41:48 2023 UTC (9 months, 3 weeks ago) by skrll
Branch: MAIN
Changes since 1.9: +7 -2 lines
Diff to previous 1.9 (colored)

RISC-V support that works on QEMU with a single hart.

Thanks for Simon Burge for plic(4).

Revision 1.9 / (download) - annotate - [select for diffs], Thu Nov 17 09:50:23 2022 UTC (15 months, 1 week ago) by simonb
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.8: +5 -5 lines
Diff to previous 1.8 (colored)

Use better types and struct member names in the clockframe.
Avoid a magic number in CLKF_USERMODE().

Revision 1.8 / (download) - annotate - [select for diffs], Sat Aug 14 17:51:19 2021 UTC (2 years, 6 months ago) by ryo
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.7: +4 -1 lines
Diff to previous 1.7 (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.4.20.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:50 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.4.20.1: +2 -2 lines
Diff to previous 1.4.20.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Merge changes from current as of 20200406

Revision 1.7 / (download) - annotate - [select for diffs], Sun Dec 1 15:34:45 2019 UTC (4 years, 2 months ago) by ad
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, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, 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, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Thu Nov 21 19:24:01 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored)

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

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

Sync with HEAD

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jun 1 12:42:28 2019 UTC (4 years, 8 months ago) by maxv
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, netbsd-9
Changes since 1.4: +4 -5 lines
Diff to previous 1.4 (colored)

Misc changes in RISC-V. Start changing the memory layout, too.

Revision 1.4.16.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:39 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.4.16.1: +151 -0 lines
Diff to previous 1.4.16.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

update from HEAD

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:01 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1: +13 -11 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Revision 1.4.16.1, Wed Apr 1 21:55:03 2015 UTC (8 years, 10 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.4: +0 -151 lines
FILE REMOVED

file cpu.h was added on branch tls-maxphys on 2017-12-03 11:36:39 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Wed Apr 1 21:55:03 2015 UTC (8 years, 10 months ago) by matt
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-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, 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, 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, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: tls-maxphys, phil-wifi
Changes since 1.3: +7 -2 lines
Diff to previous 1.3 (colored)

_KMEMUSER only needs struct cpu_info

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 31 01:11:41 2015 UTC (8 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.2: +6 -9 lines
Diff to previous 1.2 (colored)

Define curcpu() as lwp_getcpu(curlwp) since curlwp is always in the "tp"
(thread pointer) register.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Mar 28 16:13:56 2015 UTC (8 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Beginnings of RISCV kernel support.  Note that the pmap support is not yet
committed and probably won't be for awhile.  This is mostly preliminary
waiting for the supervisor specification to come out.  Lots of missing pieces
but it mostly builds.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Sep 19 17:36:26 2014 UTC (9 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb

New files for Userland support of UCB RISC-V (both 32-bit and 64-bit)

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>