summaryrefslogtreecommitdiff
path: root/sys/arch/octeon
AgeCommit message (Collapse)Author
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.
2016-10-29Make PHY address lookups fail instead of using CAM-0100 entriesVisa Hankala
when the system board is unhandled.
2016-10-27We don't generate an eddep script for kernel builds nowadays. The lastMartin Natano
reference to eddep in the kernel Makefile I could find is in 4.3BSD, released some 30 years ago. ok tb millert
2016-10-27Revert previous `ncpus' change because the percpu code now worksVisa Hankala
without it.
2016-10-26Increment `ncpus' to its final value already during autoconfiguration soVisa Hankala
that percpu data areas get allocated properly on mips64 platforms. It is too late to set the value during launch of secondary CPUs. ok jasper@ kettenis@ dlg@
2016-10-24make cleandir should skip the version file; ok otto millertTheo de Raadt
2016-10-21Check if memory allocation failed.Visa Hankala
2016-10-21Fix grammar, and simplify a little.Visa Hankala
Pointed out by pirofti@
2016-10-21Revert previous commit.Paul Irofti
I was building in the wrong tree and got confused. Sorry!
2016-10-21Fix build: declare the pcie read/write routines before using them.Paul Irofti
2016-10-15cleandir: target for kernel compile directoriesTheo de Raadt
ok natano
2016-10-14Kernel builds now happen in compile/CONFIG/obj@ -> /usr/obj/... [or ./obj/,Theo de Raadt
if srctree is not rooted at /usr/src]. As a result, stock GENERIC & RAMDISK kernels are commited to the tree, to ensure the src tree can be "readonly" during builds, with all writes occuring inside the obj space. config -b options are handled by ../Makefile.inc. The canonical new way to configure one of these kernels is: % cd /sys/arch/amd64/compile/GENERIC.MP % doas make obj % make config % make % doas cp obj/bsd /bsd The build infrastructure will use this new mechanism in a de-escalation way using BUILDUSER. Much help from natano and tb.
2016-10-09Apply consistency to forever loops with continue and NOTREACHEDTom Cosgrove
Same thought from kettenis@, ok krw@ phessler@ millert@
2016-09-24Add -Wno-pointer-sign to all our gcc4 architectures.Mark Kettenis
ok patrick@ (for armv7), deraadt@
2016-09-13crank bootloader version after .SUNW_ctf changeJasper Lievisse Adriaanse
as discussed with jsing@ it's easier this way to ensure people have bootblocks capable of loading the section
2016-09-04Remove support for tape block devices. Nobody mount(8)s tapes any longer.Christian Weisgerber
ok deraadt@ guenther@
2016-09-02Add switch(4) cdev entryKazuya Goda
ok deraadt@ yasuoka@ reyk@
2016-08-14Remove some annoying debug printfs to get rid of u_quad_t in cnmac.Visa Hankala
2016-08-14Utilize the TLB Execute-Inhibit bit with non-executable mappings on CPUsVisa Hankala
that support the Execute-Inhibit exception. This makes user space W^X effective on Octeon Plus and later Octeon versions. Feedback from miod@, thanks! No objection from deraadt@
2016-08-06Add PageGrain bits.Visa Hankala
2016-08-06Log RX errors only when the interface's debug flag is set.Visa Hankala
While here, remove unused PIP error code aliases.
2016-08-05Drop a pointless link carrier check from the RX path.Visa Hankala
2016-08-04Add support for jumbo frames.Visa Hankala
2016-07-30Remove disabled jumbo frame checks. They will not be neededVisa Hankala
for jumbo frame support.
2016-07-30Drop a redundant parameter of octeon_eth_buf_free_work().Visa Hankala
2016-07-30Prep for relro: make sure it's off for any non-PIE stand/ programPhilip Guenther
ok millert@ kettenis@
2016-07-27Remove unnecessary remapping of registers.Visa Hankala
ok jasper@
2016-07-16Add $OpenBSD$ / replace $Id$ with $OpenBSD$.Visa Hankala
2016-07-16Remove octeon_disable_interrupt() and octeon_restore_status().Visa Hankala
They are unused and equivalent to disableintr() and setsr(). While here, clean up a few other leftovers.
2016-07-10Use the synciobdma instruction instead of the sync instruction forVisa Hankala
flushing any pending local IOBDMA operations. The sync instruction is overkill because it implies a full memory barrier. ok jasper@ (long time ago)
2016-07-05Remove debug code that slipped in.Visa Hankala
2016-07-05Add openprom(4) for octeon.Visa Hankala
ok kettenis@ deraadt@ jasper@
2016-07-01Add fdt init for octeon.Visa Hankala
2016-06-28enable ure(4) where we already have url(4)Jonathan Matthew
2016-06-22Add support for the second GMX interface on Octeon II. This enablesVisa Hankala
ports eth[0-3] on 8-port EdgeRouters. Currently, port eth0 maps to network interface cnmac4, eth1 to cnmac5 etc. ok dlg@, tested by martijn@
2016-06-18Make the 1 Gbps SGMII settings the default to define a consistent set ofVisa Hankala
parameters even if a link is down.
2016-06-18Fix PCS block size.Visa Hankala
2016-06-09Add SGMII support and PHY addresses for 8-port EdgeRouters. This makesVisa Hankala
plain RJ45 ports eth[4-7] usable. ok dlg@, tested by martijn@
2016-06-08Remove octhci(4). It has been superseded by dwctwo(4).Visa Hankala
ok mpi@ deraadt@ pirofti@ dlg@
2016-06-01Enable utvfu(4) everywhere where uvideo(4) is also enabled.Marcus Glocker
suggested by mpi
2016-05-31fix arch/mach confusion in make tags. from frantisek holopTed Unangst
2016-05-30Fill the packet data pool with standard mbuf clusters instead ofVisa Hankala
driver-specific memory blocks. This lets the cnmac(4) RX path run without an mbuf ext_free callback. ok uebayasi@
2016-05-29Map ASX registers only if link control needs them.Visa Hankala
ok mpi@
2016-05-29The same MAC filter setup code should work with all PHY link types.Visa Hankala
Remove unnecessary abstraction. ok mpi@