summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-05-04Fix WITNESS build on arm64.Visa Hankala
OK guenther@
2018-05-04Add stack trace saving for arm64.Visa Hankala
OK guenther@
2018-05-04After unmount nfs_timer() could access the freed memory of structAlexander Bluhm
nfsmount. Delay the free(9) of the nfs mount point data until pending or sleeping timeouts have finished by running it on the softclock thread. OK visa@
2018-05-04Initialize st_count in db_save_stack_trace().Visa Hankala
OK guenther@
2018-05-04Leave out an unnecessary symbol lookup.Visa Hankala
OK guenther@
2018-05-03Set the assigned clock settings in imxesdhc(4), which leads to a frequencyPatrick Wildt
bump to 400 MHz for the eMMC on i.MX8MQ.
2018-05-03Add code to initialize the USB 3 PHY on i.MX8MQ.Patrick Wildt
ok kettenis@
2018-05-03Add an API to configure clocks to specific pre-assigned values. ThesePatrick Wildt
values are defined in the device tree and make sure that all clocks needed for controller and driver operation are configured as expected. This allows modifying a clock's rate and parent. For now expect that a parent clock is on the same controller as the muxed one. ok kettenis@
2018-05-03use rasops scrollback with radeondrm as wellJonathan Gray
2018-05-03Use the default background attribute when erasing rows in doswitch andJonathan Gray
scrollback. Fixes use of an uninitialised attribute value in scrollback. Patch from miod@ ok kettenis@
2018-05-03Add support for SMCCC 1.1 which provides proper support for the firmware-basedMark Kettenis
workaround for branch target injection attacks (CVE 2017-5715). ok patrick@, jsg@
2018-05-02Do not assume that mbufs within a chain do not have M_PKTHDR set.Alexander Bluhm
This could happen during fragment reassembly. Better check if we are dealing with the first mbuf of the chain. m_adj() changes the length of the mbuf, obviously. So when using this length to calulate the amount of adjustment, do not calculate it again after m_adj() with wrong input. Use a temporary variable to save the value. from Maxime Villard, NetBSD; OK markus@ claudio@
2018-05-02Continue kettenis@'s revert:Peter Hessler
Revert previous commit; the XR17V35X probe that was added accesses registers that aren't guaranteed to be there and may even belong to a different device. This triggers a fault on hppa machines like the C3000 for example.
2018-05-02Fix build. The power domain API is needed by r1.9 of xhci_fdt.c.Visa Hankala
2018-05-02Enable power domain for xhci(4).Patrick Wildt
ok kettenis@
2018-05-02Add imxpd(4) which is a power domain controller driver thatPatrick Wildt
essentially calls into ATF to make it supply power. ok kettenis@
2018-05-02Implement a power domain framework to turn on/off so-called powerPatrick Wildt
domains. This mechanism is used by the newer i.MX8M SoCs so that drivers can call into ATF to supply power to e.g. a USB port. ok kettenis@
2018-05-02Revert previous commit; the XR17V35X probe that was added accesses registersMark Kettenis
that aren't guaranteed to be there and may even belong to a different device. This triggers a fault on hppa machines like the C3000 for example.
2018-05-02Split out the handling of SIOCGIF* into a new function, in_ioctl_get(),Theo Buehler
that only needs the read lock. ok visa, mpi
2018-05-02Push the NET_LOCK() down in in6_control() similar to what was doneTheo Buehler
for in_control(). Protect mrt6_ioctl() and nd6_ioctl() with a read lock and in6_ioctl with the NET_LOCK() while establishing a single exit point. tested by kn ok florian, mpi, visa
2018-05-02Remove proc from the parameters of vn_lock(). The parameter isVisa Hankala
unnecessary because curproc always does the locking. OK mpi@
2018-05-02Record lock type even if witness is disabled. The value will be neededVisa Hankala
if the lock becomes watched later.
2018-05-01Bump the clock frequency to a higher level that every card (per spec)Patrick Wildt
has to support for MMC cards prior to reading the extended registers. We already do this for SD cards. Fixes eMMC support on the i.MX8M. Tested by and ok kettenis@
2018-05-01Simplify/refactor the way vendor/product/serial informations areLandry Breuil
gathered from usb devices. Cache them early in usbd_new_device() instead of querying the device several times (the content wont change anyway) and uselessly generating usb traffic (which could conflict with other access..) The heuristic stays the same, first look in the device descriptor, then try to match against usb_known_vendors/usb_known_products, then fallback to use the idVendor/idProduct codes. Remove the now useless 'usedev' parameter from usbd_fill_deviceinfo(). Tested from bsd & bsd.rd. suggested by and ok mpi@
2018-05-01vmmci(4) depends on pvbus(4) being available, unbreakPeter Hessler
from mlarkin@
2018-04-30Reduce the scope of the NET_LOCK() in in_control(). Two functions wereTheo Buehler
protected: mrt_ioctl() and in_ioctl(). The former has no other callers and only needs a read lock. The latter will need refactoring to reduce the lock's scope further. In a first step, establish a single exit point and protect most of the function body with the NET_LOCK() while removing the NET_LOCK() from a handful of callers. suggested by & ok mpi, ok visa
2018-04-30Use acpi_register_gpio() to register gpio space like we do for chvgpio(4).Mark Kettenis
ok mpi@
2018-04-30Treat all negative values of witness_watch equally for robustness.Visa Hankala
2018-04-30vmd(8): unbreak i386Mike Larkin
2018-04-29In hash{free,init}(), there's no need to calculate the size of the hash table ifanton
the given number of elements already is a power of 2. ok visa@, "seems like a good plan" deraadt@
2018-04-29Don't bother with background scans while the desired BSSID is fixed.Stefan Sperling
Patch by Jesper Wallin
2018-04-29Unsigned values are always >= 0, fix Coverity 1468443.Martin Pieuchot
2018-04-29Fail early when transfers aren't completed in order.Martin Pieuchot
ok pirofti@, visa@
2018-04-29'juming' -> 'jumping' in comment.Kenneth R Westerback
Pointed out by Ryan Lennox via tech@
2018-04-29em: Add magic delay for HP elitebook 820 G3Stefan Fritsch
Add another magic 1ms delay that seems to help with some remaining "Hardware Initialization Failed" issues on an HP elitebook 820 G3 with i219LM. A printf() at the same place helps, too. ok mikeb@
2018-04-29em: Make em_get_software_flag() recursiveStefan Fritsch
The em driver calls em_get_software_flag() recursively, which causes the semaphore to be unlocked too early. Make em_get_software_flag and em_release_software_flag handle this correctly. Freebsd does not do this, but they have a mutex that probably allows them to detect recursive calls to e1000_acquire_swflag_ich8lan(). Reworking the openbsd driver to not recursively get the semaphore would be very invasive. ok mikeb@
2018-04-29em: Improve access logic for software flagStefan Fritsch
Some em chips have a semaphore ("software flag") to synchronize access to certain registers between OS and firmware (ME/AMT). Make the logic to get the flag match the logic in freebsd. This includes higher timeouts and waiting for a previous unlock to complete before trying a lock again. ok mikeb@
2018-04-29INIT->RUN transitions are valid in monitor mode, so don'tStefan Sperling
debug print "invalid transition" to dmesg in this case.
2018-04-28Some drivers handle settting a new wifi link state manually, so make surePeter Hessler
they flush old nodes and set the interface link state to down, like the framework does. OK stsp@ pirofti@
2018-04-28replace add_*_randomness with enqueue_randomness()Jasper Lievisse Adriaanse
this gets rid of the source annotation which doesn't really add anything other than adding complexitiy. randomess is generally good enough that the few extra bits that the source type would add are not worth it. ok mikeb@ deraadt@
2018-04-28When starting a background scan, free the nodes table to ensure weStefan Sperling
get an up-to-date view of APs around us. In particular, we need to kick out the AP we are associated to. Otherwise, our current AP might stay cached if it is turned off while we are scanning, and we could end up picking a now non-existent but "good looking" AP over and over. found with and ok phessler@
2018-04-28Fix WEP key selection in ieee80211_get_txkey().Stefan Sperling
The WEP key index is stored in ic_def_txkey. The iGTK ("integrity group key") index is specific to WPA. The previous code happened to always select WEP key index 0 since the iGTK index is not yet used by any driver. ok phessler@
2018-04-28If ieee80211_encrypt() is passed a key with an unrecognized cipherStefan Sperling
type then panic immediately instead of silently dropping packets. ok phessler@
2018-04-28Remove redundant error checkkn
error is set by copyinstr(9) only and we return early if it is non-zero, so the loop's last condition is always true. OK deraadt, jca
2018-04-28pgt(4): do not tsleep in the scan ioctl.Paul Irofti
The only action taken during the scan ioctl was to sleep. This does not make sense as the scanning process happens in the state machine behind the scenes. Initialization indeed performs newstate(SCAN), but that is done no matter if the user waits for the full results or not. Instead, this change unifies the (new) user experience when performing ifconfig scan and shows the nodes list produced by the latest background scan. This was not tested on real hardware. Please message me directly in case this broke your card. OK stsp@, deraadt@
2018-04-28Print more debug informations in the event xfer handler.Martin Pieuchot
2018-04-28Correct IST macro and add a new macro for setting Frame IDs.Martin Pieuchot
2018-04-28bump my copyrightPeter Hessler
2018-04-28don't check if we still have the BFD flag set when sending a packet, as wePeter Hessler
might be shutting the session down
2018-04-28properly delete the bfd configuration when it is disabledPeter Hessler