summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-05-27Remove superflyous splnet()/splx() dances.Martin Pieuchot
ok bluhm@
2017-05-27Check cache_valias_mask earlier in the expression. The value is zeroVisa Hankala
on most systems, so this tweak should save an iota of CPU time.
2017-05-27add missing prototypeMike Larkin
2017-05-26Enable chvgpio(4) in RAMDISK_CD on amd64.Stefan Sperling
Makes the King Jim portabook's keyboard work in bsd.rd. ok deraadt mlarkin
2017-05-26There is only one version of pfkey in OpenBSD and this will not change anyClaudio Jeker
time soon so remove all the code to support multiple pfkey versions. OK mpi@
2017-05-26Get rid of the DELAY() hack in the firmware loader for 8000 familyStefan Sperling
iwm(4) devices. I don't see any problems without this hack. I suppose the underlying problem was fixed in if_iwm.c r1.146. Add some additional error checking while here. Tested by me on 8260 and by claudio@ on 8265. ok claudio@
2017-05-26In IPIP input rename the variable ipo to ip as it is used for innerAlexander Bluhm
and outer header. Reset values depending on the the mbuf when the mbuf is adjusted. Check the length of the inner IP header with the correct size in case of IPv6. Check the IPv4 header size including IP options. For the IPIP statistics the inner header length has to be subtracted from the packet size as the outer header has already been stripped off. OK mpi@
2017-05-26Instead of looking at the IP version of the header, use the outerAlexander Bluhm
address family passed to ipip_input(). OK mpi@
2017-05-26virtio: minor tweakStefan Fritsch
use qe_desc_base instead of calculating the address again
2017-05-26vioblk: set VIOBLK_DONE from vioblk_vq_done1Stefan Fritsch
If the device needs to be reset due to a poll timeout, we need accurate information which requests are already completed. Otherwise, there will be a panic "scsi_done called twice on xs", as found out by mpi@
2017-05-26The Linux code really isn't up to the same standard as our other code, andMark Kettenis
clang complains about it a lot. Since we don't want to fix the code, suppress certain warnings using #pragma clang diagnostic. ok jsg@
2017-05-26Prepare ohci_intr1() for IPL_MPSAFE.Martin Pieuchot
Stop manipulating the done list and root hub port status in the interrupt handler. Some parts lifted from NetBSD's r1.157 but with functionnal polling and without leaving WDH interrupts masked after exiting ddb(4). Fix an splassert() by no longer calling usb_transfer_complete() in the interrupt handler. Issue reported by claudio@, brynet@ and Jacqueline Jolicoeur.
2017-05-26Move vioblk and vioscsi more fully into the world of iopool andKenneth R Westerback
'modern' scsi. Eliminates use of XS_NO_CCB. Resource optimization to follow. ok sf@, "makes sense" dlg@ earlier version
2017-05-25Add a header with EFI/UEFI-related definitions for use by the kernel. ForMark Kettenis
now this only contains definitions for parsing the EFI memory map. I anticipate adding limited support for the EFI system table and some of the EFI runtime services, but not much more. ok mlarkin@, patrick@, tom@
2017-05-25Replace the only usage of x86_pause() with SPINLOCK_SPIN_HOOK.Visa Hankala
OK dlg@
2017-05-25Drop trailing semicolon from a macro.Visa Hankala
OK dlg@
2017-05-25tweak sparc64 membars as a step toward making them usable in userland.David Gwynne
specifically, dont rely on magic in ctlreg to implement membars. moving that to atomic.h would add a lot of pollution to the namespace, so move to passing the membar options to a single __membar macro. this tweaks everything that was using the ctlreg backend to either use an appropriate membar_foo(), or to use __membar() in the MD code. ok kettenis@
2017-05-24Fail with EINVAL when asked to create a non-root queue instead of panickingMike Belopuhov
Prompted by a bug report from semarie@, thanks!
2017-05-24When using "tcpdump proto 128" the filter never matched. A signAlexander Bluhm
expansion bug in bpf prevented protocols above 127. m_data is signed, bpf_mbuf_ldb() returns unsigned. bug report Matthias Pitzl; OK deraadt@ millert@
2017-05-24Add an idle cycle implementation for R4600/R5000/RM7000 CPUs and theirVisa Hankala
derivatives. This lets the kernel utilize the CPUs' Standby Mode to reduce the power consumption of an idle system. Suggested by and input from miod@. He also tested this patch on an RM7000 O2.
2017-05-23Rate limit messages about spurious ISA interrupts on yeeloong systems.Visa Hankala
On suspend, the USB driver is put to polling mode and it no longer claims interrupt requests. If the USB controller keeps raising new requests faster than spurious interrupt messages can be printed, interrupt processing hogs all CPU time and the suspend code gets stuck. The rate limiting should prevent this from happening. Suspend issue with USB Wi-Fi reported by fcambus@ Fix tested by and OK fcambus@
2017-05-23Move the common length check in pf_pull_hdr() after the addressAlexander Bluhm
family switch. This makes the specific calculation more obvious. OK claudio@
2017-05-23Bump the right counters. One of these was caught by clang because of aMark Kettenis
mismatched enum. ok bluhm@
2017-05-22Move IPsec forward and local policy check functions to ipsec_input.cAlexander Bluhm
and give them better names. input and OK mikeb@
2017-05-22Use the IPsec policy check from IPv4 also when doing local deliveryAlexander Bluhm
in ip6_local() to our IPv6 stack. OK mikeb@
2017-05-22Fix a mbuf leak when reflecting an ICMP packet with IP options.Alexander Bluhm
Free the options in icmp_input_if() after a successful call to icmp_reflect(). bug report and analysis by Hendrik Gerlach OK krw@ claudio@ phessler@
2017-05-22Drop kernel trace points. The trace facility does not exist on OpenBSD.Visa Hankala
2017-05-22white space fix. no functional change.David Gwynne
2017-05-21Give the vp pool its own allocator. Avoiding the logic that creates largeMark Kettenis
pool pages that fit at least 8 pool items reduces the kva pressure. Unfortunately this doesn't completely eliminate the problems sthen@ is seeing. ok drahn@
2017-05-21Add clocks for SD/MCC controller on Exynos 5420/5800.Mark Kettenis
2017-05-21Remove exesdhc(4). This driver was never finished and has been replacedMark Kettenis
by dwmmc(4).
2017-05-21Add support for the SD/MMC controller found on Samsuung Exynos5.Mark Kettenis
2017-05-21Fix copy/paste in comment.Jeremie Courreges-Anglas
2017-05-21Actually wait on auto command done (ACD) as was the intention.Mark Kettenis
2017-05-21Tweak style.Visa Hankala
2017-05-21Enable radeondrm(4) on loongson to get accelerated graphicsVisa Hankala
with the RS780E chipset. OK kettenis@, jsg@
2017-05-21Rockchip SoCs needs some additional register twiddling when the link speedMark Kettenis
changes to set the appropriate clock. Add a sc_statchg callback in the core softc that gets called when the link status changes.
2017-05-21Add dwmmc(4), a driver for the Synopsis Designware SD/MMC controller as foundMark Kettenis
on various Rockchip SoCs. This is still WIP. Next steps will be to get rid of various busy-wait loops and add DMA support.
2017-05-20More SD/MMC controller-related clocks.Mark Kettenis
2017-05-20- fixes regression found by pf_forward testAlexandr Nedvedicky
O.K. bluhm@
2017-05-20Accept baud rates up to 2 Mbps as these are supported by CP2104 and laterMark Kettenis
variants. ok jsg@, deraadt@
2017-05-19Repair rtwn(4) IQ calibration.Stefan Sperling
Restore behaviour from before the fix of the botched R92C_USTIME_TSF register definition. IQ cal code was referring to this register by name, but actually needs to use the old value. So add a register definition for the old value under a new name (R92C_BCN_CTRL1) and use this name in the IQ cal code. Discussed with Kevin Lo
2017-05-19Make monitor work with athn(4) on my 3T3R AR9380 device.Stefan Sperling
This card can now receive packets. Transmit is still broken and Kevin Lo reports that his 2T2R AR9380 device cannot receive yet.
2017-05-19Make rtwn(4) add frames which failed to transmit to AMRR's transmit counter.Stefan Sperling
More closely matches what other drivers are doing.
2017-05-19Make rtwn(4) support fixed transmit rates set with ifconfig(8).Stefan Sperling
Useful for development and testing but not recommended for regular usage.
2017-05-19Change PF behavior to allow MLD Listener Report packets to be sentRafael Zalamena
without needing a previously created state by MLD Listener Query. It wasn't working because: (1) you might not have a previous MLD Listener Query and (2) the addresses of the Query and Report don't match. ok mikeb@, sashan@
2017-05-19Fix R92C_USTIME_TSF register definition.Stefan Sperling
According to Kevin Lo it was wrong (and is also wrong in the Linux driver). FreeBSD made the same change in r282623. Patch by Kevin Lo.
2017-05-19Add some comments about the assumptions of the scsi mid layerStefan Fritsch
ok krw@
2017-05-19Respect max VPID/ASID limits. VMX VPIDs are capped at 4095, for now.Mike Larkin
2017-05-19return EIO to vmd if the guest HLTs with interrupts disabledMike Larkin