summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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
2018-04-28use unsigned variables for things that we use as unsignedPeter Hessler
noticed by clang
2018-04-28add the socket lock around our use of socketsPeter Hessler
2018-04-28Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysVisa Hankala
curproc that does the locking or unlocking, so the proc parameter is pointless and can be dropped. OK mpi@, deraadt@
2018-04-27rasops: implement scrollbackJoshua Stein
activate it for efifb and inteldrm ok kettenis
2018-04-27If a wifi driver does not provide an ic_bgscan_start() function there is noStefan Sperling
point in scheduling ic_bgscan_timeout() since this timeout will find that it has nothing to do. ok phessler pirofti
2018-04-27use nitems()Jasper Lievisse Adriaanse
verified md5 sum on amd64 ok mlarkin@
2018-04-27Fix WEP.Stefan Sperling
Clear group keys in iee80211_newstate only if we're doing WPA. Otherwise, ieee80211_crypto_clear_groupkeys() will clear WEP keys configured by userland before associating. (All WEP keys are group keys.) ok phessler@ tb@ pirofti@
2018-04-27Fix the scan loop: We were only looking for an AP once and stoppedStefan Sperling
scanning if none was found. Accidentally broken in recent ifconfig scan changes by pirofti and me. ok pirofti
2018-04-27-fretpoline for non-RAMDISK kernels. Skylake product needs it, andTheo de Raadt
therefore all other x86 cpus must pay the performance price of the hazard workaround until Skylake disappears from the ecosystem eventually like 486. This returns your cpu's performance to pre-inflated performance. ok mlarkin guenther
2018-04-27Introduce an helper function to extract endpoint's max burst value.Martin Pieuchot
Use this helper to calculate the Transfer Burst Count (TBC) and Transfer Last Burst Packet Count (TLBPC) required for isochronous support. Note that SS companion descriptors are still not read. While here print the ETE and IST values in debug mode.
2018-04-27Introduce an helper function to extract endpoint's max burst value.Martin Pieuchot
Use this helper to calculate the Transfer Burst Count (TBC) and Transfer Last Burst Packet Count (TLBPC) required for isochronous support. Note that SS companion descriptors are still not read. While here print the ETE and IST values in debug mode.
2018-04-27regenMike Larkin
2018-04-27add Marvell 88W8897 wireless to pcidevs (no driver yet)Mike Larkin
2018-04-27vmm(4): pass through ELCRx ports to vmd(8)Mike Larkin
These ports are used for Edge/Level control on the legacy PIC and will be needed for a subsequent commit.
2018-04-27Print index as unsigned.Martin Pieuchot
2018-04-27Move FREF() inside fd_getfile().Martin Pieuchot
ok visa@
2018-04-27Fix an off-by-one in xhci_xfer_tdsize().Martin Pieuchot
While here use UE_GET_SIZE() coherently. ok pirofti@, stsp@, visa@
2018-04-27Remove duplicate device identification so my usb drive attaches as a umassTheo Buehler
and not as a uplcom. From mpi, ok deraadt, no objection kettenis
2018-04-27Fix the prologue detection to match amd64 opcodes, not i386 opcodesPhilip Guenther
ok mlarkin@
2018-04-27Delete superfluous includes of <sys/file.>Philip Guenther
ok krw@
2018-04-27The i.MX8M has the same quirk as the i.MX6SX, where the CAP1 registerPatrick Wildt
spills into the CAP register.
2018-04-27Newer fec(4), like implemented on i.MX8M, have multiple interrupt linesPatrick Wildt
to the ethernet controller for different types of events. On the i.MX8M interrupts only seem to happen on the last interrupt, while the i.MX6 that we support very well only has a single interrupt line. Simply establish all three lines (if available) in a non-MPSAFE fashion to make ethernet work on the i.MX8M SoC. ok kettenis@
2018-04-27implement test for running in a hypervisor on amd64/i386Jonathan Gray
2018-04-26vmm(4): passthrough port 0x61 to vmd(8)Mike Larkin
ok guenther
2018-04-26Oups, we only need vmmci(4) for the ramdisk, not the whole vmm(4).Peter Hessler
noticed by deraadt@ and mlarkin@
2018-04-26enable vmmci(4) on the ramdisks, so bsd.rd plays nicer when it powers offPeter Hessler
OK mlarkin@
2018-04-26vmm(4): Rearrange some interrupt window exiting codeMike Larkin
Simplify some code and reduce the number of places we are handling VINTR exits. ok brynet
2018-04-26Prefer leaq+%rip-relative over movabsqPhilip Guenther
xrstor_resume must not have profile prologue, so use NENTRY Don't use _C_LABEL() with some pure-ASM labels
2018-04-26net80211: stub SIOCS80211SCAN, make ifconfig scan instant.Paul Irofti
The following removes the functionality of the SIOCS80211SCAN ioctl. After long discussions with stps@, mpi@, and deraadt@ we decided that this was the correct way of fixing ifconfig scan from blocking the network stack. The kernel will continue scanning in the background and filling the nodes array, but ifconfig scan commands will now basically do just a SIOCG80211ALLNODES and pretty print the array. So the output stays the same but is instant. In fact, when the interface is freshly brought up, if you type fast enough, you can see the array being filled by running multiple ifconfig scans in sequence. The SIOCS80211SCAN ioctl stays for now as wi(4), pgt(4) and malo(4) still need it around. But not for long... Another change that this introduces is the fact that ifconfig scan no longer plays with UP and DOWN. If the interface is down it complains and exits. This is needed in order to maintain the nodes list. Works on iwm(4), iwn(4), urtwn(4), run(4) and athn(4). Tested by mpi@, landry@, florian@, thanks! OK mpi@.
2018-04-26Reorder trapframe/intrframe to put %rbp next to %rip and make itPhilip Guenther
behave like a real call frame, thus vastly simplifying the ddb back trace logic. based on whinging from deraadt@ ok jasper@ mpi@ phessler@
2018-04-26vmm(4): remove some unnecessary kernel lock code from the SVM guest loopMike Larkin
that is not needed; this code deals with delaying the relocking of the kernel lock until after interrupts are processed during external interrupt exiting, but this is handled differently on SVM. External interrupts are automatically handled by the CPU as soon as stgi() is performed after exit. (The original code came from the VMX/Intel guest loop.) ok guenther@
2018-04-26Remove solock() surrounding PRU_CONTROL in soo_ioctl().Paul Irofti
We do not need the lock there. Missed this in my former commit pushing NET_LOCK() down the stack. Found the hard way by naddy@, sorry! OK mpi@.
2018-04-26vmm(4): ensure SVM_INTERCEPT_INTR is always enabled before enteringMike Larkin
guest VM.
2018-04-26Reduce differences between isoch & bulk/intr routines.Martin Pieuchot
ok stsp@
2018-04-26Follows section 6.2.3.6 to compute endpoint interval.Martin Pieuchot
ok stsp@
2018-04-26prot_exec is the correct name; spotted by landryTheo de Raadt
2018-04-26Drop into ddb(4) if pmap_tlb_shoot*() take too much time in MP_LOCKDEBUGMartin Pieuchot
kernels. While here sync all MP_LOCKDEBUG/while loops. ok mlarkin@, visa@
2018-04-26Rewrite fdcopy() to avoid memcpy()s.Martin Pieuchot
With and ok visa@
2018-04-25Simplify the handling of faults in iretq and xrstor by doing thePhilip Guenther
handling purely in ASM instead of fixing up the state to call into C...all in order to return back into a chunk of custom ASM which was longer than the direct solution! ok mlarkin@
2018-04-25vmm(4): clarify whose FPU state we are saving (change in a comment)Mike Larkin
no code change