summaryrefslogtreecommitdiff
path: root/sys/arch/octeon
AgeCommit message (Collapse)Author
2015-10-28Enable TCP/UDP checksum offloading on packet transmission.Visa Hankala
ok mpi@
2015-10-28Add proper padding to packets that the hardware does not recognize asVisa Hankala
IP, to avoid memory alignment issues in the IP stack. ok miod@, mpi@
2015-10-25arp_ifinit() is no longer needed.Martin Pieuchot
2015-10-24Make use of hardware RX checksum validation.Visa Hankala
ok naddy@
2015-10-23Allocate a new major for tap(4) also note that pseudo-device tun is for tapClaudio Jeker
as well. OK dlg@ mpi@
2015-10-15Let the rx path of cnmac run without the kernel lock. To avoid the needVisa Hankala
of a mutex, the path no longer cleans up the queue of tx requests. ok mpi@
2015-10-08Remove the sc_soft_req_cnt field because the number of tx requests isVisa Hankala
already tracked in sc_sendq. Replace the sc_flush logic with a simple Fetch-and-Add store that avoids an unnecessary IOBDMA transaction. ok uebayasi@
2015-10-03correct a memory leak in error code path.Sebastien Marie
noticed by miod@ ok visa@
2015-09-30Use #ifndef _MACHINE_DISKLABEL_H_ everywhere. Replace _ARM_DISKLABEL_H_Kenneth R Westerback
and _SH_DISKLABEL_H_ with _MACHINE_DISKLABEL_H_. Add the guard to loongson and octeon. The #defines are not used anywhere else in the tree so no functional change.
2015-09-30Use consistant whitespace/comments for #define'ing LABELSECTOR,Kenneth R Westerback
LABELOFFSET and MAXPARTITIONS. Easier on the eye when scanning through all these files. No functional change.
2015-09-27Use readdisksector() instead of manual buf initialization. These areKenneth R Westerback
identical to the amd64 change already committed. ok deraadt@
2015-09-26xheart_splx() has to restore the interrupt mask even on secondary CPUsVisa Hankala
because each core has a separate mask. Otherwise the IPI can be left disabled accidentally on a non-primary CPU when the core uses the rendezvous mutex: 1. splraise(IPL_IPI) soft-masks the IPI. 2. An IPI hits and the CPU enters the interrupt handler. 3. The handler hard-masks the IPI. 4. The interrupt is not processed because of the CPU's current IPL. The IPI is left hard-masked on leaving the handler. 5. splx(s) lowers the IPL below IPL_IPI. However, the interrupt's hardware mask is left unchanged because of the CPU_IS_PRIMARY() check in xheart_splx(). After this, the system will eventually hang because the CPU does not respond to IPI requests of other cores. While here, fix a similar situation with CIU interrupts on octeon. This might save a few moments of debugging once non-primary CPUs are allowed to process CIU interrupts. ok miod@
2015-09-26Let MP-safe interrupt handlers run without the kernel lock on octeon.Visa Hankala
ok kettenis@
2015-09-22Make sure the openbsd.randomdata section is located before the edata symbol.Miod Vallat
2015-09-14Fix more ifmedia64 fallout in the kernel. It's hiding everywhere...Stefan Sperling
2015-09-13intr_barrier(9) for loongson, octeon and sgi.Mark Kettenis
2015-09-09The mplock implementations on MP-enabled mips64 platforms, octeon andVisa Hankala
sgi, are identical. Put one implementation in mips64 and drop the platform-specific copies, to remove duplicated code. ok miod@
2015-09-01Increase transfer FIFOs for dwc2, to improve USB performance. The newVisa Hankala
values are from dwc2 of NetBSD. ok jmatthew@, jasper@
2015-08-20Use the IPD Clock Count register as a timecounter, making the clockVisa Hankala
tick in Octeon MP land. ok pirofti@, miod@, uebayasi@
2015-08-19Halt extra cores on SP kernel, to avoid trashing the system if thereVisa Hankala
is more than one active CPU. Additionally pick an init core at runtime. This allows booting the system with a set of CPUs that does not contain core 0, at least in terms of the early-stage boot code. ok jasper@ (a while ago)
2015-08-18Unbreak Octeon kernel config after r1.25 of files.mips64.Visa Hankala
Feedback and ok miod@
2015-08-05Add octrtc(4) to RAMDISK.Paul Irofti
Okay deraadt@, jasper@.
2015-08-03add amdcf(4) here too; unbreaks RAMDISKJasper Lievisse Adriaanse
ok pirofti@
2015-07-21Let octeon kernel compile again with the MP_LOCKDEBUG option.Visa Hankala
ok miod@
2015-07-20Add a new flash driver for Octeon that allows access to the internalPaul Irofti
memory on (at least) D-Link DSR500 machines. This follows the CFI specification with code borrowed from zrouter (FreeBSD). The idea, once the current driver is thoroughly tested, would be to move it to MI land. The prerequisites to MI are width, shift and row detection and handling. In the long run I hope to be able to also add wdc support. For now write support is disabled. Okay miod@, deraadt@.
2015-07-20it's unlikely we'll run on physical octeon hardware that's little endian;Jasper Lievisse Adriaanse
therefore remove unneeded ifdef blocks. ok miod@ pirofti@
2015-07-19rework how iobus(4) finds and attaches devices.Jasper Lievisse Adriaanse
this allows us to get rid of the static list of children devices, using only a lookup table for address hints where needed. as a bonus this removes the 'octcf0: [..] not configured' mesage on machines w/o octcf(4). tested by pirofti@ on DSR-500 and ERL by me ok miod@
2015-07-19don't check for the name in attach_args being NULL; nothing should callJasper Lievisse Adriaanse
their match functions with (g)aa_name not set. ok miod@
2015-07-19Register the IPI handler early enough for the correct idle_mask tovisa
propagate to all threads. Otherwise early-started kernel threads run IPIs disabled, which will lead to a deadlock soon after other cores have started. ok miod@ pirofti@
2015-07-19set usb vendor string to 'Octeon' instead of ''Jasper Lievisse Adriaanse
ok pirofti@
2015-07-19remove pointless castJasper Lievisse Adriaanse
ok pirofti@
2015-07-17remove obsolete INET kernel optionTed Unangst
2015-07-17Remove {LOAD,COUNT}_TEXTA from libsa loadfile, it only made sense for a.outMiod Vallat
kernels and we no longer have any.
2015-07-16make a comment more safe, there's no CRIME there.Jasper Lievisse Adriaanse
2015-07-15Ditch the octeon simulator non-sense.Paul Irofti
Discussed with miod@.
2015-07-15Refix memory handling for machines with less than 256M broken by revision 1.64.Paul Irofti
Allows my DSR-500 to boot again. Okay miod@.
2015-07-13Do not attempt to configure octhci, superseded by dwc2Miod Vallat
2015-07-08unify the mutex implementations on all the mips64 platforms.David Gwynne
this basically copies the sgi implementation to mips64 and removes it from the rest. this way they get an optimised UP mutex implementation and correct asserts on all platforms. ok miod@ jmatthew@
2015-07-03Put the newline at the right place.Miod Vallat
2015-06-30Add "sd" to be specifiedit as "rootdev=" boot parameter.YASUOKA Masahiko
ok jmatthew
2015-06-28enable octdwctwo and add umassJonathan Matthew
2015-06-25Re-enable memory above 256mb now that uvm_pmr_get1page() has been fixed.Jonathan Matthew
From Visa Hankala.
2015-06-24Increment if_ipackets in if_input().Martin Pieuchot
Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
2015-06-11convert sc_sendq into an mbuf_list, and use ph_cookie rather than rcvif toJonathan Matthew
store the sgl address, allowing rcvif to be removed. ok mpi@ dlg@ uebayasi@
2015-05-23use & not && when testing lcr bitsJonathan Gray
tested by jmatthew ok pirofti@ jmatthew@ jasper@
2015-05-04fix device numbering comments, no binary changeJonathan Matthew
2015-05-01Do not grab the kernel lock for clock interrupts. Help and ok kettenis@Miod Vallat
2015-04-30Convert to if_input().Martin Pieuchot
Tested by jmatthew@
2015-04-26Get dwc2 working on octeon.Jonathan Matthew
- transplant the clock setup code from octhci - add a bus space tag to deal with dwc2 using little endian addressing - bump up the rx fifo size, necessary for umass/sd to work tested on an edgerouter lite, which can almost boot by itself now ok uebayasi@ (various parts), miod@ (bus space bits)
2015-03-19Let it compile!Martin Pieuchot