summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2014-08-09Do not store the whole USB hub descriptor in the "struct usbd_hub"mpi4-24/+20
to help integrating super speed hubs that use a different descriptor.
2014-08-08drm/radeon: fix typo in radeon_connector_is_dp12_capable()jsg1-2/+2
From Alex Deucher 94dfc49785ea1acc1dd2c086ffd8d61ea3a5ee8f in ubuntu 3.8 af5d36539dfe043f1cf0f8b7334d6bb12cd14e75 in mainline linux
2014-08-08drm/radeon/dp: fix lane/clock setup for dp 1.2 capable devicesjsg1-3/+16
From Alex Deucher c9a1adc31f78a30f33c591b61171f02d13a5b1a7 in ubuntu 3.8 3b6d9fd23e015b5397c438fd3cd74147d2c805b6 in mainline linux
2014-08-08drm/radeon/atom: fix dithering on certain panelsjsg1-2/+5
From Alex Deucher 9102ef0d290f01247918f5a519d8fa4a96eaf370 in ubuntu 3.8 642528355c694f5ed68f6bff9ff520326a249f99 in mainline linux
2014-08-08drm/radeon: only apply hdmi bpc pll flags when encoder mode is hdmijsg1-23/+27
From Alex Deucher 85cdd5e933c0f9fe3262067e707eed565db46378 in ubuntu 3.8 7d5ab3009a8ca777174f6f469277b3922d56fd4b in mainline linux
2014-08-08regenjsg2-2/+19
2014-08-08add bochs and microsoft emulated vgajsg1-1/+6
2014-08-08Make sure asynchronous commands do not race with synchronous ones.mpi1-9/+19
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 interfacempi2-29/+39
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.mpi1-2/+16
2014-08-08Super Speed hub descriptor definition and routine, required for upcomingmpi3-5/+34
external USB 3.0 hub support.
2014-08-08Even if the endpoint it reseted before the stack gets informed that ampi1-2/+5
transfer stalled, report that a stall happen because umass(4) relies on this behavior...
2014-08-08Fix debug printfs.mpi1-5/+5
2014-08-05Only check if the abort transfer is the interrupt one if the pipe ismpi3-6/+6
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-03don't return unitialised memory on error in ehci_alloc_sqtd()jsg1-2/+2
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 codejsg1-2/+2
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 offsetjsing1-2/+2
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-31unbreak aac(4) by re-adding uvm_extern.h for ptoa()jasper1-1/+3
ok deraadt@ sthen@
2014-07-28Limit the "aperture needed" printf to ramdisks via RAMDISK_HOOKS.jsg2-2/+5
Originally with SMALL_KERNEL until sebastia@ pointed out that not all ramdisks are built with SMALL_KERNEL. ok deraadt@ kettenis@
2014-07-24Speed up the boot sequence by deferring the scan of xt keyboard code set.mpi1-24/+23
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-22Fewer <netinet/in_systm.h>mpi89-283/+90
2014-07-22The aperture needed test should be in vgafb as well as vga@pci.jsg3-40/+41
Problem noticed/fix tested by sebastia@ on macppc. sparc64 problems in earlier diff pointed out by deraadt@ 'looks good' kettenis@ 'commit' deraadt@
2014-07-20spacing glitchesderaadt1-5/+4
2014-07-20Support hibernating to softraid crypto volumes.mlarkin3-4/+170
much help and ok from deraadt@
2014-07-20Skip reading bits from a region marked as "Preserve" if all bits will bekettenis1-2/+3
modified. Some Sony and Asus laptops don't like this; the read seems to trigger an unwanted SMI that makes the machine hang. Diagnosed by mpi@ ok mpi@
2014-07-20Always allocate bwi(4) ring descriptors below the 1GB boundary to give 30bitstsp2-57/+300
devices a chance to work. Use bounce buffers for mbufs on 30bit devices. This fixes "intr fatal TX/RX" errors that render the internal wifi on many macppc machines unusable. However, packet loss problems remain. In my testing the device works fine sometimes, but experiences packet loss rates of up to 80% at other times. Still, this is a step forward. Helpful hints from claudio@ and dlg@ Tested on macppc by mpi@ and myself "go ahead" kettenis@, ok mpi@
2014-07-20In bwi(4), don't declare an interrupt as unhandled in case the PHY TX errorstsp1-2/+2
bit is set. This interrupt condition is handled by resetting the device. ok mpi@ as part of a larger diff
2014-07-20Make bwi_dma_mbuf_create() use the correct loop counter in error case.stsp1-2/+2
Bug inherited from DragonFly BSD. ok mpi@ as part of a larger diff.
2014-07-20Load bwi(4) firmware once, not every time the interface is brought up.stsp1-6/+9
Fixes a panic if the interrupt handler decides to reset the device. Firmware cannot be loaded in interrupt context. ok mpi@ as part of a larger diff
2014-07-20Make sure the correct errno is reported by warn* or err* and notguenther1-7/+14
the errno of an intervening cleanup operation like close/unlink/etc. Also, the format string for warn* and err* shouldn't end with a newline. Diff from Doug Hogan (doug (at) acyclic.org)
2014-07-18implement EFBIG handling for heavily fragmented packets on the tx path.dlg1-4/+13
ok claudio@
2014-07-17zero entropy buftedu1-1/+2
2014-07-16zap trailing newlines; "go for it" deraadtokan1-2/+1
2014-07-16Reenable hibernate RLE support and flush+zero all memory after unpack.mlarkin1-2/+8
2014-07-13pciide.c, pciide_rdc_reg.h(new): ported rdcide(4) from NetBSD.sasano2-2/+238
it supports RDC's R1012 IDE controller. tested on 86duino EduCake (DM&P Vortex86EX SoC) ok by deraadt@
2014-07-13Some reallocarray() use; review Jean-Philippe Ouellet, patrick keshishianderaadt53-186/+184
ok tedu
2014-07-13No need for <netinet/in_systm.h> here.mpi27-111/+27
2014-07-13Bye byempi1-44/+0
2014-07-13No need for ezload.hmpi1-2/+1
2014-07-12regenjsg1-104/+104
2014-07-12missed the trailing digitjsg1-1/+1
2014-07-12resurrect this treasure (still needed to build microcode)deraadt1-0/+44
2014-07-12Print a line in dmesg to indicate if the aperture driver isjsg7-2/+788
required to run X. This will be used by the installer to decide what value to set machdep.allowaperture to. For devices supported by i915 and radeon kms machdep.allowaperture will be set to 0. Systems that have a graphics device commonly found in servers (g200e*/aspeed/es1000 etc) will also not have the aperture enabled as they generally don't need to run X. ok deraadt@ kettenis@
2014-07-12"Dr. Jones. Again we see there is nothing you can possess which I cannottedu9-1737/+3
take away." remove uyap. no effect except on hppa where it was strangely enabled.
2014-07-12Kill the last dumb DVACT_DEACTIVATE handlers.mpi10-249/+69
2014-07-12teduuuuuudfu(4) it has never been enabled in 5 years.mpi2-229/+1
ok tedu@, deraadt@
2014-07-12tedu another bunch of DVACT_DEACTIVATE handlers that do nothing but setmpi13-335/+102
the 'dying' flag.
2014-07-12Protect the freelists of transfer descriptors with the appropriate splmpi3-39/+50
so that we do not end up allocating two times new descriptors. This happens if a thread finds an empty list, start allocating, got interrupted and the interrupt also finds an empty list. Fix an issue reported by Nils Frohberg. ok yuo@, pirofti@
2014-07-12revert bogus free changes in not kernel files. got a little trigger happy.tedu8-32/+32
2014-07-12add a size argument to free. will be used soon, but for now default to 0.tedu168-795/+795
after discussions with beck deraadt kettenis.