summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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-09Dynamically attach i.MX6 ahci(4) using the FDT.Mark Kettenis
ok jsg@
2016-06-09Make use of the information about the node passed down to us by simplebus(4).Mark Kettenis
ok jsg@
2016-06-09Fetch "reg" and "interrupts" properties and pass them down as attach args toMark Kettenis
our children. ok jsg@
2016-06-08remove obsolete raid from namtoblk tables. from Artturi AlmTed Unangst
2016-06-08stop requiring a matching platform to continue bootingJonathan Gray
2016-06-08Remove octhci(4). It has been superseded by dwctwo(4).Visa Hankala
ok mpi@ deraadt@ pirofti@ dlg@
2016-06-08Dereference p_p once rather than 4 times.Theo de Raadt
2016-06-08hppa & mips64 now can do the full W^X check. (Make sure you haveTheo de Raadt
a new kernel before this change, and ld.so updated)
2016-06-08Use fdt to find the console to initialise. Try to use /chosen/stdout-pathJonathan Gray
if present otherwise fallback to /aliases/serial0. Don't require a platform match to run the various console init functions so the init functions will run for unknown board ids. With and ok kettenis@ on a earlier version.
2016-06-08attach acpitoshiba(4) on more Toshiba laptopsGiovanni Bechis
ok pirofti@
2016-06-08Revert previous, it breaks regression tests.Martin Pieuchot
2016-06-08Move ND resoluton logic from nd6_output() to nd6_storelladdr() andMartin Pieuchot
rename it to nd6_resolve(). This allows us to get rid of non-Ethernet hacks by moving Ethernet specific logic in the appropriate layer. ok sthen@
2016-06-08Enforce W^X and map W|X segments without X permission initially. TheMark Kettenis
dynamic linker will make these read-only and add back X permission after elocation processing. Static executables with W|X segments will probably crash. ok deraadt@, guenther@
2016-06-08As logging to dmesg with msgbuf_putchar() can happen in any interruptAlexander Bluhm
handler, every access to msg buf counters should be protected by splhigh(). This is already done in some places, make it consistenly everywhere. OK mpi@ deraadt@
2016-06-08reporting a different issue, bluhm noticed that valid is not initialized.Ted Unangst
2016-06-07Allocate RAM for guest VM in vmd(8) and pass it to vmm(4)Stefan Kempf
vmm(4) then maps the pages allocated by the vmd(8) user process into the address space of the guest. This gives vmm(4) and vmd(8) a shared view of the guest RAM. This will allow us to have faster guest<->host data exchange by ordinary memory loads/stores later, as well as remove the vm_readpage and vm_writepage ioctls next. ok mlarkin@
2016-06-07Multicast packet are already duplicated in bridge_process() soMartin Pieuchot
no need to loop another copy on the receiving interface. Reported by and ok uebayasi@
2016-06-07Use rtalloc(9) instead of ifa_ifwithnet() to find an interfaceMartin Pieuchot
when adding a route to gateway to ensure a most specific match. This makes "# route add" coherent to "# route get" even with p2p interfaces. Fix a problem reported by Mart Tõnso. ok vgross@
2016-06-07Move initialization macro outside of #define _KERNEL to use them inMartin Pieuchot
ART regression tests. ok dlg@, jmatthew@
2016-06-07remove splsoftfd and splausoftDavid Gwynne
theyre unused. ok kettenis@
2016-06-07consistently set ipls on pmap pools.David Gwynne
this is a step toward making ipls unconditionaly on pools. ok deraadt@ kettenis@
2016-06-07ktrace support for pollfd[] arraysTheo de Raadt
ok guenther
2016-06-07per trending style, add continue to empty loops.Ted Unangst
ok mglocker
2016-06-06Remove wsmouse_input.Ulf Brosziewski
ok mpi@
2016-06-06Provide a bus_dma tag as part of the pvbus attach argumentsMike Belopuhov
ok reyk (a while ago)
2016-06-06Move nd6_output()'s "short-circuiting" for non-lladdr interface types earlier.Stuart Henderson
nd6.c's nd6_output() decides whether link-layer address resolution is needed before sending the packet. Up to r1.178 packets for many non-ethernet interface types were sent directly without checking the gateway or determining if link- layer address resolution was needed. In r1.179 this was changed to skip some decision making for gif(4) but moved the short-circuiting for those interface types to *after* the gateway was checked. In my v6 pppoe setup, rt_checkgate is returning EHOSTUNREACH so this move prevented it from working. ok mpi@
2016-06-06Kill unused function wrappers, from David Hill.Martin Pieuchot
2016-06-06Move logic to send ARP replies to arpreply().Martin Pieuchot
ok florian@, dlg@
2016-06-06Get rid of the ``enaddr'' argument of carp_iamatch().Martin Pieuchot
It was only checked in balancing mode, which is currently broken, and is no longer needed. Discusssed with bluhm@ and Florian Riehm.
2016-06-06Fill a few more pads with 0xccTheo de Raadt
ok mikeb, mlarkin
2016-06-05Use the new input functions of wsmouse in mouse and touchscreen drivers.Ulf Brosziewski
ok stsp@ kettenis@
2016-06-05Continue preparing a future merge of urtwn(4) and rtwn(4).Stefan Sperling
This mostly copies r88e support code to ic/rtwn.c and moves some functions which are not trivial to merge with USB counterparts back to pci/if_rtwn.c. ok mpi@
2016-06-05Use the new input functions of wsmouse in mouse and touchscreen drivers.Ulf Brosziewski
ok stsp@ kettenis@
2016-06-05Add uvm_share() to share a memory range between two address spacesStefan Kempf
Its primary use is to make guest VM memory accessible to the host (e.g. vmd(8)). That will later allow us to remove the readpage and writepage ioctls from vmm(4), and use ordinary loads and stores instead. "looks good to me" kettenis@
2016-06-05Reset the bus width back to 1-bit when resetting the host.Jonathan Gray
Similar changes were made to imxesdhc(4).
2016-06-04Remove model specific strings keyed off the board id.Jonathan Gray
We now pull the model string from fdt.
2016-06-04If a process trips the W^X violation check, abort it unless it cameStuart Henderson
from a filesystem with the wxallowed flag set. ok deraadt Current status: Filesystem Binary Action ---------- ------ ------ wxallowed normal violation -> log but don't abort wxallowed wxneeded W^X silently allowed normal normal violation -> abort normal wxneeded process won't run at all See http://www.openbsd.org/faq/current.html#r20160527
2016-06-03Put iwn_update_htprot() back, with a fixed implementation this time.Stefan Sperling
I hope this will fix problems due to collisions and interference. tested by tb@ and Marcus MERIGHI ok tb@
2016-06-03Unsigned integers can't be negative.Martin Natano
from David Hill and mmcc@ ok stefan
2016-06-03In iwm(4), fix multicast Rx by updating the MAC context again afterStefan Sperling
sending multicast filter and STA settings during association. Makes ARP and inet6 autoconf work again. ok kettenis@
2016-06-03Allow pegged process on secondary CPUs to continue to be scheduled whenMark Kettenis
halting a CPU. Necessary for intr_barrier(9) to work when interrupts are targeted at secondary CPUs. ok mpi@, mikeb@ (a while back)
2016-06-03Remove superfluous parenthesis to shut up clang, from David Hill.Martin Pieuchot
2016-06-03We should never decrease uvm_maxkaddr. Currently this may happen ifMark Kettenis
uvm_map_kmem_grow() gets called for submaps of the kernel_map on architectures that don't implement pmap_growkernel(). When that happens we get the infamous "address selector returned unavailable address" panic. ok tedu@, mglocker@, beck@, stefan@
2016-06-03defer the freeing of art tables and nodes to a task.David Gwynne
this will allow us to sleep in srp_finalize before freeing the memory. the defer is done by putting the tables and nodes on a list which is serviced by a task. the task removes all the entries from the list and pool_puts them. the art_tables gc code uses at_parent as its list entry, and the art_node gc code uses a union with the an_dst pointer. both at_parent and an_dst are only used when theyre active as part of an art data structure, and are not used in lookups. once the art is done with them we can reuse these pointers safely. ok mpi@
2016-06-03set rt_expire times against time_uptime, not time_second.David Gwynne
time_second is unix time so it can be affected by clock changes. time_uptime is monotonic so it isnt affected by clock changes. that in turn means route expiries wont jump with clock changes if set against time_uptime. the expiry is translated into unix time for export to userland though. ok mpi@
2016-06-03measure nd expiry times against time_uptime, not time_second.David Gwynne
time_second can be jumped by clock changes, while time_uptime will always progress monotonically. it is still translated to time_seconds for export to userland though. ok mpi@
2016-06-03rename imxenet to fecJonathan Gray
ok patrick@ kettenis@
2016-06-02Fix two issues in the MSI-X code. First, actually read the MSI-X capabilityMark Kettenis
register. Second, correctly decode the table sizefromits contents. First issue pointed out by David Hill (with the help of clang). Second issue spotted after seeing a diff from Christiano Hasbaert.
2016-06-02print the size when an unavailable address is returned. it is useful.Ted Unangst
ok millert stefan