summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-06-24Introduce Linux work queue APIs and use them. As a side-effect, this willMark Kettenis
move some of the work from the system task queue to the driver-specific task queue. ok jsg@
2015-06-24Remove a couple of unused and old #defines that discussed phys and virtMike Larkin
address widths in 1st-gen amd64 cpus. ok kettenis, deraadt, guenther
2015-06-24reenable the pool gc task.David Gwynne
the problems it tickled by working outside the biglock on archs with mutex and clock interaction have been fixed, as evidenced by the softnet taskq. ok deraadt@
2015-06-23Disable some of the pmap_emulate_reference() DEBUG checks if optionMiod Vallat
MULTIPROCESSOR, and quote the alpha ARM to explain why; while there, make the failure messages a bit more detailed.
2015-06-23In the copy(9) function, make sure to remember curproc accross the bcopy()Miod Vallat
call, instead of &curproc. The copy routine may sleep and we may resume on a different processor. This has been plaguing the alpha MULTIPROCESSOR kernels since the very beginning; it's amazing this did not cause more havoc. Joint debugging and hair pulling with dlg@ and deraadt@; ok dlg@
2015-06-23If the kernel symbols fit completely into the 2 MB alignment holeAlexander Bluhm
after kernel bss but before end of the image, the page tables used the read-only mapping of the hole. When booting a small non-generic kernel, this resulted in a crash, while writing to the page tables later. Make sure that the page tables are created after esym and after end. OK mlarkin@ deraadt@
2015-06-23Pass a "struct ifnet *" instead of a "struct arpcom *" to arpresolve().Martin Pieuchot
Most of the ARP layer already take an ifp pointer and this makes clear wich chunks of code are messing with ac_enaddr. Note that our Ethernet code assume that these pointer are interchangeable since the first element of the "struct arpcom" is a "struct ifnet".
2015-06-23delete more p==NULL checks; discussed with miod, kettenis, dlg beforeTheo de Raadt
2015-06-23Adapt bridge(4) to the new if_input() framework.Martin Pieuchot
Move bridge_input() outside of ether_input() in order to duplicate packets flowing through a bridge port before applying any transformation on mbufs. This saves a various m_adj(9)/M_PREPEND(9) dances and remove the bridge(4) hack from vlan(4). Tested by mxb <mxb AT alumni DOT chalmers DOT se> and kettenis@ ok bluhm@
2015-06-22Add an #ifdef HIBERNATE to allow to build a kernel without hibernate butAlexander Bluhm
with acpi. OK mlarkin@
2015-06-22Make it possible to create write combing mappings through /dev/mem. This isMark Kettenis
done by introducining a magic offset. Pages below this offset are mapped with default memory attributes. Above this offset pages are mapped write combining. ok mlarkin@
2015-06-22document that boot.conf can contain comments;Jason McIntyre
from tilo stritzky thanks miod for help with the diff, and who also noted that leading whitespace gets stripped too;
2015-06-22Increment rule counters only after successful state insertionMike Belopuhov
Do rule counter increments after state has been successfully installed. This has an additional benefit of making error handling a bit simpler. OK mpi, bluhm
2015-06-22Flush out another small diff to reduce the diffs with Linux.Mark Kettenis
2015-06-22Do not update frame lengths to reflect what has really been transferedMartin Pieuchot
when an isochronous transfer is done. Frame lengths are just input values and no driver mess with them. ok ratchov@, jmatthew@
2015-06-22Make xhci(4)'s root hub report the same status bits as physical USB3 hubs.Martin Pieuchot
There's not bit to indicate the speed of a USB3.0 device attached to a hub port so do not abuse the PORT_TEST bit. Instead make the xhci(4) root hub report the PORT_POWER_SS bit when appropriate and use it to determin the speed of a new device. While here make the root hub report the link state and config error, from FreeBSD.
2015-06-22rtrequest1(9) error code path cleanup.Martin Pieuchot
Pass the length to free(9), do not violate the radix/route layer and set the gateway of a route a bit later to simplify error code path. ok claudio@
2015-06-22Apparently some BIOSes not supporting xHCI natively switch USB portsMartin Pieuchot
back to EHCI at suspend. So route the ports back to xHCI at resume. Problem reported by Adam Wolk, thanks!
2015-06-21Don't use uninitialized data as a return value.Kenneth R Westerback
From Brainy via Maxime Villard via tech@. ok kettenis@
2015-06-21Don't leak mem if wsfont_rotate() fails.Jeremie Courreges-Anglas
Problem reported by Maxime Villard, ok miod@
2015-06-21Count transmitted packets.Mark Kettenis
2015-06-21memory leak on failure; from Maxime VillardTheo de Raadt
2015-06-20Fix a bug that causes uvm_pmr_get1page() to fail for allocations thatMark Kettenis
specify an address constraint even when free pages that meet the constraint are still available. This happens because the old code was using the root of the size tree as a starting point for a search down the address tree. This meant only part of the address tree was searched, and that part could very well not contain any of the pages that met the constraint. Instead, always walk the address tree from its root if the list of single pages is empty and the root of the size tree doesn't meet our constraints. From Visa Hankala. ok deraadt@
2015-06-20Only match devices with a valid configuration.Martin Pieuchot
ok uaa@
2015-06-19Only match devices with a valid configuration.uaa
ok by mpi@
2015-06-19remove isp(4) now that the ql* family have replaced itJonathan Matthew
2015-06-18For unsupported sample formats, don't return EINVAL but set the closestChristian Weisgerber
available format. ok ratchov@
2015-06-18CP2110 is handled by uslhcom not uslcomJonathan Gray
2015-06-18Only match devices with a valid configuration.Martin Pieuchot
Tested by jsg@
2015-06-18Only match devices with a valid configuration.Martin Pieuchot
2015-06-18Only match devices with a valid configuration.Martin Pieuchot
Most of the WiFi/Ethernet USB adapter only have one configuration and always use its first interface. In order to improve USB descriptors parsing start by reducing the number of places where a configuration is set. Tested by jsg@
2015-06-17my keyboard is conspiring against meTheo de Raadt
2015-06-17crank to 5.8-betaTheo de Raadt
2015-06-17when no fingers are down, send 0 for zJoshua Stein
fixes tap-to-click
2015-06-17fix compilation with UBCMTP_DEBUGJoshua Stein
2015-06-17move to 5.8-beta. This is a bit earlier than normal...Theo de Raadt
2015-06-17Make kernel text read-only and unreadable from userland, and remove the bogusMiod Vallat
comment about the emulation code requiring kernel text to be readable from userland. Add a few DIAGNOSTIC checks for rogue ptes passed to rmpage(). Make sure the pte extent operations and update_pcbs() run at >= IPL_SCHED.
2015-06-17Four new sensors, from David Higgs.Martin Pieuchot
2015-06-16alloc_contiguous_pages() is supposed to round the allocation size to a pageMiod Vallat
boundary, not to an u area boundary. Oops.
2015-06-16Clear the PIC `write request' memory at initialization time. There isMiod Vallat
apparently a risk of spurious parity errors if we don't.
2015-06-16Store a unique ID, an interface index, rather than a pointer to theMartin Pieuchot
receiving interface in the packet header of every mbuf. The interface pointer should now be retrieved when necessary with if_get(). If a NULL pointer is returned by if_get(), the interface has probably been destroy/removed and the mbuf should be freed. Such mechanism will simplify garbage collection of mbufs and limit problems with dangling ifp pointers. Tested by jmatthew@ and krw@, discussed with many. ok mikeb@, bluhm@, dlg@
2015-06-16Add a uslcom id for the Netgear M7100 console from Andrew Daugherity.Jonathan Gray
Add some additional uslcom ids found in the Linux driver while here.
2015-06-16regenJonathan Gray
2015-06-16Add a uslcom id for the Netgear M7100 console from Andrew Daugherity.Jonathan Gray
Add some additional uslcom ids found in the Linux driver while here.
2015-06-15Bring back r1.78 and r1.79, now that ajactouto@'s regression hasMartin Pieuchot
been found: it was a hardware failure. When a bus is explored, do not probe the ports which status hasn't changed. This saves a lot of I/O when attaching/detaching devices and might help with some timing related problems.
2015-06-15Fix a double free in the destroy path triggered when a second process,Martin Pieuchot
in my case dhclient(8), races with ifconfig(8) to free the descriptors of the joined multicast groups. While here reduce the difference with carp(4). ok dms@
2015-06-15Set the length of isochronous transfers as the sum of the frames lengths.Martin Pieuchot
This reduces differences between non-isoch and isoch transfers submissions, makes the generic DMA buffer overrun check work with isoch transfers and will allow some code simplifications in HC drivers. Since short-transfers were never checked for isoch transfers, we now need to pass the USBD_SHORT_XFER_OK flag to not change this behavior. This might be revisited later. ok ratchov@
2015-06-15Use proper argument type for crp_callback functions; no functional change.Mike Belopuhov
2015-06-15No need for an extra local variable; no functional change.Mike Belopuhov
2015-06-15Use proper argument type for crp_callback functions; no functional change.Mike Belopuhov