summaryrefslogtreecommitdiff
path: root/sys/arch/octeon
AgeCommit message (Collapse)Author
2017-07-30Add a driver for CIU3. Not quite finished yet, but good enough for now.Visa Hankala
2017-07-29There is no RTC on the E300 boards.Visa Hankala
2017-07-29Replace a complex `if' condition with a list.Visa Hankala
OK pirofti@
2017-07-28Add a driver for the OCTEON SATA controller bridge.Visa Hankala
OK deraadt@, jasper@, kettenis@
2017-07-28Add a workaround that allows the use of sys/dev/fdt code on octeon.Visa Hankala
OK kettenis@
2017-07-25rework octuctl and its children to attach via fdtJonathan Matthew
ok visa@
2017-07-25Remove leftovers of a past softintr mechanism.Visa Hankala
OK mpi@, kettenis@
2017-07-18Stop automatically regenerating gap.o (and hence linking a new kernel)Theo Buehler
whenever make is issued. Only do this when there are actual source changes below /sys. This restores the behavior prior to the KARL implementation. Problem noticed and patiently explained by mpi implementation with a lot of help from espie ok mpi, espie, deraadt
2017-07-16Pass the linker from make environment to makegap.sh. This is (only)Visa Hankala
a partial solution to cross compiling the kernel with KARL. OK deraadt@ a while ago
2017-07-15iobus_h is unused, remove it.Visa Hankala
2017-07-13Add a driver for the CIB interrupt controller. Certain deviceVisa Hankala
controllers need it on CN70xx/CN71xx.
2017-07-13Add handling for the third interrupt summary vector,Visa Hankala
needed by upcoming work.
2017-07-13Get cpuid from `ci' to avoid an extra function call.Visa Hankala
2017-07-12Reorganize separate configuration fields into per-CPU structsVisa Hankala
to compact the data indexing. This additionally improves the cache locality of the data.
2017-07-10Keep refusing SDIO initialization. The driver cannot work properlyVisa Hankala
with SDIO because it does not handle card interrupts.
2017-07-07Add logic for running SD commands. Tested with a few different makesVisa Hankala
of MMC/SD memory.
2017-07-07Fix function name in panic message.Visa Hankala
2017-07-03Attach com(4) using fdt on octeon.Visa Hankala
The relevant part of uartbus(4) is made part of the com(4) glue to avoid extra maneuvers in the code.
2017-07-03Add the first UART into the fdt blob.Visa Hankala
2017-06-29put SYSTEM_SWAP_DEP out of its misery, it died in 1997, along with config.oldMarc Espie
"go for it" deraadt@
2017-06-29Always use the maximum permissible frame size for Rx size limit.Visa Hankala
This lets a change of interface MTU take effect immediately without link cycling and brings cnmac(4) into line with other jumbo frame capable NIC drivers. Prompted by Joe Holden on misc@ OK dlg@
2017-06-26Arrange a phandle for the "ciu" node.Visa Hankala
2017-06-25dull dependency for copying makegap.sh to obj, so that installsTheo de Raadt
without src and comp work. That is what we've designed for, but since we always have src and comp on our systems it is so easy to slide... problem first noted by rpe.
2017-06-22Generate a gap.link script, and use that to generate gap.o. On multi-ABITheo de Raadt
architectures we must also link against a gapdummy.o to repair the ABI of the resulting .o file. Woe is me. Also repair install: target to update the linkkit & hash when a kernel is installed. ok rpe tb mlarkin and tested by others also
2017-06-19Fix the timecounter register on CN72xx/CN73xx.Visa Hankala
2017-06-19Use octeon_model_family() for SoC identification as in the restVisa Hankala
of the code.
2017-06-19Use type register_t instead of __register_t. Drop unneeded __unused.Visa Hankala
2017-06-19There is no RTC on the E1000 board.Visa Hankala
2017-06-19Use a consistent naming for fdt attach arguments.Visa Hankala
2017-06-18Split octeon interrupt code into a glue layer and a CIU driver.Visa Hankala
This makes possible to add drivers for other interrupt controllers on the platform. The glue layer has been derived from arm64/armv7.
2017-06-18Move IPI control entry points into octeon_intr.c.Visa Hankala
Needed by upcoming driver changes.
2017-06-18Drop unnecessary call to octeon_setintrmask(). The function gets calledVisa Hankala
by the splx() handler.
2017-06-13newbsd: target which re-links a kernel. We cannot use the bsd: targetTheo de Raadt
since it has source dependencies, and relinking doesn't have any. Also the bsd: target is created by config(8)... worked on with rpe.
2017-06-11make vers.o not depend on gap.o using a trick, because it is piece ofTheo de Raadt
fiction participating only in the linkphase. tricks from rpe and espie
2017-06-11Use umask 077 instead of cp -p when installing the kernel as root.Alexander Bluhm
Otherwise owner of /bsd could be the build user with permissions inherited from the compile directory. OK deraadt@ tb@
2017-06-11Define register_splx_handler() in one place.Visa Hankala
2017-06-11Fix TLB size computation on OCTEON II and III. The CPUs have utilizedVisa Hankala
the whole TLB space even before this. However, TLB initialization on boot and TLB flush on ASID wraparound have been incomplete. These have caused crashes of processes.
2017-06-11Add a memory barrier to ensure that stores become visibleVisa Hankala
in a proper order.
2017-06-08Wrap startup code with .ent and .end for proper disassembly.Visa Hankala
2017-06-08Move loongson/octeon/sgi unmap_startup() under arch/mips64.Visa Hankala
2017-06-06Remove code that is not needed right now.Visa Hankala
2017-06-06Implement startup smashing in C. The code should be movedVisa Hankala
under arch/mips64 once loongson and sgi have gap.o. Discussed with deraadt@
2017-06-05Randomize the link order of .o files in the kernel on octeon.Visa Hankala
Unlike on some other architectures, it is not possible to unmap the early boot code. Instead, the code is smashed during boot. Input from deraadt@
2017-06-05The arm* architectures edit the ld.script, creating a copy in the compileTheo de Raadt
directories. Copy it in the same way on other architectures, for the same effect. Something upcoming will want that file there anyways.
2017-06-03Create gap.S and gap.o with umask 077. Create lorder and bsd* with umask 007.Theo de Raadt
Prying eyes cannot look at the kernels in the compile directory. ok tb rpe, kernel developers seem unimpacted
2017-05-09Mix bits from the built-in RNG with the randomdata section at boot time.Visa Hankala
This should improve considerably the quality of early entropy and stack protector guard data on octeon. Suggested by and OK deraadt@ OK kettenis@, jasper@
2017-05-08add a BUS_DMA_64BIT flag to bus_dma on all our archs.David Gwynne
this is so drivers can advertise that they can handle 64 dma addresses to the platform. it may choose to handle dmamaps differently based on this flag. tweaks and ok tom@ ok kettenis@
2017-05-04Also pass the blk offset to disk_unbusy(), so that it can pass it toTheo de Raadt
the random subsystem as entropy. This value is pretty much unknown, and anyways our entropy input ring does not saturate from knowns. ok mikeb djm
2017-05-04enable brgphy, which appears in the edgerouter proJonathan Matthew
2017-05-02Revise MDIO driver code so that device instances can be attachedVisa Hankala
using fdt. This lets the system utilize multiple MDIO controllers. This patch enables all RJ45 Ethernet ports on EdgeRouter Pro. The SFP module slots do not work yet. OK kettenis@, jmatthew@