summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-08-29add gpsmap 62sMike Belopuhov
2011-08-28lockmgr() wants to use a different address for the wchan when drainingPhilip Guenthe
the lock, but a change in member ordering meant it was using the same address. Explicitly use different members instead of mixing address of member and address of the lock itself. ok miod@
2011-08-26Be sure to write to the 7990 address register between two consecutive readsMiod Vallat
of the data register, while waiting for the chip initialization to complete. This seems to prevent spurious disappearance of le0 on some systems.
2011-08-26Be sure not to try to match lcg, and to bail out early in cnprobe as well,Miod Vallat
if we are running on a KA45 system. These share the KA48 board type but, unlike KA48, can not sport frame buffers. Prevents a bogus lcg device from attaching on KA45, and also repairs console operation if the S3 switch is down (console on serial #0).
2011-08-26Make vsbus_search() return the value of the cf_match function it is a wrapperMiod Vallat
for, instead of zero. Makes verbose autoconf output meaningful again.
2011-08-26Prevent watchdog timeouts; tested by Thomas PfaffKevin Lo
From Brad
2011-08-26Move the comment outside of the VLAN section of code and above thatKevin Lo
chunk to where it should be. From Brad
2011-08-26Add a dmesg warning about sloppy disk I/O to vnd(4) devices to helpMatthew Dempsky
identify bad distrib scripts/tools. ok deraadt@
2011-08-24revert the last commit. pms_enable_alps() does not guaranteeAlexandr Shadchin
the accuracy detection ALPS. ok mpi@
2011-08-23iPrevent that a socket splicing timeout error in one direction isAlexander Bluhm
also added to the other direction. ok mikeb@
2011-08-22Add support for Radeon 4250.Christiano F. Haesbaert
This, together with an updated xorg driver makes my drm/XVideo work. Originally from Nigel Taylor. ok oga@ mcbride@
2011-08-22move powerpc to non-__STRICT_ALIGNMENT, as it always was. EssentiallyTheo de Raadt
__STRICT_ALIGNMENT is talking about accessing of integer types; it does not cover doubles or floats or other things ok miod kettenis
2011-08-22mark setfault() with __returns_twiceTheo de Raadt
ok kettenis drahn
2011-08-22Adding stub for ALPS touchpad, which not supported yet.Alexandr Shadchin
This fixed "react strangely" when the pms driver probes for a synaptic-compatible touchpad. Tested and ok mpi@
2011-08-21Re-enable POOL_DEBUG. requested by deraadt@.Matthieu Herrb
2011-08-21Help with the watchdog timeouts seen when unplugging the cable fromKevin Lo
the alc(4) NIC while running or the NIC not working if the cable is not plugged in upon boot up. From Brad; tested by matteo filippetto, Gabriel Linder and edd@
2011-08-21Use the lowest available unit number for new pppx ifs. SomewhatJonathan Matthew
inefficient but doesn't matter with reasonable numbers of interfaces. ok dlg@
2011-08-20Don't wait for FR to come on after setting the FRE bit in the port commandMark Kettenis
register. The spec doesn't say we have to do this while it mentions several times one needs to wait for FR to clear after clearing FRE. The Linux driver doesn't wait for it either. This allows us to get rid of the AHCI_F_IGN_FR quirk. As a side-effect this diff will probably stop ahci(4) attaching to (some) NVIDIA fakeRAID devices. That's good since it is consistent with what we do for Intel fakeRAID. ok mikeb@, jmatthew@
2011-08-20Fix packet accounting in error cases.Ryan Thomas McBride
From Christiano F. Haesbaert.
2011-08-19Let ums probe bounds of absolute devices if available.Matthieu Herrb
ok shadchin@ some weeks ago.
2011-08-19Bring libc and libm in line with the compiler now that we no longer have aMark Kettenis
128-bit long double. Diff committed on behalf of martynas@
2011-08-18Add sti@dio attachments.Miod Vallat
2011-08-18So, it turns out that models 362 and 382 built-in frame buffer only shows upMiod Vallat
in DIO-II space, as a fat device spanning four select codes (i.e. 16MB of memory). This is way too much for an at-most 2 Mpixel 8bit frame buffer, and it turns out that this is because the device provides both a regular DIO-II frame buffer (spanning two select codes) and a regular STI frame buffer (spanning the other two select codes). This commit introduces a straightforward sti@dio attachment to get a working sti(4) and wsdisplay(4) in a ridiculously small number of lines; however the console code needs some changes to avoid duplicating globals. While there, add sti@dio support for the bootblocks, and I couldn't help myself but clean the most rotten parts of them, and try to have them reuse various files in sys/arch/hp300/dev instead of rolling their outdated ones. Tested on a real 382 with the low-resolution frame buffer: sti0 at dio0 scode 132: rev 8.02;129, ID 0x27134CB440A00499 sti0: 382V, 2048x512 frame buffer, 640x480x8 display sti0: 8x16 font type 1, 16 bpc, charset 0-255 wsdisplay0 at sti0 mux 1: console (std, vt100 emulation) Boot blocks updates tested on DIO-II 425t (serial/glass console), SGC 425e (serial/glass console) and 382 (serial/glass console). And will be tested on SGC 425t soon as well.
2011-08-18Fix various lies in comments, extend hex constants to 8 hex digits for easierMiod Vallat
reading, and introduce a define for the DIO-II device size, as reported by the device itself (in quarters of select code span, just to make things more complicated than necessary).
2011-08-18Because model 362 does not have an SGC bus (or a blind, deaf and mute one),Miod Vallat
there is no way we can tell models 360 and 362 apart by probing for an SGC bus, or for a frodo(4) chip since of the `lil' black swan' 3x2 models, only model 382 has frodo. So don't bother trying to tell models 360 and 362 apart, and use a common 36X symbol. No functional change except for useless code removal.
2011-08-18Do not skip 362 and 382 DIO frame buffer select codes; this was writtenMiod Vallat
back when I thought that these devices were showing both in DIO-II and SGC spaces; but, as researched by tsutsui@netbsd, there is nothing in the SGC bus address space (assuming there is SGC bus logic at all) on 3x2.
2011-08-18Do not use NULL when 0 is intended.Miod Vallat
2011-08-18stray spaces; no binary changeMarco Peereboom
2011-08-17Set the PSL_O bit, like we do for 64-bit capable CPUs on hppa.Mark Kettenis
2011-08-17Don't set the PSL_S bit. We generally don't tend to hide CPU counter timersMark Kettenis
from userland, and setting it upsets the sigreturn code.
2011-08-17match on MSP-FET430UIF JTAG, so it can be used with mspdebugJasper Lievisse Adriaanse
from impatiens@gmail.com
2011-08-17regenJasper Lievisse Adriaanse
2011-08-17add MSP-FET430UIF JTAG, from impatiens@gmail.comJasper Lievisse Adriaanse
2011-08-17Assembler implementation of the GCM mode using the Carry-lessMike Belopuhov
Multiplication (CLMUL) instruction found in the new Intel and future AMD CPUs. Done about a year ago and was rotting in my trees until Ryan prodded Theo to read the white paper and figure out the license issues. Apparently, there are none. All C code and SSE glue code was written by me, while the GF multiplication function is taken from the CLMUL white paper, specifically Figure 6: "Code Sample - Performing Ghash Using Algorithms 1 and 5".
2011-08-17Adding support Synaptics touchpad. Thanks all for test.Alexandr Shadchin
ok miod@, matthieu@
2011-08-17remove the clamping of max_softdeps as it makesThordur I. Bjornsson
softdeps almost totally unusable;
2011-08-16we are now hacking on 5.0-currentMark Kettenis
requested by deraadt@
2011-08-16Use pitlbe and pdtlbe instructions when flushing the entire TLB.Mark Kettenis
2011-08-16The gp value is stored in a different register on hppa64.Mark Kettenis
2011-08-16Old proc is stored in %arg0, not in %arg2.Mark Kettenis
2011-08-16Compile in serial console settings support if any com(4) device is includedMark Kettenis
in the kernel, not only when com @ gsc is there.
2011-08-16Compile in serial console settings support if any com(4) device is includedMark Kettenis
in the kernel, not only when com @ gsc is there. ok miod@
2011-08-16Put back the pedro diff for VOP_FSYNC of softdep when itsThordur I. Bjornsson
limit is reached. Added twist, clamp the max_softdeps to 64 as it is still possible to exhaust bufkva.
2011-08-16Don't export 'struct pmap' to userland.Mark Kettenis
2011-08-09In pmap_create(), check uvm_pagealloc() return value and uvm_wait() until itMiod Vallat
is non-NULL. Prevents a panic caused by a NULL dereference when physical memory is exhausted at pmap_create() time. ok kettenis@, deraadt@
2011-08-08Ship 5.0 with bufcachepercent=20Theo de Raadt
2011-08-08Fix a formating bug that caused a bad print on big endian arches.Marco Peereboom
ok deraadt
2011-08-08If two carp interfaces on the same physical interface had addressesAlexander Bluhm
with the same prefix, neighbor discovery did not work. When comparing two carp interfaces in in6_ifpprefix(), assume they share the prefix if they have the same parent. sure deraadt@
2011-08-08myx requires the driver pad short ethernet frames to 60 bytes byDavid Gwynne
adding a descriptor pointing at zeroed bytes onto the end of transmit chains. i was accounting for this extra descriptor when i was completing the chain, but not when i was setting this up. this meant the number of free descriptors kept growing until it overflowed. at this point the check for space in the ring failed and packets no longer flowed. this counts the pad descriptor in the tx chain setup too. ok deraadt@
2011-08-07A few more fixes to the lazy FPU context switching code.Mark Kettenis