summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-02-28Depending on the addresses, ipsecctl(8) automatically groups saAlexander Bluhm
bundles together. Extend the kernel interface to export the bundle information to userland. Then ipsecctl -ss -v can show the internal relations. Unfortunately the header SADB_X_EXT_PROTOCOL was reused by SADB_X_GRPSPIS, so it cannot be used to transfer the second sa type with sysctl. Introduce a new SADB_X_EXT_SATYPE2 and use it consistently. OK hshoexer@ markus@
2017-02-28Update header to clean up defines, add the SATA device path and thePatrick Wildt
EFI_DEVICE_PATH_TO_TEXT_PROTOCOL protocol. ok yasuoka@
2017-02-28Don't change the up status of the interface when changing its rdomain.YASUOKA Masahiko
Diff from nagasaka@iij. ok mpi
2017-02-28Switch geteblks()'s size argument from int to size_t. It's called withMartin Natano
unsigned variables as argument in most places anyway. Decrease the chance of signedness/range mismatch issues. ok stefan
2017-02-28Untangle abstract sleep modes from ACPI sleep states. This paves the wayMartin Natano
for further work in the area. idea and ok deraadt ok mlarkin
2017-02-28Use rtable_match() rather than rtalloc(9) when adding a new route.Martin Pieuchot
rtalloc(9) should be reserved for the hot path otherwise it's hard to interpret the value of the 'use' counter. ok claudio@
2017-02-28Some refactoring in ip6_input() needed to un-KERNEL_LOCK() the IPv6Martin Pieuchot
forwarding path. Rename ip6_ours() in ip6_local() as this function dispatches packets to the upper layer. Introduce ip6_ours() and get rid of 'goto hbhcheck'. This function will be later used to enqueue local packets. As a bonus this reduces differences with IPv4. Inputs and ok bluhm@
2017-02-28Prevent a MP race in rtable_lookup().Martin Pieuchot
If an ART node is linked to multiple route entries, in the MPATH case, it is not safe to dereference ``an_dst''. This non-refcounted pointer can be changed at any time by another CPU. So get rid of the pointer and use the first destination of a route entry when comparing sockaddrs. This allows us so remove a pointer from 'struct art_node' and save 5Mb of memory in an IPv4 fullfeed. ok jmatthew@, claudio@, dlg@
2017-02-28build with USER_PCICONF to enable /dev/pci*Jonathan Gray
2017-02-28Remove mpls_raw_usrreq() prototype, that function is gone.Claudio Jeker
2017-02-27Retire the AF_MPLS protosw struct. Nothing is using it and the code was superClaudio Jeker
basic anyway. Simplifies the code a lot also by calling the mpls sysctl no longer via the protosw but instead directly. OK mpi@ on a previous diff. Also tested by renato@ who actually found a bug which is now fixed.
2017-02-27pms/elantech-v4: configure wsmouse for handling compat-modeUlf Brosziewski
ok @matthieu @stsp @mpi
2017-02-27pms/synaptics: configure wsmouse for handling compat-modeUlf Brosziewski
ok @matthieu @stsp @mpi
2017-02-27Build hppa kernels with -ffreestanding.Mark Kettenis
2017-02-27Handle touchpad input in wsmouse.Ulf Brosziewski
The wstpad file contains the core of a touchpad-input driver that is coupled with wsmouse. It is active in compat-mode if wsmouse has been configured for it. ok @matthieu @stsp @mpi
2017-02-27Add support for the older generation spec of PSCI, which supportsPatrick Wildt
shutdown and reset only if the function id is explicitly provided in the device tree. For the newer implementations we are supposed to be using the specified function ids only. With and ok jsg@
2017-02-26Define cache line size for the per-cpu API.Visa Hankala
2017-02-25move vendor HIDs into their drivers, clean up some unused definesJoshua Stein
ok kettenis
2017-02-25attach acpithinkpad to LEN0268 HID found on newer thinkpadsJoshua Stein
2017-02-25Enable ampintcmsi(4), pciecam(4), ppb(4) and virtio(4).Patrick Wildt
2017-02-25Implement ampintcmsi(4) in ampintc(4) to support MSI. The GICv2M is anPatrick Wildt
extension to the GIC controller, which is represented as subnode in the device tree. There can be multiple GICv2Ms, so it makes sense to attach those to ampintc(4) as some kind of simplebus. The GICv2M is simply an interrupt generator that can be used by PCIe devices to ring the door bell. There is no need for further configuration, we only need to find out which SPIs we are allowed to use for MSI and to register an edge triggered interrupt on a (randomly) allocated SPI. ok kettenis@
2017-02-25MSI interrupts are established in a different way as well. Instead ofPatrick Wildt
simply hooking up the interrupt handler and returning an MD cookie, we need to pass back information for the PCI controller to configure its interrupt correctly. For this, add another establish routine into the FDT-based interrupt API which looks up msi-controller nodes and calls their MSI-specific establish function if requested. ok kettenis@
2017-02-25Implement support for interrupt types. The GIC only seems to supportPatrick Wildt
level triggered active-high or egdge triggered low-to-high interrupts. We currently always configure them to be level triggered, which is a sane default for most controllers. Since MSI interupts on the GIC are edge triggered, we need to be able to parse the type information and to configure the interrupt correspondingly. ok kettenis@
2017-02-24Avoid some casts by using the sa field of union sockaddr_union.Alexander Bluhm
OK millert@
2017-02-24Retire the global interrupt establish and disestablish API. It has beenPatrick Wildt
of good use for supporting multiple SoCs with each their own interrupt controllers, but as of now we have replaced it wit the FDT-enabled API. ok kettenis@
2017-02-24The interrupts have been established using the FDT interrupt API, so wePatrick Wildt
need to use the FDT interrupt API do disestablish them. ok kettenis@
2017-02-24Implement an API for establishing legacy PCI interrupts. This specificPatrick Wildt
establish function parses the device tree's interrupt map to discover the correct interrupt controller node and interrupt cells for the given PCI node. After retrieving that information we can do the same the normal FDT establish API already does. ok kettenis@
2017-02-24Update licenseMike Belopuhov
Some final touches before the release, increase the maximum number of CAS iterations before we declare the grant table entry lost forever. This happens on older Xen 3.x versions as reported by Kirill Miazine.
2017-02-24Hook up pciecam(4), but don't compile it yet.Patrick Wildt
2017-02-24Introduce pciecam(4), a driver for generic ECAM compatible PCI hostPatrick Wildt
controllers. Support for legacy interrupts and MSI is implemented but pending on further improvements to arm64's interrupt API. ok kettenis@
2017-02-23Add missing mtx_leave() calls in two hypervic error pathsJonathan Gray
ok mikeb@
2017-02-23be nicer to 32bit strict alignment archs that can do 64bit loads/stores.David Gwynne
ie, align boot memory to the size of uint64_ts. there's an argument to be made that we should align this to 16 bytes to be consistent with malloc and pools.
2017-02-22Enable ahci(4).Patrick Wildt
ok kettenis@
2017-02-22Add a generic ahci(4) frontend for FDT.Patrick Wildt
ok kettenis@
2017-02-22The AMD Seattle SoC incorporates DMA coherent controllers, especiallyPatrick Wildt
AHCI, PCIe and Ethernet. Since these systems rely on cache snooping, we must not map pages that are supposed to be coherent as uncacheable. Instead if we have a cache coherent device, create a bus tag and mark that tag as coherent. For users of that tag we can simply use normal, cached memory. ok kettenis@
2017-02-22fix timeout loopJoshua Stein
from Anton Lindqvist
2017-02-22Use c99 struct initialization with protosw.David Hill
This makes it easier to grep for a member, such as .pr_usrreq, and know which functions to review. ok mpi@ bluhm@ jca@
2017-02-22add acpisbs, an acpi smart battery subsystem driver reading dataJoshua Stein
over smbus currently disabled because it conflicts with acpibat ok deraadt, kettenis
2017-02-22Amend a misleading comment mentioning ``ipintrq''.Martin Pieuchot
2017-02-22Fix comments about a few ipv6 sockoptionsRenato Westphal
OK millert@ florian@
2017-02-22Keep local definitions local.Martin Pieuchot
"good work" deraadt@, ok visa@
2017-02-22Do not grab the NET_LOCK() when poll(2)ing on unix domain sockets.Martin Pieuchot
Fix the 'X freeze' while scanning with wireless interfaces. Problem reported by pirofti@. ok tb@, bluhm@
2017-02-22The pcap people gave us ID 267 for DLT_OPENFLOWReyk Floeter
Via https://github.com/the-tcpdump-group/libpcap/issues/542 OK sthen@ jsg@
2017-02-22Set sc_vendor in bcm2835_dwctwo before calling dwc2_init().Jonathan Gray
This changes the root hub dmesg output from "vendor 0x0000 DWC2 root hub" to "Broadcom DWC2 root hub". ok kettenis@
2017-02-21temporarily disable BFD, to not block work on unlocking the socket layer.Peter Hessler
requested by deraadt@
2017-02-21In ip6_ctloutput, check for an invalid level early like the otherDavid Hill
*ctloutput functions. This also reduces a level of indentation. ok mpi@
2017-02-20STACKALIGN() already does the right thing by casting the given argumentPatrick Wildt
to unsigned long, so explicitly casting the address to unsigned int only leads to truncation.
2017-02-20VMX: assert that the supplied instruction length matches what is expected forMike Larkin
HLT exits. Matches previous diff from amd64
2017-02-20same fix as amd64 (typo in comment)Mike Larkin
2017-02-20Crank all members of struct ipipstat to 64 bitsJeremie Courreges-Anglas
Will make conversion to percpu counters easier. ok bluhm@