summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-08-08regenJonathan Gray
2014-08-08add bochs and microsoft emulated vgaJonathan Gray
2014-08-08use nitems() instead of various local constructsJasper Lievisse Adriaanse
ok stsp@
2014-08-08Make sure asynchronous commands do not race with synchronous ones.Martin Pieuchot
Since asynchronous commands can be submitted from interrupt context it was possible to race with a process waiting for the completion of a previously submitted command. So stop relying on the per-softc TRB pointer for asynchronous commands and simply get the address of the command TRB from the event TRB.
2014-08-08Improve the logic to determine the maximum endpoint service interfaceMartin Pieuchot
time payload. Super speed companion descriptor are still not used but at least we can properly initialize super speed interrupt pipes.
2014-08-08Implement polling.Martin Pieuchot
2014-08-08Super Speed hub descriptor definition and routine, required for upcomingMartin Pieuchot
external USB 3.0 hub support.
2014-08-08Even if the endpoint it reseted before the stack gets informed that aMartin Pieuchot
transfer stalled, report that a stall happen because umass(4) relies on this behavior...
2014-08-08Fix debug printfs.Martin Pieuchot
2014-08-06Support NOTE_EOF for kqueue EVFILT_READ filters on NFS files.Philip Guenther
committing for jsg@, ok reyk@ tedu@ guenther@
2014-08-06Correct some dma cleanup error paths.Jonathan Gray
While the index variables were correct the arrays of dma handles they indexed were swapped for rx and tx. As there are a mismatched number of rx and tx descriptors we'd walk off the end of the rx handle array by 30 items. ok deraadt@
2014-08-06fix an off by oneJonathan Gray
ok deraadt@
2014-08-05Only check if the abort transfer is the interrupt one if the pipe isMartin Pieuchot
opened with a callback. If a driver opens an interrupt pipe without callback function, like umct(4) does with one of its bulk in endpoints being reported as an interrupt endpoint, then we can end up aborting a transfer which is different from the interrupt one. Issue reported by Roberto E. Vargas Caballero, ok deraadt@
2014-08-03Add ral(4) at pci and cardbus to RAMDISK on macppc; ok deraadtStefan Sperling
2014-08-03Add ral(4) at cardbus to GENERIC on macppc; ok deraadtStefan Sperling
2014-08-03don't return unitialised memory on error in ehci_alloc_sqtd()Jonathan Gray
It seems mpi introduced a problem into ehci.c rev 1.162 two weeks ago. An error check that used to return NULL now jumps to the end of the function, but sqtd isn't initialised at that point. ok miod@ deraadt@
2014-08-03When stsp changed bwi_encap() for 30 bit addresses in rev 1.106 codeJonathan Gray
that used to always initialise the error variable is no longer run. And at the end of bwi_encap() there is: if (error) m_freem(m); return (error); Fixing this prevents packet loss stsp was seeing. ok stsp@ miod@ deraadt@
2014-08-01When attempting to rebuild a softraid volume, use the actual data offsetJoel Sing
from the volume metadata rather than the currently defined data offset. This allows rebuilds to work correctly when the volume metadata has a different data offset to that currently in use (for example, volumes created prior to softraid gaining boot support). Found the hard way by henning@ ok deraadt@
2014-07-31always use the little-endian copy of a superblock.Martin Pelikan
Damn those memcpy-wrapping macros! "do it" deraadt
2014-07-31unbreak aac(4) by re-adding uvm_extern.h for ptoa()Jasper Lievisse Adriaanse
ok deraadt@ sthen@
2014-07-31use proper on-disk inode size: no more, no less.Martin Pelikan
Reported by Roman Yakovlev, thanks! "do it now" deraadt
2014-07-29disable POOL_DEBUG for releaseTheo de Raadt
2014-07-29move to -release modeTheo de Raadt
2014-07-29Revert the checks about RTF_LOCAL routes.Martin Pieuchot
Even if in the end we would like to be more strict about what userland can do with kernel-managed route entries, most of the tools out there are not yet ready for this. Since RTF_LOCAL routes are for the moment just like RTF_LLINFO routes without expire timer, allow userland tools to remove/modify them. In case they are missing, the good old cloning mechanism will recreate what you need. bluhm@ and deraadt@ agree.
2014-07-28I/O ktrace of sendsyslog(2) did not work. As uiomove() adjustsAlexander Bluhm
iov_len to 0, we need a propper length calculation. While there, use -1 for the file descriptor because 0 is reserved for stdin. OK deraadt@ guenther@
2014-07-28On SPARCbook systems, the ledma device node has a `cable-selection' propertyMiod Vallat
specifying which media the on-board interface uses. We already query it to set up proper register values; extend this to be able to pass a default media to the le(4) child. This makes SPARCbook system default to AUI without needing for a manual media change. tested by sebastia@
2014-07-28Limit the "aperture needed" printf to ramdisks via RAMDISK_HOOKS.Jonathan Gray
Originally with SMALL_KERNEL until sebastia@ pointed out that not all ramdisks are built with SMALL_KERNEL. ok deraadt@ kettenis@
2014-07-28Hardware supported by machfb(4) needs the aperture (for now) so make ramdisksMark Kettenis
print a message to that extent such that the install scripts can do their magic. ok miod@, deraadt@
2014-07-26If we're stopping a secondary cpu, don't let sched_choosecpu() short-circuitMark Kettenis
and return the current current CPU, otherwise sched_stop_secondary_cpus() will spin forever trying to empty its run queues. Fixes hangs during suspend that many people reported over the last couple of days. ok bcook@, guenther@
2014-07-24Speed up the boot sequence by deferring the scan of xt keyboard code set.Martin Pieuchot
If you were wondering why there's a pause of 5 seconds after loading the kernel and before seeing the copyright in blue when booting some of your machines, well this is for you! mlarkin@ found that this delay is caused by some code probing for xt scan code tables when pckbd(4) initialize the console keyboard. So this diff implements an idea from deraadt@ to only do the scan once, either during *attach() or if we enter ddb> or ukc> before that! ok miod@, mlarkin@, deraadt@, shadchin@
2014-07-24Fix debug printf, from Nathanael Rensen and chris@.Martin Pieuchot
2014-07-23Set the console input in polling mode before entering ukc.Martin Pieuchot
ok miod@, deraadt@, shadchin@
2014-07-23correctly drain and destroy the bufq upon detachJasper Lievisse Adriaanse
ok dlg@
2014-07-22The last poison change is awesome, it is triggering use after free bugs.Theo de Raadt
Some of them aren't too difficult to find and fix, but others are turning out to be deeply hidden. The timing is poor -- disable this for now. We need to revisit this right after tree unlock.
2014-07-22use NULL instead of (foo *)0; Kent R. SpillnerTheo de Raadt
2014-07-22- remove unneeded headerJasper Lievisse Adriaanse
- move a declaration before code - sync with wd.c -r1.101 from may 2011 and pass dk_openmask to setdisklabel
2014-07-22remove unneccessary casts; Kent R. SpillnerTheo de Raadt
2014-07-22better warning for 8bit cardsJasper Lievisse Adriaanse
2014-07-22- use DL_SECTOBLK() instead of handrolling the same functionalityJasper Lievisse Adriaanse
- octcfsize() returns daddr_t, so calculate the return value in a daddr_t
2014-07-22Switch to MI functions disk_{gone,openpart,closepart} instead of handrollingJasper Lievisse Adriaanse
the same functionality.
2014-07-22Use MI rasops_cmap, instead of MD-defined ANSI colormap.Kenji Aoyama
Note about workaround for 8bpp frame buffer: Current LUNA wscons touches only first 4 planes (plane #0-#3), but other program (e.g. mlterm-fb) can use all 8 planes on an 8bpp frame buffer. When such program exits, it may not clear all planes, so there may be some visible garbage data on the other 4 planes (plane #4-#7) when we use default 256 rasops_cmap directly. We should manage all 8 planes on LUNA, but that will be too much overhead for 16 colors wscons. So, by repeating 16 colors in 256 colormap, we can ignore the values on the other 4 planes. ok miod@
2014-07-22Fewer <netinet/in_systm.h>Martin Pieuchot
2014-07-22Fewer <netinet/in_systm.h> !Martin Pieuchot
2014-07-22<netinet/in_systm.h> is no longer needed.Martin Pieuchot
2014-07-22oops, duplicateTheo de Raadt
2014-07-22need dev/pci/vga_pcivar.hTheo de Raadt
2014-07-22The aperture needed test should be in vgafb as well as vga@pci.Jonathan Gray
Problem noticed/fix tested by sebastia@ on macppc. sparc64 problems in earlier diff pointed out by deraadt@ 'looks good' kettenis@ 'commit' deraadt@
2014-07-22boot(9): Reduce diffs between hppa & hppa64 (& others)Masao Uebayashi
2014-07-21- whitespace cleanups (trailing whitespace, indentation)Jasper Lievisse Adriaanse
- minor code shuffling and rename a variable to reduce diff with wd.c no binary change
2014-07-21boot(9): Reduce annoying style diffsMasao Uebayashi
- Always use either: ((x & RB_XXX) != 0) or ((x & RB_XXX) == 0) in boolean context (mostly if (x), or x ? y : z) - prom_halt() in alpha is confirmed to take int as boolean Converted by coccinelle. No functional change intended.