summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-01-08TIOCUCNTL is now allowed by promise "tty".Martin Pieuchot
Reminded by jmc@
2018-01-08Enable TIOCUCNTL to be able to set ns8250's break detected condition.Martin Pieuchot
It is now possible to send BREAK commands to vmd(8) independently of the serial terminal emulator. Happy virtual ddb(4) hacking! No objection from mlarkin@, ok nicm@, ccardenas@, deraadt@
2018-01-08Allow TIOCUCNTL issued on a pty(4) master in promise "tty".Martin Pieuchot
This will be soon be used to emulate BREAK commands in vmd(8). ok nicm@, ccardenas@, deraadt@
2018-01-08Translate the TIOCSBRK & TIOCCBRK ioctl(2)s issued on a pty(4) slave toMartin Pieuchot
corresponding user mode ioctls. If the master part of the pseudo terminal previously enabled TIOCUCNTL, it will now receive the TIOCUCNTL_{S,C}BRK commands. This allows to send BREAKS commands over a pty(4) independently of the serial terminal emulator used. Guidance and ok nicm@, ok ccardenas@, looks ok to deraadt@
2018-01-08Attach dwiic_pci on Dell Precision 7520. Also restrict ihidev reportsMike Larkin
to those of 3 bytes or more (as per the hid-over-i2c spec). discussed with jcs, kettenis
2018-01-08Mark up command strings with Cm, and variables with Va.Anthony J. Bentley
ok jmc@
2018-01-08Delete flowrings when we take the interface down or change itsPatrick Wildt
settings.
1995-10-18initial import of NetBSD treeTheo de Raadt
2018-01-07Add regression tests for cdrom keywordccardenas
ok mlarkin@
2018-01-07Create multiple transmit flowrings in station mode, four in total, basedPatrick Wildt
on TOS values. In AP mode create multiple flowrings per connected node.
2018-01-07delete a wrong commentMike Larkin
2018-01-07remove all PG_G global page mappings from the kernel when running onMike Larkin
Intel CPUs. Part of an ongoing set of commits to mitigate the Intel "meltdown" CVE. This diff does not confer any immunity to that vulnerability - subsequent commits are still needed and are being worked on presently. ok guenther, deraadt
2018-01-07Add proper bounds checking to kb_add(). OK anton@Todd C. Miller
2018-01-07amd64_{get,set}_fsbase() are superfluous and unused; delete them.Philip Guenther
Delete unused/never-implemented sysarch defines and structs while here. ports check and ok naddy@ ok deraadt@ mlarkin@
2018-01-07Use __inline instead of inline as this header file might be included in aMark Kettenis
"strict ansi" environment (even though it shouldn't be). Found out the hard way by phessler@ with a port that uses gcc -ansi. ok millert@, phessler@
2018-01-07add arch to Dt;Jason McIntyre
2018-01-07On OpenBSD/armv7 we deliberately trap unaligned access. UnfortunatelyMark Kettenis
the assembly code in libcrypto assumes unaligned access is allowed for ARMv7. Make these paths conditional on __STRICT_ALIGNMENT not being defined and define __STRICT_ALIGNMENT in arm_arch.h for OpenBSD. ok tom@
2018-01-07Remove unused extern variable in openssl(1) s_timeKinichiro Inoguchi
This extern variable appears not to be used. And it is overridden by local variable in doConnection(). This causes MSVC warning C4459 "declaration of 'verify_error' hides global declaration". OK millert@
2010-10-01import OpenSSL-1.0.0aDamien Miller
2018-01-07Delete obsolete/untrue commentsPhilip Guenther
2018-01-07remove a ridiculous comment and move another comment to the line it wasMike Larkin
really intended to describe. no functional change
2018-01-07Assume that direct-mapped addresses come from the xkphys segment.Visa Hankala
2018-01-07Add references to errata.Visa Hankala
2018-01-07Add identcpu.c and specialreg.h definitions for the new Intel/AMD MSRsMike Larkin
that should help mitigate spectre. This is just the detection piece, these features are not yet used. Part of a larger ongoing effort to mitigate meltdown/spectre. i386 will come later; it needs some machdep.c cleanup first. ok kettenis@
2018-01-06Add fs to the application/octet-stream extensions, mostly for installXX.fs,Stuart Henderson
to help with a problem noticed by tj@ and diagnosed by job@, ok phessler For OpenBSD distfile mirrors running httpd who want to do this before getting the updated mime.types, you can set: . types { . application/octet-stream fs . }
2018-01-06Handle %gs like %[def]s and reset set it in cpu_switchto() instead of onPhilip Guenther
every return to userspace. ok kettenis@ mlarkin@
2018-01-06Fix an interrupt storm condition in vldcp(8) (sparc64).Stefan Sperling
If the Rx channel goes down with pending data on the ring, toss the pending data to ensure that the firmware's rx ring head index matches the rx ring tail index. Otherwise we trigger an interrupt storm since vldcpread() never consumes pending data while the channel is down, and the firmware keeps triggering the interrupt until all data on the ring is consumed. Interrupt storm observed and fix tested on a T5220 (which can now run ldom guests; without this fix starting ldomd would trigger the problem). ok kettenis@
2018-01-06Don't advertise L0s if the "aspm-no-l0s" property is present. Base availableMark Kettenis
bus numbers on the "bus-range" property. Create outbound translations based on the "ranges" property.
2018-01-06regenMark Kettenis
2018-01-06Add Silicon Motion SM2260 NVMe.Mark Kettenis
2018-01-06syncTheo de Raadt
2018-01-06pckbd: don't change translation mode if controller is in table 2Joshua Stein
This was changed a decade ago to forcibly try table 3 first in order to make some now-long-gone hardware work. Newer Lenovo machines seem to have trouble being asked to change modes which manifests as a long boot delay as it waits for each request to timeout, or by causing the keyboard to generate junk when typing. Assume table 2 by default and just leave it alone if it's already there. This is how Linux has operated for quite a while and seems to help on these Lenovo machines. Tested by a few with these machines and has been in snaps for a bit.
2018-01-06Bring back the sign compare changes, this time with a fix from otto@Todd C. Miller
that fixes the issues seen on hppa. OK deraadt@ otto@
2018-01-06unifdef LOGIN_CAP, we always want to use login.confTodd C. Miller
OK jca@, no objection deraadt@
2018-01-06Remove dead gettimeofday calls and timevals.cheloha
ok jca@
2018-01-06sxits(4)Mark Kettenis
2018-01-06Enable sxits(4).Mark Kettenis
2018-01-06Add sxits(4), a driver for the temperature sensor on the Allwinner A10/A20Mark Kettenis
touchpad controller.
2018-01-06Enable sxitemp(4).Mark Kettenis
2018-01-06Set the proper bus clock rate based on the "clock-frequency" property andMark Kettenis
the rate of the parent clock. If the "clock-frequency" property isn't present, use the default standard mode clock of 100kHz.
2018-01-06tweak previous;Jason McIntyre
2018-01-06Import gilles@'s standalone spfwalk utility into smtpctl(8) asSunil Nimmagadda
'spf walk' command. Ok gilles@
2018-01-06Move unpack functions into a seperate file.Sunil Nimmagadda
Required for upcoming 'smtpctl spf walk'. Ok eric@ gilles@ millert@
2018-01-06Remove redundant zeroing and dead code.Visa Hankala
2018-01-06rework the transmit and receive paths to address reliability issues.David Gwynne
phessler@ has been having trouble with msk on overdrive 1000s. some of the issues relate to the driver not coping with exhaustion of mbufs for the rx ring, the other issues are corruption of the mcl9k pool that msk uses. this diff adds a timeout that the rx refill code uses when the rx ring is empty and cannot be filled. it'll periodically retry the ring refill until it can get some mbufs in the air again. the current code made hunting for the mcl9k issue too hard, so this rewrites it to be simpler and more like other drivers. there's now just arrays of mbuf pointers and dmamaps to shadow the hardware ring entries, and producer and consumer indexes. what was there before had linkes lists of something to hold mbuf pointers and dmamaps, and some way to go from the ring to go back to that. i think, it was hard to tell what was happening. this also copies the ADDR64 handling on the tx ring to the rx ring. this potentially makes more rx descriptors available, but that can happen later. in hindsight the mcl9k problem could have been from letting if_rxr allocate the entier ring. if every descriptor was filled, the chip may have run around the ring when it shouldnt have. giving rxr one less descriptor than there is on the ring may have fixed the problem too. this work also makes it easier to make msk mpsafe. tested by an ok phessler@ ok kettenis@ deraadt@
2018-01-05To send out packets we need to create a flowring. Acting as station,Patrick Wildt
we typically have about four flowrings per priority. As access point we apparently need one, or four considering the priorities, flowrings per client. For now let's start with a single TX flowring. To setup a flowring we need to send a create request and can only start sending packets as soon as we are told that the ring is created. With this we can now do actual network traffic.
2018-01-05Drop incoming network packets as long as we are not in RUN state. ThisPatrick Wildt
happens when we successfully associate and the AP tries to initiate the WPA2 handshake but we haven't received the asynchronous ASSOC event yet. Dropping the packet will make the AP retry, and at that point we should have successfully associated. While there, don't feed the event packets to our network stack. It's been helpful for debugging but now it's time to let go.
2018-01-05some minor fixes;Jason McIntyre
2018-01-05Handle resets; needed on Allwinner R40/V40.Mark Kettenis
2018-01-05Implement R40/V40 SATA clock.Mark Kettenis