summaryrefslogtreecommitdiff
path: root/sys/arch/octeon
AgeCommit message (Collapse)Author
2018-10-31Bring over gapdummy.c changes from amd64/amr64/armv7/i386.Mark Kettenis
ok deraadt@, mortimer@, visa@
2018-09-14add gapdummy.c to the "clean" target like other generated filesChristian Weisgerber
ok visa@ jsg@ phessler@
2018-08-22Enable uscom(4) where uslcom(4) is already present.Martin Pieuchot
Based on a submisison from Jan Klemkow.
2018-08-20Remove unused spllock().Visa Hankala
OK deraadt@ mpi@
2018-08-09Define __HAVE_ACPI on arm64 and __HAVE_FDT on arm64, armv7 and octeonPatrick Wildt
so that we can include firmware-dependant code in generic drivers to be able to extract metadata information like MAC addresses and out-of-band interrupts from the ACPI/FDT tables. ok kettenis@
2018-08-06Give the FDT interrupt API a more generic naming by replacing thePatrick Wildt
arm_intr_* prefix with fdt_intr_*. ok kettenis@
2018-06-18Improve indentation and variable naming.Visa Hankala
2018-06-18Fix build with DEBUG_PCI_CONF.Visa Hankala
From jj@
2018-06-13Make octeon kernels compile with DEBUG.Visa Hankala
Based on a diff from jj@. Thank you!
2018-06-01Add a kludge that fixes the build until com_fdt.c is ready for octeon.Visa Hankala
2018-05-30Add sizes for free() for octeon.Frederic Cambus
OK deraadt@, visa@
2018-05-05Enable octcrypto(4).Visa Hankala
2018-05-04Add a common rules file for ofw sources to help keep the configurationsVisa Hankala
of fdt-enabled platforms in sync. OK deraadt@
2018-05-02Fix build. The power domain API is needed by r1.9 of xhci_fdt.c.Visa Hankala
2018-04-28replace add_*_randomness with enqueue_randomness()Jasper Lievisse Adriaanse
this gets rid of the source annotation which doesn't really add anything other than adding complexitiy. randomess is generally good enough that the few extra bits that the source type would add are not worth it. ok mikeb@ deraadt@
2018-04-09Add a driver for the OCTEON cryptographic unit. It providesVisa Hankala
a hardware-accelerated implementation of several encryption and authentication algorithms for ipsec(4): AES-CBC AES-CTR AES-GCM AES-GMAC HMAC-MD5 HMAC-SHA1 HMAC-SHA2-256 HMAC-SHA2-384 HMAC-SHA2-512 Please note that the driver is currently disabled. OK deraadt@
2018-03-31r1.7 of xhci_fdt.c pulls in the regulator API.Visa Hankala
Add ofw_regulator.c and its dependencies to fix build.
2018-03-02Fix reference clock frequency.Visa Hankala
2018-02-24Declare ci_ipl volatile to prevent the compiler from optimizingVisa Hankala
or reordering accesses to the variable. Assume that the assembler preserves the correct sequence of instructions, which allows the removal of the explicit noreorder/reorder toggles from the C code. With ci_ipl being volatile, drop mips_sync() calls that follow the accesses of the variable. The sync is redundant as a compiler barrier. In addition, the MIPS64 CPU designs should not need the sync for pipeline or write buffer control. According to miod@, the use of the instruction is a carryover from code targeting early MIPS designs that lack tight integration with the cache and write buffer. Discussed with and testing help from miod@. Tested on CN5020, CN6120, CN7130, CN7360, Loongson 2F and 3A1000, R4400, R8000, R10000 and R16000.
2018-02-18Inline hw_{get,set}curcpu() to streamline the machine code.Visa Hankala
2018-02-09Check for the existence of /bsd before trying to back it up to /obsd.Theo Buehler
Fixes 'make install' when /bsd is not present for some reason. ok rob florian, "fine with me" deraadt
2018-01-27Sync the nam2blk entries with the bdevsw table, which is theChristian Weisgerber
definitive list of block devices supported on an architecture. ok kettenis@ deraadt@
2018-01-23Always lock the kernel lock with non-MP-safe interrupt handlers.Visa Hankala
Suggested by kettenis@
2018-01-22Include <sys/mutex.h> instead of <machine/mutex.h>Martin Pieuchot
required by upcoming MI mutex change.
2018-01-18Fix the computation of `ncpusfound' on !MULTIPROCESSOR kernels so thatVisa Hankala
the value matches with the number of cores that GENERIC.MP uses. OK deraadt@, krw@, pirofti@
2018-01-16Fix bit.Visa Hankala
2018-01-16Fix return value.Visa Hankala
2018-01-11Add size for free.Visa Hankala
OK mpi@
2018-01-08Override membar_producer() for octeon.Visa Hankala
OK dlg@
2018-01-07Assume that direct-mapped addresses come from the xkphys segment.Visa Hankala
2018-01-07Add references to errata.Visa Hankala
2017-12-30Don't pull in <sys/file.h> just to get fcntl.hPhilip Guenther
ok deraadt@ krw@
2017-12-30Delete unnecessary <sys/file.h> includesPhilip Guenther
ok millert@ krw@
2017-12-27Make octeon_intr_establish() assume edge triggering with CIU3.Visa Hankala
This makes the API usable with edge triggered interrupt sources.
2017-12-27Ensure interrupt delivery is disabled when setting interruptVisa Hankala
delivery entry.
2017-12-11In uvm Chuck decided backing store would not be allocated proactivelyTheo de Raadt
for blocks re-fetchable from the filesystem. However at reboot time, filesystems are unmounted, and since processes lack backing store they are killed. Since the scheduler is still running, in some cases init is killed... which drops us to ddb [noted by bluhm]. Solution is to convert filesystems to read-only [proposed by kettenis]. The tale follows: sys_reboot() should pass proc * to MD boot() to vfs_shutdown() which completes current IO with vfs_busy VB_WRITE|VB_WAIT, then calls VFS_MOUNT() with MNT_UPDATE | MNT_RDONLY, soon teaching us that *fs_mount() calls a copyin() late... so store the sizes in vfsconflist[] and move the copyin() to sys_mount()... and notice nfs_mount copyin() is size-variant, so kill legacy struct nfs_args3. Next we learn ffs_mount()'s MNT_UPDATE code is sharp and rusty especially wrt softdep, so fix some bugs adn add ~MNT_SOFTDEP to the downgrade. Some vnodes need a little more help, so tie them to &dead_vnops. ffs_mount calling DIOCCACHESYNC is causing a bit of grief still but this issue is seperate and will be dealt with in time. couple hundred reboots by bluhm and myself, advice from guenther and others at the hut
2017-12-05Show board ID and revision in dmesg to ease the identificationVisa Hankala
of system model. The early boot code already prints them, but that output is not buffered and tends to be left out from dmesg submissions.
2017-12-05Drop cn30xxpow_intr_establish(), cn30xxpow_intr() and some otherVisa Hankala
unused code. POW interrupts are now handled in if_cnmac.c.
2017-11-26On wqe error, show also word2 and word3. Those might help in debugging.Visa Hankala
2017-11-26Initialize Rx subsystems before enabling the processing of incomingVisa Hankala
packets. Otherwise, a skosh of traffic may be handled using hardware default settings. One of the consequences is that packets can end up into a wrong POW group, causing a panic in cnmac_intr(). Panic reported by and testing help from Janne Johansson
2017-11-20Add the board ID of the Unifi Security Gateway PRO-4.Visa Hankala
Not tested with the hardware.
2017-11-20Fix the product code of the Unifi Security Gateway.Visa Hankala
Prompted by Justin Hibbits
2017-11-18Submit incoming packets to the network stack in batches like is doneVisa Hankala
in many other NIC drivers. This reduces submission overhead.
2017-11-18Move the packet input work requesting inside if_cnmac.c. This removesVisa Hankala
a layer of abstraction that would complicate upcoming changes.
2017-11-18Pass the software context as an argument to the interrupt handler.Visa Hankala
This is now possible because each port has a dedicated work queue interrupt.
2017-11-18Rename octeon_eth_* to cnmac_* for consistency with the driver's name.Visa Hankala
This also makes the code a bit less noisy to read.
2017-11-18Add the board ID for the Ubiquiti Unifi Security Gateway.Visa Hankala
From Justin Hibbits, thanks!
2017-11-09Synchronize command initiation, event wait, and interrupt handlingVisa Hankala
using a mutex. This lets octmmc_intr() run without the KERNEL_LOCK(). Tested on CN6120, CN7130 and CN7360.
2017-11-05Set the core's own group mask when scheduling work, to receive workVisa Hankala
from the intended group.
2017-11-05Handle failure.Visa Hankala