summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-04-13Export ENAMETOOLONG such that kernels compile again.Mark Kettenis
2011-04-13wskbd_holdscreen() is not needed and can be removedAlexandr Shadchin
ok miod@
2011-04-13Make spstrcpy() work as advertised.Joel Sing
ok kettenis@
2011-04-13Enable siop, scsibus and sd.Joel Sing
No objection from kettenis@
2011-04-13Remove some very noisy debug code.Joel Sing
2011-04-13Do not use a virtual address whilst in physical mode. Instead save the spJoel Sing
and iir in the physical trap save area and copy into the trap frame once back in virtual. ok kettenis@
2011-04-13export udpencap state of SA to userland; unbreaks sasyncd(8) with NAT/T.Markus Friedl
ok mikeb@ fries@ mpf@ henning@ dlg@ matthew@
2011-04-13to quote from the gospel of bus_dma.9:David Gwynne
Synchronization operations are expressed from the perspective of the host RAM, e.g., a device -> memory operation is a READ and a memory -> device operation is a WRITE. the status block that the isr reads is written to by the device. the chip writes to memory, it is therefore a READ. this also adds the preread sync when the map is set up and the postread sync when the map is torn down for better symmetry. there are probably more issues like this in the code, but this is a start. discovered while discussing another diff with claudio@
2011-04-13Unrevert the FS.base diff: the issues were actually elsewherePhilip Guenthe
Additional testing by jasper@ and pea@
2011-04-13do not use NULL in an integer contextTheo de Raadt
2011-04-13modify the interrupt handler so it only processes the rings once,David Gwynne
rather than looping over them until it runs out of work to do. looping in the isr is bad for several reasons: firstly, the chip does interrupt mitigation so you have a decent/predictable amount of work to do in the isr. your first loop will do that chunk of work (ie, it pulls off 50ish packets), and then the successive looping aggressively pull one or two packets off the rx ring. these extra loops work against the benefit that interrupt mitigation provides. bus space reads are slow. we should avoid doing them where possible (but we should always do them when necessary). doing the loop 5 times per isr works against the mclgeti semantics. it knows a nic is busy and therefore needs more rx descriptors by watching to see when the nic uses all of its descriptors between interrupts. if we're aggressively pulling packets off by looping in the isr then we're skewing this check. ok deraadt@ claudio@ this is like src/sys/dev/pci/if_ix.c r1.50.
2011-04-13modify the interrupt handler so it only processes the rings once, ratherDavid Gwynne
than looping over them until it runs out of work to do. in my testing i have found that under what i consider high pps (>160kpps) ix would loop 4 or 5 times in the interrupt handler, where each loop does a bus_space_read and the mclgeti loop (ie, rx dequeue followed by rx ring fill). looping in the isr is bad for several reasons: firstly, the chip does interrupt mitigation so you have a decent/predictable amount of work to do in the isr. your first loop will do that chunk of work (ie, it pulls off 50ish packets), and then the successive looping aggressively pull one or two packets off the rx ring. these extra loops work against the benefit that interrupt mitigation provides. bus space reads are slow. we should avoid doing them where possible (but we should always do them when necessary). doing the loop 5 times per isr works against the mclgeti semantics. it knows a nic is busy and therefore needs more rx descriptors by watching to see when the nic uses all of its descriptors between interrupts. if we're aggressively pulling packets off by looping in the isr then we're skewing this check. ok deraadt@ claudio@ testing by phessler@ bluhm@ and me in production
2011-04-12regenJonathan Gray
2011-04-12add some entries from submitted dmesgsJonathan Gray
2011-04-12No longer special-case NULL as a long for kernel and bootblocks.Miod Vallat
2011-04-12A few, hopefully last, NULL-as-an-integer misuses.Miod Vallat
2011-04-12We need to delay 10msec after changing to/from D3 state. note: There areTheo de Raadt
some broken intel chipsets that require longer delays, we will cope with that later hopefully. ok kettenis
2011-04-12Fix uninitialized variable access introduced in 1.58, causing read accessMiod Vallat
to possibly favor the mirror instead of the main ccd by incorrectly considering the main ccd is in the failure state, for interleaved+mirrored ccds. ok deraadt@
2011-04-12Avoid kvm starvation due to softdeps waiting on too many mapped buffers,Bob Beck
thus possibly consuming all of our available kva mapping buffers for deps. Diff and analysis actually comes from Pedro Martelleto (thanks!) tested by me and thib ok thib@, art@
2011-04-12put the accepted socket of a diverted connection into the routing domainMike Belopuhov
of a connection originator. this allows one to query the source rdomain with a SO_RTABLE socket option. figured out with reyk, ok claudio.
2011-04-11Fix SPL handling when PCDISPLAY_SOFTCURSOR is enabled.Matthew Dempsky
Discovered, narrowed down, and tested by jmc@. "definitely commit that" deraadt@, ok miod@
2011-04-11Move the DDB includes up in the file so that the m_print() prototype isClaudio Jeker
defined in all of uipc_mbuf.c. I use this function a lot for quick printf debugging.
2011-04-11uncompressed video formats have a fixed per-pixel bit depth, whichJacob Meuser
means the data size of a frame can be calculated if the dimensions are known. * calculate frame data sizes for uncompressed formats instead of believing what the hardware says. the UVC spec changed between 1.0 and 1.1, and as a result, some devices return bogus information. * skip under-sized as well as over-sized uncompressed frames; there is only one correct size for uncompressed frames. * remove quirk to fix uncompressed frame sizes on certain devices, since that now always happens. * check that the device is actually using the parameters we think it's using.
2011-04-10Backout m_split_mbuf() from revision 1.150. It seems that m_split()Alexander Bluhm
got broken. Most /usr/src/regress/sys/kern/splice/args-oobinline-* regression tests fail when they split an mbuf at out-of-band data. ok claudio@, deraadt@
2011-04-10Merge viapm and viaenvAlexandr Shadchin
Pluses: - Add support SMBus for VT82C596, VT82C596B, VT82C686A, VT8231 - Add support ACPI timer for all VIA South Bridges ok deraadt@, tested sthen@
2011-04-10Revert Rev. 1.189. The delayed ip checksum calculation causes problemsClaudio Jeker
with broadcast packets.
2011-04-10A last few NULL -> 0 corrections.Miod Vallat
2011-04-10bring back changes in r 1.192:Jacob Meuser
detach happens after the hardware is gone, so don't try to touch the hardware in the detach path but azalia_pci_detach is called if the device coiuld not be initialized. in that case, shut the hardware down.
2011-04-10Extend the PCI memory address space to 36-bit. The first BIOSen that assignMark Kettenis
addresses >4GB to 64-bit BARs have started to appear. But as long as machines still support running 32-bit operating systems we don't expect to see BARs that aren't addressable using PAE. Fixes a panic reported by william@. ok deraadt@
2011-04-10Add -fno-builtin-exit to CFLAGS to silence gcc4.Miod Vallat
2011-04-10Uninitialized local variable.Miod Vallat
2011-04-10NULL -> 0Miod Vallat
2011-04-10Include <libkern.h> to get proper strrchr() prototype.Miod Vallat
2011-04-10Revert bulk of the FS.base diff, as it causes issues on some machinesPhilip Guenthe
and the problem isn't obvious yet.
2011-04-10hppa64 does not have a libspmathTheo de Raadt
2011-04-10'kernel libraries' always get in the way of the build process. TeachTheo de Raadt
autoconf how to find the spmath files.
2011-04-09don't tell the inline assembly here it will take a 64 bit io portJonathan Gray
value when this isn't possible in practice, use a 32 bit value. ok kettenis@ miod@ oga@
2011-04-09Make this compile without warnings in all modes, and do not use NULL whenMiod Vallat
integer zero is intended.
2011-04-09add all 64 bit dma plumbing but stick with 32 for now by default.Marco Peereboom
ok deraadt
2011-04-09repair a 32-bit truncation in paddr_t calculation, allowing my 8GBTheo de Raadt
o350 to boot once again ok miod
2011-04-09use unique wait channelsTheo de Raadt
2011-04-09make sure the upper 32 bits are always written to instead of assuming itMarco Peereboom
is 0. ok deraadt.
2011-04-08backout previous (which has some interrupt spin problem, sort of diagnosedTheo de Raadt
by claudio to be related to this commit) until jakemsr has time to fix it
2011-04-08more spacesMarco Peereboom
2011-04-08kill some stray spacesMarco Peereboom
2011-04-08Fix a 64-bit arithmetic bug I stumbled upon while investigating ourMatthew Dempsky
handling of recursive IPComp payloads. (This code is way old and may go away soon in favor of using sys/lib/libz, but committing anyway as plans aren't finalized yet.) ok deraadt@
2011-04-08rename wiat channel to something less than 8 chars.Marco Peereboom
prompted by deraadt
2011-04-08use dma_alloc for transient management commands.Marco Peereboom
prodded and ok deraadt
2011-04-08Since we don't print "drive offline" anymore, there is no need toKenneth R Westerback
print the "sdN:" at the start of the now empty line. Noted by miod@.
2011-04-08remove uneeded inlines here as was done in rev 1.24 ofJonathan Gray
the equivalent i386 file ok kettenis@ deraadt@