summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-07-19remove wrong and misleading comment, ok phesslerHenning Brauer
2016-07-19Revert use of the _SAFE version of SRPL_FOREACH() now that the offendingMartin Pieuchot
function has been fixed. Functions passed to rtable_walk() must return EAGAIN if they delete an entry from the tree, no matter if it is a leaf or not.
2016-07-19Return EAGAIN for every deleted route when detaching an interface.Martin Pieuchot
Previously the code was "too clever" and returned EAGAIN only for cloning route assuming that other deletion did not modify the tree. Analysed by and ok dlg@
2016-07-19In ip6_input() use a shortcut to detect our own address if the pfAlexander Bluhm
state key is linked to a socket inp. OK mpi@ henning@
2016-07-19Use a flag to indicate that a packet has been received on an IPv6Martin Pieuchot
anycast address. This will allow us to split ip6_input() in two parts using a queue in the middle. ok jca@, florian@, bluhm@
2016-07-19instead of messing about with pointer arithmetic, add an empty arrayTed Unangst
to the end of the defer structure. solves sizing and alignment concerns.
2016-07-19virtio_pci: Always allow MSI/MSI-XStefan Fritsch
For virtio devices, ignore the black/white-listing depending on the PCI bridge. This enables MSI-X with qemu's old "82441FX" pci-bridge. Suggested by kettenis@
2016-07-19Remove what appears to be a copy-paste error setting cur_ttbTom Cosgrove
in pmap_free_l1(). from aalm@ - thanks ok patrick@
2016-07-18Kill the rtableid variable in ip6_input(). It does not make senseAlexander Bluhm
to store a field in an extra variable that is only accessed twice. OK mpi@
2016-07-18Apparently we need to explicitly stop the timers before reloading them. AtMark Kettenis
least this is what Linux does and it fixes a hang on the Olimex A10s boards. While there, also preserve the clock selection when reloading the timer. ok patrick@, jsg@, tom@
2016-07-18no more cbq_opts - CBQ is gone, ok mpi phessler bennoHenning Brauer
2016-07-18Add additional i2c and mmc prcm module enum values for devices thatJonathan Gray
didn't attach previously on OMAP4 with the static device configuration and now do with the fdt. Like most of the other OMAP4 prcm cases these don't do anything, hopefully we'll properly configure clocks with data from the fdt at some point in the future. Tested by abieber@ on PandaBoard-ES.
2016-07-18Don't need a separate flags variable in armv7 pmap_clean_page() -Tom Cosgrove
just use the pv_flags. ('Twas a copy-paste from arm's pmap_clean_page(), which did need it.) Also remove even less used flags variable from pmap_page_remove(). First part from a diff from aalm@ - thanks ok kettenis@ "looks good" patrick@
2016-07-18Hide pf internals by moving code from in_ouraddr() to pf_ouraddr().Alexander Bluhm
OK mpi@ sashan@
2016-07-18Explicitly set iwm(4) firmware Tx aggregation limit to one (which disablesStefan Sperling
Tx aggregation), instead of the maximum (63 frames). Tx aggregation should already be disabled, so this change should be a no-op. It just avoids any side effects in case the firmware happens to interpret the limit we set here. ok mpi@
2016-07-18Fix inverted logic in iwm_tx(). The PROT_REQUIRE flag in should be set forStefan Sperling
data frames above a certain length, but we were setting it for !data frames above a certain length, which makes no sense at all. Found while comparing our driver's Tx code to iwlwifi. ok mpi@
2016-07-18Make iwm(4) retry Tx of management frames less often. We now retry managementStefan Sperling
frames the same number of times as Linux iwlwifi does.
2016-07-18Some SoCs have a ranges property set in their device trees. This canPatrick Wildt
be used to translate one memory address to another. Currently we just pass the child's memory address to bus space map. If one of the parent busses implements a ranges property, the child's address property is not the real address. This change hooks up a bus space map function that is aware of the ranges property and translates the addresses if needed. ok kettenis@ looks fine jsg@
2016-07-17Attach sunxi(4) based on the compatible property of the root node of theMark Kettenis
device tree like we do on omap. Add preliminary support for the sun5i variant which corresponds to the A13 and A10s SoCs. ok patrick@
2016-07-17Adapt kettenis' pinctrl changes in imx to sitaracm andJonathan Gray
pinctrl-single,pins to handle mux settings and pad configuration. The fdt data has offsets from the start of the pinmux address range so the am335x specific pinmux offset from the scm base is added to the offsets. This as not a new driver as sitaracm does manual table driven pad configuration for gpio. If all the offsets in the ti_padconf_devmap table were reduced by the am335x pinmux offset (0x800) it may make sense to map only the pinmux memory region and not the scm superset. looks good kettenis@
2016-07-17use the fdt root node instead of board ids to test for am335xJonathan Gray
2016-07-17Set function pointers based on the fdt root node instead of board ids.Jonathan Gray
ok kettenis@ on an earlier version
2016-07-17Set function pointers based on the fdt root node instead of board ids.Jonathan Gray
ok kettenis@
2016-07-16remove an unused parameter that wasn't handled during a previous refactorMike Larkin
(reducing the number of XXXs in vmm)
2016-07-16Support MSI-X in virtioStefan Fritsch
This increases performance for interrupt heavy loads. While suspend/resume support for MSI-X is missing, this is also missing for virtio. So no new issue there. Currently, qemu's old "82441FX" pci-bridge is still blacklisted for MSI. But MSI-X is used if qemu is started with "-M q35".
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-16Fix typo in comment in three machdep.c files:Tom Cosgrove
s/names are this level/names at this level/ from aalm@ - thanks
2016-07-16Remove unused function process_frame() from arm_machdep.cTom Cosgrove
ok jsg@
2016-07-16remove unused vmm_activate function. all vmm-specific suspend/resume needsMike Larkin
are handled during cpu hatch.
2016-07-16Fix an incorrect shift value when calculating the mask for the VMCS MSRMike Larkin
list storage size. Noticed when attempting to get vmm(4) to nest under Hyper-V.
2016-07-16remove some 12 year old code that was never correct, and never compiledMike Larkin
anyway due to a missing #include. the code was originally intended to handle i386 SMP EISA machines with an IOAPIC. Since the code never was compiled, and nobody has noticed or complained for 12 years, I think things are probably fine.
2016-07-16remove some unused #includesMike Larkin
2016-07-15Remove duplicated line in omap mmc driver, which would causeTom Cosgrove
clkbase to be set to 0 (if it wasn't all commented out anyway). ok patrick@
2016-07-15Remove duplicate line in amd64/acpi_machdep.cTom Cosgrove
ok krw@
2016-07-15Remove unused re_nbits from dev/rnd.cTom Cosgrove
"another leftover of the bean counter" od tedu@ deraadt@
2016-07-15disable acpicbkbd by default until after the release when acpi ecJoshua Stein
issues can be worked out, otherwise this driver will cause the kernel to spin forever on certain chromebooks
2016-07-15take us out of -betaTheo de Raadt
2016-07-14Make sure that amap slot calculation does not overflowStefan Kempf
This prevents from too small amaps being allocated by forcing the allocation of a large number of slots. Based on an analysis from Jesse Hertz and Tim Newsham. ok kettenis@
2016-07-14kern.usermount=1 is unsafe for everyone, since it allows any non-pledgedTheo de Raadt
program to call the mount/umount system calls. There is no way any user can be expected to keep their system safe / reliable with this feature. Ignore setting to =1, and after release we'll delete the sysctl entirely. ok lots of people
2016-07-14Drop received packets with an IPv4-compatible address as source orMartin Pieuchot
destination as per RFC4213. We're not in 1999 anymore, what was earlier a "stronger check than RFC1933" is now a best practice. This matches the behavior of the reject (R) routes added by default by netstart(8). ok jca@, florian@, claudio@, bluhm@
2016-07-14Do board-specific delay/skew corrections for the Micrel KSZ9021 and KSZ9031Mark Kettenis
PHYs based on device tree properties instead of the board ID. Untested as I don't have the hardware. ok jsg@, patrick@
2016-07-14Prevent a use-after-free by not updating an ARP entry that has beenMartin Pieuchot
removed from the table. Currently the storage for L2 addresses is freed when an entry is removed from the table. That means that we cannot access this chunk of memory between RTM_DELETE and rtfree(9). Note that this doesn't apply to MPLS because the associated storage is currently released by the last rtfree(9). ok mikeb@
2016-07-14vioblk: Properly handle poll timeoutStefan Fritsch
The only way to ensure that the device does not do DMA for the timed out request is a device reset. Also increase the timeout to 15s
2016-07-14rename virtio_ops.intr to poll_intrStefan Fritsch
This describes more accurately what it is good for. Also introduce a virtio_poll_intr macro.
2016-07-14virtio: Move interrupt handler into transport specific codeStefan Fritsch
For MSI-X (and also possibly for other transports), the interrupt handler must do different things. Move it out of virtio.c and into virtio_pci. ARM part tested by patrick@
2016-07-14Add PT_GNU_RELRO, for ld.so workPhilip Guenther
ok millert@ kettenis@
2016-07-14Prevent silly states via knotes on pids > 2^32 and on nonexistent signals.Philip Guenther
ok tedu@
2016-07-14ufs_readdir() buffer was meant to be limited to 64kB; reversed testPhilip Guenther
permitted very big mallocs to panic the kernel. reported by Tim Newsham ok millert@
2016-07-14kevent validates that ident is a valid fd by getting the file. one sadTed Unangst
quirk: uint64 to int32 truncation can lead to false positives, and then later in the array sizing code, very big mallocs panic the kernel. add a check that the ident isn't larger than INT_MAX in the fd case. reported by Tim Newsham