summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-01-25Replace magic numbers.Masao Uebayashi
2016-01-25don't return an uninitialised value for the SIOCGLIFPHYRTABLE caseJonathan Gray
ok yasuoka@ goda@
2016-01-25fix some fallout from the IFQ rototilling.David Gwynne
from the ghost of architectures past
2016-01-23Typo in comment; from MiodAntoine Jacoutot
2016-01-23In some cases machines with virtualisation extensions will boot into aJonathan Gray
HYP processor mode that has different memory management and register behaviour among other things. In this case switch to SVC mode to prevent an early crash. From Patrick Wildt based on code in FreeBSD.
2016-01-23Fix some uses of sizeof where the size of a struct was intended, notJonathan Gray
the size of the pointer to a struct. ok mikeb@
2016-01-22Zero the local structs holding crs information before parsing _CRS.Jonathan Gray
This avoids reading uninitialised memory when expected value types are not present, as is currently the case with gpio signalled interrupts, and could also be the case with buggy aml. Without this change under certain conditions on the ideapad 100s (such as a ramdisk kernel or generic kernel compiled with -O0) ihidev would incorrectly attach to a bogus ioapic interrupt. ok kettenis@
2016-01-22Setup interface features based on capabilities provided by the backendMike Belopuhov
Instead of just setting bits that we think we need, do a better job of figuring out what's supported by the backend and what's not and what do we really need. The following improvements were implemented: o fallback for when scatter gather I/O is not supported by Dom0; o tcp/udp checksum offloading; o larger mtu up to 9000: an experimental feature; o stop requesting multicast control feature that we don't support.
2016-01-22Set minimum number of slots on the receive ring to 18Mike Belopuhov
After some experimentation, discussions with Xen folks and pondering Linux source code, it became clear that most versions of Xen require at least 18 slots available on the receive ring to send an event.
2016-01-22To facilitate reading make sure to use a GTF_invalid flag by nameMike Belopuhov
2016-01-22Convert membar_* calls into virtio_membar_sync where it mattersMike Belopuhov
membar_* functions are defined only as compiler barriers on !MP kernels, while we're trying to be conservative in our use of the barriers. Barriers are placed only where loads and stores might get reordered and it matters at the same time. Shared info page operations are using atomic instructions on Linux, so they get barriers as well.
2016-01-22Straightforward uiomovei -> uiomove conversion. All size arguments forStefan Kempf
uiomove had unsigned types already. Diff from Martin Natano.
2016-01-22Always check destination MAC address of received unicast packets, notStefan Fritsch
only when in promiscuous mode This necessary for NICs like virtio, where the unicast MAC filter is 'best effort' only. ok dlg@ encouragement from mpi@
2016-01-22If usb_fill_udf_task() failed to fill the struct, udf_data stillAlexander Bluhm
contained the pointer it received from user land. usbioctl() has to reset it, otherwise user supplied data is passed to free(). OK mpi@
2016-01-22Drop packets whose VNI flag is not set and VNI is not zeroKazuya Goda
ok reyk@ yasuoka@
2016-01-22Support tunnel VRF on etherip(4)Kazuya Goda
ok dlg@ yasuoka@
2016-01-22add a missing if_put() to ipip_input()Jonathan Gray
ok mpi@
2016-01-22fix a missing if_put() in the default af path of tcp_mss()Jonathan Gray
ok mpi@
2016-01-22Add back the initialisation of a cn30xxipd_offload() variable removedJonathan Gray
in rev 1.6 so SET doesn't or bits into uninitialised memory. ok visa@
2016-01-22remove a surplus splbioJonathan Gray
ok deraadt@ krw@
2016-01-21Fix the timeout value sent in ADDBA request and response frames.Stefan Sperling
ba_timeout_val is in usec so we must divide by TU when copying it to the frame. ok kettenis@ millert@
2016-01-21Introduce in{,6}_hasmulti(), two functions to check in the hot path ifMartin Pieuchot
an interface joined a specific multicast group. ok phessler@, visa@, dlg@
2016-01-21avoid uninitialised variable useJonathan Gray
ok kettenis@
2016-01-21add a missing if_put() in a carp specific pathJonathan Gray
ok mpi@
2016-01-21Remove now uneeded bus_space_unmap calls in the DS1742W/Origin path thatJonathan Gray
have had uninitialised bus space handle arguments since the mapping became conditional in rev 1.9 confirmed with miod
2016-01-21remove the arp_inuse and arp_allocated countersDavid Gwynne
we can get the same info from the arp pool: # vmstat -m | grep -e ^arp -e ^Name Name Size Requests Fail InUse Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 56 84 0 6 1 0 1 1 0 8 0 Requests and InUse end up being the same: # pstat -d d arp_allocated arp_allocated at 0xffffffff81942084: 84 # pstat -d d arp_inuse arp_inuse at 0xffffffff81942098: 6 ok bluhm@ claudio@ mpi@
2016-01-20make AUDIO_GETDEV ioctl return the device name (ex "azalia0") ratherAlexandre Ratchov
than driver specific strings. ok kettenis
2016-01-20dlg@ took a pity on me and let me stay sane a bit longer by givingMike Belopuhov
me a chance to kill these glowing red trailing whitespace characters.
2016-01-20Set segflg member of uio struct with symbolic enum valueStefan Kempf
instead of using magic numbers. No binary change. Diff from Martin Natano. ok deraadt@
2016-01-20Check for disks deeper than 4 levels down in the Open Firmware device tree.Stefan Sperling
Makes softraid(4) boot possible on more sparc64 machines. Tested on Sun Fire machines by mikeb@ and Alexander Bochmann via misc@ ok mikeb@
2016-01-20Don't bump output errors when when tx ring is fullMike Belopuhov
Reported by Jonathon Sisson <openbsd at j3z ! org>, thanks!
2016-01-20Set byte order the default encoding in the attach method toAlexandre Ratchov
native byte order. No behaviour change, as attach time parameters are just hints, except thay this makes audioctl output nicer if the device was never opened.
2016-01-20remove an unused ifp variableJonathan Gray
2016-01-20add hidmt, a HID-layer driver for multitouch touchpads that conformJoshua Stein
to the "Windows Precision Touchpad" standard. when a compatible device is found, hidmt claims all report ids and switches the device into multitouch packet mode. add imt, an i2c-HID driver that sits between ihidev and hidmt
2016-01-20add the ability to set and get reportsJoshua Stein
establish interrupt before probing for devices to handle each report id sign an int, found by jsg
2016-01-20add hid_get_udataJoshua Stein
code from FreeBSD, name from NetBSD
2016-01-19Convert min() and uiomovei() to ulmin() and uiomove(),Stefan Kempf
preventing integer truncation. Diff from Martin Natano ok kettenis@
2016-01-19Convert min() and uiomovei() to ulmin() and uiomove().Stefan Kempf
Diff from Martin Natano ok kettenis@
2016-01-19Fix a race causing hardclock() to be sometimes invoked between the endAntoine Jacoutot
of cpu_configure() and initclocks(). from Miod no objection deraadt@
2016-01-19Mask interrupts on boot, masking/unmasking is handled by stop/initMike Belopuhov
2016-01-19Fix a few issues in the xnf transmit pathMike Belopuhov
A crash reported by Jonathon Sisson is caused by incorrect calculation of available descriptors on the tx ring. While here, split the mbuf chain so that we won't unload the whole thing in the txeof before removing grant table references from transmit descriptors.
2016-01-19Cast evtchn_mask to a char pointer for an isset operationMike Belopuhov
When testing evtchn_mask bits we need to treat the array as a bit matrix for an isset macro to test correct bits. Reported by reyk@ some time ago, Wei Liu <wei ! liu2 at citrix !com> figured out how to reproduce the problem. Thanks!
2016-01-19Check if the vnode type is VBAD (corresponds to disconnectedAlexandre Ratchov
usb devices) and return ENOTTY rather than terminating the caller program. Found by Michael Reed <m.reed at mykolab.com> ok semarie, deraadt
2016-01-19Correct the definitions of currently unused protocol guids so they willJonathan Gray
work as EFI_GUID initialisers. ok yasuoka@ krw@
2016-01-18Log unhandled interruptsMike Belopuhov
2016-01-18Provide a Xen v3 API compatible fallback for event channel hypercallsMike Belopuhov
2016-01-18Fixup a hang while performing a read operation on XenStoreMike Belopuhov
Reyk has reported an issue that turned out to be an incorrect calculation of bytes available for reading. This diff also places missed semaphore releases in the xs_start and makes 'left' a size_t in xs_ring_{get,put}.
2016-01-18Pass the address length to art_alloc() and remove the hack abusing theMartin Pieuchot
offset of the address in the sockaddr to initialize the stride lengths.
2016-01-18Add SYS_truncate as a "wpath" operation. Omission noticed by tb and sthen.Theo de Raadt
2016-01-18Stop storing a backpointer to the corresponding ART node in each routeMartin Pieuchot
entry. This pointer hasn't been used for some time and without it no external reference count is needed to turn art_lookup() mpsafe.