summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-09-07clarify that goto error in alloc_all_endpoints_fixed_ep() always returnsmiko
USBD_INVAL. ok mpi@
2018-09-07move initial jack count to alloc_all_endpoints(), and reset count to zeromiko
in free_all_jacks(). ok stsp@ ratchov@
2018-09-07Add retguard macros to cpu_switchto, setjmp, longjmp.mortimer
ok kettenis@
2018-09-06If we cannot stop the endpoint when aborting a transfer assume thatMartin Pieuchot
the device is gone and give back the descriptor to the stack. Without this usbd_abort_pipe() could end up in an infinite loop. Issue reported by Tom Murphy.
2018-09-06fix whitespaceJonathan Gray
2018-09-06Implement 64-bit DMA support in sdhc(4).Patrick Wildt
tested in snaps ok kettenis@
2018-09-06execute the same code for failure of assign_all_jacks_automatically()miko
and attach_all_mididevs(). this ensures unbind_all_jacks() and usbd_deactivate() happen for both cases. ok ratchov@
2018-09-06sync icmp_mtudisc_clone() with icmp6_mtudisc_clone(); prompted by bluhm@miko
2018-09-05Back out 1.4, it broke thingsJoshua Stein
2018-09-05Serialize synchronous commands with a rwlock.Martin Pieuchot
Prevent triggering an assert if two drivers try to submit a command at the same time. Issue reported by Tom Murphy.
2018-09-05factor error code in icmp6_mtudisc_clone(); ok kn@ florian@miko
2018-09-05Add defines for dealing with PCID support in cr3Philip Guenther
ok mlarkin@
2018-09-04Forgot to rename pf_frent_holes() prototype in previous commit.Alexander Bluhm
2018-09-04Avoid traversing the list of fragment entris to check whether theAlexander Bluhm
pf(4) reassembly is complete. Instead count the holes that are created when inserting a fragment. If there are no holes left, the fragments are continuous. idea from claudio@; OK claudio@ sashan@
2018-09-04kevent: Don't poll for nonzero timeouts < 1us.cheloha
Instead of truncating nanosecond timeouts to zero here and polling, we should round up to a delay of at least a tick, just like all the other timespec syscalls. Fixed in NetBSD kern_event.c v1.62 and FreeBSD r247804. ok millert@ visa@
2018-09-03regenJoshua Stein
2018-09-03add another toshiba nvmeJoshua Stein
2018-09-03Remove round_buffersize function from drivers using the default buffersizemiko
provided by the upper layer audio driver. ok ratchov@
2018-09-01Match on interfaces with Digitizers/Touchscreen collections, as longJoshua Stein
as they have an X usage. Should get basic touchscreen functionality on some common HID-over-i2c devices like laptops.
2018-09-01For touchscreen devices, use the first HUG_X/Y usage pages foundJoshua Stein
when looking for logical min/max of screen. ok kettenis
2018-09-01Fix errno for post-lock unveil callsTheo de Raadt
from Jan Klemkow
2018-09-01Make 'ifconfig nwid' override 'ifconfig join'.Stefan Sperling
There was no way to override a decision made by join's network selection algorithm (apart from disabling the feature by clearing the join list). Automatic selection is based on heuristics which cannot always guess correctly so we need to provide an override. One specific problem was that if 'nwid foo' and 'nwid bar' were both visible in the scan and only 'nwid foo' was a member of the join list, then there was no way at all to connect to 'nwid bar'. The wireless stack would keep selecting 'nwid foo' instead. 'ifconfig iwm0 nwid bar' command will now disable automatic network selection and force the use of ESSID 'bar'. Any of these commands will re-enable automatic network selection: ifconfig iwm0 -nwid ifconfig iwm0 nwid '' ifconfig iwm0 join some-network-id ok phessler@ deraadt@
2018-09-01Recognize more talker IDs when parsing NMEA RMC messagesLandry Breuil
The NMEA 0183 standard says that the first two chars correspond to the 'source' of the message, right now we were only looking for 'GP' prefix for 'GPS', but this can also be 'GL' for Glonass, 'BD' for BeiDou, 'GA' for Galileo, or 'GN' for a generic GNSS source. Match the RMC messages from all those variants, with this i'm able to use my navilock nl-8002u (which uses GNRMC) as a timedelta sensor for ntpd, and i have my GPS position in the nmea(4) sensors. ok deraadt@
2018-08-31remove shadow variables for 'error' in usbioctl(); ok mpi@ ratchov@miko
2018-08-31Cadd a TDB `tdb' instead of `sa'.Martin Pieuchot
No functionnal change. ok deraadt@, bluhm@, visa@
2018-08-31Pass the correct size to free(9) in the error path of db_ctf_decompress().Alexander Bluhm
OK jasper@
2018-08-31ich variable is only used in DPRINTF() and uaudio_get_cluster_nchan()miko
has no side effect, so setting value for ich can be moved under UAUDIO_DEBUG. ok ratchov
2018-08-31Move kcov device definitions into <sys/conf.h>.Visa Hankala
OK anton@ deraadt@ kettenis@ mpi@
2018-08-31enable bnxt(4)Jonathan Matthew
2018-08-30Move .dynstr before _edata to fix image size calculation. The PEPatrick Wildt
header contains an image size field that is calculated using the difference between the start of the header and edata. Since we copy out .dynstr into the EFI binary, make sure that .dynstr is before edata so that it's included in the image size. This makes it consistent with efiboot on armv7. ok kettenis@
2018-08-30fix memory leak in an error pathJonathan Gray
ok patrick@
2018-08-30Set up an aggregation buffer ring and configure placement mode so dataJonathan Matthew
that doesn't fit in the rx buffer goes into an aggregation buffer, allowing jumbo frames to be received. Using 8k aggregation buffers means we'll only ever need one per packet. When receiving jumbos, sometimes we get an interrupt before all three of the completion events are ready, in which case we should not consume the events that are ready. Expanding the completion ring makes this happen less frequently, so allocate four cp ring pages instead of one.
2018-08-30Move softbutton check before the check that skips attaching certain acpiMark Kettenis
devices. Fixes regression caused by matching on _CID in addition to matching on _HID. ok matthieu@, mlarkin@
2018-08-30Remove dead code related to tty allocation for ptys. Back in revision 1.17 ofanton
kern/tty_pty.c, allocation of ptys was made dynamic with the introduction of check_pty(). Every time a new struct pty is allocated its corresponding struct tty is also allocated. It's therefore no longer necessary to ensure that a pty has a tty allocated after calling check_pty(). ok deraadt@ millert@ mpi@ visa@
2018-08-30Split the system-wide list of all futexes into process-specific listsVisa Hankala
of private futexes and a shared list of shared futexes. This speeds up futex lookups. Tested by and OK krw@ OK mpi@
2018-08-29Remove unused struct member.Mark Kettenis
ok deraadt@, mlarkin@
2018-08-29Initialize device numbers for newly allocated ptys. Prevents a panic caused byanton
the following: a new pty is allocated in which the kernel console output is redirected to, poll(2):ing from /dev/console at this point would be delegated to the device with the major number taken from the pty due to the earlier redirection. Since the pty does not have its correct device major assigned, the wrong device ends up being used. ok deraadt@ millert@
2018-08-29First pass in bringing i386 in sync with amd64. This does not yet work, but ispd
being committed now so we can work on the rest in-tree. ok mlarkin@
2018-08-29move the todr chip handle into a prtc_softc structureDavid Gwynne
no realy change, this avoid having to allocate the todr struct in attach ok deraadt@
2018-08-28Add per-TDB counters and a new SADB extension to export them toMartin Pieuchot
userland. Inputs from markus@, ok sthen@
2018-08-28avoid uninitialised variable useJonathan Gray
ok patrick@ kettenis@
2018-08-28avoid uninitialised variable use in an error pathJonathan Gray
ok kettenis@
2018-08-28Fix stat of path components - this was breaking chrome - because theBob Beck
final directory in a name unveil was not being added with UNVEIL_INSPECT if it was not already unveiled. Now passes just added regress test for this case
2018-08-28add support for storing the time of day on OPL based machines.David Gwynne
this let's me pull the date back from 2023 to 2018, and have it stay like that after a reboot. ok deraadt@
2018-08-27Add hitemp(4), a driver for the temperature sensors on the HiSilicon Hi3660Mark Kettenis
and Hi3670 SoCs.
2018-08-27Add 64-bit DMA support. Enable DMA on HiSilicon SoCs.Mark Kettenis
ok patrick@
2018-08-27Add hiclock(4). Make sure hireset(4) attaches early.Mark Kettenis
2018-08-27move bwfm* at pci? to the wireless sectionJoshua Stein
2018-08-27Rename struct kd -> kcov_dev. The terse name was initially fine since it wasn'tanton
used outside of dev/kcov.c. Nowadays, struct proc includes a kcov pointer and it therefore deserves a more descriptive name. Prodded by visa@; ok deraadt@ visa@
2018-08-27Enable hireset(4).Mark Kettenis