summaryrefslogtreecommitdiff
path: root/sys/arch/octeon
AgeCommit message (Collapse)Author
2017-04-30Rename Debugger() into db_enter().Martin Pieuchot
Using a name with the 'db_' prefix makes it invisible from the dynamic profiler. ok deraadt@, kettenis@, visa@
2017-04-30Remove unused POW status functions. Makes clang happier.Visa Hankala
2017-04-24Process fdt before iobus devices. Needed later when interrupt andVisa Hankala
MDIO controller drivers are attached using fdt.
2017-04-24Add an fdt blob for octeon systems whose firmware does not provideVisa Hankala
a device-tree. It will be needed later when more device drivers are attached using fdt. OK kettenis@
2017-04-22Reindent with tabs and add missing braces.Visa Hankala
2017-04-20Make TCB address available to userspace via the UserLocal register.Visa Hankala
This lets programs get the address without a system call on OCTEON II and later. Add UserLocal load emulation for systems that do not implement the RDHWR instruction or the UserLocal register. OK guenther@
2017-04-15Sync bus_dmamap_load_raw() with amd64 for better constraint checking.Visa Hankala
Needed by xhci(4).
2017-04-15No GMX on CN73xx.Visa Hankala
2017-04-08Make network ports work on Shasta.Visa Hankala
2017-04-07Add prid for CN72xx/CN73xx.Visa Hankala
2017-04-07Make SoC version available in a simple form.Visa Hankala
2017-04-06Use the correct interrupt disestablish routine.Visa Hankala
2017-04-06Extend the fdt interrupt API a little.Visa Hankala
2017-04-03Compute address for ll/sc only once.Visa Hankala
2017-04-02printf format strings should be literals. Reminded by clang.Visa Hankala
2017-04-02Drop address conversion cruft.Visa Hankala
2017-03-18Build mips64 kernels with -ffreestanding.Visa Hankala
OK kettenis@
2017-03-15Fix building profiling kernels by passing the -p flag to config(8)Theo Buehler
if the kernel's name ends in .PROF. problem reported by jmc via mpi ok mpi
2017-02-28Switch geteblks()'s size argument from int to size_t. It's called withMartin Natano
unsigned variables as argument in most places anyway. Decrease the chance of signedness/range mismatch issues. ok stefan
2017-02-26Define cache line size for the per-cpu API.Visa Hankala
2017-02-15Mark dwc2_intr() as MP-safe on octeon. The driver's internal stateVisa Hankala
is protected by a mutex. OK stsp@ jmatthew@
2017-02-10Unbreak 'config -p'.Martin Pieuchot
ok tb@, jca@
2017-02-06Mark ehci_intr() as MP-safe on octeon.Visa Hankala
OK mpi@
2017-01-24add support for multiple transmit ifqueues per network interface.David Gwynne
an ifq to transmit a packet is picked by the current traffic conditioner (ie, priq or hfsc) by providing an index into an array of ifqs. by default interfaces get a single ifq but can ask for more using if_attach_queues(). the vast majority of our drivers still think there's a 1:1 mapping between interfaces and transmit queues, so their if_start routines take an ifnet pointer instead of a pointer to the ifqueue struct. instead of changing all the drivers in the tree, drivers can opt into using an if_qstart routine and setting the IFXF_MPSAFE flag. the stack provides a compatability wrapper from the new if_qstart handler to the previous if_start handlers if IFXF_MPSAFE isnt set. enabling hfsc on an interface configures it to transmit everything through the first ifq. any other ifqs are left configured as priq, but unused, when hfsc is enabled. getting this in now so everyone can kick the tyres. ok mpi@ visa@ (who provided some tweaks for cnmac).
2017-01-22move counting if_opackets next to counting if_obytes in if_enqueue.David Gwynne
this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it. ok mpi@ deraadt@
2017-01-22Introduce the KEEPKERNELS variable: if this is set either in mk.conf orTheo Buehler
the environment, 'make cleandir' does not descend into kernel build directories. Thus, kernel object files survive 'make build' on slower architectures. WARNING: If you set this variable, you run the risk of breaking 'make release': Be sure to run 'make cleandir' from /sys/arch/$(machine)/compile before doing 'make release'. This issue will be addressed shortly. requested by kettenis; ok deraadt
2017-01-06Ansify cpu_sysctl() on mips64 platforms.Frederic Cambus
OK patrick@, visa@, jasper@, mpi@
2016-12-21Add a driver for OCTEON MMC host controller.Visa Hankala
Tested on EdgeRouter Pro, and Shasta. OK mpi@
2016-12-17Fix IO clock speed and system reset on Octeon III.Visa Hankala
2016-12-17There is no RTC on Shasta, so do not attach the driver.Visa Hankala
2016-12-17On some systems, the firmware advertises multiple tiny and disjointVisa Hankala
regions of free memory whose size is no more than a few page frames. Ignore them in order not to clutter uvm with fragments.
2016-12-08Add a routine for setting up interrupt handlers using fdt.Visa Hankala
ok kettenis@
2016-12-08Add fdt_attach_args and simplebus for implementing fdt-capableVisa Hankala
drivers on octeon. Adapted from armv7. ok kettenis@
2016-12-04Add handling for the second interrupt bank.Visa Hankala
Needed by an upcoming driver.
2016-12-03Implement octeon_intr_disestablish().Visa Hankala
2016-12-02Drop stale prototypes and an outdated comment.Visa Hankala
2016-12-02Simplify interrupt dispatching by processing requests withoutVisa Hankala
prioritization by IPL.
2016-11-29Build kernel with DEBUG=-g by default.Martin Pieuchot
This will allow us to extract type informations from DWARF2 sections. It also makes developer life easier as debug information are now included in every object. Resulting kernels will be stripped using strip(1) instead of ld(1). Kernel build time increases by approximately 10%. However it is still possible to disable this by defining DEBUG="". ok kettenis@, bluhm@, natano@, jasper@, reyk@, deraadt@
2016-11-26Allow rootdev to be specified without /dev/ prefix. The full path isn'tMartijn van Duren
needed down the road anyway. Both forms are supported. e.g. rootdev=/dev/sd0 and rootdev=sd0 OK visa@
2016-11-26Start process_bootargs at 0 instead of 1.Martijn van Duren
When using endbootargs in U-Boot arguments start at position 0. OK visa@
2016-11-26Remove unnecessary function cn30xxgmx_submatch and call config_foundMartijn van Duren
instead of config_found_sm. OK visa@
2016-11-20Drop pointless type casts.Visa Hankala
2016-11-15Clean up the kernel Makefile's:Martin Natano
- Remove the 'lint' target. lint has been removed with OpenBSD 5.2. - Remove the 'tags' target. It does nothing of value. - Replace 'clean::' with 'clean:', as requested by espie and millert, and remove files from the 'clean' target, that are never generated. - Don't create a file called 'depend' in 'make depend', but just do nothing instead. ok mpi tb
2016-11-06Do not create machine@ symlinks in obj as root during includes:, butTheo Buehler
defer their creation to later, so that they are owned by BUILDUSER. This eliminates the last root-owned files in obj/ from 'make build'. In addition, place a MACHINE == hppa test in hppa/stand/Makefile.inc to avoid creating bogus symlinks on all other archs. joint work with & ok natano, "let's try it" deraadt
2016-11-05Two tweaks for compile/Makefile.inc:Martin Natano
1) Replace '.elif !exists(${OBJDIR}/Makefile)' with just '.else'. espie pointed out, that if the file existed, make wouldn't be reading this file, so the check is superflous. Less clutter. 2) Unconditionally define the 'clean' and 'cleandir' targets, also when obj doesn't exist. This changes the behaviour of 'make clean' to be successful (doing nothing) without obj@ or obj/. ok tb millert deraadt
2016-11-05Drop unnecessary #ifdef MBUF_TIMESTAMP.Visa Hankala
2016-11-05Do not show a device unit number in the cnmac interrupt name. The sameVisa Hankala
interrupt drives all the cnmac ports. ok stsp@
2016-11-02when CONSPEED moved from libsa.h to Makefile it lost a leading '1',Jasper Lievisse Adriaanse
reinstate the original of 115200 spotted by brad
2016-11-02Make possible to change the link layer address of a cnmac(4) interface.Visa Hankala
Asked by and ok stsp@, ok jasper@
2016-10-29If the system has fdt, use it for locating network PHYs.Visa Hankala
Skip a network port if its PHY cannot be found. Tested on Lanner MR-326B (has fdt) by pirofti@, and on EdgeRouter Pro (has fdt) and on EdgeRouter Lite (no fdt) by me.