History log of /netbsd-current/sys/arch/evbmips/cavium/machdep.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.25 05-Mar-2024 thorpej

Move the at-shutdown call to resettodr() from cpu_reboot() to kern_reboot().

It's a small step, but it's a step.


Revision tags: netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 thorpej-ifq-base thorpej-altq-separation-base netbsd-10-0-RC1 netbsd-10-base bouyer-sunxi-drm-base thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base thorpej-i2c-spi-conf-base
# 1.24 05-May-2021 simonb

The watchdog setup code isn't used (yet), so don't compile in the
octeon_nmi_stack that it uses either.


Revision tags: thorpej-cfargs-base thorpej-futex-base
# 1.23 17-Aug-2020 simonb

branches: 1.23.6;
Add some compile time asserts for endianness on boards/systems that
only support a single endianness.


# 1.22 28-Jul-2020 simonb

Change cpus_booted back to a simple variable instead of a kcpuset.
octeon_cpu_spinup() was trying to set CPU status immediately on kernel
startup _well_ before the kcpuset was initialised.


# 1.21 22-Jul-2020 simonb

Add option to use the early bitbang console. Enable this for now
while debugging MP.
Print out the core mask value passed in by Uboot.


# 1.20 19-Jul-2020 simonb

Reserve space for all CPU cores (incorrect logic).
Reserve a full page for each core, not incorrect 4096 (from skrll@).


# 1.19 19-Jul-2020 simonb

Call fdtbus_intr_init() during startup.


# 1.18 16-Jul-2020 jmcneill

FDT support for Cavium OCTEON MIPS SoCs. WIP.


# 1.17 13-Jul-2020 simonb

Copy "mach reset" logic from arm32 recently added by jmcneill@. The
previous MIPS "mach reset" DDB command was hard-coded for Octeon Cavium
CPUs only.


# 1.16 20-Jun-2020 simonb

Add some rudimentary boot args parsing. Can handle "root=" as well
normal -1adsqvxz flags. "root=" is limited to cnmacN devices so far;
should be extended to allow arbitary SD devices (and other devices?).


# 1.15 19-Jun-2020 simonb

Don't include now non-existant "opt_cavium.h".


# 1.14 15-Jun-2020 simonb

Finish CPU core support for Octeon Cavium CN70XX:
- decode actual CPU name
- per CPU core reset logic (partially adapted from OpenBSD)
- handle Octeon 3 ioclock rate differences to other cores (from OpenBSD)


# 1.13 05-Jun-2020 simonb

Now that we don't zero out the second link in the U-boot bootmem
descripter, use that to configure free memory.


# 1.12 04-Jun-2020 simonb

Only clear BSS up to "end" symbol, not all the way to mips_round_page(end).
U-Boot puts some data immediately after the BSS section cleared in the ELF
segments, and we don't want to overwrite that.

XXX: Stop using mips_round_page(end) on all MIPS?


# 1.11 31-May-2020 simonb

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.10 28-Dec-2016 mrg

branches: 1.10.14;
add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.


# 1.24 05-May-2021 simonb

The watchdog setup code isn't used (yet), so don't compile in the
octeon_nmi_stack that it uses either.


Revision tags: thorpej-i2c-spi-conf-base thorpej-cfargs-base thorpej-futex-base
# 1.23 17-Aug-2020 simonb

Add some compile time asserts for endianness on boards/systems that
only support a single endianness.


# 1.22 28-Jul-2020 simonb

Change cpus_booted back to a simple variable instead of a kcpuset.
octeon_cpu_spinup() was trying to set CPU status immediately on kernel
startup _well_ before the kcpuset was initialised.


# 1.21 22-Jul-2020 simonb

Add option to use the early bitbang console. Enable this for now
while debugging MP.
Print out the core mask value passed in by Uboot.


# 1.20 19-Jul-2020 simonb

Reserve space for all CPU cores (incorrect logic).
Reserve a full page for each core, not incorrect 4096 (from skrll@).


# 1.19 19-Jul-2020 simonb

Call fdtbus_intr_init() during startup.


# 1.18 16-Jul-2020 jmcneill

FDT support for Cavium OCTEON MIPS SoCs. WIP.


# 1.17 13-Jul-2020 simonb

Copy "mach reset" logic from arm32 recently added by jmcneill@. The
previous MIPS "mach reset" DDB command was hard-coded for Octeon Cavium
CPUs only.


# 1.16 20-Jun-2020 simonb

Add some rudimentary boot args parsing. Can handle "root=" as well
normal -1adsqvxz flags. "root=" is limited to cnmacN devices so far;
should be extended to allow arbitary SD devices (and other devices?).


# 1.15 19-Jun-2020 simonb

Don't include now non-existant "opt_cavium.h".


# 1.14 15-Jun-2020 simonb

Finish CPU core support for Octeon Cavium CN70XX:
- decode actual CPU name
- per CPU core reset logic (partially adapted from OpenBSD)
- handle Octeon 3 ioclock rate differences to other cores (from OpenBSD)


# 1.13 05-Jun-2020 simonb

Now that we don't zero out the second link in the U-boot bootmem
descripter, use that to configure free memory.


# 1.12 04-Jun-2020 simonb

Only clear BSS up to "end" symbol, not all the way to mips_round_page(end).
U-Boot puts some data immediately after the BSS section cleared in the ELF
segments, and we don't want to overwrite that.

XXX: Stop using mips_round_page(end) on all MIPS?


# 1.11 31-May-2020 simonb

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).


Revision tags: netbsd-9-1-RELEASE bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.10 28-Dec-2016 mrg

branches: 1.10.14;
add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.


# 1.23 17-Aug-2020 simonb

Add some compile time asserts for endianness on boards/systems that
only support a single endianness.


# 1.22 28-Jul-2020 simonb

Change cpus_booted back to a simple variable instead of a kcpuset.
octeon_cpu_spinup() was trying to set CPU status immediately on kernel
startup _well_ before the kcpuset was initialised.


# 1.21 22-Jul-2020 simonb

Add option to use the early bitbang console. Enable this for now
while debugging MP.
Print out the core mask value passed in by Uboot.


# 1.20 19-Jul-2020 simonb

Reserve space for all CPU cores (incorrect logic).
Reserve a full page for each core, not incorrect 4096 (from skrll@).


# 1.19 19-Jul-2020 simonb

Call fdtbus_intr_init() during startup.


# 1.18 16-Jul-2020 jmcneill

FDT support for Cavium OCTEON MIPS SoCs. WIP.


# 1.17 13-Jul-2020 simonb

Copy "mach reset" logic from arm32 recently added by jmcneill@. The
previous MIPS "mach reset" DDB command was hard-coded for Octeon Cavium
CPUs only.


# 1.16 20-Jun-2020 simonb

Add some rudimentary boot args parsing. Can handle "root=" as well
normal -1adsqvxz flags. "root=" is limited to cnmacN devices so far;
should be extended to allow arbitary SD devices (and other devices?).


# 1.15 19-Jun-2020 simonb

Don't include now non-existant "opt_cavium.h".


# 1.14 15-Jun-2020 simonb

Finish CPU core support for Octeon Cavium CN70XX:
- decode actual CPU name
- per CPU core reset logic (partially adapted from OpenBSD)
- handle Octeon 3 ioclock rate differences to other cores (from OpenBSD)


# 1.13 05-Jun-2020 simonb

Now that we don't zero out the second link in the U-boot bootmem
descripter, use that to configure free memory.


# 1.12 04-Jun-2020 simonb

Only clear BSS up to "end" symbol, not all the way to mips_round_page(end).
U-Boot puts some data immediately after the BSS section cleared in the ELF
segments, and we don't want to overwrite that.

XXX: Stop using mips_round_page(end) on all MIPS?


# 1.11 31-May-2020 simonb

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.10 28-Dec-2016 mrg

branches: 1.10.14;
add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.


# 1.22 28-Jul-2020 simonb

Change cpus_booted back to a simple variable instead of a kcpuset.
octeon_cpu_spinup() was trying to set CPU status immediately on kernel
startup _well_ before the kcpuset was initialised.


# 1.21 22-Jul-2020 simonb

Add option to use the early bitbang console. Enable this for now
while debugging MP.
Print out the core mask value passed in by Uboot.


# 1.20 19-Jul-2020 simonb

Reserve space for all CPU cores (incorrect logic).
Reserve a full page for each core, not incorrect 4096 (from skrll@).


# 1.19 19-Jul-2020 simonb

Call fdtbus_intr_init() during startup.


# 1.18 16-Jul-2020 jmcneill

FDT support for Cavium OCTEON MIPS SoCs. WIP.


# 1.17 13-Jul-2020 simonb

Copy "mach reset" logic from arm32 recently added by jmcneill@. The
previous MIPS "mach reset" DDB command was hard-coded for Octeon Cavium
CPUs only.


# 1.16 20-Jun-2020 simonb

Add some rudimentary boot args parsing. Can handle "root=" as well
normal -1adsqvxz flags. "root=" is limited to cnmacN devices so far;
should be extended to allow arbitary SD devices (and other devices?).


# 1.15 19-Jun-2020 simonb

Don't include now non-existant "opt_cavium.h".


# 1.14 15-Jun-2020 simonb

Finish CPU core support for Octeon Cavium CN70XX:
- decode actual CPU name
- per CPU core reset logic (partially adapted from OpenBSD)
- handle Octeon 3 ioclock rate differences to other cores (from OpenBSD)


# 1.13 05-Jun-2020 simonb

Now that we don't zero out the second link in the U-boot bootmem
descripter, use that to configure free memory.


# 1.12 04-Jun-2020 simonb

Only clear BSS up to "end" symbol, not all the way to mips_round_page(end).
U-Boot puts some data immediately after the BSS section cleared in the ELF
segments, and we don't want to overwrite that.

XXX: Stop using mips_round_page(end) on all MIPS?


# 1.11 31-May-2020 simonb

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.10 28-Dec-2016 mrg

branches: 1.10.14;
add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.


# 1.21 22-Jul-2020 simonb

Add option to use the early bitbang console. Enable this for now
while debugging MP.
Print out the core mask value passed in by Uboot.


# 1.20 19-Jul-2020 simonb

Reserve space for all CPU cores (incorrect logic).
Reserve a full page for each core, not incorrect 4096 (from skrll@).


# 1.19 19-Jul-2020 simonb

Call fdtbus_intr_init() during startup.


# 1.18 16-Jul-2020 jmcneill

FDT support for Cavium OCTEON MIPS SoCs. WIP.


# 1.17 13-Jul-2020 simonb

Copy "mach reset" logic from arm32 recently added by jmcneill@. The
previous MIPS "mach reset" DDB command was hard-coded for Octeon Cavium
CPUs only.


# 1.16 20-Jun-2020 simonb

Add some rudimentary boot args parsing. Can handle "root=" as well
normal -1adsqvxz flags. "root=" is limited to cnmacN devices so far;
should be extended to allow arbitary SD devices (and other devices?).


# 1.15 19-Jun-2020 simonb

Don't include now non-existant "opt_cavium.h".


# 1.14 15-Jun-2020 simonb

Finish CPU core support for Octeon Cavium CN70XX:
- decode actual CPU name
- per CPU core reset logic (partially adapted from OpenBSD)
- handle Octeon 3 ioclock rate differences to other cores (from OpenBSD)


# 1.13 05-Jun-2020 simonb

Now that we don't zero out the second link in the U-boot bootmem
descripter, use that to configure free memory.


# 1.12 04-Jun-2020 simonb

Only clear BSS up to "end" symbol, not all the way to mips_round_page(end).
U-Boot puts some data immediately after the BSS section cleared in the ELF
segments, and we don't want to overwrite that.

XXX: Stop using mips_round_page(end) on all MIPS?


# 1.11 31-May-2020 simonb

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.10 28-Dec-2016 mrg

branches: 1.10.14;
add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.


# 1.20 19-Jul-2020 simonb

Reserve space for all CPU cores (incorrect logic).
Reserve a full page for each core, not incorrect 4096 (from skrll@).


# 1.19 19-Jul-2020 simonb

Call fdtbus_intr_init() during startup.


# 1.18 16-Jul-2020 jmcneill

FDT support for Cavium OCTEON MIPS SoCs. WIP.


# 1.17 13-Jul-2020 simonb

Copy "mach reset" logic from arm32 recently added by jmcneill@. The
previous MIPS "mach reset" DDB command was hard-coded for Octeon Cavium
CPUs only.


# 1.16 20-Jun-2020 simonb

Add some rudimentary boot args parsing. Can handle "root=" as well
normal -1adsqvxz flags. "root=" is limited to cnmacN devices so far;
should be extended to allow arbitary SD devices (and other devices?).


# 1.15 19-Jun-2020 simonb

Don't include now non-existant "opt_cavium.h".


# 1.14 15-Jun-2020 simonb

Finish CPU core support for Octeon Cavium CN70XX:
- decode actual CPU name
- per CPU core reset logic (partially adapted from OpenBSD)
- handle Octeon 3 ioclock rate differences to other cores (from OpenBSD)


# 1.13 05-Jun-2020 simonb

Now that we don't zero out the second link in the U-boot bootmem
descripter, use that to configure free memory.


# 1.12 04-Jun-2020 simonb

Only clear BSS up to "end" symbol, not all the way to mips_round_page(end).
U-Boot puts some data immediately after the BSS section cleared in the ELF
segments, and we don't want to overwrite that.

XXX: Stop using mips_round_page(end) on all MIPS?


# 1.11 31-May-2020 simonb

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.10 28-Dec-2016 mrg

branches: 1.10.14;
add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.


# 1.18 16-Jul-2020 jmcneill

FDT support for Cavium OCTEON MIPS SoCs. WIP.


# 1.17 13-Jul-2020 simonb

Copy "mach reset" logic from arm32 recently added by jmcneill@. The
previous MIPS "mach reset" DDB command was hard-coded for Octeon Cavium
CPUs only.


# 1.16 20-Jun-2020 simonb

Add some rudimentary boot args parsing. Can handle "root=" as well
normal -1adsqvxz flags. "root=" is limited to cnmacN devices so far;
should be extended to allow arbitary SD devices (and other devices?).


# 1.15 19-Jun-2020 simonb

Don't include now non-existant "opt_cavium.h".


# 1.14 15-Jun-2020 simonb

Finish CPU core support for Octeon Cavium CN70XX:
- decode actual CPU name
- per CPU core reset logic (partially adapted from OpenBSD)
- handle Octeon 3 ioclock rate differences to other cores (from OpenBSD)


# 1.13 05-Jun-2020 simonb

Now that we don't zero out the second link in the U-boot bootmem
descripter, use that to configure free memory.


# 1.12 04-Jun-2020 simonb

Only clear BSS up to "end" symbol, not all the way to mips_round_page(end).
U-Boot puts some data immediately after the BSS section cleared in the ELF
segments, and we don't want to overwrite that.

XXX: Stop using mips_round_page(end) on all MIPS?


# 1.11 31-May-2020 simonb

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.10 28-Dec-2016 mrg

branches: 1.10.14;
add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.


# 1.17 13-Jul-2020 simonb

Copy "mach reset" logic from arm32 recently added by jmcneill@. The
previous MIPS "mach reset" DDB command was hard-coded for Octeon Cavium
CPUs only.


# 1.16 20-Jun-2020 simonb

Add some rudimentary boot args parsing. Can handle "root=" as well
normal -1adsqvxz flags. "root=" is limited to cnmacN devices so far;
should be extended to allow arbitary SD devices (and other devices?).


# 1.15 19-Jun-2020 simonb

Don't include now non-existant "opt_cavium.h".


# 1.14 15-Jun-2020 simonb

Finish CPU core support for Octeon Cavium CN70XX:
- decode actual CPU name
- per CPU core reset logic (partially adapted from OpenBSD)
- handle Octeon 3 ioclock rate differences to other cores (from OpenBSD)


# 1.13 05-Jun-2020 simonb

Now that we don't zero out the second link in the U-boot bootmem
descripter, use that to configure free memory.


# 1.12 04-Jun-2020 simonb

Only clear BSS up to "end" symbol, not all the way to mips_round_page(end).
U-Boot puts some data immediately after the BSS section cleared in the ELF
segments, and we don't want to overwrite that.

XXX: Stop using mips_round_page(end) on all MIPS?


# 1.11 31-May-2020 simonb

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.10 28-Dec-2016 mrg

branches: 1.10.14;
add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.


# 1.16 20-Jun-2020 simonb

Add some rudimentary boot args parsing. Can handle "root=" as well
normal -1adsqvxz flags. "root=" is limited to cnmacN devices so far;
should be extended to allow arbitary SD devices (and other devices?).


# 1.15 19-Jun-2020 simonb

Don't include now non-existant "opt_cavium.h".


# 1.14 15-Jun-2020 simonb

Finish CPU core support for Octeon Cavium CN70XX:
- decode actual CPU name
- per CPU core reset logic (partially adapted from OpenBSD)
- handle Octeon 3 ioclock rate differences to other cores (from OpenBSD)


# 1.13 05-Jun-2020 simonb

Now that we don't zero out the second link in the U-boot bootmem
descripter, use that to configure free memory.


# 1.12 04-Jun-2020 simonb

Only clear BSS up to "end" symbol, not all the way to mips_round_page(end).
U-Boot puts some data immediately after the BSS section cleared in the ELF
segments, and we don't want to overwrite that.

XXX: Stop using mips_round_page(end) on all MIPS?


# 1.11 31-May-2020 simonb

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.10 28-Dec-2016 mrg

branches: 1.10.14;
add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.


# 1.14 15-Jun-2020 simonb

Finish CPU core support for Octeon Cavium CN70XX:
- decode actual CPU name
- per CPU core reset logic (partially adapted from OpenBSD)
- handle Octeon 3 ioclock rate differences to other cores (from OpenBSD)


# 1.13 05-Jun-2020 simonb

Now that we don't zero out the second link in the U-boot bootmem
descripter, use that to configure free memory.


# 1.12 04-Jun-2020 simonb

Only clear BSS up to "end" symbol, not all the way to mips_round_page(end).
U-Boot puts some data immediately after the BSS section cleared in the ELF
segments, and we don't want to overwrite that.

XXX: Stop using mips_round_page(end) on all MIPS?


# 1.11 31-May-2020 simonb

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.10 28-Dec-2016 mrg

branches: 1.10.14;
add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.


# 1.13 05-Jun-2020 simonb

Now that we don't zero out the second link in the U-boot bootmem
descripter, use that to configure free memory.


# 1.12 04-Jun-2020 simonb

Only clear BSS up to "end" symbol, not all the way to mips_round_page(end).
U-Boot puts some data immediately after the BSS section cleared in the ELF
segments, and we don't want to overwrite that.

XXX: Stop using mips_round_page(end) on all MIPS?


# 1.11 31-May-2020 simonb

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.10 28-Dec-2016 mrg

branches: 1.10.14;
add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.


# 1.12 04-Jun-2020 simonb

Only clear BSS up to "end" symbol, not all the way to mips_round_page(end).
U-Boot puts some data immediately after the BSS section cleared in the ELF
segments, and we don't want to overwrite that.

XXX: Stop using mips_round_page(end) on all MIPS?


# 1.11 31-May-2020 simonb

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.10 28-Dec-2016 mrg

branches: 1.10.14;
add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.


# 1.11 31-May-2020 simonb

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.10 28-Dec-2016 mrg

branches: 1.10.14;
add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.


# 1.10 28-Dec-2016 mrg

add an OCTEON_MEMSIZE option to override the uboot provided memory
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html


# 1.9 22-Dec-2016 cherry

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

uvm_setpagesize() is now subsumed within this funciton.


Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104
# 1.8 20-Oct-2016 martin

Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.


Revision tags: nick-nhusb-base-20161004 localcount-20160914
# 1.7 26-Aug-2016 skrll

Trailing whitespace


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.6 11-Jul-2016 matt

branches: 1.6.2;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate


Revision 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
# 1.5 10-Jun-2015 matt

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 tags: nick-nhusb-base-20150606
# 1.4 04-Jun-2015 matt

branches: 1.4.2;
If booting a MULTIPROCESSOR kernel, use the llsc atomic primitives


# 1.3 01-Jun-2015 matt

Rework cavium support in preparation for MULTIPROCESSOR support


# 1.2 18-May-2015 matt

Set cpu model.


# 1.1 29-Apr-2015 hikaru

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.