summaryrefslogtreecommitdiff
path: root/sys/arch/octeon
AgeCommit message (Collapse)Author
2022-07-18Compile octeon kernels with -march=mips64r2Visa Hankala
Even though -march=octeon seems to work, avoid it for now. It is not entirely certain that the compiler will not use cnMIPS special registers accidentally in normal kernel code. Discussed with and OK miod@
2022-07-02remove machine/lock.h where unusedJonathan Gray
Previously for __cpu_simple_lock parts. Now only hppa and m88k use __cpu_simple_lock (and hppa uses atomic.h for it). ok miod@ visa@
2022-06-28Remove unused field d_poll from struct cdevsw.Visa Hankala
OK miod@ mpi@
2022-04-06constify struct cfattachChristian Weisgerber
2022-01-10Initialize variables that are touched in the error path.Visa Hankala
Reminded by LLVM scan-build.
2022-01-08Remove verbose PCI and USB device info from BOOTVisa Hankala
BOOT kernels do not print kernel messages, and currently there is no way to change this at runtime. Remove the verbose device information to save some space.
2022-01-08Adjust debug printfs after pcitag_t type change.Visa Hankala
2022-01-07Add missing dependency.Visa Hankala
2022-01-06Use a 64-bit integer for pcitag_t and define PCITAG_NODE and PCITAG_OFFSETTheo de Raadt
macros to make kernel build again, same diff as armv7. ok kettenis visa
2021-12-17Disable a few warning flags that were introduced and enabled by defaultPatrick Wildt
with LLVM 13.
2021-11-27stop building kernels with -Wno-uninitialized on clang archsJonathan Gray
this hides real problems that could be found at build time ok kettenis@ visa@, ok sashan@ on amd64/i386
2021-11-11Retire switch(4) it never really was production ready and the OpenFlowClaudio Jeker
API implemented is a deadend. OK akoshibe@ yasuoka@ deraadt@ kn@ patrick@ sthen@
2021-10-24Stop setting etype in the MD crypto code. So far we have set the etypePatrick Wildt
and returned the error, which made the MI crypto code set the etype for a second time. We still have to set etype after calling the MD process function, as the callers of crypto_invoke() still expect error handling to be shown through the etype. But at least now all MD crypto code does not have to worry about that anymore. Once the callers are changed to not look at etype anymore, we can get rid of it completely. ok tobhe@
2021-10-23Retire asynchronous crypto API as it is no longer required by any driver andTobias Heider
adds unnecessary complexity. Dedicated crypto offloading devices are not common anymore. Modern CPU crypto acceleration works synchronously, eliminating the need for callbacks. Replace all occurrences of crypto_dispatch() with crypto_invoke(), which is blocking and only returns after the operation has completed or an error occured. Invoke callback functions directly from the consumer (e.g. IPsec, softraid) instead of relying on the crypto driver to call crypto_done(). ok bluhm@ mvs@ patrick@
2021-10-13The kernel crypto framework sometimes returned an error, sometimesAlexander Bluhm
the callback was called, and sometimes both. So the caller of that API could not release resources correctly. A bunch of errors can or should not happen, replace them with an assert. Remove redundant checks. crypto_invoke() should not return the error, but pass it via callback. Some old hardware drivers keep part of their inconsistency as I cannot test them. OK mpi@
2021-08-21octeon has no wskbd, so ucc cannot link. the files.usb parts should haveTheo de Raadt
handled this, but they don't. disable until this is revisited.
2021-08-20Add ucc(4), a driver for USB HID Consumer Control keyboards. Suchanton
keyboard is a pseudo device which is used to expose audio and application launch keys. My prime motivation is to get the volume mute, increment and decrement keys to just work on my keyboard without the need to use usbhidaction(1). Looks reasonable to kettenis@ mpi@ and ok jcs@
2021-07-29Fix device class.Visa Hankala
2021-07-24The updated dwctwo(4) driver introduces two new parameters.Marcus Glocker
2021-07-24Fix octeon build after dwctwo(4) update.Marcus Glocker
From deraadt@
2021-07-24Replace cpus_running with CPU_IS_RUNNING().Visa Hankala
2021-07-12Remember to set CPUF_RUNNING on secondary CPUs.Visa Hankala
2021-07-12Make hw_cpu_hatch() more similar on loongson and octeon.Visa Hankala
2021-07-08The properties of the crypto algorithms never change. Declare themAlexander Bluhm
constant. Then they are mapped as read only. OK deraadt@ dlg@
2021-05-16panic does not require a \n at the end. When one is provided, it looks wrong.Theo de Raadt
2021-03-11spellingJonathan Gray
2021-03-09Add initial bits for Check Point UTM-1 EDGE N.Visa Hankala
From Thaison Nguyen
2021-03-04Tweak whitespace and adjust prototypes.Visa Hankala
2021-03-04Combine octeon_pcibusvar.h into octeon_pcibus.c to reduce scatter.Visa Hankala
2021-02-25we don't have to cast to caddr_t when calling m_copydata anymore.David Gwynne
the first cut of this diff was made with coccinelle using this spatch: @rule@ type caddr_t; expression m, off, len, cp; @@ -m_copydata(m, off, len, (caddr_t)cp) +m_copydata(m, off, len, cp) i had fix it's opinionated idea of formatting by hand though, so i'm not sure it was worth it. ok deraadt@ bluhm@
2021-02-20Fix disestablishing of PCI interrupt handlers.Visa Hankala
2021-02-17Do not reprogram address filter after MII status changeVisa Hankala
The address filter is not affected by link parameter changes, so its reprogramming can be skipped.
2021-02-13Revise cnmac(4)'s address filter setupVisa Hankala
Set up the DMAC filter in one go instead of doing it separately for unicast and multicast DMACs. This attempts to make the code a little more readable. The setup should now run a bit faster as well because it now does fewer register accesses. Tested on CN5020, CN6120 and CN7130.
2021-02-11Leave out gp initialization from kernel entry on mips64Visa Hankala
On OpenBSD/mips64, the kernel is compiled with -mno-abicalls. This disables gp-relative addressing and essentially makes gp a spare register in the kernel. Hence it is unnecessary to initialize gp when entering the kernel. The _gp symbol is not needed either. Suggested by miod@
2021-02-06Revise kernel's ld.script on octeonVisa Hankala
This allows more control over the structure of the linked kernel image. Now the ELF .openbsd.randomdata segment can be omitted from BOOT kernel. The segment has caused trouble with broken firmware when the firmware tries to load it on top of the actual kernel segment. Discussed with and OK deraadt@
2021-02-04Add uhidpp(4), a driver for Logitech HID++ devices. Currently limited toanton
exposing battery sensors for HID++ 2.0 devices. Most of the code is derived from the hid-logitech-hidpp Linux driver. Thanks to Ville Valkonen <weezeldinga at gmail dot com> for testing. ok mglocker@
2021-02-04Handle Netgear ProSecure UTM25Visa Hankala
This makes the system recognize and configure Netgear ProSecure UTM25. Of the network ports, LAN1-4 and WAN1 are functional. WAN2 does not work for some reason. Even though WAN1 has a separate link to the SoC, the connection appears to go through the same switch that the LAN ports use. At the moment, the system relies on U-Boot to set up the switch so that the LAN and WAN segments stay separate. Initial diff and input from Thaison Nguyen, thank you!
2021-01-30Abstract octeon board handling a littleVisa Hankala
Detect octeon board model in one place, and replace firmware-supplied board_type with an abstract model identifier in driver code. This makes it easier to manage with different products, and board flavours, that happen to use the same model information, such as board_type.
2021-01-28Again allow COPTS= to come from the environment again, and don't lose theTheo de Raadt
SMALL_KERNEL specific variations. ok espie jsg
2021-01-23introduce ujoy(4), a restricted subset of uhid(4) for gamecontrollers.thfr
This includes ujoy_hid_is_collection() to work around limitations of hid_is_collection() until this can be combined without fallout. input, testing with 8bitdo controller, and ok brynet@ PS4 controller testing, fix for hid_is_collection, and ok mglocker@
2021-01-01Add kstat to ogx(4).Visa Hankala
2020-12-31Enable IPv4 and TCP/UDP checksum offload on transmission.Visa Hankala
2020-12-12Rename the macro MCLGETI to MCLGETL and removes the dead parameter ifp.jan
OK dlg@, bluhm@ No Opinion mpi@ Not against it claudio@
2020-12-09Use daddr_t and not daddr32_t in boot media.Kenneth R Westerback
At a minimum, amd64/i386 should now boot from 4TB GPT formatted disks. More daddr32_t terminations with extreme prejudice to follow. Tested by various, in snaps for a few days. ok deraadt@
2020-10-25Revert accidental commit.Visa Hankala
2020-10-25Add missing firmload attribute.Visa Hankala
2020-10-10Remove unnecessary count of device instances.Visa Hankala
2020-09-10Add I2C bus scan routine for octiic(4)Visa Hankala
Unfortunately, machines tend to come with underpopulated device trees, and consequently this change is not very useful as is. The lack of good data is troublesome especially with things like I2C bus switches.
2020-09-10Register octiic(4) with the I2C frameworkVisa Hankala
This generally is an exercise in futility because the phandle of the controller node tends to be missing.
2020-09-09Make ogx(4)'s outbound bpf(4) tap actually workVisa Hankala