summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-08-23Implement bus_space_barrier() on sgi; on xbridge, this will also flushMiod Vallat
the pci write buffers.
2010-08-23Rework the logic of xbridge pci_conf_{read,write} to avoid doing the disableMiod Vallat
bridge interrupts dance when trying to access an uninplemented ioc3 register. Makes PIC handling simpler as a bonus.
2010-08-23* if there's an error setting indirect more for a volume knob widget,Jacob Meuser
don't return the error back to the caller, but also don't turn on unsolicited responses for the volume knob. chances are, it isn't acutally used. lets sony viao tz play audio through suspend/resume cycle. * add some debug messages for other volume knob errors.
2010-08-23fix two problems identified by matthew@:David Gwynne
1. though shalt not hold a mutex while sleeping, which kthread_create can do. instead of holding the wq mutex over the kthread_create and increasing the number of running threads after kthread_create succeeds, this counts the thread and drops the mutex before kthread_create. after the call it takes the mutex again and decrements the number of threads if the call failed. 2. if a workq is created during autoconf, the actual thread create is deferred to when the scheduler is running. if the workq is destroyed before then, the wq memory gets freed and then the deferred thread creation will be using freed memory. we now have a workq state variable so we can do the right thing at the different stages of the workqs lifetime. ok matthew@
2010-08-23add support for the LSISAS2004 ships.David Gwynne
from alexey suslikov ok marco@
2010-08-23regenDavid Gwynne
2010-08-23LSI SAS 2004David Gwynne
from alexey suslikov ok marco@
2010-08-22the upper case table code was a lot more complicated than it needed to be.Ted Unangst
2010-08-22Fix a 16 year old bug in the sorting routine for non-contiguous netmasks.Marco Pfatschbacher
For masks of identical length rn_lexobetter() did not stop on the first non-equal byte. This leads rn_addroute() to not detecting duplicate entries and thus we might create a very long list of masks to check for each node. This can have a huge impact on IPsec performance, where non-contiguous masks are used for the flow lookup. In a setup with 1300 flows we saw 400 duplicate masks and only a third of the expected throughput. Lots of help in narrowing this down from markus@. Improved comments from claudio@. OK markus@, claudio@
2010-08-21Match the Huawei E1820, from David Zeillinger.Jonathan Gray
2010-08-21regenJonathan Gray
2010-08-21Huawei E1820, from David Zeillinger.Jonathan Gray
2010-08-21- add a quirk for the apple clear orb usb speakersJasper Lievisse Adriaanse
2010-08-21Rename file to reflect that it handles 64 bit ELF only.Joel Sing
ok miod@ (some time ago)
2010-08-21We only need to load 64 bit kernels on sparc64. Clean up the ELF boot codeJoel Sing
and let exec_elf.h do the right thing. ok miod@ (some time ago)
2010-08-21an unchecked-for failure of workq_add_task could lead to an mbuf leakBret Lambert
steal a page from dlg@ and embed a workq_task struct directly in the aoe_handler struct so that we won't fail when enqueueing a task while here, create real debugging printfs vice commenting out regular ones, and kill with fire the excessive number of includes ok marco@ tedu@
2010-08-20Change the UFS DIP macros to be aware of the FFS2 kernel option by notMatthew Dempsky
bothering to check the mount type when FFS2 support is omitted. ok krw@, jasper@; "i like it" tedu@
2010-08-20Change hzto(9) and tvtohz(9) arguments to const pointers.Matthew Dempsky
ok krw@, "of course" tedu@
2010-08-20add format strings implied by surplus argumentsJonathan Gray
found via the clang static analyser
2010-08-20regenDamien Bergamini
2010-08-20The Hercules HWNUP-150 is a urtwn (Realtek RTL8192SU).Damien Bergamini
It makes even the smallest run(4) devices look ridiculously huge.
2010-08-20white space fixDavid Gwynne
2010-08-20fix an annoying indentation glitchTheo de Raadt
2010-08-19Add "memory" clobber to lidt inline asm, to prevent the GCC optimizer fromMark Kettenis
getting stupid ideas like optimizing away stores to the descriptor that we're setting. This may be overkill, but this code is far from performance critical and it may prevent future surprises. Fixes instant reboots with bsd.rd on Pentiums with the F00F bug. Thanks to espie@, for narrowing the issue down enough for me to find the problem. ok deraadt@
2010-08-19Introduce an MI kern.consdev sysctl that will replace the MDMark Kettenis
machdep.console_device that's only implemented on a few architectures. ok deraadt@, miod@
2010-08-19- fold several occurences of DEVNAME() into one located in sdmmcvar.h.Jasper Lievisse Adriaanse
making DEVNAME() usage a lot more consistent. ok krw@
2010-08-18* indentation fixJacob Meuser
* use the correct variable in a DPRINTF
2010-08-18* the detach and drain functions do the same waiting for channels toJacob Meuser
complete outstanding requests, so use uaudio_drain in uaudio_detach. * the channel alt index can still be -1 at detach. check for this.
2010-08-18- remove COMPAT_LINUX bits. these architectures are not targetted by theJasper Lievisse Adriaanse
linux emulation layer, nor will they in the future. ok miod@
2010-08-18regenDamien Bergamini
2010-08-18Realtek RTL8190P and RTL8192E PCI ids.Damien Bergamini
2010-08-18fix a test that prevents division by zeroDamien Bergamini
restore the 100us delay after writing to an analog register since it turns out that it is required.
2010-08-18- in STA mode, when associated, stop receiving beacons from other BSS.Damien Bergamini
tested by ray@ - no periodic PA calibration for the Osprey (AR9380)
2010-08-18delete some rogue spaces and tabs. no binary change.Marco Peereboom
2010-08-18- fix compilation of kernel without FFS...don't ask ;-)Jasper Lievisse Adriaanse
ok jsing@
2010-08-17regenJasper Lievisse Adriaanse
2010-08-17- TI doesn't mean Texas IntelJasper Lievisse Adriaanse
2010-08-17Make sure fast trap handlers correctly invoke soft interrupts by markingMiod Vallat
them explicitely pending before triggering the softintr; I am ashamed I did not notice this when changing the soft interrupt code 18 months ago. Noticed by claudio@ and beck@
2010-08-17Power management for PCI devices. For now just put everything in the D3Mark Kettenis
(deepest sleep) state upon suspend, and restore power upon resume. ok deraadt@
2010-08-16Restore initialization of apcicnaddr which got accidentally removed in revisionMiod Vallat
1.5, about 5 years ago. My bad. ok deraadt@
2010-08-16Make sure we reserve enough room after the kernel image to avoid stompingMiod Vallat
over the PROM page tables on sun4c; also crank the tape kernel generous size estimate to 4MB; crank version. ok deraadt@
2010-08-16Add a dummy elf64.c, effectively removing support for loading 64-bit kernelsMark Kettenis
from cdboot to slim it down below the 32k limit.
2010-08-13now that we are at -current again, re-enable POOL_DEBUGPeter Hessler
"go ahead" kettenis@
2010-08-13Fix indentation.Mark Kettenis
2010-08-13when sending a fragmented packet, dont check if the interfaces send queueDavid Gwynne
has enough space for all the fragments on it. this check was snuck in by itojun under an unrelated commit. it broke when i set the virtual interface send queue depths to 1, which beck had to special case at n2k10. without this code we avoid these dubious checks along with another splnet/splx pair, and it should make future work on manipulating send queues easier. ive been running this in production since n2k10 (~7months ago). ok claudio@ henning@ deraadt@
2010-08-12homogeneous style.Damien Bergamini
no binary change.
2010-08-12Enable periodic (every 4 minutes) power amplifier calibrationDamien Bergamini
on AR9285 and AR9287.
2010-08-12no need to set these pointers to NULL, softc is already zeroed.Damien Bergamini
2010-08-12For chips in open-loop power control mode, periodically (every 30 secs)Damien Bergamini
compensate Tx gain for temperature changes.
2010-08-12Fix look-up of the power control digital-to-analog converter (PCDAC)Damien Bergamini
value in the Tx gain table. This fixes AR9280/AR9281 chips in open-loop power control mode, like the high power solution found in the Acer Aspire One. tested by ray@